From 46a6a354d2d9083dbf8aed20656a80edac5aeabc Mon Sep 17 00:00:00 2001 From: veseshad92 <133261070+veseshad92@users.noreply.github.com> Date: Thu, 11 May 2023 12:48:10 -0700 Subject: [PATCH 01/42] Adds base for updating Microsoft.Authorization from version stable/2022-04-01 to version 2022-05-01-preview --- .../authorization-DenyAssignmentCalls.json | 538 +++++++++++++ ...authorization-ProviderOperationsCalls.json | 249 ++++++ .../authorization-RoleAssignmentsCalls.json | 734 ++++++++++++++++++ .../authorization-RoleDefinitionsCalls.json | 572 ++++++++++++++ .../2022-05-01-preview/common-types.json | 443 +++++++++++ .../examples/DeleteRoleDefinition.json | 37 + .../examples/GetAllDenyAssignments.json | 50 ++ .../examples/GetAllProviderOperations.json | 27 + .../examples/GetDenyAssignmentById.json | 44 ++ .../examples/GetDenyAssignmentByNameId.json | 45 ++ .../examples/GetDenyAssignmentByScope.json | 50 ++ .../GetDenyAssignmentsForResource.json | 55 ++ .../GetDenyAssignmentsForResourceGroup.json | 51 ++ .../examples/GetPermissions.json | 22 + .../examples/GetProviderOperationsRP.json | 24 + .../examples/GetResourcePermissions.json | 23 + .../examples/GetRoleDefinitionAtScope.json | 39 + .../examples/GetRoleDefinitionById.json | 35 + .../examples/GetRoleDefinitionByName.json | 36 + .../examples/PutRoleDefinition.json | 61 ++ .../examples/RoleAssignments_CreateById.json | 41 + .../RoleAssignments_CreateForResource.json | 42 + ...oleAssignments_CreateForResourceGroup.json | 42 + ...RoleAssignments_CreateForSubscription.json | 42 + .../examples/RoleAssignments_Delete.json | 23 + .../examples/RoleAssignments_DeleteById.json | 22 + .../examples/RoleAssignments_Get.json | 22 + .../examples/RoleAssignments_GetById.json | 21 + .../RoleAssignments_ListForResource.json | 51 ++ .../RoleAssignments_ListForResourceGroup.json | 37 + .../RoleAssignments_ListForScope.json | 25 + .../RoleAssignments_ListForSubscription.json | 25 + 32 files changed, 3528 insertions(+) create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-DenyAssignmentCalls.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-ProviderOperationsCalls.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleAssignmentsCalls.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/DeleteRoleDefinition.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllDenyAssignments.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllProviderOperations.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentById.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByNameId.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByScope.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResource.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResourceGroup.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetPermissions.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetProviderOperationsRP.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetResourcePermissions.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionAtScope.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionById.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionByName.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/PutRoleDefinition.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateById.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResource.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResourceGroup.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForSubscription.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Delete.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_DeleteById.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Get.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_GetById.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResource.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResourceGroup.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForScope.json create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForSubscription.json diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-DenyAssignmentCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-DenyAssignmentCalls.json new file mode 100644 index 000000000000..9829252c1148 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-DenyAssignmentCalls.json @@ -0,0 +1,538 @@ +{ + "swagger": "2.0", + "info": { + "title": "AuthorizationManagementClient", + "version": "2022-04-01", + "description": "Role based access control provides you a way to apply granular level policy administration down to individual resources or resource groups. These operations enable you to get deny assignments. A deny assignment describes the set of actions on resources that are denied for Azure Active Directory users." + }, + "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": { + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/denyAssignments": { + "get": { + "tags": [ + "DenyAssignments" + ], + "operationId": "DenyAssignments_ListForResource", + "description": "Gets deny assignments for a resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceProviderNamespaceParameter" + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "The parent resource identity.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The resource type of the resource.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource to get deny assignments for." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of deny assignments.", + "schema": { + "$ref": "#/definitions/DenyAssignmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/DenyAssignmentFilter", + "x-ms-examples": { + "List deny assignments for resource": { + "$ref": "./examples/GetDenyAssignmentsForResource.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/denyAssignments": { + "get": { + "tags": [ + "DenyAssignments" + ], + "operationId": "DenyAssignments_ListForResourceGroup", + "description": "Gets deny assignments for a resource group.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of deny assignments.", + "schema": { + "$ref": "#/definitions/DenyAssignmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/DenyAssignmentFilter", + "x-ms-examples": { + "List deny assignments for resource group": { + "$ref": "./examples/GetDenyAssignmentsForResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/denyAssignments": { + "get": { + "tags": [ + "DenyAssignments" + ], + "operationId": "DenyAssignments_List", + "description": "Gets all deny assignments for the subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of deny assignments.", + "schema": { + "$ref": "#/definitions/DenyAssignmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/DenyAssignmentFilter", + "x-ms-examples": { + "List deny assignments for subscription": { + "$ref": "./examples/GetAllDenyAssignments.json" + } + } + } + }, + "/{scope}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId}": { + "get": { + "tags": [ + "DenyAssignments" + ], + "operationId": "DenyAssignments_Get", + "description": "Get the specified deny assignment.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of the deny assignment.", + "x-ms-skip-url-encoding": true + }, + { + "name": "denyAssignmentId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the deny assignment to get." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the deny assignment.", + "schema": { + "$ref": "#/definitions/DenyAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get deny assignment by name": { + "$ref": "./examples/GetDenyAssignmentByNameId.json" + } + } + } + }, + "/{denyAssignmentId}": { + "get": { + "tags": [ + "DenyAssignments" + ], + "operationId": "DenyAssignments_GetById", + "description": "Gets a deny assignment by ID.", + "parameters": [ + { + "name": "denyAssignmentId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified deny assignment ID. For example, use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for subscription level deny assignments, or /providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for tenant level deny assignments.", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the deny assignment.", + "schema": { + "$ref": "#/definitions/DenyAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get deny assignment by ID": { + "$ref": "./examples/GetDenyAssignmentById.json" + } + } + } + }, + "/{scope}/providers/Microsoft.Authorization/denyAssignments": { + "get": { + "tags": [ + "DenyAssignments" + ], + "operationId": "DenyAssignments_ListForScope", + "description": "Gets deny assignments for a scope.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of the deny assignments.", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/FilterParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of deny assignments.", + "schema": { + "$ref": "#/definitions/DenyAssignmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/DenyAssignmentFilter", + "x-ms-examples": { + "List deny assignments for scope": { + "$ref": "./examples/GetDenyAssignmentByScope.json" + } + } + } + } + }, + "definitions": { + "DenyAssignmentFilter": { + "properties": { + "denyAssignmentName": { + "type": "string", + "description": "Return deny assignment with specified name." + }, + "principalId": { + "type": "string", + "description": "Return all deny assignments where the specified principal is listed in the principals list of deny assignments." + }, + "gdprExportPrincipalId": { + "type": "string", + "description": "Return all deny assignments where the specified principal is listed either in the principals list or exclude principals list of deny assignments." + } + }, + "type": "object", + "description": "Deny Assignments filter" + }, + "DenyAssignmentProperties": { + "properties": { + "denyAssignmentName": { + "type": "string", + "description": "The display name of the deny assignment." + }, + "description": { + "type": "string", + "description": "The description of the deny assignment." + }, + "permissions": { + "type": "array", + "items": { + "$ref": "#/definitions/DenyAssignmentPermission" + }, + "x-ms-identifiers": [], + "description": "An array of permissions that are denied by the deny assignment." + }, + "scope": { + "type": "string", + "description": "The deny assignment scope." + }, + "doNotApplyToChildScopes": { + "type": "boolean", + "description": "Determines if the deny assignment applies to child scopes. Default value is false." + }, + "principals": { + "type": "array", + "items": { + "$ref": "./common-types.json#/definitions/Principal" + }, + "description": "Array of principals to which the deny assignment applies." + }, + "excludePrincipals": { + "type": "array", + "items": { + "$ref": "./common-types.json#/definitions/Principal" + }, + "description": "Array of principals to which the deny assignment does not apply." + }, + "isSystemProtected": { + "type": "boolean", + "description": "Specifies whether this deny assignment was created by Azure and cannot be edited or deleted." + }, + "condition": { + "type": "string", + "description": "The conditions on the deny assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'" + }, + "conditionVersion": { + "type": "string", + "description": "Version of the condition." + }, + "createdOn": { + "readOnly": true, + "type": "string", + "description": "Time it was created", + "format": "date-time" + }, + "updatedOn": { + "readOnly": true, + "type": "string", + "description": "Time it was updated", + "format": "date-time" + }, + "createdBy": { + "readOnly": true, + "type": "string", + "description": "Id of the user who created the assignment" + }, + "updatedBy": { + "readOnly": true, + "type": "string", + "description": "Id of the user who updated the assignment" + } + }, + "type": "object", + "description": "Deny assignment properties." + }, + "DenyAssignment": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "The deny assignment ID." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The deny assignment name." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The deny assignment type." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DenyAssignmentProperties", + "description": "Deny assignment properties." + } + }, + "type": "object", + "description": "Deny Assignment" + }, + "DenyAssignmentListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DenyAssignment" + }, + "description": "Deny assignment list." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "type": "object", + "description": "Deny assignment list operation result." + }, + "DenyAssignmentPermission": { + "properties": { + "actions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Actions to which the deny assignment does not grant access." + }, + "notActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Actions to exclude from that the deny assignment does not grant access." + }, + "dataActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Data actions to which the deny assignment does not grant access." + }, + "notDataActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Data actions to exclude from that the deny assignment does not grant access." + }, + "condition": { + "type": "string", + "description": "The conditions on the Deny assignment permission. This limits the resources it applies to." + }, + "conditionVersion": { + "type": "string", + "description": "Version of the condition." + } + }, + "type": "object", + "description": "Deny assignment permissions." + } + }, + "parameters": { + "ResourceProviderNamespaceParameter": { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider.", + "x-ms-skip-url-encoding": true, + "x-ms-parameter-location": "method" + }, + "FilterParameter": { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. This filter is different from the principalId filter as it returns not only those deny assignments that contain the specified principal is the Principals list but also those deny assignments that contain the specified principal is the ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and description properties are returned.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-ProviderOperationsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-ProviderOperationsCalls.json new file mode 100644 index 000000000000..233a36b80ed0 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-ProviderOperationsCalls.json @@ -0,0 +1,249 @@ +{ + "swagger": "2.0", + "info": { + "title": "AuthorizationManagementClient", + "version": "2022-04-01", + "description": "Role based access control provides you a way to apply granular level policy administration down to individual resources or resource groups. These calls handle provider operations." + }, + "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/providerOperations/{resourceProviderNamespace}": { + "get": { + "tags": [ + "ProviderOperationsMetadata" + ], + "operationId": "ProviderOperationsMetadata_Get", + "description": "Gets provider operations metadata for the specified resource provider.", + "parameters": [ + { + "$ref": "#/parameters/ResourceProviderNamespaceParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "default": "resourceTypes", + "description": "Specifies whether to expand the values." + } + ], + "responses": { + "200": { + "description": "OK - Returns the operations metadata.", + "schema": { + "$ref": "#/definitions/ProviderOperationsMetadata" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List provider operations metadata for resource provider": { + "$ref": "./examples/GetProviderOperationsRP.json" + } + } + } + }, + "/providers/Microsoft.Authorization/providerOperations": { + "get": { + "tags": [ + "ProviderOperationsMetadata" + ], + "operationId": "ProviderOperationsMetadata_List", + "description": "Gets provider operations metadata for all resource providers.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "default": "resourceTypes", + "description": "Specifies whether to expand the values." + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of the operations metadata.", + "schema": { + "$ref": "#/definitions/ProviderOperationsMetadataListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List provider operations metadata for all resource providers": { + "$ref": "./examples/GetAllProviderOperations.json" + } + } + } + } + }, + "definitions": { + "ResourceType": { + "properties": { + "name": { + "type": "string", + "description": "The resource type name." + }, + "displayName": { + "type": "string", + "description": "The resource type display name." + }, + "operations": { + "type": "array", + "items": { + "$ref": "#/definitions/ProviderOperation" + }, + "x-ms-identifiers": [], + "description": "The resource type operations." + } + }, + "type": "object", + "description": "Resource Type" + }, + "ProviderOperation": { + "properties": { + "name": { + "type": "string", + "description": "The operation name." + }, + "displayName": { + "type": "string", + "description": "The operation display name." + }, + "description": { + "type": "string", + "description": "The operation description." + }, + "origin": { + "type": "string", + "description": "The operation origin." + }, + "properties": { + "type": "object", + "x-ms-client-flatten": true, + "description": "The operation properties." + }, + "isDataAction": { + "type": "boolean", + "description": "The dataAction flag to specify the operation type." + } + }, + "type": "object", + "description": "Operation" + }, + "ProviderOperationsMetadata": { + "properties": { + "id": { + "type": "string", + "description": "The provider id." + }, + "name": { + "type": "string", + "description": "The provider name." + }, + "type": { + "type": "string", + "description": "The provider type." + }, + "displayName": { + "type": "string", + "description": "The provider display name." + }, + "resourceTypes": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceType" + }, + "x-ms-identifiers": [ + "name" + ], + "description": "The provider resource types" + }, + "operations": { + "type": "array", + "items": { + "$ref": "#/definitions/ProviderOperation" + }, + "x-ms-identifiers": [], + "description": "The provider operations." + } + }, + "type": "object", + "description": "Provider Operations metadata" + }, + "ProviderOperationsMetadataListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ProviderOperationsMetadata" + }, + "description": "The list of providers." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "type": "object", + "description": "Provider operations metadata list" + } + }, + "parameters": { + "ResourceProviderNamespaceParameter": { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider.", + "x-ms-skip-url-encoding": true, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleAssignmentsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleAssignmentsCalls.json new file mode 100644 index 000000000000..872d7bf2be81 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleAssignmentsCalls.json @@ -0,0 +1,734 @@ +{ + "swagger": "2.0", + "info": { + "title": "AuthorizationManagementClient", + "version": "2022-04-01", + "description": "Role based access control provides you a way to apply granular level policy administration down to individual resources or resource groups. These operations enable you to manage role assignments. A role assignment grants access to Azure Active Directory users." + }, + "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": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/roleAssignments": { + "get": { + "tags": [ + "RoleAssignments" + ], + "operationId": "RoleAssignments_ListForSubscription", + "description": "List all role assignments that apply to a subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/RoleAssignmentFilterParameter" + }, + { + "$ref": "#/parameters/TenantIdQueryParameter" + } + ], + "responses": { + "200": { + "description": "Returns an array of role assignments.", + "schema": { + "$ref": "#/definitions/RoleAssignmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-odata": "#/definitions/RoleAssignmentFilter", + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List role assignments for subscription": { + "$ref": "./examples/RoleAssignments_ListForSubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/roleAssignments": { + "get": { + "tags": [ + "RoleAssignments" + ], + "operationId": "RoleAssignments_ListForResourceGroup", + "description": "List all role assignments that apply to a resource group.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/RoleAssignmentFilterParameter" + }, + { + "$ref": "#/parameters/TenantIdQueryParameter" + } + ], + "responses": { + "200": { + "description": "Returns an array of role assignments.", + "schema": { + "$ref": "#/definitions/RoleAssignmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-odata": "#/definitions/RoleAssignmentFilter", + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List role assignments for resource group": { + "$ref": "./examples/RoleAssignments_ListForResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/roleAssignments": { + "get": { + "tags": [ + "RoleAssignments" + ], + "operationId": "RoleAssignments_ListForResource", + "description": "List all role assignments that apply to a resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common-types.json#/parameters/ResourceProviderNamespaceParameter" + }, + { + "$ref": "./common-types.json#/parameters/ResourceTypeParameter" + }, + { + "$ref": "./common-types.json#/parameters/ResourceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/RoleAssignmentFilterParameter" + }, + { + "$ref": "#/parameters/TenantIdQueryParameter" + } + ], + "responses": { + "200": { + "description": "Returns an array of role assignments.", + "schema": { + "$ref": "#/definitions/RoleAssignmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-odata": "#/definitions/RoleAssignmentFilter", + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List role assignments for a resource": { + "$ref": "./examples/RoleAssignments_ListForResource.json" + } + } + } + }, + "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}": { + "get": { + "tags": [ + "RoleAssignments" + ], + "operationId": "RoleAssignments_Get", + "description": "Get a role assignment by scope and name.", + "parameters": [ + { + "$ref": "./common-types.json#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/RoleAssignmentNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TenantIdQueryParameter" + } + ], + "responses": { + "200": { + "description": "Returns the role assignment.", + "schema": { + "$ref": "#/definitions/RoleAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get role assignment by scope and name": { + "$ref": "./examples/RoleAssignments_Get.json" + } + } + }, + "put": { + "tags": [ + "RoleAssignments" + ], + "operationId": "RoleAssignments_Create", + "description": "Create or update a role assignment by scope and name.", + "parameters": [ + { + "$ref": "./common-types.json#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/RoleAssignmentNameParameter" + }, + { + "$ref": "#/parameters/RoleAssignmentCreateParameters" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "description": "Returns the role assignment.", + "schema": { + "$ref": "#/definitions/RoleAssignment" + } + }, + "200": { + "description": "Returns the role assignment.", + "schema": { + "$ref": "#/definitions/RoleAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create role assignment for subscription": { + "$ref": "./examples/RoleAssignments_CreateForSubscription.json" + }, + "Create role assignment for resource group": { + "$ref": "./examples/RoleAssignments_CreateForResourceGroup.json" + }, + "Create role assignment for resource": { + "$ref": "./examples/RoleAssignments_CreateForResource.json" + } + } + }, + "delete": { + "tags": [ + "RoleAssignments" + ], + "operationId": "RoleAssignments_Delete", + "description": "Delete a role assignment by scope and name.", + "parameters": [ + { + "$ref": "./common-types.json#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/RoleAssignmentNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TenantIdQueryParameter" + } + ], + "responses": { + "200": { + "description": "Returns the deleted role assignment.", + "schema": { + "$ref": "#/definitions/RoleAssignment" + } + }, + "204": { + "description": "Role assignment was already deleted or does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete role assignment": { + "$ref": "./examples/RoleAssignments_Delete.json" + } + } + } + }, + "/{scope}/providers/Microsoft.Authorization/roleAssignments": { + "get": { + "tags": [ + "RoleAssignments" + ], + "operationId": "RoleAssignments_ListForScope", + "description": "List all role assignments that apply to a scope.", + "parameters": [ + { + "$ref": "./common-types.json#/parameters/ScopeParameter" + }, + { + "$ref": "#/parameters/RoleAssignmentFilterParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TenantIdQueryParameter" + }, + { + "$ref": "#/parameters/PaginationSkipToken" + } + ], + "responses": { + "200": { + "description": "Returns an array of role assignments.", + "schema": { + "$ref": "#/definitions/RoleAssignmentListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/RoleAssignmentFilter", + "x-ms-examples": { + "List role assignments for scope": { + "$ref": "./examples/RoleAssignments_ListForScope.json" + } + } + } + }, + "/{roleAssignmentId}": { + "get": { + "tags": [ + "RoleAssignments" + ], + "operationId": "RoleAssignments_GetById", + "description": "Get a role assignment by ID.", + "parameters": [ + { + "$ref": "#/parameters/RoleAssignmentIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TenantIdQueryParameter" + } + ], + "responses": { + "200": { + "description": "Returns the role assignment.", + "schema": { + "$ref": "#/definitions/RoleAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get role assignment by ID": { + "$ref": "./examples/RoleAssignments_GetById.json" + } + } + }, + "put": { + "tags": [ + "RoleAssignments" + ], + "operationId": "RoleAssignments_CreateById", + "description": "Create or update a role assignment by ID.", + "parameters": [ + { + "$ref": "#/parameters/RoleAssignmentIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/RoleAssignmentCreateParameters" + } + ], + "responses": { + "201": { + "description": "Returns the role assignment.", + "schema": { + "$ref": "#/definitions/RoleAssignment" + } + }, + "200": { + "description": "Returns the role assignment.", + "schema": { + "$ref": "#/definitions/RoleAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or update role assignment by ID": { + "$ref": "./examples/RoleAssignments_CreateById.json" + } + } + }, + "delete": { + "tags": [ + "RoleAssignments" + ], + "operationId": "RoleAssignments_DeleteById", + "description": "Delete a role assignment by ID.", + "parameters": [ + { + "$ref": "#/parameters/RoleAssignmentIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TenantIdQueryParameter" + } + ], + "responses": { + "200": { + "description": "Returns the deleted role assignment.", + "schema": { + "$ref": "#/definitions/RoleAssignment" + } + }, + "204": { + "description": "Role assignment already deleted or does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete role assignment by ID": { + "$ref": "./examples/RoleAssignments_DeleteById.json" + } + } + } + } + }, + "definitions": { + "ValidationResponseErrorInfo": { + "type": "object", + "description": "Failed validation result details", + "properties": { + "code": { + "readOnly": true, + "type": "string", + "description": "Error code indicating why validation failed" + }, + "message": { + "readOnly": true, + "type": "string", + "description": "Message indicating why validation failed" + } + } + }, + "ValidationResponse": { + "type": "object", + "description": "Validation response", + "properties": { + "isValid": { + "readOnly": true, + "type": "boolean", + "description": "Whether or not validation succeeded" + }, + "errorInfo": { + "description": "Failed validation result details", + "$ref": "#/definitions/ValidationResponseErrorInfo" + } + } + }, + "RoleAssignmentFilter": { + "properties": { + "principalId": { + "type": "string", + "description": "Returns role assignment of the specific principal." + } + }, + "type": "object", + "description": "Role Assignments filter" + }, + "RoleAssignmentListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RoleAssignment" + }, + "description": "Role assignment list." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The skipToken to use for getting the next set of results." + } + }, + "type": "object", + "description": "Role assignment list operation result." + }, + "RoleAssignmentProperties": { + "properties": { + "scope": { + "readOnly": true, + "type": "string", + "description": "The role assignment scope." + }, + "roleDefinitionId": { + "type": "string", + "description": "The role definition ID." + }, + "principalId": { + "type": "string", + "description": "The principal ID." + }, + "principalType": { + "type": "string", + "description": "The principal type of the assigned principal ID.", + "enum": [ + "User", + "Group", + "ServicePrincipal", + "ForeignGroup", + "Device" + ], + "default": "User", + "x-ms-enum": { + "name": "PrincipalType", + "modelAsString": true + } + }, + "description": { + "type": "string", + "description": "Description of role assignment" + }, + "condition": { + "type": "string", + "description": "The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'" + }, + "conditionVersion": { + "type": "string", + "description": "Version of the condition. Currently the only accepted value is '2.0'" + }, + "createdOn": { + "readOnly": true, + "type": "string", + "description": "Time it was created", + "format": "date-time" + }, + "updatedOn": { + "readOnly": true, + "type": "string", + "description": "Time it was updated", + "format": "date-time" + }, + "createdBy": { + "readOnly": true, + "type": "string", + "description": "Id of the user who created the assignment" + }, + "updatedBy": { + "readOnly": true, + "type": "string", + "description": "Id of the user who updated the assignment" + }, + "delegatedManagedIdentityResourceId": { + "type": "string", + "description": "Id of the delegated managed identity resource" + } + }, + "required": [ + "roleDefinitionId", + "principalId" + ], + "type": "object", + "description": "Role assignment properties." + }, + "RoleAssignment": { + "x-ms-azure-resource": true, + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "The role assignment ID." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The role assignment name." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The role assignment type." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RoleAssignmentProperties", + "description": "Role assignment properties." + } + }, + "type": "object", + "description": "Role Assignments" + }, + "RoleAssignmentCreateParameters": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RoleAssignmentProperties", + "description": "Role assignment properties." + } + }, + "required": [ + "properties" + ], + "type": "object", + "description": "Role assignment create parameters." + } + }, + "parameters": { + "RoleAssignmentFilterParameter": { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.", + "x-ms-skip-url-encoding": true, + "x-ms-parameter-location": "method" + }, + "RoleAssignmentNameParameter": { + "name": "roleAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the role assignment. It can be any valid GUID.", + "x-ms-skip-url-encoding": true, + "x-ms-parameter-location": "method" + }, + "RoleAssignmentIdParameter": { + "name": "roleAssignmentId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions//resourcegroups//providers/Microsoft.Authorization/roleAssignments/", + "x-ms-skip-url-encoding": true, + "x-ms-parameter-location": "method" + }, + "RoleAssignmentCreateParameters": { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RoleAssignmentCreateParameters" + }, + "description": "Parameters for the role assignment.", + "x-ms-parameter-location": "method" + }, + "TenantIdQueryParameter": { + "name": "tenantId", + "in": "query", + "required": false, + "type": "string", + "description": "Tenant ID for cross-tenant request", + "x-ms-parameter-location": "method" + }, + "PaginationSkipToken": { + "name": "$skipToken", + "in": "query", + "required": false, + "type": "string", + "description": "The skipToken to apply on the operation. Use $skipToken={skiptoken} to return paged role assignments following the skipToken passed. Only supported on provider level calls.", + "x-ms-skip-url-encoding": true, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json new file mode 100644 index 000000000000..6222e0075585 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -0,0 +1,572 @@ +{ + "swagger": "2.0", + "info": { + "title": "AuthorizationManagementClient", + "version": "2022-04-01", + "description": "Role based access control provides you a way to apply granular level policy administration down to individual resources or resource groups. These operations allow you to manage role definitions. A role definition describes the set of actions that can be performed on 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": { + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/permissions": { + "get": { + "tags": [ + "Permissions" + ], + "operationId": "Permissions_ListForResourceGroup", + "description": "Gets all permissions the caller has for a resource group.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of permissions.", + "schema": { + "$ref": "#/definitions/PermissionGetResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List permissions for resource group": { + "$ref": "./examples/GetPermissions.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/permissions": { + "get": { + "tags": [ + "Permissions" + ], + "operationId": "Permissions_ListForResource", + "description": "Gets all permissions the caller has for a resource.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./common-types.json#/parameters/ResourceProviderNamespaceParameter" + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "The parent resource identity.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The resource type of the resource.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource to get the permissions for." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of permissions.", + "schema": { + "$ref": "#/definitions/PermissionGetResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List permissions for resource": { + "$ref": "./examples/GetResourcePermissions.json" + } + } + } + }, + "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}": { + "delete": { + "tags": [ + "RoleDefinitions" + ], + "operationId": "RoleDefinitions_Delete", + "description": "Deletes a role definition.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of the role definition.", + "x-ms-skip-url-encoding": true + }, + { + "name": "roleDefinitionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the role definition to delete." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the role definition.", + "schema": { + "$ref": "#/definitions/RoleDefinition" + } + }, + "204": { + "description": "Role definition already deleted or does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete role definition": { + "$ref": "./examples/DeleteRoleDefinition.json" + } + } + }, + "get": { + "tags": [ + "RoleDefinitions" + ], + "operationId": "RoleDefinitions_Get", + "description": "Get role definition by name (GUID).", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of the role definition.", + "x-ms-skip-url-encoding": true + }, + { + "name": "roleDefinitionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the role definition." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the role definition.", + "schema": { + "$ref": "#/definitions/RoleDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get role definition by name": { + "$ref": "./examples/GetRoleDefinitionByName.json" + } + } + }, + "put": { + "tags": [ + "RoleDefinitions" + ], + "operationId": "RoleDefinitions_CreateOrUpdate", + "description": "Creates or updates a role definition.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of the role definition.", + "x-ms-skip-url-encoding": true + }, + { + "name": "roleDefinitionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the role definition." + }, + { + "name": "roleDefinition", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RoleDefinition" + }, + "description": "The values for the role definition." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "description": "OK - Returns information about the role definition.", + "schema": { + "$ref": "#/definitions/RoleDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create role definition": { + "$ref": "./examples/PutRoleDefinition.json" + } + } + } + }, + "/{scope}/providers/Microsoft.Authorization/roleDefinitions": { + "get": { + "tags": [ + "RoleDefinitions" + ], + "operationId": "RoleDefinitions_List", + "description": "Get all role definitions that are applicable at scope and above.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of the role definition.", + "x-ms-skip-url-encoding": true + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation. Use atScopeAndBelow filter to search below the given scope as well." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of role definitions.", + "schema": { + "$ref": "#/definitions/RoleDefinitionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/RoleDefinitionFilter", + "x-ms-examples": { + "List role definitions for scope": { + "$ref": "./examples/GetRoleDefinitionAtScope.json" + } + } + } + } + }, + "x-ms-paths": { + "/{roleId}?disambiguation_dummy": { + "get": { + "tags": [ + "RoleDefinitions" + ], + "operationId": "RoleDefinitions_GetById", + "description": "Gets a role definition by ID.", + "parameters": [ + { + "name": "roleId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified role definition ID. Use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for subscription level role definitions, or /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for tenant level role definitions.", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the role definition.", + "schema": { + "$ref": "#/definitions/RoleDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get role definition by ID": { + "$ref": "./examples/GetRoleDefinitionById.json" + } + } + } + } + }, + "definitions": { + "RoleDefinitionFilter": { + "properties": { + "roleName": { + "type": "string", + "description": "Returns role definition with the specific name." + }, + "type": { + "type": "string", + "description": "Returns role definition with the specific type." + } + }, + "type": "object", + "description": "Role Definitions filter" + }, + "RoleDefinitionProperties": { + "properties": { + "roleName": { + "type": "string", + "description": "The role name." + }, + "description": { + "type": "string", + "description": "The role definition description." + }, + "type": { + "type": "string", + "description": "The role type.", + "x-ms-client-name": "roleType" + }, + "permissions": { + "type": "array", + "items": { + "$ref": "#/definitions/Permission" + }, + "x-ms-identifiers": [], + "description": "Role definition permissions." + }, + "assignableScopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Role definition assignable scopes." + }, + "createdOn": { + "readOnly": true, + "type": "string", + "description": "Time it was created", + "format": "date-time" + }, + "updatedOn": { + "readOnly": true, + "type": "string", + "description": "Time it was updated", + "format": "date-time" + }, + "createdBy": { + "readOnly": true, + "type": "string", + "description": "Id of the user who created the assignment" + }, + "updatedBy": { + "readOnly": true, + "type": "string", + "description": "Id of the user who updated the assignment" + } + }, + "type": "object", + "description": "Role definition properties." + }, + "RoleDefinition": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "The role definition ID." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The role definition name." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The role definition type." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RoleDefinitionProperties", + "description": "Role definition properties." + } + }, + "type": "object", + "description": "Role definition." + }, + "RoleDefinitionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RoleDefinition" + }, + "description": "Role definition list." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "type": "object", + "description": "Role definition list operation result." + }, + "PermissionGetResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Permission" + }, + "x-ms-identifiers": [], + "description": "An array of permissions." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "type": "object", + "description": "Permissions information." + }, + "Permission": { + "properties": { + "actions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Allowed actions." + }, + "notActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Denied actions." + }, + "dataActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Allowed Data actions." + }, + "notDataActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Denied Data actions." + } + }, + "type": "object", + "description": "Role definition permissions." + } + }, + "parameters": { + "FilterParameter": { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. This filter is different from the principalId filter as it returns not only those deny assignments that contain the specified principal is the Principals list but also those deny assignments that contain the specified principal is the ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and description properties are returned.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json new file mode 100644 index 000000000000..1e4cc930b2e1 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json @@ -0,0 +1,443 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-04-01", + "title": "AuthorizationManagementClient" + }, + "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": {}, + "definitions": { + "Permission": { + "properties": { + "actions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Allowed actions." + }, + "notActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Denied actions." + }, + "dataActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Allowed Data actions." + }, + "notDataActions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Denied Data actions." + } + }, + "type": "object", + "description": "Role definition permissions." + }, + "Principal": { + "readOnly": true, + "type": "object", + "description": "The name of the entity last modified it", + "properties": { + "id": { + "type": "string", + "description": "The id of the principal made changes" + }, + "displayName": { + "type": "string", + "description": "The name of the principal made changes" + }, + "type": { + "type": "string", + "description": "Type of principal such as user , group etc" + }, + "email": { + "type": "string", + "description": "Email of principal" + } + } + }, + "RoleManagementPolicyRule": { + "description": "The role management policy rule.", + "type": "object", + "required": [ + "ruleType" + ], + "discriminator": "ruleType", + "properties": { + "id": { + "type": "string", + "description": "The id of the rule." + }, + "ruleType": { + "description": "The type of rule", + "$ref": "#/definitions/RoleManagementPolicyRuleType" + }, + "target": { + "$ref": "#/definitions/RoleManagementPolicyRuleTarget", + "description": "The target of the current rule." + } + } + }, + "RoleManagementPolicyApprovalRule": { + "description": "The role management policy approval rule.", + "allOf": [ + { + "$ref": "#/definitions/RoleManagementPolicyRule" + } + ], + "type": "object", + "properties": { + "setting": { + "$ref": "#/definitions/ApprovalSettings", + "description": "The approval setting" + } + } + }, + "ApprovalSettings": { + "description": "The approval settings.", + "type": "object", + "properties": { + "isApprovalRequired": { + "type": "boolean", + "description": "Determines whether approval is required or not." + }, + "isApprovalRequiredForExtension": { + "type": "boolean", + "description": "Determines whether approval is required for assignment extension." + }, + "isRequestorJustificationRequired": { + "type": "boolean", + "description": "Determine whether requestor justification is required." + }, + "approvalMode": { + "type": "string", + "description": "The type of rule", + "enum": [ + "SingleStage", + "Serial", + "Parallel", + "NoApproval" + ], + "x-ms-enum": { + "name": "ApprovalMode", + "modelAsString": true + } + }, + "approvalStages": { + "type": "array", + "items": { + "$ref": "#/definitions/ApprovalStage" + }, + "x-ms-identifiers": [], + "description": "The approval stages of the request." + } + } + }, + "ApprovalStage": { + "description": "The approval stage.", + "type": "object", + "properties": { + "approvalStageTimeOutInDays": { + "type": "integer", + "format": "int32", + "description": "The time in days when approval request would be timed out" + }, + "isApproverJustificationRequired": { + "type": "boolean", + "description": "Determines whether approver need to provide justification for his decision." + }, + "escalationTimeInMinutes": { + "type": "integer", + "format": "int32", + "description": "The time in minutes when the approval request would be escalated if the primary approver does not approve" + }, + "primaryApprovers": { + "type": "array", + "description": "The primary approver of the request.", + "items": { + "$ref": "#/definitions/UserSet" + } + }, + "isEscalationEnabled": { + "type": "boolean", + "description": "The value determine whether escalation feature is enabled." + }, + "escalationApprovers": { + "type": "array", + "description": "The escalation approver of the request.", + "items": { + "$ref": "#/definitions/UserSet" + } + } + } + }, + "UserSet": { + "description": "The detail of a user.", + "type": "object", + "properties": { + "userType": { + "type": "string", + "description": "The type of user.", + "enum": [ + "User", + "Group" + ], + "x-ms-enum": { + "name": "UserType", + "modelAsString": true + } + }, + "isBackup": { + "type": "boolean", + "description": "The value indicating whether the user is a backup fallback approver" + }, + "id": { + "type": "string", + "description": "The object id of the user." + }, + "description": { + "type": "string", + "description": "The description of the user." + } + } + }, + "RoleManagementPolicyAuthenticationContextRule": { + "description": "The role management policy authentication context rule.", + "allOf": [ + { + "$ref": "#/definitions/RoleManagementPolicyRule" + } + ], + "type": "object", + "properties": { + "isEnabled": { + "type": "boolean", + "description": "The value indicating if rule is enabled." + }, + "claimValue": { + "type": "string", + "description": "The claim value." + } + } + }, + "RoleManagementPolicyEnablementRule": { + "description": "The role management policy enablement rule.", + "allOf": [ + { + "$ref": "#/definitions/RoleManagementPolicyRule" + } + ], + "type": "object", + "properties": { + "enabledRules": { + "type": "array", + "items": { + "type": "string", + "description": "The type of enablement rule", + "enum": [ + "MultiFactorAuthentication", + "Justification", + "Ticketing" + ], + "x-ms-enum": { + "name": "EnablementRules", + "modelAsString": true + } + }, + "description": "The list of enabled rules." + } + } + }, + "RoleManagementPolicyExpirationRule": { + "description": "The role management policy expiration rule.", + "allOf": [ + { + "$ref": "#/definitions/RoleManagementPolicyRule" + } + ], + "type": "object", + "properties": { + "isExpirationRequired": { + "type": "boolean", + "description": "The value indicating whether expiration is required." + }, + "maximumDuration": { + "type": "string", + "description": "The maximum duration of expiration in timespan." + } + } + }, + "RoleManagementPolicyNotificationRule": { + "description": "The role management policy notification rule.", + "allOf": [ + { + "$ref": "#/definitions/RoleManagementPolicyRule" + } + ], + "type": "object", + "properties": { + "notificationType": { + "type": "string", + "description": "The type of notification.", + "enum": [ + "Email" + ], + "x-ms-enum": { + "name": "NotificationDeliveryMechanism", + "modelAsString": true + } + }, + "notificationLevel": { + "type": "string", + "description": "The notification level.", + "enum": [ + "None", + "Critical", + "All" + ], + "x-ms-enum": { + "name": "NotificationLevel", + "modelAsString": true + } + }, + "recipientType": { + "type": "string", + "description": "The recipient type.", + "enum": [ + "Requestor", + "Approver", + "Admin" + ], + "x-ms-enum": { + "name": "RecipientType", + "modelAsString": true + } + }, + "notificationRecipients": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The list of notification recipients." + }, + "isDefaultRecipientsEnabled": { + "type": "boolean", + "description": "Determines if the notification will be sent to the recipient type specified in the policy rule." + } + } + }, + "RoleManagementPolicyRuleTarget": { + "description": "The role management policy rule target.", + "type": "object", + "properties": { + "caller": { + "type": "string", + "description": "The caller of the setting." + }, + "operations": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The type of operation." + }, + "level": { + "type": "string", + "description": "The assignment level to which rule is applied." + }, + "targetObjects": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The list of target objects." + }, + "inheritableSettings": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The list of inheritable settings." + }, + "enforcedSettings": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The list of enforced settings." + } + } + }, + "RoleManagementPolicyRuleType": { + "type": "string", + "description": "The type of rule", + "enum": [ + "RoleManagementPolicyApprovalRule", + "RoleManagementPolicyAuthenticationContextRule", + "RoleManagementPolicyEnablementRule", + "RoleManagementPolicyExpirationRule", + "RoleManagementPolicyNotificationRule" + ], + "x-ms-enum": { + "name": "RoleManagementPolicyRuleType", + "modelAsString": true + } + } + }, + "parameters": { + "ResourceProviderNamespaceParameter": { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider.", + "x-ms-skip-url-encoding": true, + "x-ms-parameter-location": "method" + }, + "ResourceTypeParameter": { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The resource type name. For example the type name of a web app is 'sites' (from Microsoft.Web/sites).", + "x-ms-skip-url-encoding": true, + "x-ms-parameter-location": "method" + }, + "ResourceNameParameter": { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource name.", + "x-ms-skip-url-encoding": true, + "x-ms-parameter-location": "method" + }, + "ScopeParameter": { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope of the operation or resource. Valid scopes are: subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'", + "x-ms-skip-url-encoding": true, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/DeleteRoleDefinition.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/DeleteRoleDefinition.json new file mode 100644 index 000000000000..a0de0e85d339 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/DeleteRoleDefinition.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "scope": "scope", + "roleDefinitionId": "roleDefinitionId", + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "roleName": "Role name", + "type": "roletype", + "description": "Role description", + "assignableScopes": [ + "/subscriptions/subId" + ], + "permissions": [ + { + "actions": [ + "action" + ], + "notActions": [], + "dataActions": [ + "dataAction" + ], + "notDataActions": [] + } + ] + }, + "id": "/subscriptions/subID/providers/Microsoft.Authorization/roleDefinitions/roleDefinitionId", + "type": "Microsoft.Authorization/roleDefinitions", + "name": "roleDefinitionId" + } + }, + "204": {} + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllDenyAssignments.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllDenyAssignments.json new file mode 100644 index 000000000000..f97708a40ed0 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllDenyAssignments.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "subscriptionId": "subId", + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "denyAssignmentName": "Deny assignment name", + "description": "Deny assignment description", + "permissions": [ + { + "actions": [ + "action" + ], + "notActions": [], + "dataActions": [ + "action" + ], + "notDataActions": [] + } + ], + "scope": "/subscriptions/subId", + "doNotApplyToChildScopes": false, + "principals": [ + { + "id": "principalId1", + "type": "principalType1" + } + ], + "excludePrincipals": [ + { + "id": "principalId2", + "type": "principalType2" + } + ], + "isSystemProtected": true + }, + "id": "/subscriptions/subId/providers/Microsoft.Authorization/denyAssignments/denyAssignmentId", + "type": "Microsoft.Authorization/denyAssignments", + "name": "denyAssignmentId" + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllProviderOperations.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllProviderOperations.json new file mode 100644 index 000000000000..deeb1f8701af --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllProviderOperations.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "id", + "name": "name", + "type": "type", + "displayName": "displayName", + "resourceTypes": [ + { + "name": "name", + "displayName": "name", + "operations": [] + } + ], + "operations": [] + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentById.json new file mode 100644 index 000000000000..5d2c240c1aba --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentById.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "denyAssignmentId": "subscriptions/subId/resourcegroups/rgname/providers/Microsoft.Authorization/denyAssignments/daId", + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "denyAssignmentName": "Deny assignment name", + "description": "Deny assignment description", + "permissions": [ + { + "actions": [ + "action" + ], + "notActions": [], + "dataActions": [], + "notDataActions": [] + } + ], + "scope": "/subscriptions/subId/resourcegroups/rgname", + "doNotApplyToChildScopes": false, + "principals": [ + { + "id": "principalId1", + "type": "principalType1" + } + ], + "excludePrincipals": [ + { + "id": "principalId2", + "type": "principalType2" + } + ], + "isSystemProtected": true + }, + "id": "/subscriptions/subId/resourcegroups/rgname/providers/Microsoft.Authorization/denyAssignments/daId", + "type": "Microsoft.Authorization/denyAssignments", + "name": "daId" + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByNameId.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByNameId.json new file mode 100644 index 000000000000..429ea8cdb7a2 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByNameId.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "scope": "subscriptions/subId/resourcegroups/rgname", + "denyAssignmentId": "denyAssignmentId", + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "denyAssignmentName": "Deny assignment name", + "description": "Deny assignment description", + "permissions": [ + { + "actions": [ + "action" + ], + "notActions": [], + "dataActions": [], + "notDataActions": [] + } + ], + "scope": "/subscriptions/subId/resourcegroups/rgname", + "doNotApplyToChildScopes": false, + "principals": [ + { + "id": "principalId1", + "type": "principalType1" + } + ], + "excludePrincipals": [ + { + "id": "principalId2", + "type": "principalType2" + } + ], + "isSystemProtected": true + }, + "id": "/subscriptions/subId/resourcegroups/rgname/providers/Microsoft.Authorization/denyAssignments/denyAssignmentId", + "type": "Microsoft.Authorization/denyAssignments", + "name": "denyAssignmentId" + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByScope.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByScope.json new file mode 100644 index 000000000000..370b2cf24ad4 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByScope.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "scope": "subscriptions/subId", + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "denyAssignmentName": "Deny assignment name", + "description": "Deny assignment description", + "permissions": [ + { + "actions": [ + "action" + ], + "notActions": [], + "dataActions": [ + "action" + ], + "notDataActions": [] + } + ], + "scope": "/subscriptions/subId", + "doNotApplyToChildScopes": false, + "principals": [ + { + "id": "principalId1", + "type": "principalType1" + } + ], + "excludePrincipals": [ + { + "id": "principalId2", + "type": "principalType2" + } + ], + "isSystemProtected": true + }, + "id": "/subscriptions/subId/providers/Microsoft.Authorization/denyAssignments/denyAssignmentId", + "type": "Microsoft.Authorization/denyAssignments", + "name": "denyAssignmentId" + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResource.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResource.json new file mode 100644 index 000000000000..5494cb622b5d --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResource.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgname", + "resourceProviderNamespace": "resourceProviderNamespace", + "parentResourcePath": "parentResourcePath", + "resourceType": "resourceType", + "resourceName": "resourceName", + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "denyAssignmentName": "Deny assignment name", + "description": "Deny assignment description", + "permissions": [ + { + "actions": [ + "action" + ], + "notActions": [], + "dataActions": [ + "action" + ], + "notDataActions": [] + } + ], + "scope": "/subscriptions/subId/resourcegroups/rgname/providers/resourceProviderNamespace/parentResourcePath/resourceType/resourceName", + "doNotApplyToChildScopes": false, + "principals": [ + { + "id": "principalId1", + "type": "principalType1" + } + ], + "excludePrincipals": [ + { + "id": "principalId2", + "type": "principalType2" + } + ], + "isSystemProtected": true + }, + "id": "/subscriptions/subId/resourcegroups/rgname/providers/resourceProviderNamespace/parentResourcePath/resourceType/resourceName/providers/Microsoft.Authorization/denyAssignments/denyAssignmentId", + "type": "Microsoft.Authorization/denyAssignments", + "name": "denyAssignmentId" + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResourceGroup.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResourceGroup.json new file mode 100644 index 000000000000..fe570ce9efaf --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResourceGroup.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgname", + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "denyAssignmentName": "Deny assignment name", + "description": "Deny assignment description", + "permissions": [ + { + "actions": [ + "action" + ], + "notActions": [], + "dataActions": [ + "action" + ], + "notDataActions": [] + } + ], + "scope": "/subscriptions/subId/resourcegroups/rgname", + "doNotApplyToChildScopes": false, + "principals": [ + { + "id": "principalId1", + "type": "principalType1" + } + ], + "excludePrincipals": [ + { + "id": "principalId2", + "type": "principalType2" + } + ], + "isSystemProtected": true + }, + "id": "/subscriptions/subId/resourcegroups/rgname/providers/Microsoft.Authorization/denyAssignments/denyAssignmentId", + "type": "Microsoft.Authorization/denyAssignments", + "name": "denyAssignmentId" + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetPermissions.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetPermissions.json new file mode 100644 index 000000000000..cca798f2f4c7 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetPermissions.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "resourceGroupName": "rgname", + "subscriptionId": "subID", + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "actions": [], + "notActions": [], + "dataActions": [], + "notDataActions": [] + } + ], + "nextLink": "nextlink" + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetProviderOperationsRP.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetProviderOperationsRP.json new file mode 100644 index 000000000000..527519a3ce68 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetProviderOperationsRP.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "resourceProviderNamespace": "resourceProviderNamespace", + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "id": "id", + "name": "name", + "type": "type", + "displayName": "displayName", + "resourceTypes": [ + { + "name": "name", + "displayName": "name", + "operations": [] + } + ], + "operations": [] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetResourcePermissions.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetResourcePermissions.json new file mode 100644 index 000000000000..e8236c21e9b3 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetResourcePermissions.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "subId", + "resourceGroupName": "rgname", + "resourceProviderNamespace": "rpnamespace", + "parentResourcePath": "parentResourcePath", + "resourceType": "resourceType", + "resourceName": "resourceName", + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "actions": [], + "notActions": [] + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionAtScope.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionAtScope.json new file mode 100644 index 000000000000..d8a2d799c716 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionAtScope.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "scope": "scope", + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "roleName": "Role name", + "type": "roletype", + "description": "Role description", + "assignableScopes": [ + "/subscriptions/subId" + ], + "permissions": [ + { + "actions": [ + "action" + ], + "notActions": [], + "dataActions": [ + "dataAction" + ], + "notDataActions": [] + } + ] + }, + "id": "/subscriptions/subID/providers/Microsoft.Authorization/roleDefinitions/roleDefinitionId", + "type": "Microsoft.Authorization/roleDefinitions", + "name": "roleDefinitionId" + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionById.json new file mode 100644 index 000000000000..6bac7e410f4b --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionById.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "roleId": "roleDefinitionId", + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "roleName": "Role name", + "type": "roletype", + "description": "Role description", + "assignableScopes": [ + "/subscriptions/subId" + ], + "permissions": [ + { + "actions": [ + "action" + ], + "notActions": [], + "dataActions": [ + "dataAction" + ], + "notDataActions": [] + } + ] + }, + "id": "/subscriptions/subID/providers/Microsoft.Authorization/roleDefinitions/roleDefinitionId", + "type": "Microsoft.Authorization/roleDefinitions", + "name": "roleDefinitionId" + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionByName.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionByName.json new file mode 100644 index 000000000000..5dbec233d731 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionByName.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "scope": "scope", + "roleDefinitionId": "roleDefinitionId", + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "roleName": "Role name", + "type": "roletype", + "description": "Role description", + "assignableScopes": [ + "/subscriptions/subId" + ], + "permissions": [ + { + "actions": [ + "action" + ], + "notActions": [], + "dataActions": [ + "dataAction" + ], + "notDataActions": [] + } + ] + }, + "id": "/subscriptions/subID/providers/Microsoft.Authorization/roleDefinitions/roleDefinitionId", + "type": "Microsoft.Authorization/roleDefinitions", + "name": "roleDefinitionId" + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/PutRoleDefinition.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/PutRoleDefinition.json new file mode 100644 index 000000000000..104d71a2d1f3 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/PutRoleDefinition.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "scope": "scope", + "roleDefinitionId": "roleDefinitionId", + "roleDefinition": {}, + "body": { + "roleDefinition": { + "roleName": "Role name", + "description": "Role description", + "assignableScopes": [ + "/subscriptions/subId" + ], + "permissions": [ + { + "actions": [ + "action" + ], + "notActions": [], + "dataActions": [ + "dataAction" + ], + "notDataActions": [] + } + ], + "id": "/subscriptions/subID/providers/Microsoft.Authorization/roleDefinitions/roleDefinitionId", + "type": "Microsoft.Authorization/roleDefinitions", + "name": "roleDefinitionId" + } + }, + "api-version": "2022-04-01" + }, + "responses": { + "201": { + "body": { + "properties": { + "roleName": "Role name", + "type": "roletype", + "description": "Role description", + "assignableScopes": [ + "/subscriptions/subId" + ], + "permissions": [ + { + "actions": [ + "action" + ], + "notActions": [], + "dataActions": [ + "dataAction" + ], + "notDataActions": [] + } + ] + }, + "id": "/subscriptions/subID/providers/Microsoft.Authorization/roleDefinitions/roleDefinitionId", + "type": "Microsoft.Authorization/roleDefinitions", + "name": "roleDefinitionId" + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateById.json new file mode 100644 index 000000000000..9c6028ae5772 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateById.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "roleAssignmentId": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", + "api-version": "2022-04-01", + "parameters": { + "properties": { + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User", + "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" + }, + "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", + "type": "Microsoft.Authorization/roleAssignments", + "name": "b0f43c54-e787-4862-89b1-a653fa9cf747" + } + }, + "200": { + "body": { + "properties": { + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User", + "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" + }, + "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", + "type": "Microsoft.Authorization/roleAssignments", + "name": "b0f43c54-e787-4862-89b1-a653fa9cf747" + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResource.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResource.json new file mode 100644 index 000000000000..6fcca0cd292d --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResource.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "scope": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.DocumentDb/databaseAccounts/test-db-account", + "roleAssignmentName": "05c5a614-a7d6-4502-b150-c2fb455033ff", + "api-version": "2022-04-01", + "parameters": { + "properties": { + "roleDefinitionId": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User", + "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.DocumentDb/databaseAccounts/test-db-account" + }, + "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.DocumentDb/databaseAccounts/test-db-account/providers/Microsoft.Authorization/roleAssignments/05c5a614-a7d6-4502-b150-c2fb455033ff", + "type": "Microsoft.Authorization/roleAssignments", + "name": "05c5a614-a7d6-4502-b150-c2fb455033ff" + } + }, + "200": { + "body": { + "properties": { + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User", + "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.DocumentDb/databaseAccounts/test-db-account" + }, + "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.DocumentDb/databaseAccounts/test-db-account/providers/Microsoft.Authorization/roleAssignments/05c5a614-a7d6-4502-b150-c2fb455033ff", + "type": "Microsoft.Authorization/roleAssignments", + "name": "05c5a614-a7d6-4502-b150-c2fb455033ff" + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResourceGroup.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResourceGroup.json new file mode 100644 index 000000000000..ca738cbc9ed4 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResourceGroup.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "scope": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg", + "roleAssignmentName": "05c5a614-a7d6-4502-b150-c2fb455033ff", + "api-version": "2022-04-01", + "parameters": { + "properties": { + "roleDefinitionId": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User", + "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg" + }, + "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.Authorization/roleAssignments/05c5a614-a7d6-4502-b150-c2fb455033ff", + "type": "Microsoft.Authorization/roleAssignments", + "name": "05c5a614-a7d6-4502-b150-c2fb455033ff" + } + }, + "200": { + "body": { + "properties": { + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User", + "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg" + }, + "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.Authorization/roleAssignments/05c5a614-a7d6-4502-b150-c2fb455033ff", + "type": "Microsoft.Authorization/roleAssignments", + "name": "05c5a614-a7d6-4502-b150-c2fb455033ff" + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForSubscription.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForSubscription.json new file mode 100644 index 000000000000..a13fefb962bb --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForSubscription.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "scope": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2", + "roleAssignmentName": "05c5a614-a7d6-4502-b150-c2fb455033ff", + "api-version": "2022-04-01", + "parameters": { + "properties": { + "roleDefinitionId": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User", + "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" + }, + "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/05c5a614-a7d6-4502-b150-c2fb455033ff", + "type": "Microsoft.Authorization/roleAssignments", + "name": "05c5a614-a7d6-4502-b150-c2fb455033ff" + } + }, + "200": { + "body": { + "properties": { + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User", + "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" + }, + "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/05c5a614-a7d6-4502-b150-c2fb455033ff", + "type": "Microsoft.Authorization/roleAssignments", + "name": "05c5a614-a7d6-4502-b150-c2fb455033ff" + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Delete.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Delete.json new file mode 100644 index 000000000000..ffbf366543b3 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Delete.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "scope": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2", + "roleAssignmentName": "b0f43c54-e787-4862-89b1-a653fa9cf747", + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User", + "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" + }, + "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", + "type": "Microsoft.Authorization/roleAssignments", + "name": "b0f43c54-e787-4862-89b1-a653fa9cf747" + } + }, + "204": {} + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_DeleteById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_DeleteById.json new file mode 100644 index 000000000000..66790d37b8e6 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_DeleteById.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "roleAssignmentId": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User", + "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" + }, + "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", + "type": "Microsoft.Authorization/roleAssignments", + "name": "b0f43c54-e787-4862-89b1-a653fa9cf747" + } + }, + "204": {} + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Get.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Get.json new file mode 100644 index 000000000000..c8866df2f200 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Get.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "scope": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2", + "roleAssignmentName": "b0f43c54-e787-4862-89b1-a653fa9cf747", + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User", + "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" + }, + "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", + "type": "Microsoft.Authorization/roleAssignments", + "name": "b0f43c54-e787-4862-89b1-a653fa9cf747" + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_GetById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_GetById.json new file mode 100644 index 000000000000..e1dd75f88376 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_GetById.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "roleAssignmentId": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User", + "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" + }, + "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", + "type": "Microsoft.Authorization/roleAssignments", + "name": "b0f43c54-e787-4862-89b1-a653fa9cf747" + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResource.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResource.json new file mode 100644 index 000000000000..0b91338b0139 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResource.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "a925f2f7-5c63-4b7b-8799-25a5f97bc3b2", + "resourceGroupName": "testrg", + "resourceProviderNamespace": "Microsoft.DocumentDb", + "resourceType": "databaseAccounts", + "resourceName": "test-db-account", + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User", + "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" + }, + "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", + "type": "Microsoft.Authorization/roleAssignments", + "name": "b0f43c54-e787-4862-89b1-a653fa9cf747" + }, + { + "properties": { + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User", + "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg" + }, + "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.Authorization/roleAssignments/96786e4b-dede-4c2e-8736-8ab911987f08", + "type": "Microsoft.Authorization/roleAssignments", + "name": "96786e4b-dede-4c2e-8736-8ab911987f08" + }, + { + "properties": { + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User", + "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.DocumentDb/databaseAccounts/test-db-account" + }, + "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.DocumentDb/databaseAccounts/test-db-account/providers/Microsoft.Authorization/roleAssignments/05c5a614-a7d6-4502-b150-c2fb455033ff", + "type": "Microsoft.Authorization/roleAssignments", + "name": "05c5a614-a7d6-4502-b150-c2fb455033ff" + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResourceGroup.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResourceGroup.json new file mode 100644 index 000000000000..428b665a0e73 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResourceGroup.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "a925f2f7-5c63-4b7b-8799-25a5f97bc3b2", + "resourceGroupName": "testrg", + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User", + "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" + }, + "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", + "type": "Microsoft.Authorization/roleAssignments", + "name": "b0f43c54-e787-4862-89b1-a653fa9cf747" + }, + { + "properties": { + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User", + "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg" + }, + "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.Authorization/roleAssignments/96786e4b-dede-4c2e-8736-8ab911987f08", + "type": "Microsoft.Authorization/roleAssignments", + "name": "96786e4b-dede-4c2e-8736-8ab911987f08" + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForScope.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForScope.json new file mode 100644 index 000000000000..39ce0be373f4 --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForScope.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "scope": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2", + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User", + "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" + }, + "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", + "type": "Microsoft.Authorization/roleAssignments", + "name": "b0f43c54-e787-4862-89b1-a653fa9cf747" + } + ] + } + } + } +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForSubscription.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForSubscription.json new file mode 100644 index 000000000000..f715b08b3d3c --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForSubscription.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "a925f2f7-5c63-4b7b-8799-25a5f97bc3b2", + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", + "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", + "principalType": "User", + "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" + }, + "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", + "type": "Microsoft.Authorization/roleAssignments", + "name": "b0f43c54-e787-4862-89b1-a653fa9cf747" + } + ] + } + } + } +} From 5cf5b32258b0fcdc07315fe392761ee40c91f1fc Mon Sep 17 00:00:00 2001 From: veseshad92 <133261070+veseshad92@users.noreply.github.com> Date: Thu, 11 May 2023 12:48:15 -0700 Subject: [PATCH 02/42] Updates readme --- .../authorization/resource-manager/readme.md | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) mode change 100755 => 100644 specification/authorization/resource-manager/readme.md diff --git a/specification/authorization/resource-manager/readme.md b/specification/authorization/resource-manager/readme.md old mode 100755 new mode 100644 index bd71d332e033..3efed67e9816 --- a/specification/authorization/resource-manager/readme.md +++ b/specification/authorization/resource-manager/readme.md @@ -26,7 +26,7 @@ These are the global settings for the Authorization API. ``` yaml openapi-type: arm -tag: package-2021-12-01-preview-only +tag: package-preview-2022-05 ``` ### Suppression @@ -82,6 +82,19 @@ directive: reason: common-types doesn't need to reference api version. ``` + +### Tag: package-preview-2022-05 + +These settings apply only when `--tag=package-preview-2022-05` is specified on the command line. + +```yaml $(tag) == 'package-preview-2022-05' +input-file: + - Microsoft.Authorization/preview/2022-05-01-preview/authorization-DenyAssignmentCalls.json + - Microsoft.Authorization/preview/2022-05-01-preview/authorization-ProviderOperationsCalls.json + - Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleAssignmentsCalls.json + - Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json + - Microsoft.Authorization/preview/2022-05-01-preview/common-types.json +``` ### Tag: package-2021-12-01-preview-only These settings apply only when `--tag=package-2021-12-01-preview-only` is specified on the command line. @@ -174,7 +187,7 @@ input-file: These settings apply only when `--tag=package-2022-04-01-preview-only` is specified on the command line. -```yaml $(tag) == 'package-2022-04-01-preview-only' +``` yaml $(tag) == 'package-2022-04-01-preview-only' input-file: - Microsoft.Authorization/preview/2022-04-01-preview/RoleAssignmentScheduleRequest.json - Microsoft.Authorization/preview/2022-04-01-preview/RoleEligibilityScheduleRequest.json @@ -184,20 +197,20 @@ input-file: These settings apply only when `--tag=package-2022-08-01-preview-only` is specified on the command line. -```yaml $(tag) == 'package-2022-08-01-preview-only' +``` yaml $(tag) == 'package-2022-08-01-preview-only' input-file: - Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json ``` - ### Tag: package-preview-2021-11 These settings apply only when `--tag=package-preview-2021-11` is specified on the command line. -```yaml $(tag) == 'package-preview-2021-11' +``` yaml $(tag) == 'package-preview-2021-11' input-file: - Microsoft.Authorization/preview/2021-11-16-preview/authorization-AccessReviewCalls.json ``` + ### 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. From 63ce90c1166dbc24e3da9ced1b7916fd8ea02d06 Mon Sep 17 00:00:00 2001 From: veseshad92 <133261070+veseshad92@users.noreply.github.com> Date: Thu, 11 May 2023 12:48:19 -0700 Subject: [PATCH 03/42] Updates API version in new specs and examples --- .../2022-05-01-preview/authorization-DenyAssignmentCalls.json | 2 +- .../authorization-ProviderOperationsCalls.json | 2 +- .../2022-05-01-preview/authorization-RoleAssignmentsCalls.json | 2 +- .../2022-05-01-preview/authorization-RoleDefinitionsCalls.json | 2 +- .../preview/2022-05-01-preview/common-types.json | 2 +- .../2022-05-01-preview/examples/DeleteRoleDefinition.json | 2 +- .../2022-05-01-preview/examples/GetAllDenyAssignments.json | 2 +- .../2022-05-01-preview/examples/GetAllProviderOperations.json | 2 +- .../2022-05-01-preview/examples/GetDenyAssignmentById.json | 2 +- .../2022-05-01-preview/examples/GetDenyAssignmentByNameId.json | 2 +- .../2022-05-01-preview/examples/GetDenyAssignmentByScope.json | 2 +- .../examples/GetDenyAssignmentsForResource.json | 2 +- .../examples/GetDenyAssignmentsForResourceGroup.json | 2 +- .../preview/2022-05-01-preview/examples/GetPermissions.json | 2 +- .../2022-05-01-preview/examples/GetProviderOperationsRP.json | 2 +- .../2022-05-01-preview/examples/GetResourcePermissions.json | 2 +- .../2022-05-01-preview/examples/GetRoleDefinitionAtScope.json | 2 +- .../2022-05-01-preview/examples/GetRoleDefinitionById.json | 2 +- .../2022-05-01-preview/examples/GetRoleDefinitionByName.json | 2 +- .../preview/2022-05-01-preview/examples/PutRoleDefinition.json | 2 +- .../2022-05-01-preview/examples/RoleAssignments_CreateById.json | 2 +- .../examples/RoleAssignments_CreateForResource.json | 2 +- .../examples/RoleAssignments_CreateForResourceGroup.json | 2 +- .../examples/RoleAssignments_CreateForSubscription.json | 2 +- .../2022-05-01-preview/examples/RoleAssignments_Delete.json | 2 +- .../2022-05-01-preview/examples/RoleAssignments_DeleteById.json | 2 +- .../2022-05-01-preview/examples/RoleAssignments_Get.json | 2 +- .../2022-05-01-preview/examples/RoleAssignments_GetById.json | 2 +- .../examples/RoleAssignments_ListForResource.json | 2 +- .../examples/RoleAssignments_ListForResourceGroup.json | 2 +- .../examples/RoleAssignments_ListForScope.json | 2 +- .../examples/RoleAssignments_ListForSubscription.json | 2 +- 32 files changed, 32 insertions(+), 32 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-DenyAssignmentCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-DenyAssignmentCalls.json index 9829252c1148..abcfc23efd54 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-DenyAssignmentCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-DenyAssignmentCalls.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "AuthorizationManagementClient", - "version": "2022-04-01", + "version": "2022-05-01-preview", "description": "Role based access control provides you a way to apply granular level policy administration down to individual resources or resource groups. These operations enable you to get deny assignments. A deny assignment describes the set of actions on resources that are denied for Azure Active Directory users." }, "host": "management.azure.com", diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-ProviderOperationsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-ProviderOperationsCalls.json index 233a36b80ed0..12f51440ad07 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-ProviderOperationsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-ProviderOperationsCalls.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "AuthorizationManagementClient", - "version": "2022-04-01", + "version": "2022-05-01-preview", "description": "Role based access control provides you a way to apply granular level policy administration down to individual resources or resource groups. These calls handle provider operations." }, "host": "management.azure.com", diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleAssignmentsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleAssignmentsCalls.json index 872d7bf2be81..5a8f09e77bf9 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleAssignmentsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleAssignmentsCalls.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "AuthorizationManagementClient", - "version": "2022-04-01", + "version": "2022-05-01-preview", "description": "Role based access control provides you a way to apply granular level policy administration down to individual resources or resource groups. These operations enable you to manage role assignments. A role assignment grants access to Azure Active Directory users." }, "host": "management.azure.com", diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index 6222e0075585..21fe8936e834 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "AuthorizationManagementClient", - "version": "2022-04-01", + "version": "2022-05-01-preview", "description": "Role based access control provides you a way to apply granular level policy administration down to individual resources or resource groups. These operations allow you to manage role definitions. A role definition describes the set of actions that can be performed on resources." }, "host": "management.azure.com", diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json index 1e4cc930b2e1..ca16cdc4707e 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-04-01", + "version": "2022-05-01-preview", "title": "AuthorizationManagementClient" }, "securityDefinitions": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/DeleteRoleDefinition.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/DeleteRoleDefinition.json index a0de0e85d339..a39bc3eaaf58 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/DeleteRoleDefinition.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/DeleteRoleDefinition.json @@ -2,7 +2,7 @@ "parameters": { "scope": "scope", "roleDefinitionId": "roleDefinitionId", - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllDenyAssignments.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllDenyAssignments.json index f97708a40ed0..87c6f3f46a64 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllDenyAssignments.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllDenyAssignments.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "subId", - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllProviderOperations.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllProviderOperations.json index deeb1f8701af..9e3a0abc1077 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllProviderOperations.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllProviderOperations.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentById.json index 5d2c240c1aba..6313d67c6dc3 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentById.json @@ -1,7 +1,7 @@ { "parameters": { "denyAssignmentId": "subscriptions/subId/resourcegroups/rgname/providers/Microsoft.Authorization/denyAssignments/daId", - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByNameId.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByNameId.json index 429ea8cdb7a2..a77a68aca8b2 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByNameId.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByNameId.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/subId/resourcegroups/rgname", "denyAssignmentId": "denyAssignmentId", - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByScope.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByScope.json index 370b2cf24ad4..507179808d3d 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByScope.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByScope.json @@ -1,7 +1,7 @@ { "parameters": { "scope": "subscriptions/subId", - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResource.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResource.json index 5494cb622b5d..bf0d4b75b305 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResource.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResource.json @@ -6,7 +6,7 @@ "parentResourcePath": "parentResourcePath", "resourceType": "resourceType", "resourceName": "resourceName", - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResourceGroup.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResourceGroup.json index fe570ce9efaf..32ded39a05ee 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResourceGroup.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "subId", "resourceGroupName": "rgname", - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetPermissions.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetPermissions.json index cca798f2f4c7..922c1c6f348b 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetPermissions.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetPermissions.json @@ -2,7 +2,7 @@ "parameters": { "resourceGroupName": "rgname", "subscriptionId": "subID", - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetProviderOperationsRP.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetProviderOperationsRP.json index 527519a3ce68..760aa74b9770 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetProviderOperationsRP.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetProviderOperationsRP.json @@ -1,7 +1,7 @@ { "parameters": { "resourceProviderNamespace": "resourceProviderNamespace", - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetResourcePermissions.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetResourcePermissions.json index e8236c21e9b3..072161b8f734 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetResourcePermissions.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetResourcePermissions.json @@ -6,7 +6,7 @@ "parentResourcePath": "parentResourcePath", "resourceType": "resourceType", "resourceName": "resourceName", - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionAtScope.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionAtScope.json index d8a2d799c716..339f9f9c418d 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionAtScope.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionAtScope.json @@ -1,7 +1,7 @@ { "parameters": { "scope": "scope", - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionById.json index 6bac7e410f4b..c8cf3fd93d6e 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionById.json @@ -1,7 +1,7 @@ { "parameters": { "roleId": "roleDefinitionId", - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionByName.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionByName.json index 5dbec233d731..0ad4279018a1 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionByName.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionByName.json @@ -2,7 +2,7 @@ "parameters": { "scope": "scope", "roleDefinitionId": "roleDefinitionId", - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/PutRoleDefinition.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/PutRoleDefinition.json index 104d71a2d1f3..9e6a0d763a35 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/PutRoleDefinition.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/PutRoleDefinition.json @@ -27,7 +27,7 @@ "name": "roleDefinitionId" } }, - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "201": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateById.json index 9c6028ae5772..54751946686b 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateById.json @@ -1,7 +1,7 @@ { "parameters": { "roleAssignmentId": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", - "api-version": "2022-04-01", + "api-version": "2022-05-01-preview", "parameters": { "properties": { "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResource.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResource.json index 6fcca0cd292d..04e29d9e552a 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResource.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResource.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.DocumentDb/databaseAccounts/test-db-account", "roleAssignmentName": "05c5a614-a7d6-4502-b150-c2fb455033ff", - "api-version": "2022-04-01", + "api-version": "2022-05-01-preview", "parameters": { "properties": { "roleDefinitionId": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResourceGroup.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResourceGroup.json index ca738cbc9ed4..5d3bbcdf1cad 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResourceGroup.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg", "roleAssignmentName": "05c5a614-a7d6-4502-b150-c2fb455033ff", - "api-version": "2022-04-01", + "api-version": "2022-05-01-preview", "parameters": { "properties": { "roleDefinitionId": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForSubscription.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForSubscription.json index a13fefb962bb..9a0ae94a951e 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForSubscription.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForSubscription.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2", "roleAssignmentName": "05c5a614-a7d6-4502-b150-c2fb455033ff", - "api-version": "2022-04-01", + "api-version": "2022-05-01-preview", "parameters": { "properties": { "roleDefinitionId": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Delete.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Delete.json index ffbf366543b3..a558a3b23f7b 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Delete.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Delete.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2", "roleAssignmentName": "b0f43c54-e787-4862-89b1-a653fa9cf747", - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_DeleteById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_DeleteById.json index 66790d37b8e6..e181b7445966 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_DeleteById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_DeleteById.json @@ -1,7 +1,7 @@ { "parameters": { "roleAssignmentId": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Get.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Get.json index c8866df2f200..261407276c97 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Get.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Get.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2", "roleAssignmentName": "b0f43c54-e787-4862-89b1-a653fa9cf747", - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_GetById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_GetById.json index e1dd75f88376..86fcd6fa3847 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_GetById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_GetById.json @@ -1,7 +1,7 @@ { "parameters": { "roleAssignmentId": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResource.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResource.json index 0b91338b0139..ccd0642b29d0 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResource.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResource.json @@ -5,7 +5,7 @@ "resourceProviderNamespace": "Microsoft.DocumentDb", "resourceType": "databaseAccounts", "resourceName": "test-db-account", - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResourceGroup.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResourceGroup.json index 428b665a0e73..57d7e7b90ba1 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResourceGroup.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "a925f2f7-5c63-4b7b-8799-25a5f97bc3b2", "resourceGroupName": "testrg", - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForScope.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForScope.json index 39ce0be373f4..f0c5e5aaf4cd 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForScope.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForScope.json @@ -1,7 +1,7 @@ { "parameters": { "scope": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2", - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForSubscription.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForSubscription.json index f715b08b3d3c..ced1747329cc 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForSubscription.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForSubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "a925f2f7-5c63-4b7b-8799-25a5f97bc3b2", - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": { From c3479eac93f08caa1e86925d670b11fff66cfbad Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Thu, 11 May 2023 14:59:46 -0700 Subject: [PATCH 04/42] Update swagger Docs for Roledefintiion condition in payload --- .../authorization-DenyAssignmentCalls.json | 538 ------------- ...authorization-ProviderOperationsCalls.json | 249 ------ .../authorization-RoleAssignmentsCalls.json | 734 ------------------ .../authorization-RoleDefinitionsCalls.json | 12 +- .../2022-05-01-preview/common-types.json | 2 +- .../resource-manager/readme.csharp.md | 12 + .../authorization/resource-manager/readme.md | 33 +- 7 files changed, 51 insertions(+), 1529 deletions(-) delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-DenyAssignmentCalls.json delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-ProviderOperationsCalls.json delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleAssignmentsCalls.json diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-DenyAssignmentCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-DenyAssignmentCalls.json deleted file mode 100644 index abcfc23efd54..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-DenyAssignmentCalls.json +++ /dev/null @@ -1,538 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "AuthorizationManagementClient", - "version": "2022-05-01-preview", - "description": "Role based access control provides you a way to apply granular level policy administration down to individual resources or resource groups. These operations enable you to get deny assignments. A deny assignment describes the set of actions on resources that are denied for Azure Active Directory users." - }, - "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": { - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/denyAssignments": { - "get": { - "tags": [ - "DenyAssignments" - ], - "operationId": "DenyAssignments_ListForResource", - "description": "Gets deny assignments for a resource.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ResourceProviderNamespaceParameter" - }, - { - "name": "parentResourcePath", - "in": "path", - "required": true, - "type": "string", - "description": "The parent resource identity.", - "x-ms-skip-url-encoding": true - }, - { - "name": "resourceType", - "in": "path", - "required": true, - "type": "string", - "description": "The resource type of the resource.", - "x-ms-skip-url-encoding": true - }, - { - "name": "resourceName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource to get deny assignments for." - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/FilterParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns an array of deny assignments.", - "schema": { - "$ref": "#/definitions/DenyAssignmentListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/DenyAssignmentFilter", - "x-ms-examples": { - "List deny assignments for resource": { - "$ref": "./examples/GetDenyAssignmentsForResource.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/denyAssignments": { - "get": { - "tags": [ - "DenyAssignments" - ], - "operationId": "DenyAssignments_ListForResourceGroup", - "description": "Gets deny assignments for a resource group.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/FilterParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns an array of deny assignments.", - "schema": { - "$ref": "#/definitions/DenyAssignmentListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/DenyAssignmentFilter", - "x-ms-examples": { - "List deny assignments for resource group": { - "$ref": "./examples/GetDenyAssignmentsForResourceGroup.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/denyAssignments": { - "get": { - "tags": [ - "DenyAssignments" - ], - "operationId": "DenyAssignments_List", - "description": "Gets all deny assignments for the subscription.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/FilterParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns an array of deny assignments.", - "schema": { - "$ref": "#/definitions/DenyAssignmentListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/DenyAssignmentFilter", - "x-ms-examples": { - "List deny assignments for subscription": { - "$ref": "./examples/GetAllDenyAssignments.json" - } - } - } - }, - "/{scope}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId}": { - "get": { - "tags": [ - "DenyAssignments" - ], - "operationId": "DenyAssignments_Get", - "description": "Get the specified deny assignment.", - "parameters": [ - { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The scope of the deny assignment.", - "x-ms-skip-url-encoding": true - }, - { - "name": "denyAssignmentId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the deny assignment to get." - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns information about the deny assignment.", - "schema": { - "$ref": "#/definitions/DenyAssignment" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get deny assignment by name": { - "$ref": "./examples/GetDenyAssignmentByNameId.json" - } - } - } - }, - "/{denyAssignmentId}": { - "get": { - "tags": [ - "DenyAssignments" - ], - "operationId": "DenyAssignments_GetById", - "description": "Gets a deny assignment by ID.", - "parameters": [ - { - "name": "denyAssignmentId", - "in": "path", - "required": true, - "type": "string", - "description": "The fully qualified deny assignment ID. For example, use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for subscription level deny assignments, or /providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for tenant level deny assignments.", - "x-ms-skip-url-encoding": true - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns the deny assignment.", - "schema": { - "$ref": "#/definitions/DenyAssignment" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get deny assignment by ID": { - "$ref": "./examples/GetDenyAssignmentById.json" - } - } - } - }, - "/{scope}/providers/Microsoft.Authorization/denyAssignments": { - "get": { - "tags": [ - "DenyAssignments" - ], - "operationId": "DenyAssignments_ListForScope", - "description": "Gets deny assignments for a scope.", - "parameters": [ - { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The scope of the deny assignments.", - "x-ms-skip-url-encoding": true - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/FilterParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns an array of deny assignments.", - "schema": { - "$ref": "#/definitions/DenyAssignmentListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/DenyAssignmentFilter", - "x-ms-examples": { - "List deny assignments for scope": { - "$ref": "./examples/GetDenyAssignmentByScope.json" - } - } - } - } - }, - "definitions": { - "DenyAssignmentFilter": { - "properties": { - "denyAssignmentName": { - "type": "string", - "description": "Return deny assignment with specified name." - }, - "principalId": { - "type": "string", - "description": "Return all deny assignments where the specified principal is listed in the principals list of deny assignments." - }, - "gdprExportPrincipalId": { - "type": "string", - "description": "Return all deny assignments where the specified principal is listed either in the principals list or exclude principals list of deny assignments." - } - }, - "type": "object", - "description": "Deny Assignments filter" - }, - "DenyAssignmentProperties": { - "properties": { - "denyAssignmentName": { - "type": "string", - "description": "The display name of the deny assignment." - }, - "description": { - "type": "string", - "description": "The description of the deny assignment." - }, - "permissions": { - "type": "array", - "items": { - "$ref": "#/definitions/DenyAssignmentPermission" - }, - "x-ms-identifiers": [], - "description": "An array of permissions that are denied by the deny assignment." - }, - "scope": { - "type": "string", - "description": "The deny assignment scope." - }, - "doNotApplyToChildScopes": { - "type": "boolean", - "description": "Determines if the deny assignment applies to child scopes. Default value is false." - }, - "principals": { - "type": "array", - "items": { - "$ref": "./common-types.json#/definitions/Principal" - }, - "description": "Array of principals to which the deny assignment applies." - }, - "excludePrincipals": { - "type": "array", - "items": { - "$ref": "./common-types.json#/definitions/Principal" - }, - "description": "Array of principals to which the deny assignment does not apply." - }, - "isSystemProtected": { - "type": "boolean", - "description": "Specifies whether this deny assignment was created by Azure and cannot be edited or deleted." - }, - "condition": { - "type": "string", - "description": "The conditions on the deny assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'" - }, - "conditionVersion": { - "type": "string", - "description": "Version of the condition." - }, - "createdOn": { - "readOnly": true, - "type": "string", - "description": "Time it was created", - "format": "date-time" - }, - "updatedOn": { - "readOnly": true, - "type": "string", - "description": "Time it was updated", - "format": "date-time" - }, - "createdBy": { - "readOnly": true, - "type": "string", - "description": "Id of the user who created the assignment" - }, - "updatedBy": { - "readOnly": true, - "type": "string", - "description": "Id of the user who updated the assignment" - } - }, - "type": "object", - "description": "Deny assignment properties." - }, - "DenyAssignment": { - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "The deny assignment ID." - }, - "name": { - "type": "string", - "readOnly": true, - "description": "The deny assignment name." - }, - "type": { - "type": "string", - "readOnly": true, - "description": "The deny assignment type." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DenyAssignmentProperties", - "description": "Deny assignment properties." - } - }, - "type": "object", - "description": "Deny Assignment" - }, - "DenyAssignmentListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/DenyAssignment" - }, - "description": "Deny assignment list." - }, - "nextLink": { - "type": "string", - "description": "The URL to use for getting the next set of results." - } - }, - "type": "object", - "description": "Deny assignment list operation result." - }, - "DenyAssignmentPermission": { - "properties": { - "actions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Actions to which the deny assignment does not grant access." - }, - "notActions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Actions to exclude from that the deny assignment does not grant access." - }, - "dataActions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Data actions to which the deny assignment does not grant access." - }, - "notDataActions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Data actions to exclude from that the deny assignment does not grant access." - }, - "condition": { - "type": "string", - "description": "The conditions on the Deny assignment permission. This limits the resources it applies to." - }, - "conditionVersion": { - "type": "string", - "description": "Version of the condition." - } - }, - "type": "object", - "description": "Deny assignment permissions." - } - }, - "parameters": { - "ResourceProviderNamespaceParameter": { - "name": "resourceProviderNamespace", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace of the resource provider.", - "x-ms-skip-url-encoding": true, - "x-ms-parameter-location": "method" - }, - "FilterParameter": { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. This filter is different from the principalId filter as it returns not only those deny assignments that contain the specified principal is the Principals list but also those deny assignments that contain the specified principal is the ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and description properties are returned.", - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-ProviderOperationsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-ProviderOperationsCalls.json deleted file mode 100644 index 12f51440ad07..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-ProviderOperationsCalls.json +++ /dev/null @@ -1,249 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "AuthorizationManagementClient", - "version": "2022-05-01-preview", - "description": "Role based access control provides you a way to apply granular level policy administration down to individual resources or resource groups. These calls handle provider operations." - }, - "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/providerOperations/{resourceProviderNamespace}": { - "get": { - "tags": [ - "ProviderOperationsMetadata" - ], - "operationId": "ProviderOperationsMetadata_Get", - "description": "Gets provider operations metadata for the specified resource provider.", - "parameters": [ - { - "$ref": "#/parameters/ResourceProviderNamespaceParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "$expand", - "in": "query", - "required": false, - "type": "string", - "default": "resourceTypes", - "description": "Specifies whether to expand the values." - } - ], - "responses": { - "200": { - "description": "OK - Returns the operations metadata.", - "schema": { - "$ref": "#/definitions/ProviderOperationsMetadata" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "List provider operations metadata for resource provider": { - "$ref": "./examples/GetProviderOperationsRP.json" - } - } - } - }, - "/providers/Microsoft.Authorization/providerOperations": { - "get": { - "tags": [ - "ProviderOperationsMetadata" - ], - "operationId": "ProviderOperationsMetadata_List", - "description": "Gets provider operations metadata for all resource providers.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "name": "$expand", - "in": "query", - "required": false, - "type": "string", - "default": "resourceTypes", - "description": "Specifies whether to expand the values." - } - ], - "responses": { - "200": { - "description": "OK - Returns an array of the operations metadata.", - "schema": { - "$ref": "#/definitions/ProviderOperationsMetadataListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List provider operations metadata for all resource providers": { - "$ref": "./examples/GetAllProviderOperations.json" - } - } - } - } - }, - "definitions": { - "ResourceType": { - "properties": { - "name": { - "type": "string", - "description": "The resource type name." - }, - "displayName": { - "type": "string", - "description": "The resource type display name." - }, - "operations": { - "type": "array", - "items": { - "$ref": "#/definitions/ProviderOperation" - }, - "x-ms-identifiers": [], - "description": "The resource type operations." - } - }, - "type": "object", - "description": "Resource Type" - }, - "ProviderOperation": { - "properties": { - "name": { - "type": "string", - "description": "The operation name." - }, - "displayName": { - "type": "string", - "description": "The operation display name." - }, - "description": { - "type": "string", - "description": "The operation description." - }, - "origin": { - "type": "string", - "description": "The operation origin." - }, - "properties": { - "type": "object", - "x-ms-client-flatten": true, - "description": "The operation properties." - }, - "isDataAction": { - "type": "boolean", - "description": "The dataAction flag to specify the operation type." - } - }, - "type": "object", - "description": "Operation" - }, - "ProviderOperationsMetadata": { - "properties": { - "id": { - "type": "string", - "description": "The provider id." - }, - "name": { - "type": "string", - "description": "The provider name." - }, - "type": { - "type": "string", - "description": "The provider type." - }, - "displayName": { - "type": "string", - "description": "The provider display name." - }, - "resourceTypes": { - "type": "array", - "items": { - "$ref": "#/definitions/ResourceType" - }, - "x-ms-identifiers": [ - "name" - ], - "description": "The provider resource types" - }, - "operations": { - "type": "array", - "items": { - "$ref": "#/definitions/ProviderOperation" - }, - "x-ms-identifiers": [], - "description": "The provider operations." - } - }, - "type": "object", - "description": "Provider Operations metadata" - }, - "ProviderOperationsMetadataListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ProviderOperationsMetadata" - }, - "description": "The list of providers." - }, - "nextLink": { - "type": "string", - "description": "The URL to use for getting the next set of results." - } - }, - "type": "object", - "description": "Provider operations metadata list" - } - }, - "parameters": { - "ResourceProviderNamespaceParameter": { - "name": "resourceProviderNamespace", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace of the resource provider.", - "x-ms-skip-url-encoding": true, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleAssignmentsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleAssignmentsCalls.json deleted file mode 100644 index 5a8f09e77bf9..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleAssignmentsCalls.json +++ /dev/null @@ -1,734 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "AuthorizationManagementClient", - "version": "2022-05-01-preview", - "description": "Role based access control provides you a way to apply granular level policy administration down to individual resources or resource groups. These operations enable you to manage role assignments. A role assignment grants access to Azure Active Directory users." - }, - "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": { - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/roleAssignments": { - "get": { - "tags": [ - "RoleAssignments" - ], - "operationId": "RoleAssignments_ListForSubscription", - "description": "List all role assignments that apply to a subscription.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/RoleAssignmentFilterParameter" - }, - { - "$ref": "#/parameters/TenantIdQueryParameter" - } - ], - "responses": { - "200": { - "description": "Returns an array of role assignments.", - "schema": { - "$ref": "#/definitions/RoleAssignmentListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-odata": "#/definitions/RoleAssignmentFilter", - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List role assignments for subscription": { - "$ref": "./examples/RoleAssignments_ListForSubscription.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/roleAssignments": { - "get": { - "tags": [ - "RoleAssignments" - ], - "operationId": "RoleAssignments_ListForResourceGroup", - "description": "List all role assignments that apply to a resource group.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/RoleAssignmentFilterParameter" - }, - { - "$ref": "#/parameters/TenantIdQueryParameter" - } - ], - "responses": { - "200": { - "description": "Returns an array of role assignments.", - "schema": { - "$ref": "#/definitions/RoleAssignmentListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-odata": "#/definitions/RoleAssignmentFilter", - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List role assignments for resource group": { - "$ref": "./examples/RoleAssignments_ListForResourceGroup.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/roleAssignments": { - "get": { - "tags": [ - "RoleAssignments" - ], - "operationId": "RoleAssignments_ListForResource", - "description": "List all role assignments that apply to a resource.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "./common-types.json#/parameters/ResourceProviderNamespaceParameter" - }, - { - "$ref": "./common-types.json#/parameters/ResourceTypeParameter" - }, - { - "$ref": "./common-types.json#/parameters/ResourceNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/RoleAssignmentFilterParameter" - }, - { - "$ref": "#/parameters/TenantIdQueryParameter" - } - ], - "responses": { - "200": { - "description": "Returns an array of role assignments.", - "schema": { - "$ref": "#/definitions/RoleAssignmentListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-odata": "#/definitions/RoleAssignmentFilter", - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-examples": { - "List role assignments for a resource": { - "$ref": "./examples/RoleAssignments_ListForResource.json" - } - } - } - }, - "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}": { - "get": { - "tags": [ - "RoleAssignments" - ], - "operationId": "RoleAssignments_Get", - "description": "Get a role assignment by scope and name.", - "parameters": [ - { - "$ref": "./common-types.json#/parameters/ScopeParameter" - }, - { - "$ref": "#/parameters/RoleAssignmentNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/TenantIdQueryParameter" - } - ], - "responses": { - "200": { - "description": "Returns the role assignment.", - "schema": { - "$ref": "#/definitions/RoleAssignment" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get role assignment by scope and name": { - "$ref": "./examples/RoleAssignments_Get.json" - } - } - }, - "put": { - "tags": [ - "RoleAssignments" - ], - "operationId": "RoleAssignments_Create", - "description": "Create or update a role assignment by scope and name.", - "parameters": [ - { - "$ref": "./common-types.json#/parameters/ScopeParameter" - }, - { - "$ref": "#/parameters/RoleAssignmentNameParameter" - }, - { - "$ref": "#/parameters/RoleAssignmentCreateParameters" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "201": { - "description": "Returns the role assignment.", - "schema": { - "$ref": "#/definitions/RoleAssignment" - } - }, - "200": { - "description": "Returns the role assignment.", - "schema": { - "$ref": "#/definitions/RoleAssignment" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Create role assignment for subscription": { - "$ref": "./examples/RoleAssignments_CreateForSubscription.json" - }, - "Create role assignment for resource group": { - "$ref": "./examples/RoleAssignments_CreateForResourceGroup.json" - }, - "Create role assignment for resource": { - "$ref": "./examples/RoleAssignments_CreateForResource.json" - } - } - }, - "delete": { - "tags": [ - "RoleAssignments" - ], - "operationId": "RoleAssignments_Delete", - "description": "Delete a role assignment by scope and name.", - "parameters": [ - { - "$ref": "./common-types.json#/parameters/ScopeParameter" - }, - { - "$ref": "#/parameters/RoleAssignmentNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/TenantIdQueryParameter" - } - ], - "responses": { - "200": { - "description": "Returns the deleted role assignment.", - "schema": { - "$ref": "#/definitions/RoleAssignment" - } - }, - "204": { - "description": "Role assignment was already deleted or does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Delete role assignment": { - "$ref": "./examples/RoleAssignments_Delete.json" - } - } - } - }, - "/{scope}/providers/Microsoft.Authorization/roleAssignments": { - "get": { - "tags": [ - "RoleAssignments" - ], - "operationId": "RoleAssignments_ListForScope", - "description": "List all role assignments that apply to a scope.", - "parameters": [ - { - "$ref": "./common-types.json#/parameters/ScopeParameter" - }, - { - "$ref": "#/parameters/RoleAssignmentFilterParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/TenantIdQueryParameter" - }, - { - "$ref": "#/parameters/PaginationSkipToken" - } - ], - "responses": { - "200": { - "description": "Returns an array of role assignments.", - "schema": { - "$ref": "#/definitions/RoleAssignmentListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "#/definitions/RoleAssignmentFilter", - "x-ms-examples": { - "List role assignments for scope": { - "$ref": "./examples/RoleAssignments_ListForScope.json" - } - } - } - }, - "/{roleAssignmentId}": { - "get": { - "tags": [ - "RoleAssignments" - ], - "operationId": "RoleAssignments_GetById", - "description": "Get a role assignment by ID.", - "parameters": [ - { - "$ref": "#/parameters/RoleAssignmentIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/TenantIdQueryParameter" - } - ], - "responses": { - "200": { - "description": "Returns the role assignment.", - "schema": { - "$ref": "#/definitions/RoleAssignment" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get role assignment by ID": { - "$ref": "./examples/RoleAssignments_GetById.json" - } - } - }, - "put": { - "tags": [ - "RoleAssignments" - ], - "operationId": "RoleAssignments_CreateById", - "description": "Create or update a role assignment by ID.", - "parameters": [ - { - "$ref": "#/parameters/RoleAssignmentIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/RoleAssignmentCreateParameters" - } - ], - "responses": { - "201": { - "description": "Returns the role assignment.", - "schema": { - "$ref": "#/definitions/RoleAssignment" - } - }, - "200": { - "description": "Returns the role assignment.", - "schema": { - "$ref": "#/definitions/RoleAssignment" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Create or update role assignment by ID": { - "$ref": "./examples/RoleAssignments_CreateById.json" - } - } - }, - "delete": { - "tags": [ - "RoleAssignments" - ], - "operationId": "RoleAssignments_DeleteById", - "description": "Delete a role assignment by ID.", - "parameters": [ - { - "$ref": "#/parameters/RoleAssignmentIdParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/TenantIdQueryParameter" - } - ], - "responses": { - "200": { - "description": "Returns the deleted role assignment.", - "schema": { - "$ref": "#/definitions/RoleAssignment" - } - }, - "204": { - "description": "Role assignment already deleted or does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Delete role assignment by ID": { - "$ref": "./examples/RoleAssignments_DeleteById.json" - } - } - } - } - }, - "definitions": { - "ValidationResponseErrorInfo": { - "type": "object", - "description": "Failed validation result details", - "properties": { - "code": { - "readOnly": true, - "type": "string", - "description": "Error code indicating why validation failed" - }, - "message": { - "readOnly": true, - "type": "string", - "description": "Message indicating why validation failed" - } - } - }, - "ValidationResponse": { - "type": "object", - "description": "Validation response", - "properties": { - "isValid": { - "readOnly": true, - "type": "boolean", - "description": "Whether or not validation succeeded" - }, - "errorInfo": { - "description": "Failed validation result details", - "$ref": "#/definitions/ValidationResponseErrorInfo" - } - } - }, - "RoleAssignmentFilter": { - "properties": { - "principalId": { - "type": "string", - "description": "Returns role assignment of the specific principal." - } - }, - "type": "object", - "description": "Role Assignments filter" - }, - "RoleAssignmentListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/RoleAssignment" - }, - "description": "Role assignment list." - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "The skipToken to use for getting the next set of results." - } - }, - "type": "object", - "description": "Role assignment list operation result." - }, - "RoleAssignmentProperties": { - "properties": { - "scope": { - "readOnly": true, - "type": "string", - "description": "The role assignment scope." - }, - "roleDefinitionId": { - "type": "string", - "description": "The role definition ID." - }, - "principalId": { - "type": "string", - "description": "The principal ID." - }, - "principalType": { - "type": "string", - "description": "The principal type of the assigned principal ID.", - "enum": [ - "User", - "Group", - "ServicePrincipal", - "ForeignGroup", - "Device" - ], - "default": "User", - "x-ms-enum": { - "name": "PrincipalType", - "modelAsString": true - } - }, - "description": { - "type": "string", - "description": "Description of role assignment" - }, - "condition": { - "type": "string", - "description": "The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'" - }, - "conditionVersion": { - "type": "string", - "description": "Version of the condition. Currently the only accepted value is '2.0'" - }, - "createdOn": { - "readOnly": true, - "type": "string", - "description": "Time it was created", - "format": "date-time" - }, - "updatedOn": { - "readOnly": true, - "type": "string", - "description": "Time it was updated", - "format": "date-time" - }, - "createdBy": { - "readOnly": true, - "type": "string", - "description": "Id of the user who created the assignment" - }, - "updatedBy": { - "readOnly": true, - "type": "string", - "description": "Id of the user who updated the assignment" - }, - "delegatedManagedIdentityResourceId": { - "type": "string", - "description": "Id of the delegated managed identity resource" - } - }, - "required": [ - "roleDefinitionId", - "principalId" - ], - "type": "object", - "description": "Role assignment properties." - }, - "RoleAssignment": { - "x-ms-azure-resource": true, - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "The role assignment ID." - }, - "name": { - "type": "string", - "readOnly": true, - "description": "The role assignment name." - }, - "type": { - "type": "string", - "readOnly": true, - "description": "The role assignment type." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/RoleAssignmentProperties", - "description": "Role assignment properties." - } - }, - "type": "object", - "description": "Role Assignments" - }, - "RoleAssignmentCreateParameters": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/RoleAssignmentProperties", - "description": "Role assignment properties." - } - }, - "required": [ - "properties" - ], - "type": "object", - "description": "Role assignment create parameters." - } - }, - "parameters": { - "RoleAssignmentFilterParameter": { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId eq {id} to return all role assignments at, above or below the scope for the specified principal.", - "x-ms-skip-url-encoding": true, - "x-ms-parameter-location": "method" - }, - "RoleAssignmentNameParameter": { - "name": "roleAssignmentName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the role assignment. It can be any valid GUID.", - "x-ms-skip-url-encoding": true, - "x-ms-parameter-location": "method" - }, - "RoleAssignmentIdParameter": { - "name": "roleAssignmentId", - "in": "path", - "required": true, - "type": "string", - "description": "The fully qualified ID of the role assignment including scope, resource name, and resource type. Format: /{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}. Example: /subscriptions//resourcegroups//providers/Microsoft.Authorization/roleAssignments/", - "x-ms-skip-url-encoding": true, - "x-ms-parameter-location": "method" - }, - "RoleAssignmentCreateParameters": { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/RoleAssignmentCreateParameters" - }, - "description": "Parameters for the role assignment.", - "x-ms-parameter-location": "method" - }, - "TenantIdQueryParameter": { - "name": "tenantId", - "in": "query", - "required": false, - "type": "string", - "description": "Tenant ID for cross-tenant request", - "x-ms-parameter-location": "method" - }, - "PaginationSkipToken": { - "name": "$skipToken", - "in": "query", - "required": false, - "type": "string", - "description": "The skipToken to apply on the operation. Use $skipToken={skiptoken} to return paged role assignments following the skipToken passed. Only supported on provider level calls.", - "x-ms-skip-url-encoding": true, - "x-ms-parameter-location": "method" - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index 21fe8936e834..3fed589c75e4 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -553,6 +553,16 @@ "type": "string" }, "description": "Denied Data actions." + }, + "condition": { + "readOnly": true, + "type": "string", + "description": "The conditions on the role definition. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'" + }, + "conditionVersion": { + "readOnly": true, + "type": "string", + "description": "Version of the condition. Currently the only accepted value is '2.0'" } }, "type": "object", @@ -569,4 +579,4 @@ "x-ms-parameter-location": "method" } } -} +} \ No newline at end of file diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json index ca16cdc4707e..6a9794d6cab1 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json @@ -440,4 +440,4 @@ "x-ms-parameter-location": "method" } } -} +} \ No newline at end of file diff --git a/specification/authorization/resource-manager/readme.csharp.md b/specification/authorization/resource-manager/readme.csharp.md index 86a3f65c0ac3..ace02823cccb 100644 --- a/specification/authorization/resource-manager/readme.csharp.md +++ b/specification/authorization/resource-manager/readme.csharp.md @@ -144,4 +144,16 @@ output-folder: $(csharp-sdks-folder)/Authorization/Management.Authorization/$(cs batch: - tag: package-2022-04-01 + ``` + + ### Profile: profile_2022_05_01_preview + +These settings apply only when `--csharp-profile=profile_2022_05_01_preview` is specified on the command line. + + ``` yaml $(csharp-profile)=='profile_2022_05_01_preview' +namespace: Microsoft.Azure.Management.Profiles.$(csharp-profile).Authorization +output-folder: $(csharp-sdks-folder)/Authorization/Management.Authorization/$(csharp-profile)/Generated + +batch: + - tag: package-2022-05-01-preview ``` \ No newline at end of file diff --git a/specification/authorization/resource-manager/readme.md b/specification/authorization/resource-manager/readme.md index 3efed67e9816..f5de1d487bc2 100644 --- a/specification/authorization/resource-manager/readme.md +++ b/specification/authorization/resource-manager/readme.md @@ -83,18 +83,39 @@ directive: ``` -### Tag: package-preview-2022-05 +### Tag: package-2022-05-01-preview-only -These settings apply only when `--tag=package-preview-2022-05` is specified on the command line. +These settings apply only when `--package-2022-05-01-preview-only` is specified on the command line. -```yaml $(tag) == 'package-preview-2022-05' +```yaml $(tag) == 'package-2022-05-01-preview-only' input-file: - - Microsoft.Authorization/preview/2022-05-01-preview/authorization-DenyAssignmentCalls.json - - Microsoft.Authorization/preview/2022-05-01-preview/authorization-ProviderOperationsCalls.json - - Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleAssignmentsCalls.json - Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json - Microsoft.Authorization/preview/2022-05-01-preview/common-types.json ``` +### Tag: package-2022-05-01-preview + +These settings apply only when `--package-2022-05-01-preview` is specified on the command line. + +```yaml $(tag) == 'package-2022-05-01-preview' +input-file: + + - Microsoft.Authorization/stable/2015-07-01/authorization-ClassicAdminCalls.json + - Microsoft.Authorization/stable/2015-07-01/authorization-ElevateAccessCalls.json + - Microsoft.Authorization/stable/2022-04-01/authorization-DenyAssignmentCalls.json + - Microsoft.Authorization/stable/2022-04-01/authorization-ProviderOperationsCalls.json + - Microsoft.Authorization/stable/2022-04-01/authorization-RoleAssignmentsCalls.json + - Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json + - Microsoft.Authorization/preview/2022-05-01-preview/common-types.json + - Microsoft.Authorization/stable/2020-10-01/EligibleChildResources.json + - Microsoft.Authorization/stable/2020-10-01/RoleAssignmentSchedule.json + - Microsoft.Authorization/stable/2020-10-01/RoleAssignmentScheduleInstance.json + - Microsoft.Authorization/preview/2022-04-01-preview/RoleAssignmentScheduleRequest.json + - Microsoft.Authorization/stable/2020-10-01/RoleEligibilitySchedule.json + - Microsoft.Authorization/stable/2020-10-01/RoleEligibilityScheduleInstance.json + - Microsoft.Authorization/preview/2022-04-01-preview/RoleEligibilityScheduleRequest.json + - Microsoft.Authorization/stable/2020-10-01/RoleManagementPolicy.json + - Microsoft.Authorization/stable/2020-10-01/RoleManagementPolicyAssignment.json +``` ### Tag: package-2021-12-01-preview-only These settings apply only when `--tag=package-2021-12-01-preview-only` is specified on the command line. From 4adf7c7ecce6652b7cd195d1d962ce352c3f3d18 Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Thu, 11 May 2023 15:07:03 -0700 Subject: [PATCH 05/42] delete unwanted example files --- .../examples/GetAllDenyAssignments.json | 50 ----------------- .../examples/GetAllProviderOperations.json | 27 --------- .../examples/GetDenyAssignmentById.json | 44 --------------- .../examples/GetDenyAssignmentByNameId.json | 45 --------------- .../examples/GetDenyAssignmentByScope.json | 50 ----------------- .../GetDenyAssignmentsForResource.json | 55 ------------------- .../GetDenyAssignmentsForResourceGroup.json | 51 ----------------- .../examples/GetProviderOperationsRP.json | 24 -------- .../examples/RoleAssignments_CreateById.json | 41 -------------- .../RoleAssignments_CreateForResource.json | 42 -------------- ...oleAssignments_CreateForResourceGroup.json | 42 -------------- ...RoleAssignments_CreateForSubscription.json | 42 -------------- .../examples/RoleAssignments_Delete.json | 23 -------- .../examples/RoleAssignments_DeleteById.json | 22 -------- .../examples/RoleAssignments_Get.json | 22 -------- .../examples/RoleAssignments_GetById.json | 21 ------- .../RoleAssignments_ListForResource.json | 51 ----------------- .../RoleAssignments_ListForResourceGroup.json | 37 ------------- .../RoleAssignments_ListForScope.json | 25 --------- .../RoleAssignments_ListForSubscription.json | 25 --------- 20 files changed, 739 deletions(-) delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllDenyAssignments.json delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllProviderOperations.json delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentById.json delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByNameId.json delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByScope.json delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResource.json delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResourceGroup.json delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetProviderOperationsRP.json delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateById.json delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResource.json delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResourceGroup.json delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForSubscription.json delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Delete.json delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_DeleteById.json delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Get.json delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_GetById.json delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResource.json delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResourceGroup.json delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForScope.json delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForSubscription.json diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllDenyAssignments.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllDenyAssignments.json deleted file mode 100644 index 87c6f3f46a64..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllDenyAssignments.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subId", - "api-version": "2022-05-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "denyAssignmentName": "Deny assignment name", - "description": "Deny assignment description", - "permissions": [ - { - "actions": [ - "action" - ], - "notActions": [], - "dataActions": [ - "action" - ], - "notDataActions": [] - } - ], - "scope": "/subscriptions/subId", - "doNotApplyToChildScopes": false, - "principals": [ - { - "id": "principalId1", - "type": "principalType1" - } - ], - "excludePrincipals": [ - { - "id": "principalId2", - "type": "principalType2" - } - ], - "isSystemProtected": true - }, - "id": "/subscriptions/subId/providers/Microsoft.Authorization/denyAssignments/denyAssignmentId", - "type": "Microsoft.Authorization/denyAssignments", - "name": "denyAssignmentId" - } - ] - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllProviderOperations.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllProviderOperations.json deleted file mode 100644 index 9e3a0abc1077..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetAllProviderOperations.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "api-version": "2022-05-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "id", - "name": "name", - "type": "type", - "displayName": "displayName", - "resourceTypes": [ - { - "name": "name", - "displayName": "name", - "operations": [] - } - ], - "operations": [] - } - ] - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentById.json deleted file mode 100644 index 6313d67c6dc3..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentById.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parameters": { - "denyAssignmentId": "subscriptions/subId/resourcegroups/rgname/providers/Microsoft.Authorization/denyAssignments/daId", - "api-version": "2022-05-01-preview" - }, - "responses": { - "200": { - "body": { - "properties": { - "denyAssignmentName": "Deny assignment name", - "description": "Deny assignment description", - "permissions": [ - { - "actions": [ - "action" - ], - "notActions": [], - "dataActions": [], - "notDataActions": [] - } - ], - "scope": "/subscriptions/subId/resourcegroups/rgname", - "doNotApplyToChildScopes": false, - "principals": [ - { - "id": "principalId1", - "type": "principalType1" - } - ], - "excludePrincipals": [ - { - "id": "principalId2", - "type": "principalType2" - } - ], - "isSystemProtected": true - }, - "id": "/subscriptions/subId/resourcegroups/rgname/providers/Microsoft.Authorization/denyAssignments/daId", - "type": "Microsoft.Authorization/denyAssignments", - "name": "daId" - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByNameId.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByNameId.json deleted file mode 100644 index a77a68aca8b2..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByNameId.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "scope": "subscriptions/subId/resourcegroups/rgname", - "denyAssignmentId": "denyAssignmentId", - "api-version": "2022-05-01-preview" - }, - "responses": { - "200": { - "body": { - "properties": { - "denyAssignmentName": "Deny assignment name", - "description": "Deny assignment description", - "permissions": [ - { - "actions": [ - "action" - ], - "notActions": [], - "dataActions": [], - "notDataActions": [] - } - ], - "scope": "/subscriptions/subId/resourcegroups/rgname", - "doNotApplyToChildScopes": false, - "principals": [ - { - "id": "principalId1", - "type": "principalType1" - } - ], - "excludePrincipals": [ - { - "id": "principalId2", - "type": "principalType2" - } - ], - "isSystemProtected": true - }, - "id": "/subscriptions/subId/resourcegroups/rgname/providers/Microsoft.Authorization/denyAssignments/denyAssignmentId", - "type": "Microsoft.Authorization/denyAssignments", - "name": "denyAssignmentId" - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByScope.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByScope.json deleted file mode 100644 index 507179808d3d..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentByScope.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "scope": "subscriptions/subId", - "api-version": "2022-05-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "denyAssignmentName": "Deny assignment name", - "description": "Deny assignment description", - "permissions": [ - { - "actions": [ - "action" - ], - "notActions": [], - "dataActions": [ - "action" - ], - "notDataActions": [] - } - ], - "scope": "/subscriptions/subId", - "doNotApplyToChildScopes": false, - "principals": [ - { - "id": "principalId1", - "type": "principalType1" - } - ], - "excludePrincipals": [ - { - "id": "principalId2", - "type": "principalType2" - } - ], - "isSystemProtected": true - }, - "id": "/subscriptions/subId/providers/Microsoft.Authorization/denyAssignments/denyAssignmentId", - "type": "Microsoft.Authorization/denyAssignments", - "name": "denyAssignmentId" - } - ] - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResource.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResource.json deleted file mode 100644 index bf0d4b75b305..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResource.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subId", - "resourceGroupName": "rgname", - "resourceProviderNamespace": "resourceProviderNamespace", - "parentResourcePath": "parentResourcePath", - "resourceType": "resourceType", - "resourceName": "resourceName", - "api-version": "2022-05-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "denyAssignmentName": "Deny assignment name", - "description": "Deny assignment description", - "permissions": [ - { - "actions": [ - "action" - ], - "notActions": [], - "dataActions": [ - "action" - ], - "notDataActions": [] - } - ], - "scope": "/subscriptions/subId/resourcegroups/rgname/providers/resourceProviderNamespace/parentResourcePath/resourceType/resourceName", - "doNotApplyToChildScopes": false, - "principals": [ - { - "id": "principalId1", - "type": "principalType1" - } - ], - "excludePrincipals": [ - { - "id": "principalId2", - "type": "principalType2" - } - ], - "isSystemProtected": true - }, - "id": "/subscriptions/subId/resourcegroups/rgname/providers/resourceProviderNamespace/parentResourcePath/resourceType/resourceName/providers/Microsoft.Authorization/denyAssignments/denyAssignmentId", - "type": "Microsoft.Authorization/denyAssignments", - "name": "denyAssignmentId" - } - ] - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResourceGroup.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResourceGroup.json deleted file mode 100644 index 32ded39a05ee..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetDenyAssignmentsForResourceGroup.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "parameters": { - "subscriptionId": "subId", - "resourceGroupName": "rgname", - "api-version": "2022-05-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "denyAssignmentName": "Deny assignment name", - "description": "Deny assignment description", - "permissions": [ - { - "actions": [ - "action" - ], - "notActions": [], - "dataActions": [ - "action" - ], - "notDataActions": [] - } - ], - "scope": "/subscriptions/subId/resourcegroups/rgname", - "doNotApplyToChildScopes": false, - "principals": [ - { - "id": "principalId1", - "type": "principalType1" - } - ], - "excludePrincipals": [ - { - "id": "principalId2", - "type": "principalType2" - } - ], - "isSystemProtected": true - }, - "id": "/subscriptions/subId/resourcegroups/rgname/providers/Microsoft.Authorization/denyAssignments/denyAssignmentId", - "type": "Microsoft.Authorization/denyAssignments", - "name": "denyAssignmentId" - } - ] - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetProviderOperationsRP.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetProviderOperationsRP.json deleted file mode 100644 index 760aa74b9770..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetProviderOperationsRP.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "parameters": { - "resourceProviderNamespace": "resourceProviderNamespace", - "api-version": "2022-05-01-preview" - }, - "responses": { - "200": { - "body": { - "id": "id", - "name": "name", - "type": "type", - "displayName": "displayName", - "resourceTypes": [ - { - "name": "name", - "displayName": "name", - "operations": [] - } - ], - "operations": [] - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateById.json deleted file mode 100644 index 54751946686b..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateById.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "roleAssignmentId": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", - "api-version": "2022-05-01-preview", - "parameters": { - "properties": { - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User" - } - } - }, - "responses": { - "201": { - "body": { - "properties": { - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User", - "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" - }, - "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", - "type": "Microsoft.Authorization/roleAssignments", - "name": "b0f43c54-e787-4862-89b1-a653fa9cf747" - } - }, - "200": { - "body": { - "properties": { - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User", - "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" - }, - "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", - "type": "Microsoft.Authorization/roleAssignments", - "name": "b0f43c54-e787-4862-89b1-a653fa9cf747" - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResource.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResource.json deleted file mode 100644 index 04e29d9e552a..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResource.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "scope": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.DocumentDb/databaseAccounts/test-db-account", - "roleAssignmentName": "05c5a614-a7d6-4502-b150-c2fb455033ff", - "api-version": "2022-05-01-preview", - "parameters": { - "properties": { - "roleDefinitionId": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User" - } - } - }, - "responses": { - "201": { - "body": { - "properties": { - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User", - "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.DocumentDb/databaseAccounts/test-db-account" - }, - "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.DocumentDb/databaseAccounts/test-db-account/providers/Microsoft.Authorization/roleAssignments/05c5a614-a7d6-4502-b150-c2fb455033ff", - "type": "Microsoft.Authorization/roleAssignments", - "name": "05c5a614-a7d6-4502-b150-c2fb455033ff" - } - }, - "200": { - "body": { - "properties": { - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User", - "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.DocumentDb/databaseAccounts/test-db-account" - }, - "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.DocumentDb/databaseAccounts/test-db-account/providers/Microsoft.Authorization/roleAssignments/05c5a614-a7d6-4502-b150-c2fb455033ff", - "type": "Microsoft.Authorization/roleAssignments", - "name": "05c5a614-a7d6-4502-b150-c2fb455033ff" - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResourceGroup.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResourceGroup.json deleted file mode 100644 index 5d3bbcdf1cad..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForResourceGroup.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "scope": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg", - "roleAssignmentName": "05c5a614-a7d6-4502-b150-c2fb455033ff", - "api-version": "2022-05-01-preview", - "parameters": { - "properties": { - "roleDefinitionId": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User" - } - } - }, - "responses": { - "201": { - "body": { - "properties": { - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User", - "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg" - }, - "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.Authorization/roleAssignments/05c5a614-a7d6-4502-b150-c2fb455033ff", - "type": "Microsoft.Authorization/roleAssignments", - "name": "05c5a614-a7d6-4502-b150-c2fb455033ff" - } - }, - "200": { - "body": { - "properties": { - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User", - "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg" - }, - "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.Authorization/roleAssignments/05c5a614-a7d6-4502-b150-c2fb455033ff", - "type": "Microsoft.Authorization/roleAssignments", - "name": "05c5a614-a7d6-4502-b150-c2fb455033ff" - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForSubscription.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForSubscription.json deleted file mode 100644 index 9a0ae94a951e..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_CreateForSubscription.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "parameters": { - "scope": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2", - "roleAssignmentName": "05c5a614-a7d6-4502-b150-c2fb455033ff", - "api-version": "2022-05-01-preview", - "parameters": { - "properties": { - "roleDefinitionId": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User" - } - } - }, - "responses": { - "201": { - "body": { - "properties": { - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User", - "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" - }, - "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/05c5a614-a7d6-4502-b150-c2fb455033ff", - "type": "Microsoft.Authorization/roleAssignments", - "name": "05c5a614-a7d6-4502-b150-c2fb455033ff" - } - }, - "200": { - "body": { - "properties": { - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User", - "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" - }, - "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/05c5a614-a7d6-4502-b150-c2fb455033ff", - "type": "Microsoft.Authorization/roleAssignments", - "name": "05c5a614-a7d6-4502-b150-c2fb455033ff" - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Delete.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Delete.json deleted file mode 100644 index a558a3b23f7b..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Delete.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "scope": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2", - "roleAssignmentName": "b0f43c54-e787-4862-89b1-a653fa9cf747", - "api-version": "2022-05-01-preview" - }, - "responses": { - "200": { - "body": { - "properties": { - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User", - "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" - }, - "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", - "type": "Microsoft.Authorization/roleAssignments", - "name": "b0f43c54-e787-4862-89b1-a653fa9cf747" - } - }, - "204": {} - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_DeleteById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_DeleteById.json deleted file mode 100644 index e181b7445966..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_DeleteById.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "roleAssignmentId": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", - "api-version": "2022-05-01-preview" - }, - "responses": { - "200": { - "body": { - "properties": { - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User", - "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" - }, - "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", - "type": "Microsoft.Authorization/roleAssignments", - "name": "b0f43c54-e787-4862-89b1-a653fa9cf747" - } - }, - "204": {} - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Get.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Get.json deleted file mode 100644 index 261407276c97..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_Get.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "scope": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2", - "roleAssignmentName": "b0f43c54-e787-4862-89b1-a653fa9cf747", - "api-version": "2022-05-01-preview" - }, - "responses": { - "200": { - "body": { - "properties": { - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User", - "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" - }, - "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", - "type": "Microsoft.Authorization/roleAssignments", - "name": "b0f43c54-e787-4862-89b1-a653fa9cf747" - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_GetById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_GetById.json deleted file mode 100644 index 86fcd6fa3847..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_GetById.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "roleAssignmentId": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", - "api-version": "2022-05-01-preview" - }, - "responses": { - "200": { - "body": { - "properties": { - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User", - "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" - }, - "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", - "type": "Microsoft.Authorization/roleAssignments", - "name": "b0f43c54-e787-4862-89b1-a653fa9cf747" - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResource.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResource.json deleted file mode 100644 index ccd0642b29d0..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResource.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "parameters": { - "subscriptionId": "a925f2f7-5c63-4b7b-8799-25a5f97bc3b2", - "resourceGroupName": "testrg", - "resourceProviderNamespace": "Microsoft.DocumentDb", - "resourceType": "databaseAccounts", - "resourceName": "test-db-account", - "api-version": "2022-05-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User", - "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" - }, - "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", - "type": "Microsoft.Authorization/roleAssignments", - "name": "b0f43c54-e787-4862-89b1-a653fa9cf747" - }, - { - "properties": { - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User", - "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg" - }, - "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.Authorization/roleAssignments/96786e4b-dede-4c2e-8736-8ab911987f08", - "type": "Microsoft.Authorization/roleAssignments", - "name": "96786e4b-dede-4c2e-8736-8ab911987f08" - }, - { - "properties": { - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User", - "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.DocumentDb/databaseAccounts/test-db-account" - }, - "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.DocumentDb/databaseAccounts/test-db-account/providers/Microsoft.Authorization/roleAssignments/05c5a614-a7d6-4502-b150-c2fb455033ff", - "type": "Microsoft.Authorization/roleAssignments", - "name": "05c5a614-a7d6-4502-b150-c2fb455033ff" - } - ] - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResourceGroup.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResourceGroup.json deleted file mode 100644 index 57d7e7b90ba1..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForResourceGroup.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "parameters": { - "subscriptionId": "a925f2f7-5c63-4b7b-8799-25a5f97bc3b2", - "resourceGroupName": "testrg", - "api-version": "2022-05-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User", - "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" - }, - "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", - "type": "Microsoft.Authorization/roleAssignments", - "name": "b0f43c54-e787-4862-89b1-a653fa9cf747" - }, - { - "properties": { - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User", - "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg" - }, - "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/resourceGroups/testrg/providers/Microsoft.Authorization/roleAssignments/96786e4b-dede-4c2e-8736-8ab911987f08", - "type": "Microsoft.Authorization/roleAssignments", - "name": "96786e4b-dede-4c2e-8736-8ab911987f08" - } - ] - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForScope.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForScope.json deleted file mode 100644 index f0c5e5aaf4cd..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForScope.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "parameters": { - "scope": "subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2", - "api-version": "2022-05-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User", - "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" - }, - "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", - "type": "Microsoft.Authorization/roleAssignments", - "name": "b0f43c54-e787-4862-89b1-a653fa9cf747" - } - ] - } - } - } -} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForSubscription.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForSubscription.json deleted file mode 100644 index ced1747329cc..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/RoleAssignments_ListForSubscription.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "parameters": { - "subscriptionId": "a925f2f7-5c63-4b7b-8799-25a5f97bc3b2", - "api-version": "2022-05-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "roleDefinitionId": "/providers/Microsoft.Authorization/roleDefinitions/0b5fe924-9a61-425c-96af-cfe6e287ca2d", - "principalId": "ce2ce14e-85d7-4629-bdbc-454d0519d987", - "principalType": "User", - "scope": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2" - }, - "id": "/subscriptions/a925f2f7-5c63-4b7b-8799-25a5f97bc3b2/providers/Microsoft.Authorization/roleAssignments/b0f43c54-e787-4862-89b1-a653fa9cf747", - "type": "Microsoft.Authorization/roleAssignments", - "name": "b0f43c54-e787-4862-89b1-a653fa9cf747" - } - ] - } - } - } -} From 9e75d89ece58106e3365ac4ca535527d17a424c7 Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Thu, 11 May 2023 15:33:33 -0700 Subject: [PATCH 06/42] fix errors --- .../authorization-RoleDefinitionsCalls.json | 11 +++++++++-- .../authorization/resource-manager/readme.md | 3 +++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index 3fed589c75e4..7f785da9346f 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -34,7 +34,7 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/permissions": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/permissions": { "get": { "tags": [ "Permissions" @@ -76,7 +76,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/permissions": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/permissions": { "get": { "tags": [ "Permissions" @@ -110,6 +110,7 @@ "name": "resourceName", "in": "path", "required": true, + "pattern": ".+", "type": "string", "description": "The name of the resource to get the permissions for." }, @@ -276,6 +277,11 @@ } ], "responses": { + "200": { + "description": "OK - Returns information about the role definition.", + "schema": { + "$ref": "#/definitions/RoleDefinition" + }, "201": { "description": "OK - Returns information about the role definition.", "schema": { @@ -464,6 +470,7 @@ "description": "Role definition properties." }, "RoleDefinition": { + "x-ms-azure-resource": true, "properties": { "id": { "type": "string", diff --git a/specification/authorization/resource-manager/readme.md b/specification/authorization/resource-manager/readme.md index f5de1d487bc2..0cd0248cccdd 100644 --- a/specification/authorization/resource-manager/readme.md +++ b/specification/authorization/resource-manager/readme.md @@ -71,6 +71,9 @@ directive: - suppress: R1007 from: authorization-AccessReviewCalls.json reason: Fixing warning would create a breaking change + - suppress: DeleteResponseBodyEmpty + from: authorization-RoleDefinitionsCalls.json + reason: Fixing warning would create a S360 flag for us, because our service returns the role definition when deleted. - suppress: R2017 from: authorization-AccessReviewCalls.json reason: Request body is a subset of response body. Additional properties in the response are not settable by the user From 170759e964ee596662ad0a52a45720e28515d1ff Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Thu, 11 May 2023 16:21:57 -0700 Subject: [PATCH 07/42] typo --- .../2022-05-01-preview/authorization-RoleDefinitionsCalls.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index 7f785da9346f..8908ee9f18d4 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -281,7 +281,8 @@ "description": "OK - Returns information about the role definition.", "schema": { "$ref": "#/definitions/RoleDefinition" - }, + } + }, "201": { "description": "OK - Returns information about the role definition.", "schema": { From 3280b9a583f389da04c7a3804f0998580eaf4cae Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 09:15:24 -0700 Subject: [PATCH 08/42] more fixes --- .../authorization-RoleDefinitionsCalls.json | 4 +-- .../examples/PutRoleDefinition.json | 27 +++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index 8908ee9f18d4..34624bffc018 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -278,13 +278,13 @@ ], "responses": { "200": { - "description": "OK - Returns information about the role definition.", + "description": "OK - Returns information about the created or updated role definition.", "schema": { "$ref": "#/definitions/RoleDefinition" } }, "201": { - "description": "OK - Returns information about the role definition.", + "description": "OK - Returns information about the created or updated role definition.", "schema": { "$ref": "#/definitions/RoleDefinition" } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/PutRoleDefinition.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/PutRoleDefinition.json index 9e6a0d763a35..9d64c25f43c4 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/PutRoleDefinition.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/PutRoleDefinition.json @@ -30,6 +30,33 @@ "api-version": "2022-05-01-preview" }, "responses": { + "200": { + "body": { + "properties": { + "roleName": "Role name", + "type": "roletype", + "description": "Role description", + "assignableScopes": [ + "/subscriptions/subId" + ], + "permissions": [ + { + "actions": [ + "action" + ], + "notActions": [], + "dataActions": [ + "dataAction" + ], + "notDataActions": [] + } + ] + }, + "id": "/subscriptions/subID/providers/Microsoft.Authorization/roleDefinitions/roleDefinitionId", + "type": "Microsoft.Authorization/roleDefinitions", + "name": "roleDefinitionId" + } + }, "201": { "body": { "properties": { From ee7bba5f3cfd3bc8e547b402963791365e8ae287 Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 09:43:08 -0700 Subject: [PATCH 09/42] scope fix --- .../2022-05-01-preview/authorization-RoleDefinitionsCalls.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index 34624bffc018..49529478551f 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -145,7 +145,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}": { + "/{scope_base}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}": { "delete": { "tags": [ "RoleDefinitions" From c845eb641dcdeb1e7769eff496f18ecddc8c0467 Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 09:46:14 -0700 Subject: [PATCH 10/42] roledef fix --- .../2022-05-01-preview/authorization-RoleDefinitionsCalls.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index 49529478551f..08b45197cd13 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -357,7 +357,7 @@ } }, "x-ms-paths": { - "/{roleId}?disambiguation_dummy": { + "provider/Microsoft.Authorization/roleDefinitions/{roleId}?disambiguation_dummy": { "get": { "tags": [ "RoleDefinitions" From 2f81f5d9b8de60335b007d2eb22e08bd36c551c8 Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 10:14:30 -0700 Subject: [PATCH 11/42] fixing warnings --- .../authorization-RoleDefinitionsCalls.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index 08b45197cd13..d701648ff363 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -170,6 +170,9 @@ }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./common-types.json#/parameters/ScopeParameter" } ], "responses": { @@ -219,6 +222,9 @@ }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./common-types.json#/parameters/ScopeParameter" } ], "responses": { @@ -274,6 +280,9 @@ }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./common-types.json#/parameters/ScopeParameter" } ], "responses": { @@ -328,6 +337,9 @@ }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./common-types.json#/parameters/ScopeParameter" } ], "responses": { From 6e9ae39c30e1c5aaec93fc86ce2df1f1aec4914d Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 10:24:23 -0700 Subject: [PATCH 12/42] Revert "fixing warnings" This reverts commit 2f81f5d9b8de60335b007d2eb22e08bd36c551c8. --- .../authorization-RoleDefinitionsCalls.json | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index d701648ff363..08b45197cd13 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -170,9 +170,6 @@ }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./common-types.json#/parameters/ScopeParameter" } ], "responses": { @@ -222,9 +219,6 @@ }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./common-types.json#/parameters/ScopeParameter" } ], "responses": { @@ -280,9 +274,6 @@ }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./common-types.json#/parameters/ScopeParameter" } ], "responses": { @@ -337,9 +328,6 @@ }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./common-types.json#/parameters/ScopeParameter" } ], "responses": { From 0e0649c2f704e1b750067654f2b7ac1f70815b48 Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 10:30:46 -0700 Subject: [PATCH 13/42] revert scope base --- .../2022-05-01-preview/authorization-RoleDefinitionsCalls.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index 08b45197cd13..c89526e16aa0 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -145,7 +145,7 @@ } } }, - "/{scope_base}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}": { + "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}": { "delete": { "tags": [ "RoleDefinitions" From 9c29d751e1b31ce4e353722b448619c376060646 Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 10:49:15 -0700 Subject: [PATCH 14/42] supress warnings with reason --- specification/authorization/resource-manager/readme.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/readme.md b/specification/authorization/resource-manager/readme.md index 0cd0248cccdd..c839962e0951 100644 --- a/specification/authorization/resource-manager/readme.md +++ b/specification/authorization/resource-manager/readme.md @@ -73,7 +73,13 @@ directive: reason: Fixing warning would create a breaking change - suppress: DeleteResponseBodyEmpty from: authorization-RoleDefinitionsCalls.json - reason: Fixing warning would create a S360 flag for us, because our service returns the role definition when deleted. + reason: Fixing error would create a S360 flag for us, because our service returns the role definition when deleted. + - suppress: NoDuplicatePathsForScopeParameter + from: authorization-RoleDefinitionsCalls.json + reason: /{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} and /{scope}/providers/Microsoft.Authorization/roleDefinitions are two different APIs, they are not having the duplicate paths. + - suppress: PreviewVersionOverOneYear + from: authorization-RoleDefinitionsCalls.json + reason: We are still due to go public preview in next quarter. We have also updated status in the ADO for the delay. - suppress: R2017 from: authorization-AccessReviewCalls.json reason: Request body is a subset of response body. Additional properties in the response are not settable by the user From 299cd31b14b805a4797b993f6b5cb3da18d99f21 Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 10:58:53 -0700 Subject: [PATCH 15/42] remove x-ms path --- .../authorization-RoleDefinitionsCalls.json | 43 ------------------- 1 file changed, 43 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index c89526e16aa0..d43e4cc752e8 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -356,49 +356,6 @@ } } }, - "x-ms-paths": { - "provider/Microsoft.Authorization/roleDefinitions/{roleId}?disambiguation_dummy": { - "get": { - "tags": [ - "RoleDefinitions" - ], - "operationId": "RoleDefinitions_GetById", - "description": "Gets a role definition by ID.", - "parameters": [ - { - "name": "roleId", - "in": "path", - "required": true, - "type": "string", - "description": "The fully qualified role definition ID. Use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for subscription level role definitions, or /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for tenant level role definitions.", - "x-ms-skip-url-encoding": true - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns information about the role definition.", - "schema": { - "$ref": "#/definitions/RoleDefinition" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get role definition by ID": { - "$ref": "./examples/GetRoleDefinitionById.json" - } - } - } - } - }, "definitions": { "RoleDefinitionFilter": { "properties": { From 5f4e552135fdf0d27a8ab11d93e63dcba3ed0990 Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 11:00:32 -0700 Subject: [PATCH 16/42] supresess --- specification/authorization/resource-manager/readme.md | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/authorization/resource-manager/readme.md b/specification/authorization/resource-manager/readme.md index c839962e0951..603d142b09f6 100644 --- a/specification/authorization/resource-manager/readme.md +++ b/specification/authorization/resource-manager/readme.md @@ -78,7 +78,6 @@ directive: from: authorization-RoleDefinitionsCalls.json reason: /{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} and /{scope}/providers/Microsoft.Authorization/roleDefinitions are two different APIs, they are not having the duplicate paths. - suppress: PreviewVersionOverOneYear - from: authorization-RoleDefinitionsCalls.json reason: We are still due to go public preview in next quarter. We have also updated status in the ADO for the delay. - suppress: R2017 from: authorization-AccessReviewCalls.json From 132f2931731a597255e7ab8342d8e24ee6b5c5f0 Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 11:20:16 -0700 Subject: [PATCH 17/42] fixing get by id as there nothing called get by name --- .../authorization-RoleDefinitionsCalls.json | 4 +-- .../examples/GetRoleDefinitionById.json | 1 + .../examples/GetRoleDefinitionByName.json | 36 ------------------- 3 files changed, 3 insertions(+), 38 deletions(-) delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionByName.json diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index d43e4cc752e8..00e1c4ef4ca8 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -200,7 +200,7 @@ "RoleDefinitions" ], "operationId": "RoleDefinitions_Get", - "description": "Get role definition by name (GUID).", + "description": "Get role definition by ID (GUID).", "parameters": [ { "name": "scope", @@ -237,7 +237,7 @@ }, "x-ms-examples": { "Get role definition by name": { - "$ref": "./examples/GetRoleDefinitionByName.json" + "$ref": "./examples/GetRoleDefinitionById.json" } } }, diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionById.json index c8cf3fd93d6e..52937f902da3 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionById.json @@ -1,5 +1,6 @@ { "parameters": { + "scope": "scope", "roleId": "roleDefinitionId", "api-version": "2022-05-01-preview" }, diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionByName.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionByName.json deleted file mode 100644 index 0ad4279018a1..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionByName.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "scope": "scope", - "roleDefinitionId": "roleDefinitionId", - "api-version": "2022-05-01-preview" - }, - "responses": { - "200": { - "body": { - "properties": { - "roleName": "Role name", - "type": "roletype", - "description": "Role description", - "assignableScopes": [ - "/subscriptions/subId" - ], - "permissions": [ - { - "actions": [ - "action" - ], - "notActions": [], - "dataActions": [ - "dataAction" - ], - "notDataActions": [] - } - ] - }, - "id": "/subscriptions/subID/providers/Microsoft.Authorization/roleDefinitions/roleDefinitionId", - "type": "Microsoft.Authorization/roleDefinitions", - "name": "roleDefinitionId" - } - } - } -} From 50f67cea16d40b1d2f02a861a4a688820090124d Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 11:29:39 -0700 Subject: [PATCH 18/42] fix --- .../2022-05-01-preview/examples/GetRoleDefinitionById.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionById.json index 52937f902da3..0ad4279018a1 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionById.json @@ -1,7 +1,7 @@ { "parameters": { "scope": "scope", - "roleId": "roleDefinitionId", + "roleDefinitionId": "roleDefinitionId", "api-version": "2022-05-01-preview" }, "responses": { From 148d19c285263c14ac6c959d257cb70948fd83f6 Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 11:45:43 -0700 Subject: [PATCH 19/42] Scope --- .../2022-05-01-preview/authorization-RoleDefinitionsCalls.json | 3 +++ specification/authorization/resource-manager/readme.md | 3 +++ 2 files changed, 6 insertions(+) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index 00e1c4ef4ca8..0d7e9124e87c 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -328,6 +328,9 @@ }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ScopeParameter" } ], "responses": { diff --git a/specification/authorization/resource-manager/readme.md b/specification/authorization/resource-manager/readme.md index 603d142b09f6..f7e06be518c1 100644 --- a/specification/authorization/resource-manager/readme.md +++ b/specification/authorization/resource-manager/readme.md @@ -77,6 +77,9 @@ directive: - suppress: NoDuplicatePathsForScopeParameter from: authorization-RoleDefinitionsCalls.json reason: /{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} and /{scope}/providers/Microsoft.Authorization/roleDefinitions are two different APIs, they are not having the duplicate paths. + - suppress: TopLevelResourcesListBySubscription + from: authorization-RoleDefinitionsCalls.json + reason: The resource 'RoleDefinition' has scope parameter, which includes the subscruotuib scope as well. - suppress: PreviewVersionOverOneYear reason: We are still due to go public preview in next quarter. We have also updated status in the ADO for the delay. - suppress: R2017 From afb6dca3e5899a985ec27bc04f7f92e781e8720f Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 11:55:39 -0700 Subject: [PATCH 20/42] v2 to v4 --- .../2022-05-01-preview/authorization-RoleDefinitionsCalls.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index 0d7e9124e87c..a9254e839348 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -330,7 +330,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ScopeParameter" + "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ScopeParameter" } ], "responses": { From 2c9c5e41240777c3d5271e98efeaf89dde181ea4 Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 12:08:13 -0700 Subject: [PATCH 21/42] scope param --- .../authorization-RoleDefinitionsCalls.json | 8 -------- 1 file changed, 8 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index a9254e839348..8cc68c1d3051 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -311,14 +311,6 @@ "operationId": "RoleDefinitions_List", "description": "Get all role definitions that are applicable at scope and above.", "parameters": [ - { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The scope of the role definition.", - "x-ms-skip-url-encoding": true - }, { "name": "$filter", "in": "query", From 40b510214e282d389a2794d9c036e3fd89e4c03d Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 12:11:10 -0700 Subject: [PATCH 22/42] scope param --- .../2022-05-01-preview/authorization-RoleDefinitionsCalls.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index 8cc68c1d3051..8cccc549e9b9 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -322,7 +322,7 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v4/types.json#/parameters/ScopeParameter" + "$ref": "./common-types.json#/parameters/ScopeParameter" } ], "responses": { From a6872a5b5f027d04f3f0da720f896e474610a2fb Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 12:28:16 -0700 Subject: [PATCH 23/42] typo --- specification/authorization/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/readme.md b/specification/authorization/resource-manager/readme.md index f7e06be518c1..00ae6f5830f2 100644 --- a/specification/authorization/resource-manager/readme.md +++ b/specification/authorization/resource-manager/readme.md @@ -79,7 +79,7 @@ directive: reason: /{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} and /{scope}/providers/Microsoft.Authorization/roleDefinitions are two different APIs, they are not having the duplicate paths. - suppress: TopLevelResourcesListBySubscription from: authorization-RoleDefinitionsCalls.json - reason: The resource 'RoleDefinition' has scope parameter, which includes the subscruotuib scope as well. + reason: The resource 'RoleDefinition' has scope parameter, which includes the subscription scope as well. - suppress: PreviewVersionOverOneYear reason: We are still due to go public preview in next quarter. We have also updated status in the ADO for the delay. - suppress: R2017 From 7d8e791a7a62da67c8e7133f56c453652ac9819e Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 15:02:39 -0700 Subject: [PATCH 24/42] api version --- specification/authorization/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/readme.md b/specification/authorization/resource-manager/readme.md index 00ae6f5830f2..ba2242cb3c70 100644 --- a/specification/authorization/resource-manager/readme.md +++ b/specification/authorization/resource-manager/readme.md @@ -26,7 +26,7 @@ These are the global settings for the Authorization API. ``` yaml openapi-type: arm -tag: package-preview-2022-05 +tag: package-2022-05-01-preview ``` ### Suppression From f2d9effa3050ad912f9c1ed539459ad76336d28b Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 15:16:04 -0700 Subject: [PATCH 25/42] Revert "api version" This reverts commit 7d8e791a7a62da67c8e7133f56c453652ac9819e. --- specification/authorization/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/readme.md b/specification/authorization/resource-manager/readme.md index ba2242cb3c70..00ae6f5830f2 100644 --- a/specification/authorization/resource-manager/readme.md +++ b/specification/authorization/resource-manager/readme.md @@ -26,7 +26,7 @@ These are the global settings for the Authorization API. ``` yaml openapi-type: arm -tag: package-2022-05-01-preview +tag: package-preview-2022-05 ``` ### Suppression From 9c5b7eea0b1287af40b1a1b0539f17f9644da442 Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 15:32:32 -0700 Subject: [PATCH 26/42] update correct package version --- specification/authorization/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/readme.md b/specification/authorization/resource-manager/readme.md index 00ae6f5830f2..ba2242cb3c70 100644 --- a/specification/authorization/resource-manager/readme.md +++ b/specification/authorization/resource-manager/readme.md @@ -26,7 +26,7 @@ These are the global settings for the Authorization API. ``` yaml openapi-type: arm -tag: package-preview-2022-05 +tag: package-2022-05-01-preview ``` ### Suppression From ece43cadba5cd87d0b1c676ea48acfeefbdf67a6 Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 15:45:10 -0700 Subject: [PATCH 27/42] fix warnings --- .../authorization-RoleDefinitionsCalls.json | 33 +++++-------------- 1 file changed, 9 insertions(+), 24 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index 8cccc549e9b9..a24661d2be37 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -153,14 +153,6 @@ "operationId": "RoleDefinitions_Delete", "description": "Deletes a role definition.", "parameters": [ - { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The scope of the role definition.", - "x-ms-skip-url-encoding": true - }, { "name": "roleDefinitionId", "in": "path", @@ -170,6 +162,9 @@ }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./common-types.json#/parameters/ScopeParameter" } ], "responses": { @@ -202,14 +197,6 @@ "operationId": "RoleDefinitions_Get", "description": "Get role definition by ID (GUID).", "parameters": [ - { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The scope of the role definition.", - "x-ms-skip-url-encoding": true - }, { "name": "roleDefinitionId", "in": "path", @@ -219,6 +206,9 @@ }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./common-types.json#/parameters/ScopeParameter" } ], "responses": { @@ -248,14 +238,6 @@ "operationId": "RoleDefinitions_CreateOrUpdate", "description": "Creates or updates a role definition.", "parameters": [ - { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The scope of the role definition.", - "x-ms-skip-url-encoding": true - }, { "name": "roleDefinitionId", "in": "path", @@ -274,6 +256,9 @@ }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "./common-types.json#/parameters/ScopeParameter" } ], "responses": { From 3710647def2ddec5aed6f6148eac6f6404f1f9c2 Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 15:57:56 -0700 Subject: [PATCH 28/42] added missing access review file --- specification/authorization/resource-manager/readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/authorization/resource-manager/readme.md b/specification/authorization/resource-manager/readme.md index ba2242cb3c70..e8fc27682dcd 100644 --- a/specification/authorization/resource-manager/readme.md +++ b/specification/authorization/resource-manager/readme.md @@ -117,6 +117,7 @@ input-file: - Microsoft.Authorization/stable/2022-04-01/authorization-RoleAssignmentsCalls.json - Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json - Microsoft.Authorization/preview/2022-05-01-preview/common-types.json + - Microsoft.Authorization/preview/2021-12-01-preview/authorization-AccessReviewCalls.json - Microsoft.Authorization/stable/2020-10-01/EligibleChildResources.json - Microsoft.Authorization/stable/2020-10-01/RoleAssignmentSchedule.json - Microsoft.Authorization/stable/2020-10-01/RoleAssignmentScheduleInstance.json From 5c72949434ed50f1fe28f149827d576704a5584b Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 16:00:59 -0700 Subject: [PATCH 29/42] removing 200 response code --- .../authorization-RoleDefinitionsCalls.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index a24661d2be37..32b5d5775711 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -262,12 +262,6 @@ } ], "responses": { - "200": { - "description": "OK - Returns information about the created or updated role definition.", - "schema": { - "$ref": "#/definitions/RoleDefinition" - } - }, "201": { "description": "OK - Returns information about the created or updated role definition.", "schema": { From 2e94f576810c67c6fa16b44acc78e17e5674bdc9 Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 16:16:20 -0700 Subject: [PATCH 30/42] pretty fix --- .../2022-05-01-preview/authorization-RoleDefinitionsCalls.json | 2 +- .../preview/2022-05-01-preview/common-types.json | 2 +- .../preview/2022-05-01-preview/examples/PutRoleDefinition.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index 32b5d5775711..3adc702dd91e 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -518,4 +518,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json index 6a9794d6cab1..ca16cdc4707e 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json @@ -440,4 +440,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/PutRoleDefinition.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/PutRoleDefinition.json index 9d64c25f43c4..60ff8375398c 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/PutRoleDefinition.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/PutRoleDefinition.json @@ -30,7 +30,7 @@ "api-version": "2022-05-01-preview" }, "responses": { - "200": { + "200": { "body": { "properties": { "roleName": "Role name", From 03e8e94c43f3dd511ce7d3b9e67d023d71f9fc47 Mon Sep 17 00:00:00 2001 From: Venkata Krishnan Seshadri Date: Fri, 12 May 2023 16:25:51 -0700 Subject: [PATCH 31/42] fix errors --- .../authorization-RoleDefinitionsCalls.json | 24 ++++++++--------- .../examples/PutRoleDefinition.json | 27 ------------------- 2 files changed, 12 insertions(+), 39 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index 3adc702dd91e..27f93a83f0f5 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -153,6 +153,9 @@ "operationId": "RoleDefinitions_Delete", "description": "Deletes a role definition.", "parameters": [ + { + "$ref": "./common-types.json#/parameters/ScopeParameter" + }, { "name": "roleDefinitionId", "in": "path", @@ -162,9 +165,6 @@ }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./common-types.json#/parameters/ScopeParameter" } ], "responses": { @@ -197,6 +197,9 @@ "operationId": "RoleDefinitions_Get", "description": "Get role definition by ID (GUID).", "parameters": [ + { + "$ref": "./common-types.json#/parameters/ScopeParameter" + }, { "name": "roleDefinitionId", "in": "path", @@ -206,9 +209,6 @@ }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./common-types.json#/parameters/ScopeParameter" } ], "responses": { @@ -238,6 +238,9 @@ "operationId": "RoleDefinitions_CreateOrUpdate", "description": "Creates or updates a role definition.", "parameters": [ + { + "$ref": "./common-types.json#/parameters/ScopeParameter" + }, { "name": "roleDefinitionId", "in": "path", @@ -256,9 +259,6 @@ }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./common-types.json#/parameters/ScopeParameter" } ], "responses": { @@ -290,6 +290,9 @@ "operationId": "RoleDefinitions_List", "description": "Get all role definitions that are applicable at scope and above.", "parameters": [ + { + "$ref": "./common-types.json#/parameters/ScopeParameter" + }, { "name": "$filter", "in": "query", @@ -299,9 +302,6 @@ }, { "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "./common-types.json#/parameters/ScopeParameter" } ], "responses": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/PutRoleDefinition.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/PutRoleDefinition.json index 60ff8375398c..9e6a0d763a35 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/PutRoleDefinition.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/PutRoleDefinition.json @@ -30,33 +30,6 @@ "api-version": "2022-05-01-preview" }, "responses": { - "200": { - "body": { - "properties": { - "roleName": "Role name", - "type": "roletype", - "description": "Role description", - "assignableScopes": [ - "/subscriptions/subId" - ], - "permissions": [ - { - "actions": [ - "action" - ], - "notActions": [], - "dataActions": [ - "dataAction" - ], - "notDataActions": [] - } - ] - }, - "id": "/subscriptions/subID/providers/Microsoft.Authorization/roleDefinitions/roleDefinitionId", - "type": "Microsoft.Authorization/roleDefinitions", - "name": "roleDefinitionId" - } - }, "201": { "body": { "properties": { From 4973679b7112a53d31251b13abcf5329684732aa Mon Sep 17 00:00:00 2001 From: Ryan Ren Date: Thu, 1 Jun 2023 10:11:11 -0700 Subject: [PATCH 32/42] update azure-sdk-for-go readme --- .../authorization/resource-manager/readme.go.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/specification/authorization/resource-manager/readme.go.md b/specification/authorization/resource-manager/readme.go.md index 9df6e20a96ff..ef3d0f79155a 100644 --- a/specification/authorization/resource-manager/readme.go.md +++ b/specification/authorization/resource-manager/readme.go.md @@ -102,3 +102,12 @@ Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2022-05-01-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2022-05-01-preview/$(namespace) +``` From 07476e202b952459667a049b405330bcfe69592c Mon Sep 17 00:00:00 2001 From: Ryan Ren Date: Fri, 9 Jun 2023 14:54:26 -0700 Subject: [PATCH 33/42] fix errors --- .../authorization-RoleDefinitionsCalls.json | 4 ++-- .../authorization/resource-manager/readme.go.md | 11 +---------- .../authorization/resource-manager/readme.md | 15 ++++++++------- 3 files changed, 11 insertions(+), 19 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2022-04-01/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2022-04-01/authorization-RoleDefinitionsCalls.json index 6222e0075585..4b1914e60190 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2022-04-01/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2022-04-01/authorization-RoleDefinitionsCalls.json @@ -34,7 +34,7 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/permissions": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/permissions": { "get": { "tags": [ "Permissions" @@ -76,7 +76,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/permissions": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/permissions": { "get": { "tags": [ "Permissions" diff --git a/specification/authorization/resource-manager/readme.go.md b/specification/authorization/resource-manager/readme.go.md index ef3d0f79155a..af778fb24cdf 100644 --- a/specification/authorization/resource-manager/readme.go.md +++ b/specification/authorization/resource-manager/readme.go.md @@ -101,13 +101,4 @@ Please also specify `--go-sdk-folder=`. - -``` yaml $(tag) == 'package-2022-05-01-preview' && $(go) -output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2022-05-01-preview/$(namespace) -``` +``` \ No newline at end of file diff --git a/specification/authorization/resource-manager/readme.md b/specification/authorization/resource-manager/readme.md index e8fc27682dcd..cc4381f64d67 100644 --- a/specification/authorization/resource-manager/readme.md +++ b/specification/authorization/resource-manager/readme.md @@ -118,15 +118,16 @@ input-file: - Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json - Microsoft.Authorization/preview/2022-05-01-preview/common-types.json - Microsoft.Authorization/preview/2021-12-01-preview/authorization-AccessReviewCalls.json - - Microsoft.Authorization/stable/2020-10-01/EligibleChildResources.json - - Microsoft.Authorization/stable/2020-10-01/RoleAssignmentSchedule.json - - Microsoft.Authorization/stable/2020-10-01/RoleAssignmentScheduleInstance.json + - Microsoft.Authorization/preview/2020-10-01-preview/EligibleChildResources.json + - Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentSchedule.json + - Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentScheduleInstance.json - Microsoft.Authorization/preview/2022-04-01-preview/RoleAssignmentScheduleRequest.json - - Microsoft.Authorization/stable/2020-10-01/RoleEligibilitySchedule.json - - Microsoft.Authorization/stable/2020-10-01/RoleEligibilityScheduleInstance.json + - Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilitySchedule.json + - Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilityScheduleInstance.json - Microsoft.Authorization/preview/2022-04-01-preview/RoleEligibilityScheduleRequest.json - - Microsoft.Authorization/stable/2020-10-01/RoleManagementPolicy.json - - Microsoft.Authorization/stable/2020-10-01/RoleManagementPolicyAssignment.json + - Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicy.json + - Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicyAssignment.json + - Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json ``` ### Tag: package-2021-12-01-preview-only From 95038bd73d0840f63b84efcbeba2ca740100d839 Mon Sep 17 00:00:00 2001 From: Ryan Ren Date: Mon, 12 Jun 2023 11:22:42 -0700 Subject: [PATCH 34/42] u4 --- .../preview/2022-05-01-preview/common-types.json | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json index ca16cdc4707e..0d1d67a2ef2b 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json @@ -46,6 +46,16 @@ "type": "string" }, "description": "Denied Data actions." + }, + "condition": { + "readOnly": true, + "type": "string", + "description": "The conditions on the role definition. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'" + }, + "conditionVersion": { + "readOnly": true, + "type": "string", + "description": "Version of the condition. Currently the only accepted value is '2.0'" } }, "type": "object", @@ -440,4 +450,4 @@ "x-ms-parameter-location": "method" } } -} +} \ No newline at end of file From 81b5c87e758f61da695736f819b89cc95cf474bf Mon Sep 17 00:00:00 2001 From: Ryan Ren Date: Mon, 12 Jun 2023 13:10:59 -0700 Subject: [PATCH 35/42] u5 --- .../authorization-RoleDefinitionsCalls.json | 91 +++++++++---------- 1 file changed, 45 insertions(+), 46 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index 27f93a83f0f5..9bcd6f8a8033 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -330,6 +330,49 @@ } } }, + "x-ms-paths": { + "/{roleId}?disambiguation_dummy": { + "get": { + "tags": [ + "RoleDefinitions" + ], + "operationId": "RoleDefinitions_GetById", + "description": "Gets a role definition by ID.", + "parameters": [ + { + "name": "roleId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified role definition ID. Use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for subscription level role definitions, or /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for tenant level role definitions.", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the role definition.", + "schema": { + "$ref": "#/definitions/RoleDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get role definition by ID": { + "$ref": "./examples/GetRoleDefinitionById.json" + } + } + } + } + }, "definitions": { "RoleDefinitionFilter": { "properties": { @@ -363,7 +406,7 @@ "permissions": { "type": "array", "items": { - "$ref": "#/definitions/Permission" + "$ref": "./common-types.json#/definitions/Permission" }, "x-ms-identifiers": [], "description": "Role definition permissions." @@ -450,7 +493,7 @@ "value": { "type": "array", "items": { - "$ref": "#/definitions/Permission" + "$ref": "./common-types.json#/definitions/Permission" }, "x-ms-identifiers": [], "description": "An array of permissions." @@ -462,50 +505,6 @@ }, "type": "object", "description": "Permissions information." - }, - "Permission": { - "properties": { - "actions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Allowed actions." - }, - "notActions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Denied actions." - }, - "dataActions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Allowed Data actions." - }, - "notDataActions": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Denied Data actions." - }, - "condition": { - "readOnly": true, - "type": "string", - "description": "The conditions on the role definition. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'" - }, - "conditionVersion": { - "readOnly": true, - "type": "string", - "description": "Version of the condition. Currently the only accepted value is '2.0'" - } - }, - "type": "object", - "description": "Role definition permissions." } }, "parameters": { From 0c71d9d514f8e98bcaa46695976921af75a13c6e Mon Sep 17 00:00:00 2001 From: Ryan Ren Date: Mon, 12 Jun 2023 15:41:04 -0700 Subject: [PATCH 36/42] u5 --- .../authorization-RoleDefinitionsCalls.json | 43 ------------------- .../2022-05-01-preview/common-types.json | 2 +- 2 files changed, 1 insertion(+), 44 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index 9bcd6f8a8033..3951ac50867c 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -330,49 +330,6 @@ } } }, - "x-ms-paths": { - "/{roleId}?disambiguation_dummy": { - "get": { - "tags": [ - "RoleDefinitions" - ], - "operationId": "RoleDefinitions_GetById", - "description": "Gets a role definition by ID.", - "parameters": [ - { - "name": "roleId", - "in": "path", - "required": true, - "type": "string", - "description": "The fully qualified role definition ID. Use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for subscription level role definitions, or /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for tenant level role definitions.", - "x-ms-skip-url-encoding": true - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns information about the role definition.", - "schema": { - "$ref": "#/definitions/RoleDefinition" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-examples": { - "Get role definition by ID": { - "$ref": "./examples/GetRoleDefinitionById.json" - } - } - } - } - }, "definitions": { "RoleDefinitionFilter": { "properties": { diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json index 0d1d67a2ef2b..7c31f8598eb2 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/common-types.json @@ -450,4 +450,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} From 504fb7d97bd5d62d89bfe8e4bff41ee05e3a974a Mon Sep 17 00:00:00 2001 From: Ryan Ren Date: Tue, 13 Jun 2023 08:33:24 -0700 Subject: [PATCH 37/42] u6 --- .../stable/2022-04-01/authorization-RoleDefinitionsCalls.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2022-04-01/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2022-04-01/authorization-RoleDefinitionsCalls.json index 4b1914e60190..fcf82c709369 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2022-04-01/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2022-04-01/authorization-RoleDefinitionsCalls.json @@ -110,6 +110,7 @@ "name": "resourceName", "in": "path", "required": true, + "pattern": ".+", "type": "string", "description": "The name of the resource to get the permissions for." }, From 305bad10a848242bdc6ef22e9960f4a80197dc7c Mon Sep 17 00:00:00 2001 From: Ryan Ren Date: Tue, 13 Jun 2023 09:44:02 -0700 Subject: [PATCH 38/42] u7 --- .../RoleManagementPolicy.json | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicy.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicy.json index 0b378e9a5b4e..13dd3f490e4d 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicy.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicy.json @@ -350,7 +350,7 @@ } }, "RoleManagementPolicyApprovalRule": { - "description": "The role management policy rule.", + "description": "The role management policy approval rule.", "allOf": [ { "$ref": "#/definitions/RoleManagementPolicyRule" @@ -370,15 +370,15 @@ "properties": { "isApprovalRequired": { "type": "boolean", - "description": "Determine whether approval is required or not." + "description": "Determines whether approval is required or not." }, "isApprovalRequiredForExtension": { "type": "boolean", - "description": "Determine whether approval is required for assignment extension." + "description": "Determines whether approval is required for assignment extension." }, "isRequestorJustificationRequired": { "type": "boolean", - "description": "Determine whether requestor justification required." + "description": "Determine whether requestor justification is required." }, "approvalMode": { "type": "string", @@ -411,16 +411,16 @@ "approvalStageTimeOutInDays": { "type": "integer", "format": "int32", - "description": "The time in days when approval request would be timed out." + "description": "The time in days when approval request would be timed out" }, "isApproverJustificationRequired": { "type": "boolean", - "description": "Determine whether approver need to provide justification for his decision." + "description": "Determines whether approver need to provide justification for his decision." }, "escalationTimeInMinutes": { "type": "integer", "format": "int32", - "description": "The time in minutes when the approval request would be escalated if the primary approver does not approves." + "description": "The time in minutes when the approval request would be escalated if the primary approver does not approve" }, "primaryApprovers": { "type": "array", @@ -473,7 +473,7 @@ } }, "RoleManagementPolicyAuthenticationContextRule": { - "description": "The role management policy rule.", + "description": "The role management policy authentication context rule.", "allOf": [ { "$ref": "#/definitions/RoleManagementPolicyRule" @@ -504,7 +504,7 @@ "type": "array", "items": { "type": "string", - "description": "The type of enable rules", + "description": "The type of enablement rule", "enum": [ "MultiFactorAuthentication", "Justification", @@ -520,7 +520,7 @@ } }, "RoleManagementPolicyExpirationRule": { - "description": "The role management policy rule.", + "description": "The role management policy expiration rule.", "allOf": [ { "$ref": "#/definitions/RoleManagementPolicyRule" @@ -539,7 +539,7 @@ } }, "RoleManagementPolicyNotificationRule": { - "description": "The role management policy rule.", + "description": "The role management policy notification rule.", "allOf": [ { "$ref": "#/definitions/RoleManagementPolicyRule" @@ -589,11 +589,11 @@ "items": { "type": "string" }, - "description": "The list notification recipients." + "description": "The list of notification recipients." }, "isDefaultRecipientsEnabled": { "type": "boolean", - "description": "Its value determine if the notification need to be sent to the recipient type specified in policy rule." + "description": "Determines if the notification will be sent to the recipient type specified in the policy rule." } } }, @@ -614,7 +614,7 @@ }, "level": { "type": "string", - "description": "The assignment level to which it is applied." + "description": "The assignment level to which rule is applied." }, "targetObjects": { "type": "array", From 000a33a70abf0ba1090efdb5056217eac2d89d1b Mon Sep 17 00:00:00 2001 From: Ryan Ren Date: Wed, 14 Jun 2023 07:04:41 -0700 Subject: [PATCH 39/42] u8 --- .../authorization-RoleDefinitionsCalls.json | 4 ++-- .../stable/2022-04-01/authorization-RoleDefinitionsCalls.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index 3951ac50867c..6c8b515c3916 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -34,7 +34,7 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/permissions": { + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/permissions": { "get": { "tags": [ "Permissions" @@ -76,7 +76,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/permissions": { + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/permissions": { "get": { "tags": [ "Permissions" diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2022-04-01/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2022-04-01/authorization-RoleDefinitionsCalls.json index fcf82c709369..cecfbd0b128e 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2022-04-01/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2022-04-01/authorization-RoleDefinitionsCalls.json @@ -34,7 +34,7 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/permissions": { + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/permissions": { "get": { "tags": [ "Permissions" @@ -76,7 +76,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/permissions": { + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/permissions": { "get": { "tags": [ "Permissions" From 15d93f151535ce931d33bcd343a7a673f8efc808 Mon Sep 17 00:00:00 2001 From: Ryan Ren Date: Thu, 15 Jun 2023 11:14:01 -0700 Subject: [PATCH 40/42] u9 --- .../authorization-RoleDefinitionsCalls.json | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index 6c8b515c3916..86768806e5e3 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -330,6 +330,49 @@ } } }, + "x-ms-paths": { + "/{roleId}?disambiguation_dummy": { + "get": { + "tags": [ + "RoleDefinitions" + ], + "operationId": "RoleDefinitions_GetById", + "description": "Gets a role definition by ID.", + "parameters": [ + { + "name": "roleId", + "in": "path", + "required": true, + "type": "string", + "description": "The fully qualified role definition ID. Use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for subscription level role definitions, or /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for tenant level role definitions.", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the role definition.", + "schema": { + "$ref": "#/definitions/RoleDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get role definition by ID": { + "$ref": "./examples/GetRoleDefinitionById.json" + } + } + } + } + }, "definitions": { "RoleDefinitionFilter": { "properties": { From a88f2fc417213ab63f5a86f86337934406b2462a Mon Sep 17 00:00:00 2001 From: Ryan Ren Date: Thu, 15 Jun 2023 13:59:37 -0700 Subject: [PATCH 41/42] u10 --- .../authorization-RoleDefinitionsCalls.json | 6 ++-- .../examples/GetRoleDefinitionByRoleId.json | 35 +++++++++++++++++++ 2 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionByRoleId.json diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json index 86768806e5e3..4d9de4e9dc11 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/authorization-RoleDefinitionsCalls.json @@ -226,7 +226,7 @@ } }, "x-ms-examples": { - "Get role definition by name": { + "Get role definition by id": { "$ref": "./examples/GetRoleDefinitionById.json" } } @@ -366,8 +366,8 @@ } }, "x-ms-examples": { - "Get role definition by ID": { - "$ref": "./examples/GetRoleDefinitionById.json" + "Get role definition by role ID": { + "$ref": "./examples/GetRoleDefinitionByRoleId.json" } } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionByRoleId.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionByRoleId.json new file mode 100644 index 000000000000..6bac7e410f4b --- /dev/null +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionByRoleId.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "roleId": "roleDefinitionId", + "api-version": "2022-04-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "roleName": "Role name", + "type": "roletype", + "description": "Role description", + "assignableScopes": [ + "/subscriptions/subId" + ], + "permissions": [ + { + "actions": [ + "action" + ], + "notActions": [], + "dataActions": [ + "dataAction" + ], + "notDataActions": [] + } + ] + }, + "id": "/subscriptions/subID/providers/Microsoft.Authorization/roleDefinitions/roleDefinitionId", + "type": "Microsoft.Authorization/roleDefinitions", + "name": "roleDefinitionId" + } + } + } +} From e6796b206256eca607032d1c9c933150a2fffc6c Mon Sep 17 00:00:00 2001 From: Ryan Ren Date: Thu, 15 Jun 2023 14:04:20 -0700 Subject: [PATCH 42/42] u11 --- .../2022-05-01-preview/examples/GetRoleDefinitionByRoleId.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionByRoleId.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionByRoleId.json index 6bac7e410f4b..c8cf3fd93d6e 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionByRoleId.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-05-01-preview/examples/GetRoleDefinitionByRoleId.json @@ -1,7 +1,7 @@ { "parameters": { "roleId": "roleDefinitionId", - "api-version": "2022-04-01" + "api-version": "2022-05-01-preview" }, "responses": { "200": {