Skip to content

Commit ce79cad

Browse files
authored
[Hub Generated] Review request for Microsoft.Authorization to add version stable/2020-09-01 (#11961)
* Ensuring dataPolicyManifests follow the rules of autorest/docs/extensions/readme.md#x-ms-extermal * Following the rulesof autorest/docs/extensions/readme.md#x-ms-external for other json files in 2020-09-01 version * Adds suppression to readme * Fix linter error missing description * Rolling back the version to fix swagger linter errors * Fixing linter errors for version 2020-03-01 as well * Remove suppresion because it is no longer needed * Removing CloudeError definition and adding the reference directly * Updating error response * Updating to v2 of error response
1 parent ace28fc commit ce79cad

File tree

7 files changed

+62
-97
lines changed

7 files changed

+62
-97
lines changed

specification/resources/resource-manager/Microsoft.Authorization/stable/2020-03-01/policyAssignments.json

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"default": {
8181
"description": "Error response describing why the operation failed.",
8282
"schema": {
83-
"$ref": "#/definitions/CloudError"
83+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
8484
}
8585
}
8686
}
@@ -142,7 +142,7 @@
142142
"default": {
143143
"description": "Error response describing why the operation failed.",
144144
"schema": {
145-
"$ref": "#/definitions/CloudError"
145+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
146146
}
147147
}
148148
}
@@ -192,7 +192,7 @@
192192
"default": {
193193
"description": "Error response describing why the operation failed.",
194194
"schema": {
195-
"$ref": "#/definitions/CloudError"
195+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
196196
}
197197
}
198198
}
@@ -245,7 +245,7 @@
245245
"default": {
246246
"description": "Error response describing why the operation failed.",
247247
"schema": {
248-
"$ref": "#/definitions/CloudError"
248+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
249249
}
250250
}
251251
},
@@ -332,7 +332,7 @@
332332
"default": {
333333
"description": "Error response describing why the operation failed.",
334334
"schema": {
335-
"$ref": "#/definitions/CloudError"
335+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
336336
}
337337
}
338338
},
@@ -379,7 +379,7 @@
379379
"default": {
380380
"description": "Error response describing why the operation failed.",
381381
"schema": {
382-
"$ref": "#/definitions/CloudError"
382+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
383383
}
384384
}
385385
},
@@ -425,7 +425,7 @@
425425
"default": {
426426
"description": "Error response describing why the operation failed.",
427427
"schema": {
428-
"$ref": "#/definitions/CloudError"
428+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
429429
}
430430
}
431431
},
@@ -474,7 +474,7 @@
474474
"default": {
475475
"description": "Error response describing why the operation failed.",
476476
"schema": {
477-
"$ref": "#/definitions/CloudError"
477+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
478478
}
479479
}
480480
}
@@ -526,7 +526,7 @@
526526
"default": {
527527
"description": "Error response describing why the operation failed.",
528528
"schema": {
529-
"$ref": "#/definitions/CloudError"
529+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
530530
}
531531
}
532532
}
@@ -569,19 +569,14 @@
569569
"default": {
570570
"description": "Error response describing why the operation failed.",
571571
"schema": {
572-
"$ref": "#/definitions/CloudError"
572+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
573573
}
574574
}
575575
}
576576
}
577577
}
578578
},
579579
"definitions": {
580-
"CloudError": {
581-
"x-ms-external": true,
582-
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse",
583-
"description": "An error response from a policy operation."
584-
},
585580
"PolicyAssignmentProperties": {
586581
"properties": {
587582
"displayName": {

specification/resources/resource-manager/Microsoft.Authorization/stable/2020-03-01/policyDefinitions.json

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"default": {
8585
"description": "Error response describing why the operation failed.",
8686
"schema": {
87-
"$ref": "#/definitions/CloudError"
87+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
8888
}
8989
}
9090
}
@@ -126,7 +126,7 @@
126126
"default": {
127127
"description": "Error response describing why the operation failed.",
128128
"schema": {
129-
"$ref": "#/definitions/CloudError"
129+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
130130
}
131131
}
132132
}
@@ -168,7 +168,7 @@
168168
"default": {
169169
"description": "Error response describing why the operation failed.",
170170
"schema": {
171-
"$ref": "#/definitions/CloudError"
171+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
172172
}
173173
}
174174
}
@@ -209,7 +209,7 @@
209209
"default": {
210210
"description": "Error response describing why the operation failed.",
211211
"schema": {
212-
"$ref": "#/definitions/CloudError"
212+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
213213
}
214214
}
215215
}
@@ -262,7 +262,7 @@
262262
"default": {
263263
"description": "Error response describing why the operation failed.",
264264
"schema": {
265-
"$ref": "#/definitions/CloudError"
265+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
266266
}
267267
}
268268
}
@@ -304,7 +304,7 @@
304304
"default": {
305305
"description": "Error response describing why the operation failed.",
306306
"schema": {
307-
"$ref": "#/definitions/CloudError"
307+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
308308
}
309309
}
310310
}
@@ -346,7 +346,7 @@
346346
"default": {
347347
"description": "Error response describing why the operation failed.",
348348
"schema": {
349-
"$ref": "#/definitions/CloudError"
349+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
350350
}
351351
}
352352
}
@@ -389,7 +389,7 @@
389389
"default": {
390390
"description": "Error response describing why the operation failed.",
391391
"schema": {
392-
"$ref": "#/definitions/CloudError"
392+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
393393
}
394394
}
395395
},
@@ -432,7 +432,7 @@
432432
"default": {
433433
"description": "Error response describing why the operation failed.",
434434
"schema": {
435-
"$ref": "#/definitions/CloudError"
435+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
436436
}
437437
}
438438
},
@@ -478,7 +478,7 @@
478478
"default": {
479479
"description": "Error response describing why the operation failed.",
480480
"schema": {
481-
"$ref": "#/definitions/CloudError"
481+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
482482
}
483483
}
484484
},
@@ -489,11 +489,6 @@
489489
}
490490
},
491491
"definitions": {
492-
"CloudError": {
493-
"x-ms-external": true,
494-
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse",
495-
"description": "An error response from a policy operation."
496-
},
497492
"PolicyDefinitionProperties": {
498493
"properties": {
499494
"policyType": {

specification/resources/resource-manager/Microsoft.Authorization/stable/2020-03-01/policySetDefinitions.json

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"default": {
9191
"description": "Error response describing why the operation failed.",
9292
"schema": {
93-
"$ref": "#/definitions/CloudError"
93+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
9494
}
9595
}
9696
}
@@ -132,7 +132,7 @@
132132
"default": {
133133
"description": "Error response describing why the operation failed.",
134134
"schema": {
135-
"$ref": "#/definitions/CloudError"
135+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
136136
}
137137
}
138138
}
@@ -174,7 +174,7 @@
174174
"default": {
175175
"description": "Error response describing why the operation failed.",
176176
"schema": {
177-
"$ref": "#/definitions/CloudError"
177+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
178178
}
179179
}
180180
}
@@ -215,7 +215,7 @@
215215
"default": {
216216
"description": "Error response describing why the operation failed.",
217217
"schema": {
218-
"$ref": "#/definitions/CloudError"
218+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
219219
}
220220
}
221221
}
@@ -258,7 +258,7 @@
258258
"default": {
259259
"description": "Error response describing why the operation failed.",
260260
"schema": {
261-
"$ref": "#/definitions/CloudError"
261+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
262262
}
263263
}
264264
},
@@ -301,7 +301,7 @@
301301
"default": {
302302
"description": "Error response describing why the operation failed.",
303303
"schema": {
304-
"$ref": "#/definitions/CloudError"
304+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
305305
}
306306
}
307307
},
@@ -366,7 +366,7 @@
366366
"default": {
367367
"description": "Error response describing why the operation failed.",
368368
"schema": {
369-
"$ref": "#/definitions/CloudError"
369+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
370370
}
371371
}
372372
}
@@ -408,7 +408,7 @@
408408
"default": {
409409
"description": "Error response describing why the operation failed.",
410410
"schema": {
411-
"$ref": "#/definitions/CloudError"
411+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
412412
}
413413
}
414414
}
@@ -450,7 +450,7 @@
450450
"default": {
451451
"description": "Error response describing why the operation failed.",
452452
"schema": {
453-
"$ref": "#/definitions/CloudError"
453+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
454454
}
455455
}
456456
}
@@ -493,7 +493,7 @@
493493
"default": {
494494
"description": "Error response describing why the operation failed.",
495495
"schema": {
496-
"$ref": "#/definitions/CloudError"
496+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
497497
}
498498
}
499499
},
@@ -504,11 +504,6 @@
504504
}
505505
},
506506
"definitions": {
507-
"CloudError": {
508-
"x-ms-external": true,
509-
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse",
510-
"description": "An error response from a policy operation."
511-
},
512507
"PolicySetDefinitionProperties": {
513508
"properties": {
514509
"policyType": {

specification/resources/resource-manager/Microsoft.Authorization/stable/2020-09-01/dataPolicyManifests.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"default": {
7070
"description": "Error response describing why the operation failed.",
7171
"schema": {
72-
"$ref": "#/definitions/CloudError"
72+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
7373
}
7474
}
7575
}
@@ -109,7 +109,7 @@
109109
"default": {
110110
"description": "Error response describing why the operation failed.",
111111
"schema": {
112-
"$ref": "#/definitions/CloudError"
112+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
113113
}
114114
}
115115
},
@@ -120,11 +120,6 @@
120120
}
121121
},
122122
"definitions": {
123-
"CloudError": {
124-
"x-ms-external": true,
125-
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse",
126-
"description": "An error response from a policy operation."
127-
},
128123
"DataManifestCustomResourceFunctionDefinition": {
129124
"properties": {
130125
"name": {

0 commit comments

Comments
 (0)