Skip to content

Commit 2a360e1

Browse files
Exposing reviewers properties on accessReviewInstance model
1 parent 9ca1e38 commit 2a360e1

File tree

1 file changed

+129
-0
lines changed

1 file changed

+129
-0
lines changed

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

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,58 @@
376376
}
377377
}
378378
}
379+
},
380+
"put": {
381+
"tags": [
382+
"PutAccessReviewInstance"
383+
],
384+
"operationId": "AccessReviewInstance_UpdateById",
385+
"description": "Update access review instance.",
386+
"parameters": [
387+
{
388+
"name": "scheduleDefinitionId",
389+
"in": "path",
390+
"required": true,
391+
"type": "string",
392+
"description": "The id of the access review schedule definition."
393+
},
394+
{
395+
"name": "id",
396+
"in": "path",
397+
"required": true,
398+
"type": "string",
399+
"description": "The id of the access review instance."
400+
},
401+
{
402+
"name": "properties",
403+
"in": "body",
404+
"required": true,
405+
"schema": {
406+
"$ref": "#/definitions/AccessReviewInstanceProperties"
407+
},
408+
"description": "Access review instance properties."
409+
},
410+
{
411+
"$ref": "#/parameters/ApiVersionParameter"
412+
},
413+
{
414+
"$ref": "#/parameters/SubscriptionIdParameter"
415+
}
416+
],
417+
"responses": {
418+
"200": {
419+
"description": "Successful update",
420+
"schema": {
421+
"$ref": "#/definitions/AccessReviewInstance"
422+
}
423+
},
424+
"default": {
425+
"description": "Unexpected error",
426+
"schema": {
427+
"$ref": "#/definitions/ErrorDefinition"
428+
}
429+
}
430+
}
379431
}
380432
},
381433
"/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/stop": {
@@ -831,6 +883,55 @@
831883
}
832884
}
833885
}
886+
},
887+
"put": {
888+
"tags": [
889+
"PutAccessReviewInstance"
890+
],
891+
"operationId": "AccessReviewInstancesAssignedForMyApproval_PutById",
892+
"description": "Update access review instance.",
893+
"parameters": [
894+
{
895+
"name": "scheduleDefinitionId",
896+
"in": "path",
897+
"required": true,
898+
"type": "string",
899+
"description": "The id of the access review schedule definition."
900+
},
901+
{
902+
"name": "id",
903+
"in": "path",
904+
"required": true,
905+
"type": "string",
906+
"description": "The id of the access review instance."
907+
},
908+
{
909+
"name": "properties",
910+
"in": "body",
911+
"required": true,
912+
"schema": {
913+
"$ref": "#/definitions/AccessReviewInstanceProperties"
914+
},
915+
"description": "Access review instance properties."
916+
},
917+
{
918+
"$ref": "#/parameters/ApiVersionParameter"
919+
}
920+
],
921+
"responses": {
922+
"200": {
923+
"description": "Successful update",
924+
"schema": {
925+
"$ref": "#/definitions/AccessReviewInstance"
926+
}
927+
},
928+
"default": {
929+
"description": "Unexpected error",
930+
"schema": {
931+
"$ref": "#/definitions/ErrorDefinition"
932+
}
933+
}
934+
}
834935
}
835936
},
836937
"/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/acceptRecommendations": {
@@ -1225,6 +1326,34 @@
12251326
"format": "date-time",
12261327
"description": "The DateTime when the review instance is scheduled to end.",
12271328
"x-nullable": false
1329+
},
1330+
"reviewers": {
1331+
"type": "array",
1332+
"items": {
1333+
"$ref": "#/definitions/AccessReviewReviewer"
1334+
},
1335+
"description": "This is the collection of reviewers."
1336+
},
1337+
"backupReviewers": {
1338+
"type": "array",
1339+
"items": {
1340+
"$ref": "#/definitions/AccessReviewReviewer"
1341+
},
1342+
"description": "This is the collection of backup reviewers."
1343+
},
1344+
"reviewersType": {
1345+
"type": "string",
1346+
"readOnly": true,
1347+
"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.",
1348+
"enum": [
1349+
"Assigned",
1350+
"Self",
1351+
"Managers"
1352+
],
1353+
"x-ms-enum": {
1354+
"name": "AccessReviewInstanceReviewersType",
1355+
"modelAsString": true
1356+
}
12281357
}
12291358
},
12301359
"description": "Access Review Instance properties."

0 commit comments

Comments
 (0)