From f0a0a9f0ab2278885f9349ef03bf02d4790f28ec Mon Sep 17 00:00:00 2001 From: jdhms <77470403+jdhms@users.noreply.github.com> Date: Sun, 21 Feb 2021 13:43:48 -0800 Subject: [PATCH] fix semantic and example errors in previous versions for compatability (#12909) --- .../authorization-ClassicAdminCalls.json | 29 ++-- .../authorization-RoleAssignmentsCalls.json | 141 +++++++++++------ .../examples/DeleteRoleAssignmentById.json | 3 +- .../examples/DeleteRoleAssignmentByName.json | 3 +- ...authorization-ProviderOperationsCalls.json | 42 ++--- .../authorization-RoleAssignmentsCalls.json | 138 +++++++++++------ .../authorization-RoleDefinitionsCalls.json | 103 ++++++++----- .../examples/DeleteRoleAssignmentById.json | 3 +- .../examples/DeleteRoleAssignmentByName.json | 3 +- .../examples/DeleteRoleDefinition.json | 3 +- .../authorization-DenyAssignmentGetCalls.json | 92 ++++++----- .../authorization-RoleAssignmentsCalls.json | 138 +++++++++++------ .../examples/DeleteRoleAssignmentById.json | 3 +- .../examples/DeleteRoleAssignmentByName.json | 3 +- .../examples/DeleteRoleDefinition.json | 3 +- .../authorization-RoleAssignmentsCalls.json | 143 +++++++++--------- .../examples/DeleteRoleAssignmentById.json | 3 +- .../authorization-ClassicAdminCalls.json | 29 ++-- .../authorization-ElevateAccessCalls.json | 20 ++- ...authorization-ProviderOperationsCalls.json | 45 +++--- .../authorization-RoleAssignmentsCalls.json | 141 +++++++++++------ .../authorization-RoleDefinitionsCalls.json | 106 ++++++++----- .../examples/DeleteRoleAssignmentById.json | 3 +- .../examples/DeleteRoleAssignmentByName.json | 3 +- .../examples/DeleteRoleDefinition.json | 3 +- .../authorization/resource-manager/readme.md | 2 + 26 files changed, 708 insertions(+), 497 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-06-01/authorization-ClassicAdminCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-06-01/authorization-ClassicAdminCalls.json index 766e9d23abbf..86c9336b61fd 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-06-01/authorization-ClassicAdminCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2015-06-01/authorization-ClassicAdminCalls.json @@ -43,10 +43,10 @@ "description": "Gets service administrator, account administrator, and co-administrators for the subscription.", "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -55,13 +55,19 @@ "schema": { "$ref": "#/definitions/ClassicAdministratorListResult" } + }, + "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": { - "GetConfigurations": { + "List classic administrators": { "$ref": "./examples/GetClassicAdministrators.json" } } @@ -121,20 +127,5 @@ "description": "ClassicAdministrator list result information." } }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the target subscription." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." - } - } + "parameters": {} } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2017-10-01-preview/authorization-RoleAssignmentsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2017-10-01-preview/authorization-RoleAssignmentsCalls.json index 965932a9bf59..d7ec0c79ca0c 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2017-10-01-preview/authorization-RoleAssignmentsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2017-10-01-preview/authorization-RoleAssignmentsCalls.json @@ -43,11 +43,7 @@ "description": "Gets role assignments for a resource.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "resourceProviderNamespace", @@ -87,10 +83,10 @@ "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." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -99,6 +95,12 @@ "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": { @@ -106,7 +108,7 @@ }, "x-ms-odata": "#/definitions/RoleAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "List role assignments for resource": { "$ref": "./examples/GetRoleAssignmentsForResource.json" } } @@ -121,11 +123,7 @@ "description": "Gets role assignments for a resource group.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "$filter", @@ -135,10 +133,10 @@ "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." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -147,6 +145,12 @@ "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": { @@ -154,7 +158,7 @@ }, "x-ms-odata": "#/definitions/RoleAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "List role assignments for resource group": { "$ref": "./examples/GetRoleAssignmentsForResourceGroup.json" } } @@ -184,7 +188,7 @@ "description": "The name of the role assignment to delete." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -193,10 +197,19 @@ "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": { - "GetConfigurations": { + "Delete role assignment by name": { "$ref": "./examples/DeleteRoleAssignmentByName.json" } } @@ -233,7 +246,7 @@ "description": "Parameters for the role assignment." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -242,10 +255,16 @@ "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": { - "GetConfigurations": { + "Create role assignment": { "$ref": "./examples/PutRoleAssignment.json" } } @@ -273,7 +292,7 @@ "description": "The name of the role assignment to get." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -282,10 +301,16 @@ "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": { - "GetConfigurations": { + "Get role assignment by name": { "$ref": "./examples/GetRoleAssignmentByName.json" } } @@ -308,7 +333,7 @@ "x-ms-skip-url-encoding": true }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -317,10 +342,19 @@ "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": { - "GetConfigurations": { + "Delete role assignment by ID": { "$ref": "./examples/DeleteRoleAssignmentById.json" } } @@ -350,7 +384,7 @@ "description": "Parameters for the role assignment." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -359,10 +393,16 @@ "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": { - "GetConfigurations": { + "Create role assignment by ID": { "$ref": "./examples/PutRoleAssignmentById.json" } } @@ -383,7 +423,7 @@ "x-ms-skip-url-encoding": true }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -392,10 +432,16 @@ "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": { - "GetConfigurations": { + "Get role assignment by ID": { "$ref": "./examples/GetRoleAssignmentById.json" } } @@ -417,10 +463,10 @@ "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." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -429,6 +475,12 @@ "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": { @@ -436,7 +488,7 @@ }, "x-ms-odata": "#/definitions/RoleAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "List role assignments for subscription": { "$ref": "./examples/GetAllRoleAssignments.json" } } @@ -466,7 +518,7 @@ "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." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -475,6 +527,12 @@ "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": { @@ -482,7 +540,7 @@ }, "x-ms-odata": "#/definitions/RoleAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "List role assignments for scope": { "$ref": "./examples/GetRoleAssignmentByScope.json" } } @@ -593,20 +651,5 @@ "description": "Role assignment create parameters." } }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the target subscription." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." - } - } + "parameters": {} } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2017-10-01-preview/examples/DeleteRoleAssignmentById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2017-10-01-preview/examples/DeleteRoleAssignmentById.json index 520799e471f1..5e4fd293340f 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2017-10-01-preview/examples/DeleteRoleAssignmentById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2017-10-01-preview/examples/DeleteRoleAssignmentById.json @@ -17,6 +17,7 @@ "type": "Microsoft.Authorization/roleAssignments", "name": "roleassignmentId" } - } + }, + "204": {} } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2017-10-01-preview/examples/DeleteRoleAssignmentByName.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2017-10-01-preview/examples/DeleteRoleAssignmentByName.json index 7d4fe111eb4c..81099938012d 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2017-10-01-preview/examples/DeleteRoleAssignmentByName.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2017-10-01-preview/examples/DeleteRoleAssignmentByName.json @@ -17,6 +17,7 @@ "type": "Microsoft.Authorization/roleAssignments", "name": "roleassignmentId" } - } + }, + "204": {} } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-ProviderOperationsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-ProviderOperationsCalls.json index 0759f1bfc3e4..87e1d9dc2ac0 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-ProviderOperationsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-ProviderOperationsCalls.json @@ -46,7 +46,7 @@ "$ref": "#/parameters/ResourceProviderNamespaceParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "name": "$expand", @@ -63,10 +63,16 @@ "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": { - "GetConfigurations": { + "List provider operations metadata for resource provider": { "$ref": "./examples/GetProviderOperationsRP.json" } } @@ -81,7 +87,7 @@ "description": "Gets provider operations metadata for all resource providers.", "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "name": "$expand", @@ -98,13 +104,19 @@ "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": { - "GetConfigurations": { + "List provider operations metadata for all resource providers": { "$ref": "./examples/GetAllProviderOperations.json" } } @@ -215,28 +227,6 @@ } }, "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the target subscription." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, "ResourceProviderNamespaceParameter": { "name": "resourceProviderNamespace", "in": "path", diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleAssignmentsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleAssignmentsCalls.json index 80bab7549988..f22cddf3afa5 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleAssignmentsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleAssignmentsCalls.json @@ -43,7 +43,7 @@ "description": "Gets role assignments for a resource.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ResourceProviderNamespaceParameter" @@ -79,10 +79,10 @@ "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." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -91,6 +91,12 @@ "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": { @@ -98,7 +104,7 @@ }, "x-ms-odata": "#/definitions/RoleAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "List role assignments for resource": { "$ref": "./examples/GetRoleAssignmentsForResource.json" } } @@ -113,7 +119,7 @@ "description": "Gets role assignments for a resource group.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "$filter", @@ -123,10 +129,10 @@ "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." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -135,6 +141,12 @@ "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": { @@ -142,7 +154,7 @@ }, "x-ms-odata": "#/definitions/RoleAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "List role assignments for resource group": { "$ref": "./examples/GetRoleAssignmentsForResourceGroup.json" } } @@ -172,7 +184,7 @@ "description": "The name of the role assignment to delete." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -181,10 +193,19 @@ "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": { - "GetConfigurations": { + "Delete role assignment by name": { "$ref": "./examples/DeleteRoleAssignmentByName.json" } } @@ -221,7 +242,7 @@ "description": "Parameters for the role assignment." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -230,10 +251,16 @@ "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": { - "GetConfigurations": { + "Create role assignment": { "$ref": "./examples/PutRoleAssignment.json" } } @@ -261,7 +288,7 @@ "description": "The name of the role assignment to get." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -270,10 +297,16 @@ "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": { - "GetConfigurations": { + "Get role assignment by name": { "$ref": "./examples/GetRoleAssignmentByName.json" } } @@ -296,7 +329,7 @@ "x-ms-skip-url-encoding": true }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -305,10 +338,19 @@ "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": { - "GetConfigurations": { + "Delete role assignment by ID": { "$ref": "./examples/DeleteRoleAssignmentById.json" } } @@ -338,7 +380,7 @@ "description": "Parameters for the role assignment." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -347,10 +389,16 @@ "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": { - "GetConfigurations": { + "Create role assignment by ID": { "$ref": "./examples/PutRoleAssignmentById.json" } } @@ -371,7 +419,7 @@ "x-ms-skip-url-encoding": true }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -380,10 +428,16 @@ "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": { - "GetConfigurations": { + "Get role assignment by ID": { "$ref": "./examples/GetRoleAssignmentById.json" } } @@ -405,10 +459,10 @@ "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." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -417,6 +471,12 @@ "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": { @@ -424,7 +484,7 @@ }, "x-ms-odata": "#/definitions/RoleAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "Get all role assignments": { "$ref": "./examples/GetAllRoleAssignments.json" } } @@ -454,7 +514,7 @@ "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." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -463,6 +523,12 @@ "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": { @@ -470,7 +536,7 @@ }, "x-ms-odata": "#/definitions/RoleAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "Get role assignment by scope": { "$ref": "./examples/GetRoleAssignmentByScope.json" } } @@ -589,28 +655,6 @@ } }, "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the target subscription." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, "ResourceProviderNamespaceParameter": { "name": "resourceProviderNamespace", "in": "path", diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleDefinitionsCalls.json index 809db9dfe1ed..03ad5e128747 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/authorization-RoleDefinitionsCalls.json @@ -43,13 +43,13 @@ "description": "Gets all permissions the caller has for a resource group.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -58,13 +58,19 @@ "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": { - "GetConfigurations": { + "List permissions for resource group": { "$ref": "./examples/GetPermissions.json" } } @@ -79,7 +85,7 @@ "description": "Gets all permissions the caller has for a resource.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ResourceProviderNamespaceParameter" @@ -108,10 +114,10 @@ "description": "The name of the resource to get the permissions for." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -120,13 +126,19 @@ "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": { - "GetConfigurations": { + "List permissions for resource": { "$ref": "./examples/GetResourcePermissions.json" } } @@ -156,7 +168,7 @@ "description": "The ID of the role definition to delete." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -165,10 +177,19 @@ "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": { - "GetConfigurations": { + "Delete role definition": { "$ref": "./examples/DeleteRoleDefinition.json" } } @@ -196,7 +217,7 @@ "description": "The ID of the role definition." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -205,10 +226,16 @@ "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": { - "GetConfigurations": { + "Get role definition by name": { "$ref": "./examples/GetRoleDefinitionByName.json" } } @@ -245,7 +272,7 @@ "description": "The values for the role definition." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -254,10 +281,16 @@ "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": { - "GetConfigurations": { + "Create role definition": { "$ref": "./examples/PutRoleDefinition.json" } } @@ -287,7 +320,7 @@ "description": "The filter to apply on the operation. Use atScopeAndBelow filter to search below the given scope as well." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -296,6 +329,12 @@ "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": { @@ -303,7 +342,7 @@ }, "x-ms-odata": "#/definitions/RoleDefinitionFilter", "x-ms-examples": { - "GetConfigurations": { + "List role definition for scope": { "$ref": "./examples/GetRoleDefinitionAtScope.json" } } @@ -328,7 +367,7 @@ "x-ms-skip-url-encoding": true }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -337,10 +376,16 @@ "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": { - "GetConfigurations": { + "Get role definition by ID": { "$ref": "./examples/GetRoleDefinitionById.json" } } @@ -485,28 +530,6 @@ } }, "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the target subscription." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, "ResourceProviderNamespaceParameter": { "name": "resourceProviderNamespace", "in": "path", diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/examples/DeleteRoleAssignmentById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/examples/DeleteRoleAssignmentById.json index 5718deea9049..2d8b19d100cd 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/examples/DeleteRoleAssignmentById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/examples/DeleteRoleAssignmentById.json @@ -17,6 +17,7 @@ "type": "Microsoft.Authorization/roleAssignments", "name": "roleassignmentId" } - } + }, + "204": {} } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/examples/DeleteRoleAssignmentByName.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/examples/DeleteRoleAssignmentByName.json index 0f0486a7e597..4f8806e999df 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/examples/DeleteRoleAssignmentByName.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/examples/DeleteRoleAssignmentByName.json @@ -17,6 +17,7 @@ "type": "Microsoft.Authorization/roleAssignments", "name": "roleassignmentId" } - } + }, + "204": {} } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/examples/DeleteRoleDefinition.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/examples/DeleteRoleDefinition.json index 208ea4688b3c..6a7897f3acea 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/examples/DeleteRoleDefinition.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-01-01-preview/examples/DeleteRoleDefinition.json @@ -31,6 +31,7 @@ "type": "Microsoft.Authorization/roleDefinitions", "name": "roleDefinitionId" } - } + }, + "204": {} } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json index 80ead33f9cf7..dce53341343a 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-07-01-preview/authorization-DenyAssignmentGetCalls.json @@ -43,10 +43,10 @@ "description": "Gets deny assignments for a resource.", "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ResourceProviderNamespaceParameter" @@ -75,7 +75,7 @@ "description": "The name of the resource to get deny assignments for." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/FilterParameter" @@ -87,6 +87,12 @@ "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": { @@ -94,7 +100,7 @@ }, "x-ms-odata": "#/definitions/DenyAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "List deny assignments for resource": { "$ref": "./examples/GetDenyAssignmentsForResource.json" } } @@ -109,13 +115,13 @@ "description": "Gets deny assignments for a resource group.", "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/FilterParameter" @@ -127,6 +133,12 @@ "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": { @@ -134,7 +146,7 @@ }, "x-ms-odata": "#/definitions/DenyAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "List deny assignments for resource group": { "$ref": "./examples/GetDenyAssignmentsForResourceGroup.json" } } @@ -149,10 +161,10 @@ "description": "Gets all deny assignments for the subscription.", "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/FilterParameter" @@ -164,6 +176,12 @@ "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": { @@ -171,7 +189,7 @@ }, "x-ms-odata": "#/definitions/DenyAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "List deny assignments for subscription": { "$ref": "./examples/GetAllDenyAssignments.json" } } @@ -201,7 +219,7 @@ "description": "The ID of the deny assignment to get." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -210,10 +228,16 @@ "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": { - "GetConfigurations": { + "Get deny assignment by name": { "$ref": "./examples/GetDenyAssignmentByNameId.json" } } @@ -236,7 +260,7 @@ "x-ms-skip-url-encoding": true }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -245,10 +269,16 @@ "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": { - "GetConfigurations": { + "Get deny assignment by ID": { "$ref": "./examples/GetDenyAssignmentById.json" } } @@ -271,7 +301,7 @@ "x-ms-skip-url-encoding": true }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/FilterParameter" @@ -283,6 +313,12 @@ "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": { @@ -290,7 +326,7 @@ }, "x-ms-odata": "#/definitions/DenyAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "List deny assignments for scope": { "$ref": "./examples/GetDenyAssignmentByScope.json" } } @@ -452,28 +488,6 @@ } }, "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the target subscription." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, "ResourceProviderNamespaceParameter": { "name": "resourceProviderNamespace", "in": "path", diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-09-01-preview/authorization-RoleAssignmentsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-09-01-preview/authorization-RoleAssignmentsCalls.json index db2dbc5547e0..0a17861fec16 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-09-01-preview/authorization-RoleAssignmentsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-09-01-preview/authorization-RoleAssignmentsCalls.json @@ -43,7 +43,7 @@ "description": "Gets role assignments for a resource.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ResourceProviderNamespaceParameter" @@ -79,10 +79,10 @@ "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." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -91,6 +91,12 @@ "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": { @@ -98,7 +104,7 @@ }, "x-ms-odata": "#/definitions/RoleAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "List role assignments for resource": { "$ref": "./examples/GetRoleAssignmentsForResource.json" } } @@ -113,7 +119,7 @@ "description": "Gets role assignments for a resource group.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "$filter", @@ -123,10 +129,10 @@ "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." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -135,6 +141,12 @@ "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": { @@ -142,7 +154,7 @@ }, "x-ms-odata": "#/definitions/RoleAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "List role assignments for resource group": { "$ref": "./examples/GetRoleAssignmentsForResourceGroup.json" } } @@ -172,7 +184,7 @@ "description": "The name of the role assignment to delete." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -181,10 +193,19 @@ "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": { - "GetConfigurations": { + "Delete role assignment by name": { "$ref": "./examples/DeleteRoleAssignmentByName.json" } } @@ -221,7 +242,7 @@ "description": "Parameters for the role assignment." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -230,10 +251,16 @@ "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": { - "GetConfigurations": { + "Create role assignment": { "$ref": "./examples/PutRoleAssignment.json" } } @@ -261,7 +288,7 @@ "description": "The name of the role assignment to get." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -270,10 +297,16 @@ "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": { - "GetConfigurations": { + "Get role assignment by name": { "$ref": "./examples/GetRoleAssignmentByName.json" } } @@ -296,7 +329,7 @@ "x-ms-skip-url-encoding": true }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -305,10 +338,19 @@ "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": { - "GetConfigurations": { + "Delete role assignment by ID": { "$ref": "./examples/DeleteRoleAssignmentById.json" } } @@ -338,7 +380,7 @@ "description": "Parameters for the role assignment." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -347,10 +389,16 @@ "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": { - "GetConfigurations": { + "Create role assignment by ID": { "$ref": "./examples/PutRoleAssignmentById.json" } } @@ -371,7 +419,7 @@ "x-ms-skip-url-encoding": true }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -380,10 +428,16 @@ "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": { - "GetConfigurations": { + "Get role assignment by ID": { "$ref": "./examples/GetRoleAssignmentById.json" } } @@ -405,10 +459,10 @@ "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." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -417,6 +471,12 @@ "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": { @@ -424,7 +484,7 @@ }, "x-ms-odata": "#/definitions/RoleAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "List role assignments for subscription": { "$ref": "./examples/GetAllRoleAssignments.json" } } @@ -454,7 +514,7 @@ "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." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -463,6 +523,12 @@ "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": { @@ -470,7 +536,7 @@ }, "x-ms-odata": "#/definitions/RoleAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "List role assignments for scope": { "$ref": "./examples/GetRoleAssignmentByScope.json" } } @@ -629,28 +695,6 @@ } }, "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the target subscription." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, "ResourceProviderNamespaceParameter": { "name": "resourceProviderNamespace", "in": "path", diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-09-01-preview/examples/DeleteRoleAssignmentById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-09-01-preview/examples/DeleteRoleAssignmentById.json index 17eadc3dc3d0..d23105c32c9c 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-09-01-preview/examples/DeleteRoleAssignmentById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-09-01-preview/examples/DeleteRoleAssignmentById.json @@ -18,6 +18,7 @@ "type": "Microsoft.Authorization/roleAssignments", "name": "roleassignmentId" } - } + }, + "204": {} } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-09-01-preview/examples/DeleteRoleAssignmentByName.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-09-01-preview/examples/DeleteRoleAssignmentByName.json index 3676556bd2b2..7087530d794f 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-09-01-preview/examples/DeleteRoleAssignmentByName.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-09-01-preview/examples/DeleteRoleAssignmentByName.json @@ -18,6 +18,7 @@ "type": "Microsoft.Authorization/roleAssignments", "name": "roleassignmentId" } - } + }, + "204": {} } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-09-01-preview/examples/DeleteRoleDefinition.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-09-01-preview/examples/DeleteRoleDefinition.json index 451b7099281b..391e776f0edd 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-09-01-preview/examples/DeleteRoleDefinition.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2018-09-01-preview/examples/DeleteRoleDefinition.json @@ -31,6 +31,7 @@ "type": "Microsoft.Authorization/roleDefinitions", "name": "roleDefinitionId" } - } + }, + "204": {} } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-04-01-preview/authorization-RoleAssignmentsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-04-01-preview/authorization-RoleAssignmentsCalls.json index 97eeaf9b4548..687494cb08ce 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-04-01-preview/authorization-RoleAssignmentsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-04-01-preview/authorization-RoleAssignmentsCalls.json @@ -40,10 +40,10 @@ "RoleAssignments" ], "operationId": "RoleAssignments_ListForResource", - "description": "Gets role assignments for a resource.", + "description": "List role assignments for a resource.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ResourceProviderNamespaceParameter" @@ -79,18 +79,24 @@ "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." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { - "description": "OK - Returns an array of role assignments.", + "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": { @@ -98,7 +104,7 @@ }, "x-ms-odata": "#/definitions/RoleAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "List role assignments for resource": { "$ref": "./examples/GetRoleAssignmentsForResource.json" } } @@ -110,10 +116,10 @@ "RoleAssignments" ], "operationId": "RoleAssignments_ListForResourceGroup", - "description": "Gets role assignments for a resource group.", + "description": "List role assignments for a resource group.", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "$filter", @@ -123,21 +129,21 @@ "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." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { - "description": "OK - Returns an array of role assignments.", + "description": "Returns an array of role assignments.", "schema": { "$ref": "#/definitions/RoleAssignmentListResult" } }, "default": { - "description": "error response describing why the operation failed.", + "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } @@ -148,7 +154,7 @@ }, "x-ms-odata": "#/definitions/RoleAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "List role assignments for resource group": { "$ref": "./examples/GetRoleAssignmentsForResourceGroup.json" } } @@ -160,7 +166,7 @@ "RoleAssignments" ], "operationId": "RoleAssignments_Delete", - "description": "Deletes a role assignment.", + "description": "Delete a role assignment.", "parameters": [ { "name": "scope", @@ -178,28 +184,28 @@ "description": "The name of the role assignment to delete." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "OK - Returns information about the role assignment.", + "description": "Returns information about the role assignment.", "schema": { "$ref": "#/definitions/RoleAssignment" } }, "204": { - "description": "Deleted - Indicates correct deletion without returning additional info" + "description": "Indicates correct deletion without returning additional info" }, "default": { - "description": "error response describing why the operation failed.", + "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "GetConfigurations": { + "Delete role assignment by name": { "$ref": "./examples/DeleteRoleAssignmentByName.json" } } @@ -209,7 +215,7 @@ "RoleAssignments" ], "operationId": "RoleAssignments_Create", - "description": "Creates a role assignment.", + "description": "Create a role assignment.", "parameters": [ { "name": "scope", @@ -236,25 +242,25 @@ "description": "Parameters for the role assignment." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { "201": { - "description": "Created - Returns information about the role assignment.", + "description": "Returns information about the role assignment.", "schema": { "$ref": "#/definitions/RoleAssignment" } }, "default": { - "description": "error response describing why the operation failed.", + "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "GetConfigurations": { + "Create role assignment": { "$ref": "./examples/PutRoleAssignment.json" } } @@ -282,25 +288,25 @@ "description": "The name of the role assignment to get." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "OK - Returns information about the role assignment.", + "description": "Returns information about the role assignment.", "schema": { "$ref": "#/definitions/RoleAssignment" } }, "default": { - "description": "error response describing why the operation failed.", + "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { - "GetConfigurations": { + "Get role assignment by name": { "$ref": "./examples/GetRoleAssignmentByName.json" } } @@ -312,7 +318,7 @@ "RoleAssignments" ], "operationId": "RoleAssignments_DeleteById", - "description": "Deletes a role assignment.", + "description": "Delete a role assignment.", "parameters": [ { "name": "roleId", @@ -323,19 +329,28 @@ "x-ms-skip-url-encoding": true }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "OK - Returns information about the role assignment.", + "description": "Returns information about the 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": { - "GetConfigurations": { + "Delete role assignment by ID": { "$ref": "./examples/DeleteRoleAssignmentById.json" } } @@ -365,19 +380,25 @@ "description": "Parameters for the role assignment." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { "201": { - "description": "Created - Returns the role assignment.", + "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": { - "GetConfigurations": { + "Create role assignment by ID": { "$ref": "./examples/PutRoleAssignmentById.json" } } @@ -398,19 +419,25 @@ "x-ms-skip-url-encoding": true }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "OK - Returns the role assignment.", + "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": { - "GetConfigurations": { + "Get role assignment by ID": { "$ref": "./examples/GetRoleAssignmentById.json" } } @@ -432,21 +459,21 @@ "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." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { - "description": "OK - Returns an array of role assignments.", + "description": "Returns an array of role assignments.", "schema": { "$ref": "#/definitions/RoleAssignmentListResult" } }, "default": { - "description": "error response describing why the operation failed.", + "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } @@ -457,7 +484,7 @@ }, "x-ms-odata": "#/definitions/RoleAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "List role assignments for subscription": { "$ref": "./examples/GetAllRoleAssignments.json" } } @@ -487,18 +514,18 @@ "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." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "OK - Returns an array of role assignments.", + "description": "Returns an array of role assignments.", "schema": { "$ref": "#/definitions/RoleAssignmentListResult" } }, "default": { - "description": "error response describing why the operation failed.", + "description": "Error response describing why the operation failed.", "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } @@ -509,7 +536,7 @@ }, "x-ms-odata": "#/definitions/RoleAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "List role assignments for scope": { "$ref": "./examples/GetRoleAssignmentByScope.json" } } @@ -714,28 +741,6 @@ } }, "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the target subscription." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, "ResourceProviderNamespaceParameter": { "name": "resourceProviderNamespace", "in": "path", diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-04-01-preview/examples/DeleteRoleAssignmentById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-04-01-preview/examples/DeleteRoleAssignmentById.json index 79a4930d5d95..c0a8d4ba80d7 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-04-01-preview/examples/DeleteRoleAssignmentById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-04-01-preview/examples/DeleteRoleAssignmentById.json @@ -21,6 +21,7 @@ "type": "Microsoft.Authorization/roleAssignments", "name": "roleassignmentId" } - } + }, + "204": {} } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-ClassicAdminCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-ClassicAdminCalls.json index 81315d28b12b..c6e8d27dd1bd 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-ClassicAdminCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-ClassicAdminCalls.json @@ -43,10 +43,10 @@ "description": "Gets service administrator, account administrator, and co-administrators for the subscription.", "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -55,13 +55,19 @@ "schema": { "$ref": "#/definitions/ClassicAdministratorListResult" } + }, + "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": { - "GetConfigurations": { + "List classic administrators": { "$ref": "./examples/GetClassicAdministrators.json" } } @@ -121,20 +127,5 @@ "description": "ClassicAdministrator list result information." } }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the target subscription." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." - } - } + "parameters": {} } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-ElevateAccessCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-ElevateAccessCalls.json index 4043bf91de4b..90756ae82b05 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-ElevateAccessCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-ElevateAccessCalls.json @@ -43,29 +43,27 @@ "description": "Elevates access for a Global Administrator.", "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK - Returns an HttpResponseMessage with HttpStatusCode 200." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { - "GetConfigurations": { + "Elevate access global administrator": { "$ref": "./examples/ElevateAccess.json" } } } } }, - "parameters": { - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." - } - } + "parameters": {} } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-ProviderOperationsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-ProviderOperationsCalls.json index b465e7e64ba4..a5d77c4d5ed3 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-ProviderOperationsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-ProviderOperationsCalls.json @@ -50,11 +50,7 @@ "description": "The namespace of the resource provider." }, { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for the operation." + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "name": "$expand", @@ -71,10 +67,16 @@ "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": { - "GetConfigurations": { + "Get provider operations metadata for resource provider": { "$ref": "./examples/GetProviderOperationsRP.json" } } @@ -89,11 +91,7 @@ "description": "Gets provider operations metadata for all resource providers.", "parameters": [ { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "name": "$expand", @@ -110,13 +108,19 @@ "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": { - "GetConfigurations": { + "List provider operations metadata for all resource providers": { "$ref": "./examples/GetAllProviderOperations.json" } } @@ -222,20 +226,5 @@ "description": "Provider operations metadata list" } }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the target subscription." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." - } - } + "parameters": {} } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-RoleAssignmentsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-RoleAssignmentsCalls.json index 02d3651de52f..79a41c0510c3 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-RoleAssignmentsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-RoleAssignmentsCalls.json @@ -43,11 +43,7 @@ "description": "Gets role assignments for a resource.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "resourceProviderNamespace", @@ -87,10 +83,10 @@ "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." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -99,6 +95,12 @@ "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": { @@ -106,7 +108,7 @@ }, "x-ms-odata": "#/definitions/RoleAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "List role assignments for resource": { "$ref": "./examples/GetRoleAssignmentsForResource.json" } } @@ -121,11 +123,7 @@ "description": "Gets role assignments for a resource group.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "$filter", @@ -135,10 +133,10 @@ "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." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -147,6 +145,12 @@ "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": { @@ -154,7 +158,7 @@ }, "x-ms-odata": "#/definitions/RoleAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "List role assignments for resource group": { "$ref": "./examples/GetRoleAssignmentsForResourceGroup.json" } } @@ -184,7 +188,7 @@ "description": "The name of the role assignment to delete." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -193,10 +197,19 @@ "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": { - "GetConfigurations": { + "Delete role assignment by name": { "$ref": "./examples/DeleteRoleAssignmentByName.json" } } @@ -233,7 +246,7 @@ "description": "Parameters for the role assignment." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -242,10 +255,16 @@ "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": { - "GetConfigurations": { + "Create role assignment": { "$ref": "./examples/PutRoleAssignment.json" } } @@ -273,7 +292,7 @@ "description": "The name of the role assignment to get." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -282,10 +301,16 @@ "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": { - "GetConfigurations": { + "Get role assignment by name": { "$ref": "./examples/GetRoleAssignmentByName.json" } } @@ -308,7 +333,7 @@ "x-ms-skip-url-encoding": true }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -317,10 +342,19 @@ "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": { - "GetConfigurations": { + "Delete role assignment by ID": { "$ref": "./examples/DeleteRoleAssignmentById.json" } } @@ -350,7 +384,7 @@ "description": "Parameters for the role assignment." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -359,10 +393,16 @@ "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": { - "GetConfigurations": { + "Create role assignment by ID": { "$ref": "./examples/PutRoleAssignmentById.json" } } @@ -383,7 +423,7 @@ "x-ms-skip-url-encoding": true }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -392,10 +432,16 @@ "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": { - "GetConfigurations": { + "Get role assignment by ID": { "$ref": "./examples/GetRoleAssignmentById.json" } } @@ -417,10 +463,10 @@ "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." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -429,6 +475,12 @@ "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": { @@ -436,7 +488,7 @@ }, "x-ms-odata": "#/definitions/RoleAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "List role assignments for subscription": { "$ref": "./examples/GetAllRoleAssignments.json" } } @@ -466,7 +518,7 @@ "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." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -475,6 +527,12 @@ "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": { @@ -482,7 +540,7 @@ }, "x-ms-odata": "#/definitions/RoleAssignmentFilter", "x-ms-examples": { - "GetConfigurations": { + "List role assignments for scope": { "$ref": "./examples/GetRoleAssignmentByScope.json" } } @@ -586,20 +644,5 @@ "description": "Role assignment create parameters." } }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the target subscription." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." - } - } + "parameters": {} } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-RoleDefinitionsCalls.json b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-RoleDefinitionsCalls.json index 5daad6d25ef7..2feeeef12b0f 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-RoleDefinitionsCalls.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/authorization-RoleDefinitionsCalls.json @@ -43,17 +43,13 @@ "description": "Gets all permissions the caller has for a resource group.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group to get the permissions for. The name is case insensitive." + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -62,13 +58,19 @@ "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": { - "GetConfigurations": { + "List permissions for resource group": { "$ref": "./examples/GetPermissions.json" } } @@ -83,11 +85,7 @@ "description": "Gets all permissions the caller has for a resource.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group containing the resource. The name is case insensitive." + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "resourceProviderNamespace", @@ -120,10 +118,10 @@ "description": "The name of the resource to get the permissions for." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -132,13 +130,19 @@ "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": { - "GetConfigurations": { + "List permissions for resource": { "$ref": "./examples/GetResourcePermissions.json" } } @@ -168,7 +172,7 @@ "description": "The ID of the role definition to delete." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -177,10 +181,19 @@ "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": { - "GetConfigurations": { + "Delete role definition": { "$ref": "./examples/DeleteRoleDefinition.json" } } @@ -208,7 +221,7 @@ "description": "The ID of the role definition." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -217,10 +230,16 @@ "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": { - "GetConfigurations": { + "Get role definition by name": { "$ref": "./examples/GetRoleDefinitionByName.json" } } @@ -257,7 +276,7 @@ "description": "The values for the role definition." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -266,10 +285,16 @@ "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": { - "GetConfigurations": { + "Create role definition": { "$ref": "./examples/PutRoleDefinition.json" } } @@ -299,7 +324,7 @@ "description": "The filter to apply on the operation. Use atScopeAndBelow filter to search below the given scope as well." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -308,6 +333,12 @@ "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": { @@ -315,7 +346,7 @@ }, "x-ms-odata": "#/definitions/RoleDefinitionFilter", "x-ms-examples": { - "GetConfigurations": { + "List role definitions for scope": { "$ref": "./examples/GetRoleDefinitionAtScope.json" } } @@ -338,7 +369,7 @@ "x-ms-skip-url-encoding": true }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -347,10 +378,16 @@ "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": { - "GetConfigurations": { + "Get role definition by ID": { "$ref": "./examples/GetRoleDefinitionById.json" } } @@ -476,20 +513,5 @@ "description": "Role definition permissions." } }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the target subscription." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for this operation." - } - } + "parameters": {} } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/examples/DeleteRoleAssignmentById.json b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/examples/DeleteRoleAssignmentById.json index 1613cc69b47d..cb2686d89103 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/examples/DeleteRoleAssignmentById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/examples/DeleteRoleAssignmentById.json @@ -16,6 +16,7 @@ "type": "Microsoft.Authorization/roleAssignments", "name": "roleassignmentId" } - } + }, + "204": {} } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/examples/DeleteRoleAssignmentByName.json b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/examples/DeleteRoleAssignmentByName.json index 44f43f32f3ed..34af9b4ba41b 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/examples/DeleteRoleAssignmentByName.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/examples/DeleteRoleAssignmentByName.json @@ -16,6 +16,7 @@ "type": "Microsoft.Authorization/roleAssignments", "name": "roleassignmentId" } - } + }, + "204": {} } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/examples/DeleteRoleDefinition.json b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/examples/DeleteRoleDefinition.json index 9a69abd12da1..8f46190ddfa3 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/examples/DeleteRoleDefinition.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/stable/2015-07-01/examples/DeleteRoleDefinition.json @@ -27,6 +27,7 @@ "type": "Microsoft.Authorization/roleDefinitions", "name": "roleDefinitionId" } - } + }, + "204": {} } } diff --git a/specification/authorization/resource-manager/readme.md b/specification/authorization/resource-manager/readme.md index 6384e497fe41..86b6a3deb041 100644 --- a/specification/authorization/resource-manager/readme.md +++ b/specification/authorization/resource-manager/readme.md @@ -69,6 +69,8 @@ directive: where: $.definitions.DenyAssignmentProperties.properties.isSystemProtected from: authorization-DenyAssignmentGetCalls.json reason: for this case the result of the proposed change would resemble a boolean anyways + - suppress: R4024 + reason: Preview versions still in use ``` ### Tag: package-2020-10-01-preview