Skip to content

Commit 33ffbed

Browse files
authored
updated ErrorResponse in DataExport and OperationStatuses (Azure#13012)
* updated ErrorResponse in DataExport and OperationStatuses * removed whitespace * fixed ErrorResponse in Cluster 2020-08-01 * ErrorResponse in Tables.json 2020-08-01 * changed min retention of TablesList to 30 from 7
1 parent 3ae2e25 commit 33ffbed

File tree

6 files changed

+46
-60
lines changed

6 files changed

+46
-60
lines changed

specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/Clusters.json

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"default": {
6868
"description": "Error response describing why the operation failed.",
6969
"schema": {
70-
"$ref": "#/definitions/ClusterErrorResponse"
70+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
7171
}
7272
}
7373
},
@@ -106,7 +106,7 @@
106106
"default": {
107107
"description": "Error response describing why the operation failed.",
108108
"schema": {
109-
"$ref": "#/definitions/ClusterErrorResponse"
109+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
110110
}
111111
}
112112
},
@@ -176,7 +176,7 @@
176176
"default": {
177177
"description": "Error response describing why the operation failed.",
178178
"schema": {
179-
"$ref": "#/definitions/ClusterErrorResponse"
179+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
180180
}
181181
}
182182
},
@@ -221,7 +221,7 @@
221221
"default": {
222222
"description": "Error response describing why the operation failed.",
223223
"schema": {
224-
"$ref": "#/definitions/ClusterErrorResponse"
224+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
225225
}
226226
}
227227
},
@@ -266,7 +266,7 @@
266266
"default": {
267267
"description": "Error response describing why the operation failed.",
268268
"schema": {
269-
"$ref": "#/definitions/ClusterErrorResponse"
269+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
270270
}
271271
}
272272
}
@@ -319,7 +319,7 @@
319319
"default": {
320320
"description": "Error response describing why the operation failed.",
321321
"schema": {
322-
"$ref": "#/definitions/ClusterErrorResponse"
322+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
323323
}
324324
}
325325
}
@@ -363,16 +363,6 @@
363363
},
364364
"description": "Cluster properties."
365365
},
366-
"ClusterErrorResponse": {
367-
"description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.",
368-
"type": "object",
369-
"properties": {
370-
"error": {
371-
"description": "The details of the error.",
372-
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
373-
}
374-
}
375-
},
376366
"ClusterPatchProperties": {
377367
"properties": {
378368
"keyVaultProperties": {

specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/DataExports.json

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"default": {
7171
"description": "Error response describing why the operation failed.",
7272
"schema": {
73-
"$ref": "#/definitions/DataExportErrorResponse"
73+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
7474
}
7575
}
7676
},
@@ -140,7 +140,7 @@
140140
"default": {
141141
"description": "Error response describing why the operation failed.",
142142
"schema": {
143-
"$ref": "#/definitions/DataExportErrorResponse"
143+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
144144
}
145145
}
146146
}
@@ -187,7 +187,7 @@
187187
"default": {
188188
"description": "Error response describing why the operation failed.",
189189
"schema": {
190-
"$ref": "#/definitions/DataExportErrorResponse"
190+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
191191
}
192192
}
193193
}
@@ -234,7 +234,7 @@
234234
"default": {
235235
"description": "Error response describing why the operation failed.",
236236
"schema": {
237-
"$ref": "#/definitions/DataExportErrorResponse"
237+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
238238
}
239239
}
240240
}
@@ -344,16 +344,6 @@
344344
}
345345
},
346346
"description": "Destination meta data."
347-
},
348-
"DataExportErrorResponse": {
349-
"description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.",
350-
"type": "object",
351-
"properties": {
352-
"error": {
353-
"description": "The details of the error.",
354-
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
355-
}
356-
}
357347
}
358348
},
359349
"parameters": {}

specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/OperationStatuses.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
"error": {
108108
"type": "object",
109109
"description": "The error detail of the operation if any.",
110-
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
110+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
111111
}
112112
}
113113
}

specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/Tables.json

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"default": {
7171
"description": "Error response describing why the operation failed.",
7272
"schema": {
73-
"$ref": "#/definitions/ErrorContract"
73+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
7474
}
7575
}
7676
},
@@ -127,7 +127,7 @@
127127
"default": {
128128
"description": "Error response describing why the operation failed.",
129129
"schema": {
130-
"$ref": "#/definitions/ErrorContract"
130+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
131131
}
132132
}
133133
}
@@ -170,7 +170,7 @@
170170
"default": {
171171
"description": "Error response describing why the operation failed.",
172172
"schema": {
173-
"$ref": "#/definitions/ErrorContract"
173+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
174174
}
175175
}
176176
}
@@ -216,16 +216,6 @@
216216
}
217217
},
218218
"description": "The list tables operation response."
219-
},
220-
"ErrorContract": {
221-
"title": "Error details.",
222-
"description": "Contains details when the response code indicates an error.",
223-
"properties": {
224-
"error": {
225-
"description": "The details of the error.",
226-
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
227-
}
228-
}
229219
}
230220
},
231221
"parameters": {

specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2020-08-01/examples/TablesList.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@
1111
"value": [
1212
{
1313
"properties": {
14-
"retentionInDays": 7
14+
"retentionInDays": 30
1515
},
1616
"id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock/tables/table1",
1717
"name": "table1"
1818
},
1919
{
2020
"properties": {
21-
"retentionInDays": 7
21+
"retentionInDays": 30
2222
},
2323
"id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock/tables/table2",
2424
"name": "table2"
2525
},
2626
{
2727
"properties": {
28-
"retentionInDays": 7
28+
"retentionInDays": 30
2929
},
3030
"id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock/tables/table3",
3131
"name": "table3"

specification/operationalinsights/resource-manager/readme.md

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ title: LogAnalyticsManagementClient
3434
``` yaml
3535
description: Operational Insights Client
3636
openapi-type: arm
37-
tag: package-2020-08
37+
tag: package-2020-10
3838
```
3939
4040
@@ -107,18 +107,6 @@ input-file:
107107
- Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json
108108
```
109109

110-
### Tag: package-2020-10
111-
112-
These settings apply only when `--tag=package-2020-10` is specified on the command line.
113-
114-
``` yaml $(tag) == 'package-2020-10'
115-
input-file:
116-
- Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json
117-
- Microsoft.OperationalInsights/stable/2020-10-01/Operations.json
118-
- Microsoft.OperationalInsights/stable/2020-10-01/Tables.json
119-
- Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json
120-
```
121-
122110
### Tag: package-2020-08
123111

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

138+
### Tag: package-2020-10
139+
140+
These settings apply only when `--tag=package-2020-10` is specified on the command line.
141+
142+
``` yaml $(tag) == 'package-2020-10'
143+
input-file:
144+
- Microsoft.OperationalInsights/stable/2020-08-01/DataExports.json
145+
- Microsoft.OperationalInsights/stable/2020-08-01/DataSources.json
146+
- Microsoft.OperationalInsights/stable/2020-08-01/IntelligencePacks.json
147+
- Microsoft.OperationalInsights/stable/2020-08-01/LinkedServices.json
148+
- Microsoft.OperationalInsights/stable/2020-08-01/LinkedStorageAccounts.json
149+
- Microsoft.OperationalInsights/stable/2020-08-01/ManagementGroups.json
150+
- Microsoft.OperationalInsights/stable/2020-08-01/OperationStatuses.json
151+
- Microsoft.OperationalInsights/stable/2020-08-01/SharedKeys.json
152+
- Microsoft.OperationalInsights/stable/2020-08-01/Usages.json
153+
- Microsoft.OperationalInsights/stable/2020-08-01/StorageInsightConfigs.json
154+
- Microsoft.OperationalInsights/stable/2020-08-01/SavedSearches.json
155+
- Microsoft.OperationalInsights/stable/2020-08-01/AvailableServiceTiers.json
156+
- Microsoft.OperationalInsights/stable/2020-08-01/Gateways.json
157+
- Microsoft.OperationalInsights/stable/2020-08-01/Schema.json
158+
- Microsoft.OperationalInsights/stable/2020-08-01/SharedKeys.json
159+
- Microsoft.OperationalInsights/stable/2020-08-01/WorkspacePurge.json
160+
- Microsoft.OperationalInsights/stable/2020-10-01/Clusters.json
161+
- Microsoft.OperationalInsights/stable/2020-10-01/Operations.json
162+
- Microsoft.OperationalInsights/stable/2020-10-01/Tables.json
163+
- Microsoft.OperationalInsights/stable/2020-10-01/Workspaces.json
164+
```
165+
150166
---
151167
# Code Generation
152168

0 commit comments

Comments
 (0)