Skip to content

Commit 5de4c00

Browse files
Exposing reviewers properties on accessReviewInstance model
1 parent 2f1a8b8 commit 5de4c00

File tree

2 files changed

+141
-0
lines changed

2 files changed

+141
-0
lines changed

specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/authorization-AccessReviewCalls.json

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,63 @@
376376
}
377377
}
378378
}
379+
},
380+
"put": {
381+
"tags": [
382+
"PutAccessReviewInstance"
383+
],
384+
"operationId": "AccessReviewInstances_Create",
385+
"x-ms-examples": {
386+
"GetAccessReviews": {
387+
"$ref": "./examples/PutAccessReviewInstance.json"
388+
}
389+
},
390+
"description": "Update access review instance.",
391+
"parameters": [
392+
{
393+
"name": "scheduleDefinitionId",
394+
"in": "path",
395+
"required": true,
396+
"type": "string",
397+
"description": "The id of the access review schedule definition."
398+
},
399+
{
400+
"name": "id",
401+
"in": "path",
402+
"required": true,
403+
"type": "string",
404+
"description": "The id of the access review instance."
405+
},
406+
{
407+
"name": "properties",
408+
"in": "body",
409+
"required": true,
410+
"schema": {
411+
"$ref": "#/definitions/AccessReviewInstanceProperties"
412+
},
413+
"description": "Access review instance properties."
414+
},
415+
{
416+
"$ref": "#/parameters/ApiVersionParameter"
417+
},
418+
{
419+
"$ref": "#/parameters/SubscriptionIdParameter"
420+
}
421+
],
422+
"responses": {
423+
"200": {
424+
"description": "Successful update",
425+
"schema": {
426+
"$ref": "#/definitions/AccessReviewInstance"
427+
}
428+
},
429+
"default": {
430+
"description": "Unexpected error",
431+
"schema": {
432+
"$ref": "#/definitions/ErrorDefinition"
433+
}
434+
}
435+
}
379436
}
380437
},
381438
"/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/stop": {
@@ -1225,6 +1282,34 @@
12251282
"format": "date-time",
12261283
"description": "The DateTime when the review instance is scheduled to end.",
12271284
"x-nullable": false
1285+
},
1286+
"reviewers": {
1287+
"type": "array",
1288+
"items": {
1289+
"$ref": "#/definitions/AccessReviewReviewer"
1290+
},
1291+
"description": "This is the collection of reviewers."
1292+
},
1293+
"backupReviewers": {
1294+
"type": "array",
1295+
"items": {
1296+
"$ref": "#/definitions/AccessReviewReviewer"
1297+
},
1298+
"description": "This is the collection of backup reviewers."
1299+
},
1300+
"reviewersType": {
1301+
"type": "string",
1302+
"readOnly": true,
1303+
"description": "This field specifies the type of reviewers for a review. Usually for a review, reviewers are explicitly assigned. However, in some cases, the reviewers may not be assigned and instead be chosen dynamically. For example managers review or self review.",
1304+
"enum": [
1305+
"Assigned",
1306+
"Self",
1307+
"Managers"
1308+
],
1309+
"x-ms-enum": {
1310+
"name": "AccessReviewInstanceReviewersType",
1311+
"modelAsString": true
1312+
}
12281313
}
12291314
},
12301315
"description": "Access Review Instance properties."
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-07-01-preview",
4+
"subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
5+
"scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
6+
"id": "4135f961-be78-4005-8101-c72a5af307a2",
7+
"properties": {},
8+
"body": {
9+
"properties": {
10+
"status": "InProgress",
11+
"startDateTime": "2018-08-03T21:02:30.667Z",
12+
"endDateTime": "2018-08-03T21:17:30.513Z",
13+
"reviewers": [
14+
{
15+
"principalId": "89ff94f6-029c-429c-9037-6cf4fe2f4a13",
16+
"principalType": "group"
17+
}
18+
],
19+
"backupReviewers": [
20+
{
21+
"principalId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
22+
"principalType": "user"
23+
}
24+
],
25+
"reviewersType": "Assigned"
26+
}
27+
}
28+
},
29+
"responses": {
30+
"200": {
31+
"body": {
32+
"id": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/instances/4135f961-be78-4005-8101-c72a5af307a2",
33+
"type": "Microsoft.Authorization/accessReviewScheduleDefinitions/instances",
34+
"name": "4135f961-be78-4005-8101-c72a5af307a2",
35+
"properties": {
36+
"status": "InProgress",
37+
"startDateTime": "2018-08-03T21:02:30.667Z",
38+
"endDateTime": "2018-08-03T21:17:30.513Z",
39+
"reviewers": [
40+
{
41+
"principalId": "89ff94f6-029c-429c-9037-6cf4fe2f4a13",
42+
"principalType": "group"
43+
}
44+
],
45+
"backupReviewers": [
46+
{
47+
"principalId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
48+
"principalType": "user"
49+
}
50+
],
51+
"reviewersType": "Assigned"
52+
}
53+
}
54+
}
55+
}
56+
}

0 commit comments

Comments
 (0)