diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/authorization-RoleAssignmentApprovalCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/authorization-RoleAssignmentApprovalCalls.json new file mode 100644 index 000000000000..50431622c1e5 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/authorization-RoleAssignmentApprovalCalls.json @@ -0,0 +1,977 @@ +{ + "swagger": "2.0", + "info": { + "version": "2021-01-01-preview", + "title": "AuthorizationManagementClient", + "description": "Request Approvals service provides the workflow for running request approvals 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" + } + } + }, + "/providers/Microsoft.Authorization/roleAssignmentApprovals": { + "get": { + "tags": [ + "ListRoleAssignmentApprovals" + ], + "operationId": "RoleAssignmentApproval_List", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/GetRoleAssignmentApprovals.json" + } + }, + "description": "Get role assignment approvals.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/RoleAssignmentApprovalsFilterParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalListResult" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Authorization/roleAssignmentApprovals/{approvalId}": { + "get": { + "tags": [ + "GetRoleAssignmentApprovalById" + ], + "operationId": "RoleAssignmentApproval_GetById", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/GetRoleAssignmentApprovalById.json" + } + }, + "description": "Get role assignment approval.", + "parameters": [ + { + "name": "approvalId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/RoleAssignmentApproval" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + }, + "/providers/Microsoft.Authorization/roleAssignmentApprovals/{approvalId}/stages": { + "get": { + "tags": [ + "GetRoleAssignmentApprovalSteps" + ], + "operationId": "RoleAssignmentApprovalSteps_List", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/GetRoleAssignmentApprovalSteps.json" + } + }, + "description": "Get role assignment approval.", + "parameters": [ + { + "name": "approvalId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalStepListResult" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + }, + "/providers/Microsoft.Authorization/roleAssignmentApprovals/{approvalId}/stages/{stageId}": { + "get": { + "tags": [ + "GetRoleAssignmentApprovalStepById" + ], + "operationId": "RoleAssignmentApprovalStep_GetById", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/GetRoleAssignmentApprovalStepById.json" + } + }, + "description": "Get role assignment approval.", + "parameters": [ + { + "name": "approvalId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval." + }, + { + "name": "stageId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval stage." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalStep" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + }, + "patch": { + "tags": [ + "PatchRoleAssignmentApprovalStep" + ], + "operationId": "RoleAssignmentApprovalStep_Patch", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/PatchRoleAssignmentApprovalStepById.json" + } + }, + "description": "Record a decision.", + "parameters": [ + { + "name": "approvalId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval." + }, + { + "name": "stageId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval stage." + }, + { + "name": "properties", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalStepProperties" + }, + "description": "Role Assignment Approval stage properties to patch." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalStep" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + }, + "put": { + "tags": [ + "PutRoleAssignmentApprovalStep" + ], + "operationId": "RoleAssignmentApprovalStep_Put", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/PutRoleAssignmentApprovalStepById.json" + } + }, + "description": "Record a decision.", + "parameters": [ + { + "name": "approvalId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval." + }, + { + "name": "stageId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval stage." + }, + { + "name": "properties", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalStepProperties" + }, + "description": "Role Assignment Approval stage properties to put." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalStep" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + }, + "/{scope}/providers/Microsoft.Authorization/roleAssignmentApprovals": { + "get": { + "tags": [ + "ScopeListRoleAssignmentApprovals" + ], + "operationId": "ScopeRoleAssignmentApproval_List", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/ScopeGetRoleAssignmentApprovals.json" + } + }, + "description": "Get role assignment approvals.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/RoleAssignmentApprovalsFilterParameter" + }, + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of the resource.", + "x-ms-skip-url-encoding": true + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalListResult" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/{scope}/providers/Microsoft.Authorization/roleAssignmentApprovals/{approvalId}": { + "get": { + "tags": [ + "ScopeGetRoleAssignmentApprovalById" + ], + "operationId": "ScopeRoleAssignmentApproval_GetById", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/ScopeGetRoleAssignmentApprovalById.json" + } + }, + "description": "Get role assignment approval.", + "parameters": [ + { + "name": "approvalId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of the resource.", + "x-ms-skip-url-encoding": true + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/RoleAssignmentApproval" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + }, + "/{scope}/providers/Microsoft.Authorization/roleAssignmentApprovals/{approvalId}/stages": { + "get": { + "tags": [ + "ScopeGetRoleAssignmentApprovalSteps" + ], + "operationId": "ScopeRoleAssignmentApprovalSteps_List", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/ScopeGetRoleAssignmentApprovalSteps.json" + } + }, + "description": "Get role assignment approval.", + "parameters": [ + { + "name": "approvalId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of the resource.", + "x-ms-skip-url-encoding": true + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalStepListResult" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + }, + "/{scope}/providers/Microsoft.Authorization/roleAssignmentApprovals/{approvalId}/stages/{stageId}": { + "get": { + "tags": [ + "ScopeGetRoleAssignmentApprovalStepById" + ], + "operationId": "ScopeRoleAssignmentApprovalStep_GetById", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/ScopeGetRoleAssignmentApprovalStepById.json" + } + }, + "description": "Get role assignment approval.", + "parameters": [ + { + "name": "approvalId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval." + }, + { + "name": "stageId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval stage." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of the resource.", + "x-ms-skip-url-encoding": true + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalStep" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + }, + "patch": { + "tags": [ + "ScopePatchRoleAssignmentApprovalStep" + ], + "operationId": "ScopeRoleAssignmentApprovalStep_Patch", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/ScopePatchRoleAssignmentApprovalStepById.json" + } + }, + "description": "Record a decision.", + "parameters": [ + { + "name": "approvalId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval." + }, + { + "name": "stageId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval stage." + }, + { + "name": "properties", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalStepProperties" + }, + "description": "Role Assignment Approval stage properties to patch." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of the resource.", + "x-ms-skip-url-encoding": true + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalStep" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + }, + "put": { + "tags": [ + "ScopePutRoleAssignmentApprovalStep" + ], + "operationId": "ScopeRoleAssignmentApprovalStep_Put", + "x-ms-examples": { + "GetAccessReviews": { + "$ref": "./examples/ScopePutRoleAssignmentApprovalStepById.json" + } + }, + "description": "Record a decision.", + "parameters": [ + { + "name": "approvalId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval." + }, + { + "name": "stageId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of the role assignment approval stage." + }, + { + "name": "properties", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalStepProperties" + }, + "description": "Role Assignment Approval stage properties to put." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of the resource.", + "x-ms-skip-url-encoding": true + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/RoleAssignmentApprovalStep" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/ErrorDefinition" + } + } + } + } + } + }, + "definitions": { + "RoleAssignmentApprovalActorIdentity": { + "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": "RoleAssignmentApprovalActorIdentityType", + "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" + }, + "RoleAssignmentApproval": { + "x-ms-azure-resource": true, + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "The role assignment approval id." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The role assignment approval unique id." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The resource type." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RoleAssignmentApprovalProperties", + "description": "Role Assignment Approval properties." + } + }, + "description": "Role Assignment Approval." + }, + "RoleAssignmentApprovalProperties": { + "properties": { + "stages": { + "type": "array", + "items": { + "$ref": "#/definitions/RoleAssignmentApprovalStep" + }, + "description": "This is the collection of stages returned when one does an expand on it." + } + }, + "description": "Role Assignment Approval properties." + }, + "RoleAssignmentApprovalListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RoleAssignmentApproval" + }, + "description": "Role Assignment Approval list." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of role assignment approvals." + }, + "RoleAssignmentApprovalStep": { + "x-ms-azure-resource": true, + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "The role assignment approval stage id." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The role assignment approval stage name." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The resource type." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RoleAssignmentApprovalStepProperties", + "description": "Role Assignment Approval Step properties." + } + }, + "description": "Role assignment approval stage properties." + }, + "RoleAssignmentApprovalStepProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "The display name for the approval stage." + }, + "status": { + "type": "string", + "readOnly": true, + "description": "This read-only field specifies the status of an approval.", + "enum": [ + "NotStarted", + "InProgress", + "Completed", + "Expired", + "Initializing", + "Escalating", + "Completing", + "Escalated" + ], + "x-ms-enum": { + "name": "RoleAssignmentApprovalStepStatus", + "modelAsString": true + } + }, + "assignedToMe": { + "readOnly": true, + "description": "Indicates whether the stage is assigned to me for review", + "type": "boolean" + }, + "reviewedBy": { + "readOnly": true, + "x-ms-client-flatten": true, + "$ref": "#/definitions/RoleAssignmentApprovalActorIdentity", + "description": "Details of the approver.", + "x-nullable": true + }, + "reviewedDateTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "Date Time when a decision was taken.", + "x-nullable": true + }, + "reviewResult": { + "type": "string", + "description": "The decision on the approval stage. This value is initially set to NotReviewed. Approvers can take action of Approve/Deny", + "enum": [ + "Approve", + "Deny", + "NotReviewed" + ], + "x-ms-enum": { + "name": "RoleAssignmentApprovalStepReviewResult", + "modelAsString": true + } + }, + "justification": { + "type": "string", + "description": "Justification provided by approvers for their action" + } + }, + "description": "Approval Step." + }, + "RoleAssignmentApprovalStepListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RoleAssignmentApprovalStep" + }, + "description": "Role Assignment Approval Step list." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "The URL to use for getting the next set of results." + } + }, + "description": "List of role assignment approval stage list." + }, + "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. Values include user|system|user,system", + "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." + }, + "RoleAssignmentApprovalsFilterParameter": { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation. Valid values for $filter are: 'asApprover()', 'asCreatedBy()' and 'asTarget()'. If $filter is not provided, no filtering is performed. If $filter=asApprover() is provided, the returned list only includes all role assignment approvals that the calling user is assigned as an approver for. If $filter=asCreatedBy() is provided, the returned list only includes all role assignment approvals that the calling user created requests for. If $filter=asTarget() is provided, the returned list only includes all role assignment approvals that the calling user has requests targeted for.", + "x-ms-skip-url-encoding": true, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/GetRoleAssignmentApprovalById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/GetRoleAssignmentApprovalById.json new file mode 100644 index 000000000000..009eef9b8884 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/GetRoleAssignmentApprovalById.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2021-01-01-preview", + "approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661", + "type": "Microsoft.Authorization/roleAssignmentApprovals/stages", + "name": "488a6d0e-0a63-4946-86e3-1f5bbc934661", + "properties": { + "stages": [ + { + "id": "/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/stages/4135f961-be78-4005-8101-c72a5af307a2", + "type": "Microsoft.Authorization/roleAssignmentApprovals/stages", + "name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "properties": { + "displayName": "Vice President Approval Step", + "assignedToMe": true, + "status": "InProgress", + "reviewedBy": null, + "reviewedDateTime": null, + "reviewResult": "NotReviewed", + "justification": "" + } + } + ] + } + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/GetRoleAssignmentApprovalStepById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/GetRoleAssignmentApprovalStepById.json new file mode 100644 index 000000000000..4ff9c86c8051 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/GetRoleAssignmentApprovalStepById.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2021-01-01-preview", + "approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661", + "stageId": "4135f961-be78-4005-8101-c72a5af307a2" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/stages/4135f961-be78-4005-8101-c72a5af307a2", + "type": "Microsoft.Authorization/roleAssignmentApprovals/stages", + "name": "4135f961-be78-4005-8101-c72a5af307a2", + "properties": { + "displayName": "Vice President Approval Step", + "assignedToMe": true, + "status": "InProgress", + "reviewedBy": null, + "reviewedDateTime": null, + "reviewResult": "NotReviewed", + "justification": "" + } + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/GetRoleAssignmentApprovalSteps.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/GetRoleAssignmentApprovalSteps.json new file mode 100644 index 000000000000..248c7858a2ae --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/GetRoleAssignmentApprovalSteps.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2021-01-01-preview", + "approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/stages/4135f961-be78-4005-8101-c72a5af307a2", + "type": "Microsoft.Authorization/roleAssignmentApprovals/stages", + "name": "4135f961-be78-4005-8101-c72a5af307a2", + "properties": { + "displayName": "Vice President Approval Step", + "assignedToMe": true, + "status": "InProgress", + "reviewedBy": null, + "reviewedDateTime": null, + "reviewResult": "NotReviewed", + "justification": "" + } + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/GetRoleAssignmentApprovals.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/GetRoleAssignmentApprovals.json new file mode 100644 index 000000000000..d29568fe29fe --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/GetRoleAssignmentApprovals.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "api-version": "2021-01-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661", + "type": "Microsoft.Authorization/roleAssignmentApprovals/stages", + "name": "488a6d0e-0a63-4946-86e3-1f5bbc934661", + "properties": { + "stages": [ + { + "id": "/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/stages/4135f961-be78-4005-8101-c72a5af307a2", + "type": "Microsoft.Authorization/roleAssignmentApprovals/stages", + "name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "properties": { + "displayName": "Vice President Approval Step", + "assignedToMe": true, + "status": "InProgress", + "reviewedBy": null, + "reviewedDateTime": null, + "reviewResult": "NotReviewed", + "justification": "" + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/PatchRoleAssignmentApprovalStepById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/PatchRoleAssignmentApprovalStepById.json new file mode 100644 index 000000000000..296c811895f5 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/PatchRoleAssignmentApprovalStepById.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2021-01-01-preview", + "approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661", + "stageId": "4135f961-be78-4005-8101-c72a5af307a2", + "properties": {}, + "body": { + "properties": { + "reviewResult": "Approve", + "justification": "I trust this person." + } + } + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/stages/4135f961-be78-4005-8101-c72a5af307a2", + "type": "Microsoft.Authorization/roleAssignmentApprovals/stages", + "name": "4135f961-be78-4005-8101-c72a5af307a2", + "properties": { + "displayName": "Vice President Approval Step", + "status": "Completed", + "assignedToMe": true, + "reviewedBy": { + "principalType": "user", + "principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "principalName": "Shubham Gupta", + "userPrincipalName": "shugup@microsoft.com" + }, + "reviewedDateTime": "2018-08-03T21:02:30.667Z", + "reviewResult": "Approve", + "justification": "I trust this person" + } + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/PutRoleAssignmentApprovalStepById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/PutRoleAssignmentApprovalStepById.json new file mode 100644 index 000000000000..a436c2955ee6 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/PutRoleAssignmentApprovalStepById.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "api-version": "2021-01-01-preview", + "approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661", + "stageId": "4135f961-be78-4005-8101-c72a5af307a2", + "properties": {}, + "body": { + "properties": { + "displayName": "Vice President Approval Step", + "status": "Completed", + "assignedToMe": true, + "reviewedBy": { + "principalType": "user", + "principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "principalName": "Shubham Gupta", + "userPrincipalName": "shugup@microsoft.com" + }, + "reviewedDateTime": "2018-08-03T21:02:30.667Z", + "reviewResult": "Approve", + "justification": "I trust this person." + } + } + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/stages/4135f961-be78-4005-8101-c72a5af307a2", + "type": "Microsoft.Authorization/roleAssignmentApprovals/stages", + "name": "4135f961-be78-4005-8101-c72a5af307a2", + "properties": { + "displayName": "Vice President Approval Step", + "status": "Completed", + "assignedToMe": true, + "reviewedBy": { + "principalType": "user", + "principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "principalName": "Shubham Gupta", + "userPrincipalName": "shugup@microsoft.com" + }, + "reviewedDateTime": "2018-08-03T21:02:30.667Z", + "reviewResult": "Approve", + "justification": "I trust this person" + } + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/ScopeGetRoleAssignmentApprovalById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/ScopeGetRoleAssignmentApprovalById.json new file mode 100644 index 000000000000..9d88b362b8bb --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/ScopeGetRoleAssignmentApprovalById.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "api-version": "2021-01-01-preview", + "approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661", + "scope": "subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661", + "type": "Microsoft.Authorization/roleAssignmentApprovals/stages", + "name": "488a6d0e-0a63-4946-86e3-1f5bbc934661", + "properties": { + "stages": [ + { + "id": "/subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/stages/4135f961-be78-4005-8101-c72a5af307a2", + "type": "Microsoft.Authorization/roleAssignmentApprovals/stages", + "name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "properties": { + "displayName": "Vice President Approval Step", + "assignedToMe": true, + "status": "InProgress", + "reviewedBy": null, + "reviewedDateTime": null, + "reviewResult": "NotReviewed", + "justification": "" + } + } + ] + } + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/ScopeGetRoleAssignmentApprovalStepById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/ScopeGetRoleAssignmentApprovalStepById.json new file mode 100644 index 000000000000..e22d02fd8c9e --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/ScopeGetRoleAssignmentApprovalStepById.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "api-version": "2021-01-01-preview", + "approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661", + "stageId": "4135f961-be78-4005-8101-c72a5af307a2", + "scope": "subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/stages/4135f961-be78-4005-8101-c72a5af307a2", + "type": "Microsoft.Authorization/roleAssignmentApprovals/stages", + "name": "4135f961-be78-4005-8101-c72a5af307a2", + "properties": { + "displayName": "Vice President Approval Step", + "assignedToMe": true, + "status": "InProgress", + "reviewedBy": null, + "reviewedDateTime": null, + "reviewResult": "NotReviewed", + "justification": "" + } + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/ScopeGetRoleAssignmentApprovalSteps.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/ScopeGetRoleAssignmentApprovalSteps.json new file mode 100644 index 000000000000..03b3749f8a68 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/ScopeGetRoleAssignmentApprovalSteps.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2021-01-01-preview", + "approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661", + "scope": "subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/stages/4135f961-be78-4005-8101-c72a5af307a2", + "type": "Microsoft.Authorization/roleAssignmentApprovals/stages", + "name": "4135f961-be78-4005-8101-c72a5af307a2", + "properties": { + "displayName": "Vice President Approval Step", + "assignedToMe": true, + "status": "InProgress", + "reviewedBy": null, + "reviewedDateTime": null, + "reviewResult": "NotReviewed", + "justification": "" + } + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/ScopeGetRoleAssignmentApprovals.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/ScopeGetRoleAssignmentApprovals.json new file mode 100644 index 000000000000..3545a58b1d11 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/ScopeGetRoleAssignmentApprovals.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2021-01-01-preview", + "scope": "subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661", + "type": "Microsoft.Authorization/roleAssignmentApprovals/stages", + "name": "488a6d0e-0a63-4946-86e3-1f5bbc934661", + "properties": { + "stages": [ + { + "id": "/subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/stages/4135f961-be78-4005-8101-c72a5af307a2", + "type": "Microsoft.Authorization/roleAssignmentApprovals/stages", + "name": "fa73e90b-5bf1-45fd-a182-35ce5fc0674d", + "properties": { + "displayName": "Vice President Approval Step", + "assignedToMe": true, + "status": "InProgress", + "reviewedBy": null, + "reviewedDateTime": null, + "reviewResult": "NotReviewed", + "justification": "" + } + } + ] + } + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/ScopePatchRoleAssignmentApprovalStepById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/ScopePatchRoleAssignmentApprovalStepById.json new file mode 100644 index 000000000000..389612079cab --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/ScopePatchRoleAssignmentApprovalStepById.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "api-version": "2021-01-01-preview", + "approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661", + "stageId": "4135f961-be78-4005-8101-c72a5af307a2", + "scope": "subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea", + "properties": {}, + "body": { + "properties": { + "reviewResult": "Approve", + "justification": "I trust this person." + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/stages/4135f961-be78-4005-8101-c72a5af307a2", + "type": "Microsoft.Authorization/roleAssignmentApprovals/stages", + "name": "4135f961-be78-4005-8101-c72a5af307a2", + "properties": { + "displayName": "Vice President Approval Step", + "status": "Completed", + "assignedToMe": true, + "reviewedBy": { + "principalType": "user", + "principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "principalName": "Shubham Gupta", + "userPrincipalName": "shugup@microsoft.com" + }, + "reviewedDateTime": "2018-08-03T21:02:30.667Z", + "reviewResult": "Approve", + "justification": "I trust this person" + } + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/ScopePutRoleAssignmentApprovalStepById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/ScopePutRoleAssignmentApprovalStepById.json new file mode 100644 index 000000000000..d7a36de264ed --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2021-01-01-preview/examples/ScopePutRoleAssignmentApprovalStepById.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2021-01-01-preview", + "approvalId": "488a6d0e-0a63-4946-86e3-1f5bbc934661", + "stageId": "4135f961-be78-4005-8101-c72a5af307a2", + "scope": "subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea", + "properties": {}, + "body": { + "properties": { + "displayName": "Vice President Approval Step", + "status": "Completed", + "assignedToMe": true, + "reviewedBy": { + "principalType": "user", + "principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "principalName": "Shubham Gupta", + "userPrincipalName": "shugup@microsoft.com" + }, + "reviewedDateTime": "2018-08-03T21:02:30.667Z", + "reviewResult": "Approve", + "justification": "I trust this person." + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/69356bc4-b3be-441a-b12f-503b745e0dea/providers/Microsoft.Authorization/roleAssignmentApprovals/488a6d0e-0a63-4946-86e3-1f5bbc934661/stages/4135f961-be78-4005-8101-c72a5af307a2", + "type": "Microsoft.Authorization/roleAssignmentApprovals/stages", + "name": "4135f961-be78-4005-8101-c72a5af307a2", + "properties": { + "displayName": "Vice President Approval Step", + "status": "Completed", + "assignedToMe": true, + "reviewedBy": { + "principalType": "user", + "principalId": "a6c7aecb-cbfd-4763-87ef-e91b4bd509d9", + "principalName": "Shubham Gupta", + "userPrincipalName": "shugup@microsoft.com" + }, + "reviewedDateTime": "2018-08-03T21:02:30.667Z", + "reviewResult": "Approve", + "justification": "I trust this person" + } + } + } + } +} diff --git a/specification/authorization/resource-manager/readme.azureresourceschema.md b/specification/authorization/resource-manager/readme.azureresourceschema.md index d618ed2dc5d9..74acda7fcd94 100644 --- a/specification/authorization/resource-manager/readme.azureresourceschema.md +++ b/specification/authorization/resource-manager/readme.azureresourceschema.md @@ -6,6 +6,7 @@ These settings apply only when `--azureresourceschema` is specified on the comma ``` yaml $(azureresourceschema) && $(multiapi) batch: + - tag: schema-authorization-2021-01-01-preview - tag: schema-authorization-2020-10-01-preview - tag: schema-authorization-2020-04-01-preview - tag: schema-authorization-2018-09-01-preview @@ -131,3 +132,14 @@ input-file: - Microsoft.Authorization/preview/2015-06-01/authorization-ClassicAdminCalls.json ``` + +### Tag: schema-authorization-2021-01-01-preview and azureresourceschema + +``` yaml $(tag) == 'schema-authorization-2021-01-01-preview' && $(azureresourceschema) +output-folder: $(azureresourceschema-folder)/schemas + +# all the input files in this apiVersion +input-file: + - Microsoft.Authorization/preview/2021-01-01-preview/authorization-RoleAssignmentApprovalCalls.json + +``` diff --git a/specification/authorization/resource-manager/readme.java.md b/specification/authorization/resource-manager/readme.java.md index 0035aae12c75..4bc12ce1b3ea 100644 --- a/specification/authorization/resource-manager/readme.java.md +++ b/specification/authorization/resource-manager/readme.java.md @@ -20,6 +20,7 @@ batch: - tag: package-2018-07-01-preview-only - tag: package-2015-06-01-preview - tag: package-2018-05-01-preview + - tag: package-2021-01-01-preview ``` ### Tag: package-2018-09-01-preview and java @@ -86,3 +87,16 @@ java: regenerate-manager: true generate-interface: true ``` + +### Tag: package-2021-01-01-preview and java + +These settings apply only when `--tag=package-2021-01-01-preview --java` is specified on he command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2021-01-01-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.authorization.v2021_01_01_preview + output-folder: $(azure-libraries-for-java-folder)/sdk/authorization/mgmt-v2021_01_01_preview +regenerate-manager: true +generate-interface: true +``` diff --git a/specification/authorization/resource-manager/readme.md b/specification/authorization/resource-manager/readme.md index f5158ae2497d..3436db447438 100644 --- a/specification/authorization/resource-manager/readme.md +++ b/specification/authorization/resource-manager/readme.md @@ -259,6 +259,15 @@ input-file: - Microsoft.Authorization/stable/2015-07-01/authorization-RoleAssignmentsCalls.json ``` +### Tag: package-2021-01-01-preview-only + +These settings apply only when `--tag=package-2021-01-01-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2021-01-01-preview-only' +input-file: +- Microsoft.Authorization/preview/2021-01-01-preview/authorization-RoleAssignmentApprovalCalls.json +``` + --- # Code Generation diff --git a/specification/authorization/resource-manager/readme.python.md b/specification/authorization/resource-manager/readme.python.md index b4397b4594bb..4e1c1566c908 100644 --- a/specification/authorization/resource-manager/readme.python.md +++ b/specification/authorization/resource-manager/readme.python.md @@ -21,6 +21,7 @@ Generate all API versions currently shipped for this package ```yaml $(python) && $(multiapi) batch: + - tag: package-2021-01-01-preview-only - tag: package-2020-04-01-preview-only - tag: package-2018-09-01-preview-only - tag: package-2018-07-01-preview-only @@ -99,3 +100,13 @@ python: namespace: azure.mgmt.authorization.v2015_06_01 output-folder: $(python-sdks-folder)/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2015_06_01 ``` + +### Tag: package-2021-01-01-preview-only and python + +These settings apply only when `--tag=package-2021-01-01-preview-only --python` is specified on the command line. + +``` yaml $(tag) == 'package-2021-01-01-preview' && $(python) +python: + namespace: azure.mgmt.authorization.v2021_01_01_preview + output-folder: $(python-sdks-folder)/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2021_01_01_preview +``` diff --git a/specification/authorization/resource-manager/readme.ruby.md b/specification/authorization/resource-manager/readme.ruby.md index b4d8ab236bf0..5a8916b30abe 100644 --- a/specification/authorization/resource-manager/readme.ruby.md +++ b/specification/authorization/resource-manager/readme.ruby.md @@ -17,6 +17,7 @@ batch: - tag: package-2017-10-01-preview-only - tag: package-2018-01-01-preview-only - tag: package-2018-05-01-preview-only + - tag: package-2021-01-01-preview ``` ### Tag: package-2015-07-01 and ruby @@ -69,3 +70,13 @@ Please also specify `--ruby-sdks-folder=`. + +``` yaml $(tag) == 'package-2021-01-01-preview' && $(ruby) +namespace: "Azure::Authorization::Mgmt::V2021_01_01_preview" +output-folder: $(ruby-sdks-folder)/management/azure_mgmt_authorization/lib +```