Skip to content

Commit 0269d92

Browse files
authored
[Hub Generated] Review request for Microsoft.Authorization to add version preview/2020-04-01-preview (#11506)
1 parent a8308b2 commit 0269d92

12 files changed

+228
-4
lines changed

specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-ProviderOperationsCalls.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,24 @@
112112
}
113113
},
114114
"definitions": {
115+
"Error": {
116+
"properties": {
117+
"error": {
118+
"type": "object",
119+
"properties": {
120+
"code": {
121+
"type": "string",
122+
"description": "Brief error code"
123+
},
124+
"message": {
125+
"type": "string",
126+
"description": "Longer message explaining the details of the error"
127+
}
128+
}
129+
}
130+
},
131+
"description": "Object to be thrown in case of an unsuccessful response"
132+
},
115133
"ResourceType": {
116134
"properties": {
117135
"name": {

specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleAssignmentsCalls.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,24 @@
478478
}
479479
},
480480
"definitions": {
481+
"Error": {
482+
"properties": {
483+
"error": {
484+
"type": "object",
485+
"properties": {
486+
"code": {
487+
"type": "string",
488+
"description": "Brief error code"
489+
},
490+
"message": {
491+
"type": "string",
492+
"description": "Longer message explaining the details of the error"
493+
}
494+
}
495+
}
496+
},
497+
"description": "Object to be thrown in case of an unsuccessful response"
498+
},
481499
"RoleAssignmentFilter": {
482500
"properties": {
483501
"principalId": {

specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleDefinitionsCalls.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,24 @@
348348
}
349349
},
350350
"definitions": {
351+
"Error": {
352+
"properties": {
353+
"error": {
354+
"type": "object",
355+
"properties": {
356+
"code": {
357+
"type": "string",
358+
"description": "Brief error code"
359+
},
360+
"message": {
361+
"type": "string",
362+
"description": "Longer message explaining the details of the error"
363+
}
364+
}
365+
}
366+
},
367+
"description": "Object to be thrown in case of an unsuccessful response"
368+
},
351369
"RoleDefinitionFilter": {
352370
"properties": {
353371
"roleName": {

specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,25 @@
298298
}
299299
},
300300
"definitions": {
301+
"Error": {
302+
"properties": {
303+
"error": {
304+
"description": "Object to be thrown in case of an unsuccessful response",
305+
"type": "object",
306+
"properties": {
307+
"code": {
308+
"type": "string",
309+
"description": "Brief error code"
310+
},
311+
"message": {
312+
"type": "string",
313+
"description": "Longer message explaining the details of the error"
314+
}
315+
}
316+
}
317+
},
318+
"description": "Object to be thrown in case of an unsuccessful response"
319+
},
301320
"DenyAssignmentFilter": {
302321
"properties": {
303322
"denyAssignmentName": {

specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-04-01-preview/authorization-RoleAssignmentsCalls.json

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,12 @@
135135
"schema": {
136136
"$ref": "#/definitions/RoleAssignmentListResult"
137137
}
138+
},
139+
"400": {
140+
"description": "Bad Request - Indicates the request has missing information and can not be completed",
141+
"schema": {
142+
"$ref": "#/definitions/Error"
143+
}
138144
}
139145
},
140146
"x-ms-pageable": {
@@ -181,6 +187,12 @@
181187
"schema": {
182188
"$ref": "#/definitions/RoleAssignment"
183189
}
190+
},
191+
"204": {
192+
"description": "Deleted - Indicates correct deletion without returning additional info"
193+
},
194+
"412": {
195+
"description": "Precondition Failed"
184196
}
185197
},
186198
"x-ms-examples": {
@@ -230,6 +242,18 @@
230242
"schema": {
231243
"$ref": "#/definitions/RoleAssignment"
232244
}
245+
},
246+
"400": {
247+
"description": "Bad Request - Indicates the request has missing information and can not be completed",
248+
"schema": {
249+
"$ref": "#/definitions/Error"
250+
}
251+
},
252+
"409": {
253+
"description": "Conflict - indicates that the request could not be completed due to a conflict with the current state of the target resource",
254+
"schema": {
255+
"$ref": "#/definitions/Error"
256+
}
233257
}
234258
},
235259
"x-ms-examples": {
@@ -270,6 +294,15 @@
270294
"schema": {
271295
"$ref": "#/definitions/RoleAssignment"
272296
}
297+
},
298+
"400": {
299+
"description": "Bad Request - Indicates the request has missing information and can not be completed",
300+
"schema": {
301+
"$ref": "#/definitions/Error"
302+
}
303+
},
304+
"404": {
305+
"description": "Not Found - Indicates the specified role has not been found"
273306
}
274307
},
275308
"x-ms-examples": {
@@ -417,6 +450,12 @@
417450
"schema": {
418451
"$ref": "#/definitions/RoleAssignmentListResult"
419452
}
453+
},
454+
"400": {
455+
"description": "Bad Request - Indicates the request has missing information and can not be completed",
456+
"schema": {
457+
"$ref": "#/definitions/Error"
458+
}
420459
}
421460
},
422461
"x-ms-pageable": {
@@ -463,6 +502,12 @@
463502
"schema": {
464503
"$ref": "#/definitions/RoleAssignmentListResult"
465504
}
505+
},
506+
"400": {
507+
"description": "Bad Request - Indicates the request has missing information and can not be completed",
508+
"schema": {
509+
"$ref": "#/definitions/Error"
510+
}
466511
}
467512
},
468513
"x-ms-pageable": {
@@ -540,6 +585,28 @@
540585
"conditionVersion": {
541586
"type": "string",
542587
"description": "Version of the condition. Currently accepted value is '2.0'"
588+
},
589+
"createdOn": {
590+
"type": "string",
591+
"description": "Time it was created",
592+
"format": "date-time"
593+
},
594+
"updatedOn": {
595+
"type": "string",
596+
"description": "Time it was updated",
597+
"format": "date-time"
598+
},
599+
"createdBy": {
600+
"type": "string",
601+
"description": "Id of the user who created the assignment"
602+
},
603+
"updatedBy": {
604+
"type": "string",
605+
"description": "Id of the user who updated the assignment"
606+
},
607+
"delegatedManagedIdentityResourceId": {
608+
"type": "string",
609+
"description": "Id of the delegated managed identity resource"
543610
}
544611
},
545612
"description": "Role assignment properties with scope."
@@ -650,6 +717,25 @@
650717
"properties"
651718
],
652719
"description": "Role assignment create parameters."
720+
},
721+
"Error": {
722+
"properties": {
723+
"error": {
724+
"description": "Object to be thrown in case of an unsuccessful response",
725+
"type": "object",
726+
"properties": {
727+
"code": {
728+
"type": "string",
729+
"description": "Brief error code"
730+
},
731+
"message": {
732+
"type": "string",
733+
"description": "Longer message explaining the details of the error"
734+
}
735+
}
736+
}
737+
},
738+
"description": "Object to be thrown in case of an unsuccessful response"
653739
}
654740
},
655741
"parameters": {

specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-04-01-preview/examples/DeleteRoleAssignmentByName.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
"type": "Microsoft.Authorization/roleAssignments",
2222
"name": "roleassignmentId"
2323
}
24-
}
24+
},
25+
"204": {},
26+
"412": {}
2527
}
2628
}

specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-04-01-preview/examples/GetAllRoleAssignments.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
}
2525
]
2626
}
27+
},
28+
"400": {
29+
"body": {
30+
"error": {
31+
"code": "BadRequest",
32+
"message": "Your request was badly formed please correct it and try again"
33+
}
34+
}
2735
}
2836
}
2937
}

specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-04-01-preview/examples/GetRoleAssignmentByName.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@
2222
"type": "Microsoft.Authorization/roleAssignments",
2323
"name": "raId"
2424
}
25-
}
25+
},
26+
"400": {
27+
"body": {
28+
"error": {
29+
"code": "BadRequest",
30+
"message": "Your request was badly formed please correct it and try again"
31+
}
32+
}
33+
},
34+
"404": {}
2635
}
2736
}

specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-04-01-preview/examples/GetRoleAssignmentByScope.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
}
2525
]
2626
}
27+
},
28+
"400": {
29+
"body": {
30+
"error": {
31+
"code": "BadRequest",
32+
"message": "Your request was badly formed please correct it and try again"
33+
}
34+
}
2735
}
2836
}
2937
}

specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-04-01-preview/examples/GetRoleAssignmentsForResourceGroup.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@
2525
}
2626
]
2727
}
28+
},
29+
"400": {
30+
"body": {
31+
"error": {
32+
"code": "BadRequest",
33+
"message": "Your request was badly formed please correct it and try again"
34+
}
35+
}
2836
}
2937
}
3038
}

0 commit comments

Comments
 (0)