diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/authorization-AccessReviewCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/authorization-AccessReviewCalls.json new file mode 100644 index 000000000000..597756ea0d43 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/authorization-AccessReviewCalls.json @@ -0,0 +1,2161 @@ +{ + "swagger": "2.0", + "info": { + "version": "2021-07-01-preview", + "title": "AuthorizationManagementClient", + "description": "Access reviews service provides the workflow for running access reviews on different kind of resources." + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.Authorization/operations": { + "get": { + "operationId": "Operations_List", + "x-ms-examples": {}, + "description": "Lists the operations available from this provider.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions": { + "get": { + "tags": [ + "GetAccessReviewScheduleDefinitions" + ], + "operationId": "AccessReviewScheduleDefinitions_List", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/GetAccessReviewScheduleDefinitions.json" + } + }, + "description": "Get access review schedule definitions", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/AccessReviewsFilterParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/AccessReviewScheduleDefinitionListResult" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}": { + "get": { + "tags": [ + "GetAccessReviewScheduleDefinition" + ], + "operationId": "AccessReviewScheduleDefinitions_GetById", + "x-ms-examples": { + "GetAccessReview": { + "$ref": "./examples/GetAccessReviewScheduleDefinition.json" + } + }, + "description": "Get single access review definition", + "parameters": [ + { + "name": "scheduleDefinitionId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the access review schedule definition." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/AccessReviewScheduleDefinition" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + }, + "delete": { + "tags": [ + "DeleteAccessReviewScheduleDefinition" + ], + "operationId": "AccessReviewScheduleDefinitions_DeleteById", + "x-ms-examples": { + "DeleteAccessReview": { + "$ref": "./examples/DeleteAccessReviewScheduleDefinition.json" + } + }, + "description": "Delete access review schedule definition", + "parameters": [ + { + "name": "scheduleDefinitionId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the access review schedule definition." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Request is well formed but the resource does not exist" + }, + "200": { + "description": "Resource deleted successfully" + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + }, + "put": { + "tags": [ + "PutAccessReviewScheduleDefinition" + ], + "operationId": "AccessReviewScheduleDefinitions_CreateOrUpdateById", + "x-ms-examples": { + "PutAccessReview": { + "$ref": "./examples/PutAccessReviewScheduleDefinition.json" + } + }, + "description": "Create or Update access review schedule definition.", + "parameters": [ + { + "name": "scheduleDefinitionId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the access review schedule definition." + }, + { + "name": "properties", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AccessReviewScheduleDefinitionProperties" + }, + "description": "Access review schedule definition properties." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Successful update", + "schema": { + "$ref": "#/definitions/AccessReviewScheduleDefinition" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/stop": { + "post": { + "tags": [ + "AccessReviewScheduleDefinitionStop" + ], + "operationId": "AccessReviewScheduleDefinitions_Stop", + "x-ms-examples": { + "GetAccessReview": { + "$ref": "./examples/StopAccessReviewScheduleDefinition.json" + } + }, + "description": "Stop access review definition", + "parameters": [ + { + "name": "scheduleDefinitionId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the access review schedule definition." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Describe the result of a successful operation." + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances": { + "get": { + "tags": [ + "GetAccessReviewInstances" + ], + "operationId": "AccessReviewInstances_List", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/GetAccessReviewInstances.json" + } + }, + "description": "Get access review instances", + "parameters": [ + { + "name": "scheduleDefinitionId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the access review schedule definition." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/AccessReviewsFilterParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/AccessReviewInstanceListResult" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}": { + "get": { + "tags": [ + "GetAccessReviewInstance" + ], + "operationId": "AccessReviewInstances_GetById", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/GetAccessReviewInstance.json" + } + }, + "description": "Get access review instances", + "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." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/AccessReviewInstance" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + }, + "put": { + "tags": [ + "PutAccessReviewInstance" + ], + "operationId": "AccessReviewInstances_Create", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/PutAccessReviewInstance.json" + } + }, + "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": { + "post": { + "tags": [ + "AccessReviewInstanceStop" + ], + "operationId": "AccessReviewInstance_Stop", + "x-ms-examples": { + "GetAccessReview": { + "$ref": "./examples/StopAccessReviewInstance.json" + } + }, + "description": "An action to stop an 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." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Describe the result of a successful operation." + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/resetDecisions": { + "post": { + "tags": [ + "AccessReviewInstanceResetDecisions" + ], + "operationId": "AccessReviewInstance_ResetDecisions", + "x-ms-examples": { + "GetAccessReview": { + "$ref": "./examples/AccessReviewInstanceResetDecisions.json" + } + }, + "description": "An action to reset all decisions for an 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." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Describe the result of a successful operation." + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/applyDecisions": { + "post": { + "tags": [ + "AccessReviewInstanceApplyDecisions" + ], + "operationId": "AccessReviewInstance_ApplyDecisions", + "x-ms-examples": { + "GetAccessReview": { + "$ref": "./examples/AccessReviewInstanceApplyDecisions.json" + } + }, + "description": "An action to apply all decisions for an 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." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Describe the result of a successful operation." + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/sendReminders": { + "post": { + "tags": [ + "AccessReviewInstanceSendReminders" + ], + "operationId": "AccessReviewInstance_SendReminders", + "x-ms-examples": { + "GetAccessReview": { + "$ref": "./examples/AccessReviewInstanceSendReminders.json" + } + }, + "description": "An action to send reminders for an 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." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "Describe the result of a successful operation." + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/decisions": { + "get": { + "tags": [ + "GetAccessReviewInstanceDecisions" + ], + "operationId": "AccessReviewInstanceDecisions_List", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/GetAccessReviewInstanceDecisions.json" + } + }, + "description": "Get access review instance decisions", + "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." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/AccessReviewsFilterParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/AccessReviewDecisionListResult" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/contactedReviewers": { + "get": { + "tags": [ + "GetAccessReviewInstanceContactedReviewers" + ], + "operationId": "AccessReviewInstanceContactedReviewers_List", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/GetAccessReviewInstanceContactedReviewers.json" + } + }, + "description": "Get access review instance contacted reviewers", + "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." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/AccessReviewContactedReviewerListResult" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleSettings/default": { + "get": { + "tags": [ + "GetAccessReviewDefaultSettings" + ], + "operationId": "AccessReviewDefaultSettings_Get", + "x-ms-examples": { + "GetAccessReviewDefaultSettings": { + "$ref": "./examples/GetAccessReviewDefaultSettings.json" + } + }, + "description": "Get access review default settings for the subscription", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/AccessReviewDefaultSettings" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + }, + "put": { + "tags": [ + "PutAccessReviewDefaultSettings" + ], + "operationId": "AccessReviewDefaultSettings_Put", + "x-ms-examples": { + "GetAccessReviewDefaultSettings": { + "$ref": "./examples/PutAccessReviewDefaultSettings.json" + } + }, + "description": "Get access review default settings for the subscription", + "parameters": [ + { + "name": "properties", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AccessReviewScheduleSettings" + }, + "description": "Access review schedule settings." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/AccessReviewDefaultSettings" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + }, + "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions": { + "get": { + "tags": [ + "GetAccessReviewScheduleDefinitionsAssignedForMyApproval" + ], + "operationId": "AccessReviewScheduleDefinitionsAssignedForMyApproval_List", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/GetAccessReviewScheduleDefinitionsAssignedForMyApproval.json" + } + }, + "description": "Get access review instances assigned for my approval.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/AccessReviewsFilterParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/AccessReviewScheduleDefinitionListResult" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances": { + "get": { + "tags": [ + "GetAccessReviewInstancesAssignedForMyApproval" + ], + "operationId": "AccessReviewInstancesAssignedForMyApproval_List", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/GetAccessReviewInstancesAssignedForMyApproval.json" + } + }, + "description": "Get access review instances assigned for my approval.", + "parameters": [ + { + "name": "scheduleDefinitionId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the access review schedule definition." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/AccessReviewsFilterParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/AccessReviewInstanceListResult" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}": { + "get": { + "tags": [ + "GetAccessReviewInstance" + ], + "operationId": "AccessReviewInstancesAssignedForMyApproval_GetById", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/GetAccessReviewInstanceAssignedForMyApproval.json" + } + }, + "description": "Get single access review instance assigned for my approval.", + "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." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/AccessReviewInstance" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + }, + "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/acceptRecommendations": { + "post": { + "tags": [ + "AccessReviewInstanceAcceptRecommmendations" + ], + "operationId": "AccessReviewInstance_AcceptRecommendations", + "x-ms-examples": { + "GetAccessReview": { + "$ref": "./examples/AccessReviewInstanceAcceptRecommendations.json" + } + }, + "description": "An action to accept recommendations for decision in an 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." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "Describe the result of a successful operation." + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + }, + "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/decisions": { + "get": { + "tags": [ + "GetAccessReviewMyInstanceDecisions" + ], + "operationId": "AccessReviewInstanceMyDecisions_List", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/GetAccessReviewInstanceMyDecisions.json" + } + }, + "description": "Get my access review instance decisions.", + "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." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/AccessReviewsFilterParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/AccessReviewDecisionListResult" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/contactedReviewers": { + "get": { + "tags": [ + "TenantLevelGetAccessReviewInstanceContactedReviewers" + ], + "operationId": "TenantLevelAccessReviewInstanceContactedReviewers_List", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/TenantLevelGetAccessReviewInstanceContactedReviewers.json" + } + }, + "description": "Get access review instance contacted reviewers", + "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." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/AccessReviewContactedReviewerListResult" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/decisions/{decisionId}": { + "get": { + "tags": [ + "GetAccessReviewMyInstanceDecision" + ], + "operationId": "AccessReviewInstanceMyDecisions_GetById", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/GetAccessReviewInstanceMyDecisionById.json" + } + }, + "description": "Get my single access review instance decision.", + "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": "decisionId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the decision record." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/AccessReviewDecision" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + }, + "patch": { + "tags": [ + "PatchAccessReviewMyInstanceDecision" + ], + "operationId": "AccessReviewInstanceMyDecisions_Patch", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/PatchAccessReviewInstanceMyDecisionById.json" + } + }, + "description": "Record a decision.", + "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": "decisionId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the decision record." + }, + { + "name": "properties", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AccessReviewDecisionProperties" + }, + "description": "Access review decision properties to patch." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/AccessReviewDecision" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + } + }, + "definitions": { + "AccessReviewScheduleDefinition": { + "x-ms-azure-resource": true, + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "The access review schedule definition id." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The access review schedule definition unique id." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The resource type." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccessReviewScheduleDefinitionProperties", + "description": "Access Review properties." + } + }, + "description": "Access Review Schedule Definition." + }, + "AccessReviewScheduleDefinitionProperties": { + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "The display name for the schedule definition." + }, + "status": { + "type": "string", + "readOnly": true, + "description": "This read-only field specifies the status of an accessReview.", + "enum": [ + "NotStarted", + "InProgress", + "Completed", + "Applied", + "Initializing", + "Applying", + "Completing", + "Scheduled", + "AutoReviewing", + "AutoReviewed", + "Starting" + ], + "x-ms-enum": { + "name": "AccessReviewScheduleDefinitionStatus", + "modelAsString": true + } + }, + "descriptionForAdmins": { + "type": "string", + "description": "The description provided by the access review creator and visible to admins." + }, + "descriptionForReviewers": { + "type": "string", + "description": "The description provided by the access review creator to be shown to reviewers." + }, + "createdBy": { + "readOnly": true, + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccessReviewActorIdentity", + "description": "The user or other identity who created this review." + }, + "settings": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccessReviewScheduleSettings", + "description": "Access Review Settings." + }, + "scope": { + "readOnly": true, + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccessReviewScope", + "description": "This is used to define what to include in scope of the review. The scope definition includes the resourceId and roleDefinitionId." + }, + "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": "AccessReviewScheduleDefinitionReviewersType", + "modelAsString": true + } + }, + "instances": { + "type": "array", + "items": { + "$ref": "#/definitions/AccessReviewInstance" + }, + "description": "This is the collection of instances returned when one does an expand on it." + } + }, + "description": "Access Review." + }, + "AccessReviewInstance": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "The access review instance id." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The access review instance name." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The resource type." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccessReviewInstanceProperties", + "description": "Access Review properties." + } + }, + "description": "Access Review Instance." + }, + "AccessReviewInstanceProperties": { + "type": "object", + "properties": { + "status": { + "type": "string", + "readOnly": true, + "description": "This read-only field specifies the status of an access review instance.", + "enum": [ + "NotStarted", + "InProgress", + "Completed", + "Applied", + "Initializing", + "Applying", + "Completing", + "Scheduled", + "AutoReviewing", + "AutoReviewed", + "Starting" + ], + "x-ms-enum": { + "name": "AccessReviewInstanceStatus", + "modelAsString": true + } + }, + "startDateTime": { + "type": "string", + "format": "date-time", + "description": "The DateTime when the review instance is scheduled to be start.", + "x-nullable": false + }, + "endDateTime": { + "type": "string", + "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." + }, + "AccessReviewScheduleSettings": { + "type": "object", + "properties": { + "mailNotificationsEnabled": { + "type": "boolean", + "description": "Flag to indicate whether sending mails to reviewers and the review creator is enabled." + }, + "reminderNotificationsEnabled": { + "type": "boolean", + "description": "Flag to indicate whether sending reminder emails to reviewers are enabled." + }, + "defaultDecisionEnabled": { + "type": "boolean", + "description": "Flag to indicate whether reviewers are required to provide a justification when reviewing access." + }, + "justificationRequiredOnApproval": { + "type": "boolean", + "description": "Flag to indicate whether the reviewer is required to pass justification when recording a decision." + }, + "defaultDecision": { + "type": "string", + "description": "This specifies the behavior for the autoReview feature when an access review completes.", + "enum": [ + "Approve", + "Deny", + "Recommendation" + ], + "x-ms-enum": { + "name": "DefaultDecisionType", + "modelAsString": true + } + }, + "autoApplyDecisionsEnabled": { + "type": "boolean", + "description": "Flag to indicate whether auto-apply capability, to automatically change the target object access resource, is enabled. If not enabled, a user must, after the review completes, apply the access review." + }, + "recommendationsEnabled": { + "type": "boolean", + "description": "Flag to indicate whether showing recommendations to reviewers is enabled." + }, + "recommendationLookBackDuration": { + "type": "string", + "format": "duration", + "description": "Recommendations for access reviews are calculated by looking back at 30 days of data(w.r.t the start date of the review) by default. However, in some scenarios, customers want to change how far back to look at and want to configure 60 days, 90 days, etc. instead. This setting allows customers to configure this duration. The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to convert TimeSpan to a valid interval string: XmlConvert.ToString(new TimeSpan(hours, minutes, seconds))" + }, + "instanceDurationInDays": { + "type": "integer", + "format": "int32", + "description": "The duration in days for an instance." + }, + "recurrence": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccessReviewRecurrenceSettings", + "description": "Access Review Settings." + } + }, + "description": "Settings of an Access Review." + }, + "AccessReviewDefaultSettings": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "The access review default settings id. This is only going to be default" + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The access review default settings name. This is always going to be Access Review Default Settings" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The resource type." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccessReviewScheduleSettings", + "description": "Access Review properties." + } + }, + "description": "Access Review Default Settings." + }, + "AccessReviewRecurrenceSettings": { + "type": "object", + "properties": { + "pattern": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccessReviewRecurrencePattern", + "description": "Access Review schedule definition recurrence pattern." + }, + "range": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccessReviewRecurrenceRange", + "description": "Access Review schedule definition recurrence range." + } + }, + "description": "Recurrence Settings of an Access Review Schedule Definition." + }, + "AccessReviewRecurrencePattern": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The recurrence type : weekly, monthly, etc.", + "enum": [ + "weekly", + "absoluteMonthly" + ], + "x-ms-enum": { + "name": "AccessReviewRecurrencePatternType", + "modelAsString": true + } + }, + "interval": { + "type": "integer", + "format": "int32", + "description": "The interval for recurrence. For a quarterly review, the interval is 3 for type : absoluteMonthly." + } + }, + "description": "Recurrence Pattern of an Access Review Schedule Definition." + }, + "AccessReviewRecurrenceRange": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The recurrence range type. The possible values are: endDate, noEnd, numbered.", + "enum": [ + "endDate", + "noEnd", + "numbered" + ], + "x-ms-enum": { + "name": "AccessReviewRecurrenceRangeType", + "modelAsString": true + } + }, + "numberOfOccurrences": { + "type": "integer", + "format": "int32", + "description": "The number of times to repeat the access review. Required and must be positive if type is numbered." + }, + "startDate": { + "type": "string", + "format": "date-time", + "description": "The DateTime when the review is scheduled to be start. This could be a date in the future. Required on create.", + "x-nullable": true + }, + "endDate": { + "type": "string", + "format": "date-time", + "description": "The DateTime when the review is scheduled to end. Required if type is endDate", + "x-nullable": true + } + }, + "description": "Recurrence Range of an Access Review Schedule Definition." + }, + "AccessReviewScope": { + "type": "object", + "properties": { + "resourceId": { + "type": "string", + "readOnly": true, + "description": "ResourceId in which this review is getting created" + }, + "roleDefinitionId": { + "type": "string", + "readOnly": true, + "description": "This is used to indicate the role being reviewed" + }, + "principalType": { + "type": "string", + "readOnly": true, + "description": "The identity type user/servicePrincipal to review", + "enum": [ + "user", + "guestUser", + "servicePrincipal", + "user,group", + "redeemedGuestUser" + ], + "x-ms-enum": { + "name": "AccessReviewScopePrincipalType", + "modelAsString": true + } + }, + "assignmentState": { + "type": "string", + "readOnly": true, + "description": "The role assignment state eligible/active to review", + "enum": [ + "eligible", + "active" + ], + "x-ms-enum": { + "name": "AccessReviewScopeAssignmentState", + "modelAsString": true + } + }, + "inactiveDuration": { + "type": "string", + "format": "duration", + "description": "Duration users are inactive for. The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to convert TimeSpan to a valid interval string: XmlConvert.ToString(new TimeSpan(hours, minutes, seconds))" + }, + "expandNestedMemberships": { + "type": "boolean", + "description": "Flag to indicate whether to expand nested memberships or not." + } + }, + "description": "Descriptor for what needs to be reviewed" + }, + "AccessReviewReviewer": { + "type": "object", + "properties": { + "principalId": { + "type": "string", + "description": "The id of the reviewer(user/servicePrincipal)" + }, + "principalType": { + "type": "string", + "readOnly": true, + "description": "The identity type : user/servicePrincipal", + "enum": [ + "user", + "servicePrincipal" + ], + "x-ms-enum": { + "name": "AccessReviewReviewerType", + "modelAsString": true + } + } + }, + "description": "Descriptor for what needs to be reviewed" + }, + "AccessReviewDecision": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "The access review decision id." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The access review decision name." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The resource type." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccessReviewDecisionProperties", + "description": "Access Review Decision properties." + } + }, + "description": "Access Review." + }, + "AccessReviewDecisionProperties": { + "type": "object", + "properties": { + "principal": { + "readOnly": true, + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccessReviewDecisionIdentity", + "description": "Principal associated with the decision record. Can be AccessReviewDecisionUserIdentity or AccessReviewDecisionServicePrincipalIdentity", + "x-nullable": true + }, + "resource": { + "readOnly": true, + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccessReviewDecisionResource", + "description": "Resource associated with this decision record.", + "x-nullable": true + }, + "recommendation": { + "type": "string", + "readOnly": true, + "description": "The feature- generated recommendation shown to the reviewer.", + "enum": [ + "Approve", + "Deny", + "NoInfoAvailable" + ], + "x-ms-enum": { + "name": "AccessRecommendationType", + "modelAsString": true + } + }, + "decision": { + "type": "string", + "description": "The decision on the approval step. This value is initially set to NotReviewed. Approvers can take action of Approve/Deny", + "enum": [ + "Approve", + "Deny", + "NotReviewed", + "DontKnow", + "NotNotified" + ], + "x-ms-enum": { + "name": "AccessReviewResult", + "modelAsString": true + } + }, + "justification": { + "type": "string", + "description": "Justification provided by approvers for their action" + }, + "reviewedDateTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "Date Time when a decision was taken.", + "x-nullable": true + }, + "reviewedBy": { + "readOnly": true, + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccessReviewActorIdentity", + "description": "Details of the approver.", + "x-nullable": true + }, + "applyResult": { + "type": "string", + "readOnly": true, + "description": "The outcome of applying the decision.", + "enum": [ + "New", + "Applying", + "AppliedSuccessfully", + "AppliedWithUnknownFailure", + "AppliedSuccessfullyButObjectNotFound", + "ApplyNotSupported" + ], + "x-ms-enum": { + "name": "AccessReviewApplyResult", + "modelAsString": true + } + }, + "appliedDateTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The date and time when the review decision was applied.", + "x-nullable": true + }, + "appliedBy": { + "readOnly": true, + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccessReviewActorIdentity", + "description": "Details of the approver.", + "x-nullable": true + } + }, + "description": "Approval Step." + }, + "AccessReviewDecisionResource": { + "type": "object", + "discriminator": "type", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "description": "The type of resource", + "enum": [ + "azureRole" + ], + "x-ms-enum": { + "name": "DecisionResourceType", + "modelAsString": true + } + }, + "id": { + "type": "string", + "readOnly": true, + "description": "The id of resource associated with a decision record." + }, + "displayName": { + "type": "string", + "readOnly": true, + "description": "The display name of resource associated with a decision record." + } + }, + "description": "Target of the decision." + }, + "AccessReviewDecisionIdentity": { + "type": "object", + "discriminator": "type", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "description": "The type of decision target : User/ServicePrincipal", + "enum": [ + "user", + "servicePrincipal" + ], + "x-ms-enum": { + "name": "DecisionTargetType", + "modelAsString": true + } + }, + "id": { + "type": "string", + "readOnly": true, + "description": "The id of principal whose access was reviewed." + }, + "displayName": { + "type": "string", + "readOnly": true, + "description": "The display name of the user whose access was reviewed." + } + }, + "description": "Target of the decision." + }, + "AccessReviewDecisionUserIdentity": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AccessReviewDecisionIdentity" + }, + { + "type": "object", + "description": "AccessReviewDecisionUserIdentity" + } + ], + "x-ms-discriminator-value": "user", + "properties": { + "userPrincipalName": { + "type": "string", + "readOnly": true, + "description": "The user principal name of the user whose access was reviewed." + } + }, + "description": "User Decision Target" + }, + "AccessReviewDecisionServicePrincipalIdentity": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/AccessReviewDecisionIdentity" + }, + { + "type": "object", + "description": "AccessReviewDecisionServicePrincipalIdentity" + } + ], + "x-ms-discriminator-value": "servicePrincipal", + "properties": { + "appId": { + "type": "string", + "readOnly": true, + "description": "The appId for the service principal entity being reviewed" + } + }, + "description": "Service Principal Decision Target" + }, + "AccessReviewActorIdentity": { + "type": "object", + "properties": { + "principalId": { + "type": "string", + "readOnly": true, + "description": "The identity id" + }, + "principalType": { + "type": "string", + "readOnly": true, + "description": "The identity type : user/servicePrincipal", + "enum": [ + "user", + "servicePrincipal" + ], + "x-ms-enum": { + "name": "AccessReviewActorIdentityType", + "modelAsString": true + } + }, + "principalName": { + "type": "string", + "readOnly": true, + "description": "The identity display name" + }, + "userPrincipalName": { + "type": "string", + "readOnly": true, + "description": "The user principal name(if valid)" + } + }, + "description": "Details of the actor identity" + }, + "AccessReviewContactedReviewer": { + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "The access review reviewer id." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The access review reviewer id." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The resource type." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccessReviewContactedReviewerProperties", + "description": "Access Review Contacted Reviewer properties." + } + }, + "description": "Access Review Contacted Reviewer." + }, + "AccessReviewContactedReviewerProperties": { + "type": "object", + "properties": { + "userDisplayName": { + "type": "string", + "description": "The display name of the reviewer", + "readOnly": true + }, + "userPrincipalName": { + "type": "string", + "description": "The user principal name of the reviewer", + "readOnly": true + }, + "createdDateTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "Date Time when the reviewer was contacted.", + "x-nullable": true + } + }, + "description": "Properties of access review contacted reviewer." + }, + "AccessReviewScheduleDefinitionListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AccessReviewScheduleDefinition" + }, + "description": "Access Review Schedule Definition list." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of Access Review Schedule Definitions." + }, + "AccessReviewInstanceListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AccessReviewInstance" + }, + "description": "Access Review Instance list." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of Access Review Instances." + }, + "AccessReviewDecisionListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AccessReviewDecision" + }, + "description": "Access Review Decision list." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of access review decisions." + }, + "AccessReviewContactedReviewerListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AccessReviewContactedReviewer" + }, + "description": "Access Review Contacted Reviewer." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of access review contacted reviewers." + }, + "ErrorDefinition": { + "type": "object", + "title": "Error", + "description": "Error description and code explaining why an operation failed.", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDefinitionProperties", + "description": "Error of the list gateway status." + } + } + }, + "ErrorDefinitionProperties": { + "type": "object", + "title": "Error", + "description": "Error description and code explaining why an operation failed.", + "properties": { + "message": { + "type": "string", + "readOnly": true, + "description": "Description of the error." + }, + "code": { + "type": "string", + "description": "Error code of list gateway." + } + } + }, + "Operation": { + "description": "The definition of a Microsoft.Authorization operation.", + "type": "object", + "properties": { + "name": { + "description": "Name of the operation", + "type": "string" + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "boolean" + }, + "display": { + "$ref": "#/definitions/OperationDisplay", + "description": "Display of the operation" + }, + "origin": { + "description": "Origin of the operation", + "type": "string" + } + } + }, + "OperationDisplay": { + "description": "The display information for a Microsoft.Authorization operation.", + "type": "object", + "properties": { + "provider": { + "description": "The resource provider name: Microsoft.Authorization.", + "type": "string", + "readOnly": true + }, + "resource": { + "description": "The resource on which the operation is performed.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "The operation that users can perform.", + "type": "string", + "readOnly": true + }, + "description": { + "description": "The description for the operation.", + "type": "string", + "readOnly": true + } + } + }, + "OperationListResult": { + "description": "The result of a request to list Microsoft.Authorization operations.", + "type": "object", + "properties": { + "value": { + "description": "The collection value.", + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + } + }, + "nextLink": { + "description": "The URI that can be used to request the next set of paged results.", + "type": "string" + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to be used with the HTTP request." + }, + "AccessReviewsFilterParameter": { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation. Other than standard filters, one custom filter option is supported : 'assignedToMeToReview()'. When one specified $filter=assignedToMeToReview(), only items that are assigned to the calling user to review are returned", + "x-ms-skip-url-encoding": true, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/AccessReviewInstanceAcceptRecommendations.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/AccessReviewInstanceAcceptRecommendations.json new file mode 100644 index 000000000000..ea31f2814614 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/AccessReviewInstanceAcceptRecommendations.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "scheduleDefinitionId": "488a6d0e-0a63-4946-86e3-1f5bbc934661", + "id": "d9b9e056-7004-470b-bf21-1635e98487da" + }, + "responses": { + "204": {} + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/AccessReviewInstanceApplyDecisions.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/AccessReviewInstanceApplyDecisions.json new file mode 100644 index 000000000000..35252e41c385 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/AccessReviewInstanceApplyDecisions.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "id": "d9b9e056-7004-470b-bf21-1635e98487da" + }, + "responses": { + "204": {} + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/AccessReviewInstanceResetDecisions.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/AccessReviewInstanceResetDecisions.json new file mode 100644 index 000000000000..35252e41c385 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/AccessReviewInstanceResetDecisions.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "id": "d9b9e056-7004-470b-bf21-1635e98487da" + }, + "responses": { + "204": {} + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/AccessReviewInstanceSendReminders.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/AccessReviewInstanceSendReminders.json new file mode 100644 index 000000000000..35252e41c385 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/AccessReviewInstanceSendReminders.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "id": "d9b9e056-7004-470b-bf21-1635e98487da" + }, + "responses": { + "204": {} + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/DeleteAccessReviewScheduleDefinition.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/DeleteAccessReviewScheduleDefinition.json new file mode 100644 index 000000000000..16685ee52a98 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/DeleteAccessReviewScheduleDefinition.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewDefaultSettings.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewDefaultSettings.json new file mode 100644 index 000000000000..7ead2b63ace4 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewDefaultSettings.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewSettings/default", + "type": "Microsoft.Authorization/accessReviewSettings", + "name": "default", + "properties": { + "mailNotificationsEnabled": true, + "reminderNotificationsEnabled": true, + "justificationRequiredOnApproval": true, + "recommendationsEnabled": true, + "instanceDurationInDays": 30, + "recurrence": { + "range": { + "type": "endDate", + "numberOfOccurrences": 1, + "startDate": "2018-08-03T21:02:30.667Z", + "endDate": "2018-08-03T21:17:30.513Z" + } + }, + "defaultDecisionEnabled": true, + "defaultDecision": "Approve", + "autoApplyDecisionsEnabled": true + } + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstance.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstance.json new file mode 100644 index 000000000000..0b0c3880ceba --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstance.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "id": "4135f961-be78-4005-8101-c72a5af307a2" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/instances/4135f961-be78-4005-8101-c72a5af307a2", + "type": "Microsoft.Authorization/accessReviewScheduleDefinitions/instances", + "name": "4135f961-be78-4005-8101-c72a5af307a2", + "properties": { + "status": "Applied", + "startDateTime": "2018-08-03T21:02:30.667Z", + "endDateTime": "2018-08-03T21:17:30.513Z" + } + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstanceAssignedForMyApproval.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstanceAssignedForMyApproval.json new file mode 100644 index 000000000000..cbd3a2490bf7 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstanceAssignedForMyApproval.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "scheduleDefinitionId": "488a6d0e-0a63-4946-86e3-1f5bbc934661", + "id": "4135f961-be78-4005-8101-c72a5af307a2", + "$filter": "assignedToMeToReview()" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/488a6d0e-0a63-4946-86e3-1f5bbc934661/instances/4135f961-be78-4005-8101-c72a5af307a2", + "type": "Microsoft.Authorization/accessReviewScheduleDefinitions/instances", + "name": "4135f961-be78-4005-8101-c72a5af307a2", + "properties": { + "status": "Applied", + "startDateTime": "2018-08-03T21:02:30.667Z", + "endDateTime": "2018-08-03T21:17:30.513Z" + } + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstanceContactedReviewers.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstanceContactedReviewers.json new file mode 100644 index 000000000000..29dfc28b98af --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstanceContactedReviewers.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "scheduleDefinitionId": "265785a7-a81f-4201-8a18-bb0db95982b7", + "id": "f25ed880-9c31-4101-bc57-825d8df3b58c" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/instances/f8882fec-7d56-4e97-ad6d-5e3f4557971d/contactedReviewers/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "type": "Microsoft.Authorization/accessReviewScheduleDefinitions/instances/contactedReviewers", + "name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "properties": { + "userDisplayName": "Bob", + "userPrincipalName": "bob@contoso.com", + "createdDateTime": "2018-08-03T21:02:30.667Z" + } + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstanceDecisions.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstanceDecisions.json new file mode 100644 index 000000000000..17d978662714 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstanceDecisions.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "scheduleDefinitionId": "265785a7-a81f-4201-8a18-bb0db95982b7", + "id": "f25ed880-9c31-4101-bc57-825d8df3b58c" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/instances/f8882fec-7d56-4e97-ad6d-5e3f4557971d/decisions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "type": "Microsoft.Authorization/accessReviewScheduleDefinitions/instances/decisions", + "name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "properties": { + "reviewedBy": { + "principalType": "user", + "principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "principalName": "Shubham Gupta", + "userPrincipalName": "shugup@microsoft.com" + }, + "reviewedDateTime": "2018-08-03T21:02:30.667Z", + "decision": "Deny", + "justification": "This person has left this team", + "appliedBy": { + "principalType": "user", + "principalId": "36777fc8-4ec2-49ea-a56c-cec0bd47d83a", + "principalName": "Amit Ghosh", + "userPrincipalName": "amitgho@microsoft.com" + }, + "appliedDateTime": "2018-10-03T21:02:30.667Z", + "applyResult": "Success", + "recommendation": "Deny", + "principal": { + "type": "user", + "id": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "displayName": "Shubham Gupta", + "userPrincipalName": "shugup@microsoft.com" + }, + "resource": { + "type": "azureRole", + "id": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "displayName": "Owner" + } + } + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstanceMyDecisionById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstanceMyDecisionById.json new file mode 100644 index 000000000000..79d779cb192f --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstanceMyDecisionById.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "id": "4135f961-be78-4005-8101-c72a5af307a2", + "scheduleDefinitionId": "488a6d0e-0a63-4946-86e3-1f5bbc934661", + "decisionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/488a6d0e-0a63-4946-86e3-1f5bbc934661/instances/4135f961-be78-4005-8101-c72a5af307a2/decisions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "type": "Microsoft.Authorization/accessReviewScheduleDefinitions/instances/decisions", + "name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "properties": { + "reviewedBy": { + "principalType": "user", + "principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "principalName": "Shubham Gupta", + "userPrincipalName": "shugup@microsoft.com" + }, + "reviewedDateTime": "2018-08-03T21:02:30.667Z", + "decision": "Deny", + "justification": "This person has left this team", + "appliedBy": { + "principalType": "user", + "principalId": "36777fc8-4ec2-49ea-a56c-cec0bd47d83a", + "principalName": "Amit Ghosh", + "userPrincipalName": "amitgho@microsoft.com" + }, + "appliedDateTime": "2018-10-03T21:02:30.667Z", + "applyResult": "Success", + "recommendation": "Deny", + "principal": { + "type": "user", + "id": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "displayName": "Shubham Gupta", + "userPrincipalName": "shugup@microsoft.com" + }, + "resource": { + "type": "azureRole", + "id": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "displayName": "Owner" + } + } + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstanceMyDecisions.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstanceMyDecisions.json new file mode 100644 index 000000000000..34adad32b223 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstanceMyDecisions.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "scheduleDefinitionId": "488a6d0e-0a63-4946-86e3-1f5bbc934661", + "id": "4135f961-be78-4005-8101-c72a5af307a2" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/488a6d0e-0a63-4946-86e3-1f5bbc934661/instances/4135f961-be78-4005-8101-c72a5af307a2/decisions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "type": "Microsoft.Authorization/accessReviewScheduleDefinitions/instances/decisions", + "name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "properties": { + "reviewedBy": { + "principalType": "user", + "principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "principalName": "Shubham Gupta", + "userPrincipalName": "shugup@microsoft.com" + }, + "reviewedDateTime": "2018-08-03T21:02:30.667Z", + "decision": "Deny", + "justification": "This person has left this team", + "appliedBy": { + "principalType": "user", + "principalId": "36777fc8-4ec2-49ea-a56c-cec0bd47d83a", + "principalName": "Amit Ghosh", + "userPrincipalName": "amitgho@microsoft.com" + }, + "appliedDateTime": "2018-10-03T21:02:30.667Z", + "applyResult": "Success", + "recommendation": "Deny", + "principal": { + "type": "user", + "id": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "displayName": "Shubham Gupta", + "userPrincipalName": "shugup@microsoft.com" + }, + "resource": { + "type": "azureRole", + "id": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "displayName": "Owner" + } + } + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstances.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstances.json new file mode 100644 index 000000000000..21f3fb55469f --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstances.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "scheduleDefinitionId": "265785a7-a81f-4201-8a18-bb0db95982b7" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/instances/4135f961-be78-4005-8101-c72a5af307a2", + "type": "Microsoft.Authorization/accessReviewScheduleDefinitions/instances", + "name": "4135f961-be78-4005-8101-c72a5af307a2", + "properties": { + "status": "Applied", + "startDateTime": "2018-08-03T21:02:30.667Z", + "endDateTime": "2018-08-03T21:17:30.513Z" + } + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstancesAssignedForMyApproval.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstancesAssignedForMyApproval.json new file mode 100644 index 000000000000..966ce5c115db --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewInstancesAssignedForMyApproval.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "scheduleDefinitionId": "488a6d0e-0a63-4946-86e3-1f5bbc934661", + "$filter": "assignedToMeToReview()" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/488a6d0e-0a63-4946-86e3-1f5bbc934661/instances/4135f961-be78-4005-8101-c72a5af307a2", + "type": "Microsoft.Authorization/accessReviewScheduleDefinitions/instances", + "name": "4135f961-be78-4005-8101-c72a5af307a2", + "properties": { + "status": "Applied", + "startDateTime": "2018-08-03T21:02:30.667Z", + "endDateTime": "2018-08-03T21:17:30.513Z" + } + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewScheduleDefinition.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewScheduleDefinition.json new file mode 100644 index 000000000000..ea660f2a3802 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewScheduleDefinition.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "type": "Microsoft.Authorization/accessReviewScheduleDefinitions", + "name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "properties": { + "displayName": "Hello world", + "status": "InProgress", + "descriptionForAdmins": "asdfasdf", + "descriptionForReviewers": "asdfasdf", + "createdBy": { + "principalType": "user", + "principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "principalName": "Shubham Gupta", + "userPrincipalName": "shugup@microsoft.com" + }, + "scope": { + "resourceId": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "roleDefinitionId": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/roleDefinitions/b225c7ff-4338-4cdc-a790-6b34d987f7cd" + }, + "reviewers": [ + { + "principalId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d ", + "principalType": "user" + } + ], + "reviewersType": "Assigned", + "settings": { + "mailNotificationsEnabled": true, + "reminderNotificationsEnabled": true, + "justificationRequiredOnApproval": true, + "recommendationsEnabled": true, + "instanceDurationInDays": 30, + "recurrence": { + "range": { + "type": "endDate", + "numberOfOccurrences": 1, + "startDate": "2018-08-03T21:02:30.667Z", + "endDate": "2018-08-03T21:17:30.513Z" + } + }, + "defaultDecisionEnabled": true, + "defaultDecision": "Approve", + "autoApplyDecisionsEnabled": true + } + } + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewScheduleDefinitions.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewScheduleDefinitions.json new file mode 100644 index 000000000000..1c08b15bfe96 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewScheduleDefinitions.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "type": "Microsoft.Authorization/accessReviewScheduleDefinitions", + "name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "properties": { + "displayName": "Hello world", + "status": "InProgress", + "descriptionForAdmins": "asdfasdf", + "descriptionForReviewers": "asdfasdf", + "createdBy": { + "principalType": "user", + "principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "principalName": "Shubham Gupta", + "userPrincipalName": "shugup@microsoft.com" + }, + "scope": { + "resourceId": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "roleDefinitionId": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/roleDefinitions/b225c7ff-4338-4cdc-a790-6b34d987f7cd" + }, + "reviewers": [ + { + "principalId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d ", + "principalType": "user" + } + ], + "reviewersType": "Assigned", + "settings": { + "mailNotificationsEnabled": true, + "reminderNotificationsEnabled": true, + "justificationRequiredOnApproval": true, + "recommendationsEnabled": true, + "instanceDurationInDays": 30, + "recurrence": { + "range": { + "type": "endDate", + "numberOfOccurrences": 1, + "startDate": "2018-08-03T21:02:30.667Z", + "endDate": "2018-08-03T21:17:30.513Z" + } + }, + "defaultDecisionEnabled": true, + "defaultDecision": "Approve", + "autoApplyDecisionsEnabled": true + } + } + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewScheduleDefinitionsAssignedForMyApproval.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewScheduleDefinitionsAssignedForMyApproval.json new file mode 100644 index 000000000000..7ace3dd0025e --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/GetAccessReviewScheduleDefinitionsAssignedForMyApproval.json @@ -0,0 +1,72 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "$filter": "assignedToMeToReview()" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "type": "Microsoft.Authorization/accessReviewScheduleDefinitions", + "name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "properties": { + "displayName": "Hello world", + "status": "InProgress", + "descriptionForAdmins": "asdfasdf", + "descriptionForReviewers": "asdfasdf", + "createdBy": { + "principalType": "user", + "principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "principalName": "Shubham Gupta", + "userPrincipalName": "shugup@microsoft.com" + }, + "scope": { + "resourceId": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "roleDefinitionId": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/roleDefinitions/b225c7ff-4338-4cdc-a790-6b34d987f7cd" + }, + "reviewers": [ + { + "principalId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d ", + "principalType": "user" + } + ], + "reviewersType": "Assigned", + "settings": { + "mailNotificationsEnabled": true, + "reminderNotificationsEnabled": true, + "justificationRequiredOnApproval": true, + "recommendationsEnabled": true, + "instanceDurationInDays": 30, + "recurrence": { + "range": { + "type": "endDate", + "numberOfOccurrences": 1, + "startDate": "2018-08-03T21:02:30.667Z", + "endDate": "2018-08-03T21:17:30.513Z" + } + }, + "defaultDecisionEnabled": true, + "defaultDecision": "Approve", + "autoApplyDecisionsEnabled": true + }, + "instances": [ + { + "id": "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/488a6d0e-0a63-4946-86e3-1f5bbc934661/instances/4135f961-be78-4005-8101-c72a5af307a2", + "type": "Microsoft.Authorization/accessReviewScheduleDefinitions/instances", + "name": "4135f961-be78-4005-8101-c72a5af307a2", + "properties": { + "status": "Applied", + "startDateTime": "2018-08-03T21:02:30.667Z", + "endDateTime": "2018-08-03T21:17:30.513Z" + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/PatchAccessReviewInstanceMyDecisionById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/PatchAccessReviewInstanceMyDecisionById.json new file mode 100644 index 000000000000..71572f5792e6 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/PatchAccessReviewInstanceMyDecisionById.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "scheduleDefinitionId": "488a6d0e-0a63-4946-86e3-1f5bbc934661", + "id": "4135f961-be78-4005-8101-c72a5af307a2", + "decisionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "properties": {}, + "body": { + "properties": { + "decision": "Approve", + "justification": "I trust this person." + } + } + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/488a6d0e-0a63-4946-86e3-1f5bbc934661/instances/4135f961-be78-4005-8101-c72a5af307a2/decisions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "type": "Microsoft.Authorization/accessReviewScheduleDefinitions/instances/decisions", + "name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "properties": { + "reviewedBy": { + "principalType": "user", + "principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "principalName": "Shubham Gupta", + "userPrincipalName": "shugup@microsoft.com" + }, + "reviewedDateTime": "2018-08-03T21:02:30.667Z", + "decision": "Deny", + "justification": "This person has left this team", + "appliedBy": { + "principalType": "user", + "principalId": "36777fc8-4ec2-49ea-a56c-cec0bd47d83a", + "principalName": "Amit Ghosh", + "userPrincipalName": "amitgho@microsoft.com" + }, + "appliedDateTime": "2018-10-03T21:02:30.667Z", + "applyResult": "Success", + "recommendation": "Deny", + "principal": { + "type": "user", + "id": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "displayName": "Shubham Gupta", + "userPrincipalName": "shugup@microsoft.com" + }, + "resource": { + "type": "azureRole", + "id": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "displayName": "Owner" + } + } + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/PutAccessReviewDefaultSettings.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/PutAccessReviewDefaultSettings.json new file mode 100644 index 000000000000..c8cbaff919d3 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/PutAccessReviewDefaultSettings.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "id": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "properties": {}, + "body": { + "properties": { + "mailNotificationsEnabled": true, + "remindersEnabled": true, + "justificationRequiredOnApproval": true, + "accessRecommendationsEnabled": true, + "recurrenceSettings": { + "recurrenceType": "weekly", + "recurrenceEndType": "never", + "durationInDays": 5, + "recurrenceCount": 0 + }, + "autoReviewEnabled": true, + "autoReviewNotReviewedResult": "Approve", + "autoApplyReviewResultsEnabled": true + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewSettings/default", + "type": "Microsoft.Authorization/accessReviewSettings", + "name": "default", + "properties": { + "mailNotificationsEnabled": true, + "reminderNotificationsEnabled": true, + "justificationRequiredOnApproval": true, + "recommendationsEnabled": true, + "instanceDurationInDays": 30, + "recurrence": { + "range": { + "type": "endDate", + "numberOfOccurrences": 1, + "startDate": "2018-08-03T21:02:30.667Z", + "endDate": "2018-08-03T21:17:30.513Z" + } + }, + "defaultDecisionEnabled": true, + "defaultDecision": "Approve", + "autoApplyDecisionsEnabled": true + } + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/PutAccessReviewInstance.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/PutAccessReviewInstance.json new file mode 100644 index 000000000000..dd575d005c12 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/PutAccessReviewInstance.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "id": "4135f961-be78-4005-8101-c72a5af307a2", + "properties": {}, + "body": { + "properties": { + "status": "InProgress", + "startDateTime": "2018-08-03T21:02:30.667Z", + "endDateTime": "2018-08-03T21:17:30.513Z", + "reviewers": [ + { + "principalId": "89ff94f6-029c-429c-9037-6cf4fe2f4a13", + "principalType": "group" + } + ], + "backupReviewers": [ + { + "principalId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "principalType": "user" + } + ], + "reviewersType": "Assigned" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/instances/4135f961-be78-4005-8101-c72a5af307a2", + "type": "Microsoft.Authorization/accessReviewScheduleDefinitions/instances", + "name": "4135f961-be78-4005-8101-c72a5af307a2", + "properties": { + "status": "InProgress", + "startDateTime": "2018-08-03T21:02:30.667Z", + "endDateTime": "2018-08-03T21:17:30.513Z", + "reviewers": [ + { + "principalId": "89ff94f6-029c-429c-9037-6cf4fe2f4a13", + "principalType": "group" + } + ], + "backupReviewers": [ + { + "principalId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "principalType": "user" + } + ], + "reviewersType": "Assigned" + } + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/PutAccessReviewScheduleDefinition.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/PutAccessReviewScheduleDefinition.json new file mode 100644 index 000000000000..8a87014174ee --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/PutAccessReviewScheduleDefinition.json @@ -0,0 +1,101 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "properties": {}, + "body": { + "properties": { + "displayName": "Hello world", + "status": "InProgress", + "descriptionForAdmins": "asdfasdf", + "descriptionForReviewers": "asdfasdf", + "createdBy": { + "principalType": "user", + "principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "principalName": "Shubham Gupta", + "userPrincipalName": "shugup@microsoft.com" + }, + "scope": { + "resourceId": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "roleDefinitionId": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/roleDefinitions/b225c7ff-4338-4cdc-a790-6b34d987f7cd" + }, + "reviewers": [ + { + "principalId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d ", + "principalType": "user" + } + ], + "reviewersType": "Assigned", + "settings": { + "mailNotificationsEnabled": true, + "reminderNotificationsEnabled": true, + "justificationRequiredOnApproval": true, + "recommendationsEnabled": true, + "instanceDurationInDays": 30, + "recurrence": { + "range": { + "type": "endDate", + "numberOfOccurrences": 1, + "startDate": "2018-08-03T21:02:30.667Z", + "endDate": "2018-08-03T21:17:30.513Z" + } + }, + "defaultDecisionEnabled": true, + "defaultDecision": "Approve", + "autoApplyDecisionsEnabled": true + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "type": "Microsoft.Authorization/accessReviewScheduleDefinitions", + "name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "properties": { + "displayName": "Hello world", + "status": "InProgress", + "descriptionForAdmins": "asdfasdf", + "descriptionForReviewers": "asdfasdf", + "createdBy": { + "principalType": "user", + "principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "principalName": "Shubham Gupta", + "userPrincipalName": "shugup@microsoft.com" + }, + "scope": { + "resourceId": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "roleDefinitionId": "/subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/roleDefinitions/b225c7ff-4338-4cdc-a790-6b34d987f7cd" + }, + "reviewers": [ + { + "principalId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d ", + "principalType": "user" + } + ], + "reviewersType": "Assigned", + "settings": { + "mailNotificationsEnabled": true, + "reminderNotificationsEnabled": true, + "justificationRequiredOnApproval": true, + "recommendationsEnabled": true, + "instanceDurationInDays": 30, + "recurrence": { + "range": { + "type": "endDate", + "numberOfOccurrences": 1, + "startDate": "2018-08-03T21:02:30.667Z", + "endDate": "2018-08-03T21:17:30.513Z" + } + }, + "defaultDecisionEnabled": true, + "defaultDecision": "Approve", + "autoApplyDecisionsEnabled": true + } + } + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/StopAccessReviewInstance.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/StopAccessReviewInstance.json new file mode 100644 index 000000000000..35252e41c385 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/StopAccessReviewInstance.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "id": "d9b9e056-7004-470b-bf21-1635e98487da" + }, + "responses": { + "204": {} + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/StopAccessReviewScheduleDefinition.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/StopAccessReviewScheduleDefinition.json new file mode 100644 index 000000000000..8dceb1a14268 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/StopAccessReviewScheduleDefinition.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "subscriptionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "scheduleDefinitionId": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d" + }, + "responses": { + "204": {} + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/TenantLevelGetAccessReviewInstanceContactedReviewers.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/TenantLevelGetAccessReviewInstanceContactedReviewers.json new file mode 100644 index 000000000000..3ccdf51c0039 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-07-01-preview/examples/TenantLevelGetAccessReviewInstanceContactedReviewers.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2021-07-01-preview", + "scheduleDefinitionId": "265785a7-a81f-4201-8a18-bb0db95982b7", + "id": "f25ed880-9c31-4101-bc57-825d8df3b58c" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/instances/f8882fec-7d56-4e97-ad6d-5e3f4557971d/contactedReviewers/fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "type": "Microsoft.Authorization/accessReviewScheduleDefinitions/instances/contactedReviewers", + "name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "properties": { + "userDisplayName": "Bob", + "userPrincipalName": "bob@contoso.com", + "createdDateTime": "2018-08-03T21:02:30.667Z" + } + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/readme.java.md b/specification/authorization/resource-manager/readme.java.md index be6d12d76089..50d86a2a1032 100644 --- a/specification/authorization/resource-manager/readme.java.md +++ b/specification/authorization/resource-manager/readme.java.md @@ -23,6 +23,20 @@ batch: - tag: package-2020-10-01-preview - tag: package-2021-01-01-preview-only - tag: package-2021-03-01-preview-only + - tag: package-2021-07-01-preview-only +``` + +### Tag: package-2021-07-01-preview-only and java + +These settings apply only when `--tag=package-2021-07-01-preview-only --java` is specified on he command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2021-07-01-preview-only' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.authorization.v2021_07_01_preview + output-folder: $(azure-libraries-for-java-folder)/sdk/authorization/mgmt-v2021_07_01_preview +regenerate-manager: true +generate-interface: true ``` ### Tag: package-2021-03-01-preview-only and java diff --git a/specification/authorization/resource-manager/readme.md b/specification/authorization/resource-manager/readme.md index 228827da26cd..4b666ad7f74f 100644 --- a/specification/authorization/resource-manager/readme.md +++ b/specification/authorization/resource-manager/readme.md @@ -90,6 +90,15 @@ directive: reason: API documentation is not exposed yet. We're making some small changes before publishing documentation. ``` +### Tag: package-2021-07-01-preview-only + +These settings apply only when `--tag=package-2021-07-01-preview-only` is specified on the command line. + +``` yaml $(tag) == 'package-2021-07-01-preview-only' +input-file: +- Microsoft.Authorization/preview/2021-07-01-preview/authorization-AccessReviewCalls.json +``` + ### Tag: package-2021-03-01-preview-only These settings apply only when `--tag=package-2021-03-01-preview-only` is specified on the command line. diff --git a/specification/authorization/resource-manager/readme.python.md b/specification/authorization/resource-manager/readme.python.md index a799e2b25f6b..dc4663923c3a 100644 --- a/specification/authorization/resource-manager/readme.python.md +++ b/specification/authorization/resource-manager/readme.python.md @@ -17,6 +17,7 @@ Generate all API versions currently shipped for this package ```yaml $(multiapi) clear-output-folder: true batch: + - tag: package-2021-07-01-preview-only - tag: package-2021-03-01-preview-only - tag: package-2021-01-01-preview-only - tag: package-2020-04-01-preview-only @@ -35,6 +36,16 @@ clear-output-folder: false perform-load: false ``` +### Tag: package-2021-07-01-preview-only and python + +These settings apply only when `--tag=package-2021-07-01-preview-only --python` is specified on the command line. + +``` yaml $(tag) == 'package-2021-07-01-preview-only' && $(python) +python: + namespace: azure.mgmt.authorization.v2021_07_01_preview + output-folder: $(python-sdks-folder)/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2021_07_01_preview +``` + ### Tag: package-2021-03-01-preview-only and python These settings apply only when `--tag=package-2021-03-01-preview-only --python` is specified on the command line. diff --git a/specification/authorization/resource-manager/readme.ruby.md b/specification/authorization/resource-manager/readme.ruby.md index f51bc0959efd..ba8997c7253a 100644 --- a/specification/authorization/resource-manager/readme.ruby.md +++ b/specification/authorization/resource-manager/readme.ruby.md @@ -20,6 +20,7 @@ batch: - tag: package-2020-10-01-preview - tag: package-2021-01-01-preview-only - tag: package-2021-03-01-preview-only + - tag: package-2021-07-01-preview-only ``` ### Tag: package-2015-07-01 and ruby @@ -102,3 +103,13 @@ Please also specify `--ruby-sdks-folder=`. + +``` yaml $(tag) == 'package-2021-07-01-preview-only' && $(ruby) +namespace: "Azure::Authorization::Mgmt::V2021_07_01_preview" +output-folder: $(ruby-sdks-folder)/management/azure_mgmt_authorization/lib +```