Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated ErrorResponse in DataExport and OperationStatuses #13012

Merged
merged 5 commits into from
Feb 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ClusterErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -106,7 +106,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ClusterErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -176,7 +176,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ClusterErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -221,7 +221,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ClusterErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -266,7 +266,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ClusterErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
Expand Down Expand Up @@ -319,7 +319,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ClusterErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
Expand Down Expand Up @@ -363,16 +363,6 @@
},
"description": "Cluster properties."
},
"ClusterErrorResponse": {
"description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.",
"type": "object",
"properties": {
"error": {
"description": "The details of the error.",
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
}
},
"ClusterPatchProperties": {
"properties": {
"keyVaultProperties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/DataExportErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -140,7 +140,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/DataExportErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
Expand Down Expand Up @@ -187,7 +187,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/DataExportErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
Expand Down Expand Up @@ -234,7 +234,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/DataExportErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
Expand Down Expand Up @@ -344,16 +344,6 @@
}
},
"description": "Destination meta data."
},
"DataExportErrorResponse": {
"description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.",
"type": "object",
"properties": {
"error": {
"description": "The details of the error.",
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
}
}
},
"parameters": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"error": {
"type": "object",
"description": "The error detail of the operation if any.",
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorContract"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
},
Expand Down Expand Up @@ -127,7 +127,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorContract"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
Expand Down Expand Up @@ -170,7 +170,7 @@
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorContract"
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
}
Expand Down Expand Up @@ -216,16 +216,6 @@
}
},
"description": "The list tables operation response."
},
"ErrorContract": {
"title": "Error details.",
"description": "Contains details when the response code indicates an error.",
"properties": {
"error": {
"description": "The details of the error.",
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
}
}
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@
"value": [
{
"properties": {
"retentionInDays": 7
"retentionInDays": 30
},
"id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock/tables/table1",
"name": "table1"
},
{
"properties": {
"retentionInDays": 7
"retentionInDays": 30
},
"id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock/tables/table2",
"name": "table2"
},
{
"properties": {
"retentionInDays": 7
"retentionInDays": 30
},
"id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock/tables/table3",
"name": "table3"
Expand Down
42 changes: 29 additions & 13 deletions specification/operationalinsights/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ title: LogAnalyticsManagementClient
``` yaml
description: Operational Insights Client
openapi-type: arm
tag: package-2020-08
tag: package-2020-10
```


Expand Down Expand Up @@ -107,18 +107,6 @@ input-file:
- Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json
```

### Tag: package-2020-10

These settings apply only when `--tag=package-2020-10` is specified on the command line.

``` yaml $(tag) == 'package-2020-10'
input-file:
- Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json
- Microsoft.OperationalInsights/stable/2020-10-01/Operations.json
- Microsoft.OperationalInsights/stable/2020-10-01/Tables.json
- Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json
```

### Tag: package-2020-08

These settings apply only when `--tag=package-2020-08` is specified on the command line.
Expand Down Expand Up @@ -147,6 +135,34 @@ input-file:
- Microsoft.OperationalInsights/stable/2020-08-01/Tables.json
```

### Tag: package-2020-10

These settings apply only when `--tag=package-2020-10` is specified on the command line.

``` yaml $(tag) == 'package-2020-10'
input-file:
- Microsoft.OperationalInsights/stable/2020-08-01/DataExports.json
- Microsoft.OperationalInsights/stable/2020-08-01/DataSources.json
- Microsoft.OperationalInsights/stable/2020-08-01/IntelligencePacks.json
- Microsoft.OperationalInsights/stable/2020-08-01/LinkedServices.json
- Microsoft.OperationalInsights/stable/2020-08-01/LinkedStorageAccounts.json
- Microsoft.OperationalInsights/stable/2020-08-01/ManagementGroups.json
- Microsoft.OperationalInsights/stable/2020-08-01/OperationStatuses.json
- Microsoft.OperationalInsights/stable/2020-08-01/SharedKeys.json
- Microsoft.OperationalInsights/stable/2020-08-01/Usages.json
- Microsoft.OperationalInsights/stable/2020-08-01/StorageInsightConfigs.json
- Microsoft.OperationalInsights/stable/2020-08-01/SavedSearches.json
- Microsoft.OperationalInsights/stable/2020-08-01/AvailableServiceTiers.json
- Microsoft.OperationalInsights/stable/2020-08-01/Gateways.json
- Microsoft.OperationalInsights/stable/2020-08-01/Schema.json
- Microsoft.OperationalInsights/stable/2020-08-01/SharedKeys.json
- Microsoft.OperationalInsights/stable/2020-08-01/WorkspacePurge.json
- Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json
- Microsoft.OperationalInsights/stable/2020-10-01/Operations.json
- Microsoft.OperationalInsights/stable/2020-10-01/Tables.json
- Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json
```

---
# Code Generation

Expand Down