Skip to content

Commit

Permalink
Exposing reviewers properties on accessReviewInstance model
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamguptacal committed May 26, 2021
1 parent 9ca1e38 commit 2a360e1
Showing 1 changed file with 129 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,58 @@
}
}
}
},
"put": {
"tags": [
"PutAccessReviewInstance"
],
"operationId": "AccessReviewInstance_UpdateById",
"description": "Update access review instance.",
"parameters": [
{
"name": "scheduleDefinitionId",
"in": "path",
"required": true,
"type": "string",
"description": "The id of the access review schedule definition."
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string",
"description": "The id of the access review instance."
},
{
"name": "properties",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/AccessReviewInstanceProperties"
},
"description": "Access review instance properties."
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Successful update",
"schema": {
"$ref": "#/definitions/AccessReviewInstance"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/ErrorDefinition"
}
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/stop": {
Expand Down Expand Up @@ -831,6 +883,55 @@
}
}
}
},
"put": {
"tags": [
"PutAccessReviewInstance"
],
"operationId": "AccessReviewInstancesAssignedForMyApproval_PutById",
"description": "Update access review instance.",
"parameters": [
{
"name": "scheduleDefinitionId",
"in": "path",
"required": true,
"type": "string",
"description": "The id of the access review schedule definition."
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string",
"description": "The id of the access review instance."
},
{
"name": "properties",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/AccessReviewInstanceProperties"
},
"description": "Access review instance properties."
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Successful update",
"schema": {
"$ref": "#/definitions/AccessReviewInstance"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/ErrorDefinition"
}
}
}
}
},
"/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/acceptRecommendations": {
Expand Down Expand Up @@ -1225,6 +1326,34 @@
"format": "date-time",
"description": "The DateTime when the review instance is scheduled to end.",
"x-nullable": false
},
"reviewers": {
"type": "array",
"items": {
"$ref": "#/definitions/AccessReviewReviewer"
},
"description": "This is the collection of reviewers."
},
"backupReviewers": {
"type": "array",
"items": {
"$ref": "#/definitions/AccessReviewReviewer"
},
"description": "This is the collection of backup reviewers."
},
"reviewersType": {
"type": "string",
"readOnly": true,
"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.",
"enum": [
"Assigned",
"Self",
"Managers"
],
"x-ms-enum": {
"name": "AccessReviewInstanceReviewersType",
"modelAsString": true
}
}
},
"description": "Access Review Instance properties."
Expand Down

0 comments on commit 2a360e1

Please sign in to comment.