From 5f3c34d80f1850f724c5316455c39b22b8576fc0 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 15 May 2023 10:39:19 -0700 Subject: [PATCH 001/158] Adding Group Quota APIs. --- .../2023-06-01-preview/GroupQuota.json | 1576 +++++++++++++++++ 1 file changed, 1576 insertions(+) create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json new file mode 100644 index 000000000000..a6a66b5a7f0e --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json @@ -0,0 +1,1576 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure MG Group Quota using SharedQuotaEntity.", + "version": "2023-06-01-preview", + "description": "Microsoft Azure Quota Resource Provider" + }, + "consumes": ["application/json"], + "produces": ["application/json"], + "security": [ + { + "azure_auth": ["user_impersonation"] + } + ], + "securityDefinitions": { + "azure_auth": { + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + }, + "type": "oauth2", + "description": "Azure Active Directory OAuth 2.0 authorization" + } + }, + "paths": { + "/providers/Microsoft.Management/managmentGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}": { + "put": { + "tags": [ "SharedQuotaEntity" ], + "summary": "Creates a new sharedQuotaEntity for the name passed.", + "description": "Creates a new sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", + "operationId": "SharedQuotaEntity_Create", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/PutSharedQuotaEntity.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "SharedQuotaEntityRequest", + "in": "body", + "description": "The SharedQuotaEntity Request.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "patch": { + "tags": [ "SharedQuotaEntity" ], + "summary": "Updates a new sharedQuotaEntity for the name passed.", + "description": "Updates the sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked. \n Any change in the filters will be applicable to the future quota assignments, existing quota assigned to subscriptions from the sharedQuotaEntity remains unchanged.", + "operationId": "SharedQuotaEntity_Update", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/PatchSharedQuotaEntity.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "SharedQuotaEntityRequest", + "in": "body", + "description": "The SharedQuotaEntity Request.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "get": { + "tags": [ "SharedQuotaEntity" ], + "summary": "Gets sharedQuotaEntity for the name passed.", + "description": "Gets thesharedQuotaEntity for the name passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", + "operationId": "SharedQuotaEntity_Get", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/GetSharedQuotaEntity.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "delete": { + "tags": [ "SharedQuotaEntity" ], + "summary": "Deletes sharedQuotaEntity for the name passed.", + "description": "Deletes the sharedQuotaEntity for the name passed. All the remaining shareQuota in the sharedQuotaEntity will be lost.", + "operationId": "SharedQuotaEntity_Delete", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/DeleteSharedQuotaEntity.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK." + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managmentGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities": { + "get": { + "tags": [ "SharedQuotaEntity" ], + "summary": "Lists sharedQuotaEntities for the scope passed.", + "description": "Lists sharedQuotaEntities for the scope passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", + "operationId": "SharedQuotaEntity_List", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/GetSharedQuotaEntityList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntityList" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managmentGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits/{resourceName}": { + "put": { + "tags": [ "GroupQuotaLimits" ], + "summary": "Creates a new Group Quota request for a specific resources.", + "description": "Creates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", + "operationId": "GroupQuotaLimits_Create", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/PutGroupQuotaLimits-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "groupQuotaRequest", + "in": "body", + "description": "The GroupQuota Request.", + "schema": { + "$ref": "#/definitions/GroupQuotaLimit" + } + } + ], + "responses": { + "200": { + "description": "OK. Returns the quota details.", + "schema": { + "$ref": "#/definitions/GroupQuotaLimit" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "patch": { + "tags": [ "GroupQuotaLimits" ], + "summary": "Creates/Updates a new Group Quota request for a specific resources.", + "description": "Creates/Updates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status will be updated periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed,then the URI will change to Get URI and full details can be checked.", + "operationId": "GroupQuotaLimits_Update", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/PatchGroupQuotaLimits-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "groupQuotaRequest", + "in": "body", + "description": "The GroupQuota Request.", + "schema": { + "$ref": "#/definitions/GroupQuotaLimit" + } + } + ], + "responses": { + "200": { + "description": "OK. Returns the quota details.", + "schema": { + "$ref": "#/definitions/GroupQuotaLimit" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "get": { + "tags": [ "GroupQuotaLimits" ], + "summary": "Gets the resource groupQuotaLimits for the MGId.", + "description": "Gets the resource groupQuotaLimits for the MGId. It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", + "operationId": "GroupQuotaLimits_Get", + "x-ms-examples": { + "GroupQuotaLimits_Get_Request_ForCompute": { + "$ref": "./examples/GetGroupQuotaLimits-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GroupQuotaLimit" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits": { + "get": { + "tags": [ "GroupQuotaLimits" ], + "summary": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope.", + "description": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope. The scope can be - providers/Microsoft.Compute/locations/. The list elements will be same as the Get API - It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", + "operationId": "GroupQuotaLimits_List", + "x-ms-examples": { + "GroupQuotaLimits_Get_Request_ForCompute": { + "$ref": "./examples/ListGroupQuotaLimits-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GroupQuotaList" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managmentGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests": { + "get": { + "tags": [ "GroupQuota-Requests" ], + "summary": "List the status of all GroupQuota requests.", + "description": "List API to check the status of a GroupQuota requests by requestId. The groupQuotaRequest history is maintained for 1 year.", + "operationId": "GroupQuota-Requests_List", + "x-ms-examples": { + "MG-GroupQuota-Order_Get_Response_ForCompute": { + "$ref": "./examples/GetCapacityOrder-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success, with the details of the groupQuota request.", + "schema": { + "$ref": "#/definitions/SubmittedResourceRequestStatusList" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managmentGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests/{requestId}": { + "get": { + "tags": [ "GroupQuota-Requests" ], + "summary": "Get the status of a single GroupQuota request by requestId.", + "description": "Get API to check the status of a GroupQuota request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.", + "operationId": "GroupQuota-Requests_Get", + "x-ms-examples": { + "MG-GroupQuota-Order_Get_Response_ForCompute": { + "$ref": "./examples/GetCapacityOrder-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/RequestIdInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success, with the details of the groupQuota request.", + "schema": { + "$ref": "#/definitions/SubmittedResourceRequestStatus" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managmentGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations": { + "get": { + "tags": [ "SubscriptionQuota-Allocation" ], + "summary": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location.", + "description": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", + "operationId": "ShareQuota_MG_Subscription_List", + "x-ms-examples": { + "GroupQuota_Put_Request_ForCompute": { + "$ref": "./examples/PutQuotaAllocation-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaDetailsList" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + + "/providers/Microsoft.Management/managmentGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations/{resourceName}": { + "put": { + "tags": [ "SubscriptionQuota-Allocation" ], + "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern to check the status using Async polling as standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.", + "description": "Request to assign a specific resource quota from group quota to a specific Subscription. The subscriptions can also reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, which means the maximum unused quota assigned back to MG groupQuota will be the groupQuota assigned to the subscriptions. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription.", + "operationId": "GroupQuotaSubscription_QuotaAllocation_Create", + "x-ms-examples": { + "ShareQuotaOrder_Subscription_Allocation_Put_ForCompute": { + "$ref": "./examples/PutQuotaAllocation-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "allocateQuotaRequest", + "in": "body", + "description": "Quota requests payload.", + "required": true, + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + } + ], + "responses": { + "200": { + "description": "Request status details.", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Request MGId or resource not found. The resource was not found in pre-approved groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "406": { + "description": "The subscription is not eligible for groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "414": { + "description": "The requested quota was more than the available groupQuota. Similarly in case of quota reduction, the quota reduction is more than the quota assigned from groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "patch": { + "tags": [ "SubscriptionQuota-Allocation" ], + "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern with 202 response and status polling API.", + "description": "Request to assign quota from group quota to a specific Subscription. The subscriptions and reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, using this API. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription(s).", + "operationId": "GroupQuotaSubscription_QuotaAllocation_Update", + "x-ms-examples": { + "ShareQuotaOrder_Subscription_Allocation_Patch_ForCompute": { + "$ref": "./examples/PatchQuotaAllocation-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "allocateQuotaRequest", + "in": "body", + "description": "Quota requests payload.", + "required": true, + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + } + ], + "responses": { + "200": { + "description": "Request status details.", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Request MGId or resource not found. The resource was not found in pre-approved groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "406": { + "description": "The subscription is not eligible for groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "414": { + "description": "The requested quota was more than the available groupQuota. Similarly in case of quota reduction, the quota reduction is more than the quota assigned from groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "get": { + "tags": [ "SubscriptionQuota-Allocation" ], + "summary": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName.", + "description": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", + "operationId": "GroupQuotaSubscription_QuotaAllocation_Get", + "x-ms-examples": { + "ShareQuotaOrder_Subscription_Allocation_Get_ForCompute": { + "$ref": "./examples/GetQuotaAllocation-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaLimit" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managmentGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests/{allocationId}": { + "get": { + "tags": [ "Subscription-Quota-Allocation-Requests" ], + "operationId": "GroupQuotaSubscription_QuotaAllocationRequests_Get", + "summary": "Get the status of the quota allocation request for the subscriptionId.", + "description": "Get the quota allocation request status for the subscriptionId by allocationId.", + "x-ms-examples": { + "GroupQuotaAllocationRequest_Get_Request_ForCompute": { + "$ref": "./examples/GetQuotaAllocation-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/AllocationIdInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managmentGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests": { + "get": { + "tags": [ "Subscription-Quota-Allocation-Requests" ], + "operationId": "SubscriptionGroupQuota-Allocation_Request_List", + "summary": "Lists all the quota allocation requests.to subscriptions", + "description": "Lists all the allocation requests.", + "x-ms-examples": { + "QuotaCapacityOrder_Put_Request_ForCompute": { + "$ref": "./examples/GetQuotaAllocation-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequestList" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + } + }, + "definitions": { + "Error": { + "type": "object", + "description": "Standard error response as per MS guidelines. We may skip some fields.", + "properties": { + "code": { + "type": "string" + }, + "target": { + "type": "string" + }, + "message": { + "type": "string" + }, + "innerError": { + "$ref": "#/definitions/InnerError" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDetails" + } + } + } + }, + "ErrorContent": { + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/Error" + } + } + }, + "ErrorDetails": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "target": { + "type": "string" + }, + "message": { + "type": "string" + } + } + }, + "InnerError": { + "type": "object", + "properties": { + "trace": { + "type": "array", + "items": { + "type": "string" + } + }, + "context": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "QuotaRequestState": { + "description": "Request status.", + "enum": [ + "Accepted", + "Invalid", + "Succeeded", + "Failed", + "InProgress" + ], + "readOnly": true, + "type": "string", + "x-ms-enum": { + "name": "RequestState", + "modelAsString": true + } + }, + "OperationsStatus": { + "description": "A long running process operation Status. Based on - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#202-accepted-and-location-headers", + "type": "object", + "properties": { + "id": { + "description": "The operation status identifier. It should match what is used to GET the operation resource.", + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "readOnly": true, + "description": "It must match the last segment of the id field, and will typically be a GUID / system generated value." + }, + "type": { + "description": "The type.", + "type": "string", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/QuotaRequestState", + "readOnly": true + }, + "error": { + "$ref": "#/definitions/ErrorContent", + "readOnly": true + } + } + }, + "AssignedToSubscription": { + "type": "object", + "description": "SubscriptionIds and quota allocated to subscriptions from the GroupQuota.", + "additionalProperties": { + "type": "integer", + "format": "int64", + "description": "Group Quota assigned to subscription." + } + }, + "AssignedQuotaToSubscriptionList": { + "type": "array", + "readOnly": true, + "description": "Assigned Group Quota to subscriptions.", + "items": { + "$ref": "#/definitions/AssignedToSubscription" + } + }, + "GroupQuotaLimit": { + "type": "object", + "description": "Group Quota limit.", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "The resource ID.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The resource name.", + "type": "string", + "readOnly": true + }, + "properties": { + "description": "Group Quota properties for the specified resource.", + "$ref": "#/definitions/GroupQuotaDetails" + } + } + }, + "ResourceName": { + "type": "object", + "description": "Name of the resource provided by the resource Provider. This property is already included in the request URI, so it is a readonly property returned in the response.", + "properties": { + "value": { + "description": "Resource name.", + "type": "string", + "readOnly": true + }, + "localizedValue": { + "description": "Resource display name.", + "type": "string", + "readOnly": true + } + } + }, + "GroupQuotaDetails": { + "type": "object", + "description": "Group Quota details.", + "properties": { + "limit": { + "type": "integer", + "format": "int64", + "description": "The current Group Quota Limit at the parentId level." + }, + "name": { + "$ref": "#/definitions/ResourceName", + "description": "The resource name, such as SKU name." + }, + "unit": { + "description": " The usages units, such as Count and Bytes. When requesting quota, use the **unit** value returned in the GET response in the request body of your PUT operation.", + "type": "string", + "readOnly": true + }, + "availableLimit": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "The available Group Quota Limit at the MG level. This Group quota can be assigned to subscription(s)." + }, + "assignedToSubscriptions": { + "$ref": "#/definitions/AssignedQuotaToSubscriptionList" + } + } + }, + "GroupQuotaList": { + "type": "array", + "description": "List of Group Quotas at MG level.", + "items": { + "$ref": "#/definitions/GroupQuotaLimit" + } + }, + "SubscriptionQuotaAllocationRequest": { + "type": "object", + "description": "The new quota limit for the subscription.", + "properties": { + "id": { + "description": "The operation status identifier. It should match what is used to GET the operation resource.", + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "readOnly": true, + "description": "It must match the last segment of the id field, and will typically be a GUID / system generated value." + }, + "type": { + "description": "The type.", + "type": "string", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/QuotaRequestState", + "readOnly": true + }, + "limit": { + "type": "integer", + "format": "int64", + "description": "The new quota limit for the subscription. The incremental quota will be assigned from pre-approved groupQuota." + } + } + }, + "SubscriptionQuotaAllocationRequestList": { + "type": "array", + "description": "Assigned Group Quota to subscriptions.", + "items": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + }, + "SubscriptionGroupQuotaAssignment": { + "type": "object", + "description": "MGId the source of groupQuota.", + "additionalProperties": { + "type": "integer", + "format": "int64", + "description": "Group Quota assigned to subscription." + } + }, + "SubscriptionGroupQuotaAssignmentList": { + "type": "array", + "description": "Assigned Group Quota to subscriptions.", + "items": { + "$ref": "#/definitions/SubscriptionGroupQuotaAssignment" + } + }, + "SubscriptionQuotaLimit": { + "type": "object", + "description": "Subscription Quota limit.", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "The resource ID.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The resource name.", + "type": "string", + "readOnly": true + }, + "properties": { + "description": "Group Quota properties for the specified resource.", + "$ref": "#/definitions/SubscriptionQuotaDetails" + } + } + }, + "SubscriptionQuotaDetails": { + "type": "object", + "description": "Subscription Quota details.", + "properties": { + "limit": { + "type": "integer", + "format": "int64", + "description": "The total quota limit for the subscription." + }, + "nonShareableQuota": { + "type": "integer", + "format": "int64", + "description": "The non shareable quota for the subscription." + }, + "quotaSource": { + "$ref": "#/definitions/SubscriptionGroupQuotaAssignmentList" + } + } + }, + "SubscriptionQuotaDetailsList": { + "type": "array", + "description": "Subscription quota list.", + "items": { + "$ref": "#/definitions/SubscriptionQuotaLimit" + } + }, + "ResourceBaseRequest": { + "type": "object", + "description": "Resource definition with the requested quota.", + "properties": { + "resourceName": { + "type": "string", + "description": "The resource name, such as SKU name." + }, + "limits": { + "type": "integer", + "description": "Quota requested for the resource.", + "format": "int64" + }, + "unit": { + "type": "string", + "readOnly": true, + "description": "Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond. Based on - https://armwiki.azurewebsites.net/api_contracts/UsagesAPIContract.html?q=usages . Different RPs may have different units, Count, type as int64 should work for most of the integer values." + } + } + }, + "ResourceRequest": { + "type": "object", + "properties": { + "requestedResource": { + "description": "Requested Resource.", + "$ref": "#/definitions/ResourceBaseRequest" + } + } + }, + "SubmittedResourceRequestStatus": { + "type": "object", + "properties": { + "requestedResource": { + "description": "Requested Resource.", + "$ref": "#/definitions/ResourceBaseRequest" + }, + "status": { + "$ref": "#/definitions/QuotaRequestState", + "readOnly": true + } + } + }, + "SubmittedResourceRequestStatusList": { + "type": "array", + "description": "Subscription groupQuotaRequests list.", + "items": { + "$ref": "#/definitions/SubscriptionQuotaLimit" + } + }, + "SharedQuotaEntity": { + "type": "object", + "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "Entity resource Id.", + "type": "string", + "readOnly": true + }, + "type": { + "type": "string", + "description": "Type of the entity - Microsoft.Quota/SharedQuotaEntity.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "The entity name. The entity name is provided in the request, so it is not needed in the request body. The response will include it.", + "readOnly": true + }, + "subscriptionFilters": { + "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand.", + "$ref": "#/definitions/Filters" + } + } + }, + "Filter": { + "type": "object", + "description": "Filter for SharedQuota Entity.", + "properties": { + "filterEntity": { + "type": "string", + "description": "Name of the entity for filter, such as billingId, offerType.", + "enum": [ + "billingId", + "offerType" + ], + "x-ms-enum": { + "name": "SubscriptionFilterType", + "modelAsString": true + } + }, + "operator": { + "type": "string", + "description": "Operator to use for comparison., such as eq (==), neq (!=), etc.", + "enum": [ + "eq", + "neq" + ], + "x-ms-enum": { + "name": "SubscriptionFilterOperatorType", + "modelAsString": true + } + }, + "filterValue": { + "type": "string", + "description": "Value for the filterEntity for comparison. Such as billingId, offerType value." + } + }, + "required": [ + "filterEntity", + "operator", + "filterValue" + ] + }, + "Filters": { + "type": "object", + "description": "Filters for subscription, which can use shared Quota Entity.", + "properties": { + "and": { + "description": "The logical \"AND\" expression. It can have one or more filters.", + "type": "array", + "items": { + "$ref": "#/definitions/Filter" + }, + "x-ms-identifiers": [], + "minItems": 0 + } + } + }, + "SharedQuotaEntityList": { + "type": "array", + "description": "Share Quota Entity list.", + "items": { + "$ref": "#/definitions/SharedQuotaEntity" + } + } + }, + "parameters": { + "RequestIdInParameters": { + "name": "requestId", + "in": "path", + "required": true, + "type": "string", + "description": "Request Id.", + "x-ms-parameter-location": "method" + }, + "ResourceInParameters": { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "Resource name.", + "x-ms-parameter-location": "method" + }, + "AllocationIdInParameters": { + "name": "allocationId", + "in": "path", + "required": true, + "type": "string", + "description": "Resource allocation Id.", + "x-ms-parameter-location": "method" + }, + "SubscriptionIdInParameters": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription Id.", + "x-ms-parameter-location": "method" + }, + "MgIdInParameters": { + "name": "mgId", + "in": "path", + "required": true, + "type": "string", + "description": "MangmentGoup Id.", + "x-ms-parameter-location": "method" + }, + "ServicetreeIdInParameters": { + "name": "serviceTreeId", + "in": "path", + "required": true, + "type": "string", + "description": "ServiceTree Id.", + "x-ms-parameter-location": "method" + }, + "SharedQuotaEntityNameInParameters": { + "name": "sharedQuotaEntityName", + "in": "path", + "required": true, + "type": "string", + "description": "The SharedQuotaEntity name. The name should be unique for the provided context tenantId/MgId.", + "x-ms-parameter-location": "method" + }, + "apiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Version of the API to be used with the client request. The current version is 2023-06-01-preview.", + "minLength": 1 + }, + "ScopeInParameters": { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "Scope for the resource. Some resources do not require location parameter, such as CosmosDb, so can be skipped in scope. For most of the resources require - providers/Microsoft.Compute/locations/{locationName}. Some Rps such as Batch requires batchAccountName - providers/Microsoft.Batch/locations/{locationName}/accountName/{batchAccountName}. This extension enables to specify resources for any all the RPs.", + "x-ms-parameter-location": "method" + } + } +} From b392fd1031861292fd13dc89e50a2b5a1fa0f17a Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 15 May 2023 11:16:26 -0700 Subject: [PATCH 002/158] Updated Apis. --- .../preview/2023-06-01-preview/GroupQuota.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json index a6a66b5a7f0e..8f4e089bbbad 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json @@ -24,7 +24,7 @@ } }, "paths": { - "/providers/Microsoft.Management/managmentGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}": { + "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}": { "put": { "tags": [ "SharedQuotaEntity" ], "summary": "Creates a new sharedQuotaEntity for the name passed.", @@ -257,7 +257,7 @@ } } }, - "/providers/Microsoft.Management/managmentGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities": { + "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities": { "get": { "tags": [ "SharedQuotaEntity" ], "summary": "Lists sharedQuotaEntities for the scope passed.", @@ -304,7 +304,7 @@ } } }, - "/providers/Microsoft.Management/managmentGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits/{resourceName}": { + "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits/{resourceName}": { "put": { "tags": [ "GroupQuotaLimits" ], "summary": "Creates a new Group Quota request for a specific resources.", @@ -548,7 +548,7 @@ } } }, - "/providers/Microsoft.Management/managmentGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests": { + "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests": { "get": { "tags": [ "GroupQuota-Requests" ], "summary": "List the status of all GroupQuota requests.", @@ -595,7 +595,7 @@ } } }, - "/providers/Microsoft.Management/managmentGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests/{requestId}": { + "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests/{requestId}": { "get": { "tags": [ "GroupQuota-Requests" ], "summary": "Get the status of a single GroupQuota request by requestId.", @@ -645,7 +645,7 @@ } } }, - "/providers/Microsoft.Management/managmentGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations": { + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations": { "get": { "tags": [ "SubscriptionQuota-Allocation" ], "summary": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location.", @@ -702,7 +702,7 @@ } }, - "/providers/Microsoft.Management/managmentGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations/{resourceName}": { + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations/{resourceName}": { "put": { "tags": [ "SubscriptionQuota-Allocation" ], "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern to check the status using Async polling as standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.", @@ -949,7 +949,7 @@ } } }, - "/providers/Microsoft.Management/managmentGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests/{allocationId}": { + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests/{allocationId}": { "get": { "tags": [ "Subscription-Quota-Allocation-Requests" ], "operationId": "GroupQuotaSubscription_QuotaAllocationRequests_Get", @@ -1002,7 +1002,7 @@ } } }, - "/providers/Microsoft.Management/managmentGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests": { + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests": { "get": { "tags": [ "Subscription-Quota-Allocation-Requests" ], "operationId": "SubscriptionGroupQuota-Allocation_Request_List", From e1cc7ff04edffae463eb1bab5e2ef35136e9b9ba Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 15 May 2023 11:35:41 -0700 Subject: [PATCH 003/158] run prettier --- package-lock.json | 1 - .../2023-06-01-preview/GroupQuota.json | 85 ++++++++++++++----- 2 files changed, 62 insertions(+), 24 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1cd4880d9b51..12c8b9e5d7ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,7 +5,6 @@ "packages": { "": { "name": "azure-rest-api-specs", - "hasInstallScript": true, "devDependencies": { "@azure-tools/cadl-apiview": "0.3.5", "@azure-tools/cadl-autorest": "0.26.0", diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json index 8f4e089bbbad..344ee415bc7f 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json @@ -5,11 +5,17 @@ "version": "2023-06-01-preview", "description": "Microsoft Azure Quota Resource Provider" }, - "consumes": ["application/json"], - "produces": ["application/json"], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "security": [ { - "azure_auth": ["user_impersonation"] + "azure_auth": [ + "user_impersonation" + ] } ], "securityDefinitions": { @@ -26,7 +32,9 @@ "paths": { "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}": { "put": { - "tags": [ "SharedQuotaEntity" ], + "tags": [ + "SharedQuotaEntity" + ], "summary": "Creates a new sharedQuotaEntity for the name passed.", "description": "Creates a new sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", "operationId": "SharedQuotaEntity_Create", @@ -92,7 +100,9 @@ } }, "patch": { - "tags": [ "SharedQuotaEntity" ], + "tags": [ + "SharedQuotaEntity" + ], "summary": "Updates a new sharedQuotaEntity for the name passed.", "description": "Updates the sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked. \n Any change in the filters will be applicable to the future quota assignments, existing quota assigned to subscriptions from the sharedQuotaEntity remains unchanged.", "operationId": "SharedQuotaEntity_Update", @@ -164,7 +174,9 @@ } }, "get": { - "tags": [ "SharedQuotaEntity" ], + "tags": [ + "SharedQuotaEntity" + ], "summary": "Gets sharedQuotaEntity for the name passed.", "description": "Gets thesharedQuotaEntity for the name passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", "operationId": "SharedQuotaEntity_Get", @@ -212,7 +224,9 @@ } }, "delete": { - "tags": [ "SharedQuotaEntity" ], + "tags": [ + "SharedQuotaEntity" + ], "summary": "Deletes sharedQuotaEntity for the name passed.", "description": "Deletes the sharedQuotaEntity for the name passed. All the remaining shareQuota in the sharedQuotaEntity will be lost.", "operationId": "SharedQuotaEntity_Delete", @@ -259,7 +273,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities": { "get": { - "tags": [ "SharedQuotaEntity" ], + "tags": [ + "SharedQuotaEntity" + ], "summary": "Lists sharedQuotaEntities for the scope passed.", "description": "Lists sharedQuotaEntities for the scope passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", "operationId": "SharedQuotaEntity_List", @@ -306,7 +322,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits/{resourceName}": { "put": { - "tags": [ "GroupQuotaLimits" ], + "tags": [ + "GroupQuotaLimits" + ], "summary": "Creates a new Group Quota request for a specific resources.", "description": "Creates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", "operationId": "GroupQuotaLimits_Create", @@ -378,7 +396,9 @@ } }, "patch": { - "tags": [ "GroupQuotaLimits" ], + "tags": [ + "GroupQuotaLimits" + ], "summary": "Creates/Updates a new Group Quota request for a specific resources.", "description": "Creates/Updates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status will be updated periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed,then the URI will change to Get URI and full details can be checked.", "operationId": "GroupQuotaLimits_Update", @@ -450,7 +470,9 @@ } }, "get": { - "tags": [ "GroupQuotaLimits" ], + "tags": [ + "GroupQuotaLimits" + ], "summary": "Gets the resource groupQuotaLimits for the MGId.", "description": "Gets the resource groupQuotaLimits for the MGId. It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", "operationId": "GroupQuotaLimits_Get", @@ -500,7 +522,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits": { "get": { - "tags": [ "GroupQuotaLimits" ], + "tags": [ + "GroupQuotaLimits" + ], "summary": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope.", "description": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope. The scope can be - providers/Microsoft.Compute/locations/. The list elements will be same as the Get API - It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", "operationId": "GroupQuotaLimits_List", @@ -550,7 +574,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests": { "get": { - "tags": [ "GroupQuota-Requests" ], + "tags": [ + "GroupQuota-Requests" + ], "summary": "List the status of all GroupQuota requests.", "description": "List API to check the status of a GroupQuota requests by requestId. The groupQuotaRequest history is maintained for 1 year.", "operationId": "GroupQuota-Requests_List", @@ -597,7 +623,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests/{requestId}": { "get": { - "tags": [ "GroupQuota-Requests" ], + "tags": [ + "GroupQuota-Requests" + ], "summary": "Get the status of a single GroupQuota request by requestId.", "description": "Get API to check the status of a GroupQuota request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.", "operationId": "GroupQuota-Requests_Get", @@ -647,7 +675,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations": { "get": { - "tags": [ "SubscriptionQuota-Allocation" ], + "tags": [ + "SubscriptionQuota-Allocation" + ], "summary": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location.", "description": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", "operationId": "ShareQuota_MG_Subscription_List", @@ -701,10 +731,11 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations/{resourceName}": { "put": { - "tags": [ "SubscriptionQuota-Allocation" ], + "tags": [ + "SubscriptionQuota-Allocation" + ], "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern to check the status using Async polling as standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.", "description": "Request to assign a specific resource quota from group quota to a specific Subscription. The subscriptions can also reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, which means the maximum unused quota assigned back to MG groupQuota will be the groupQuota assigned to the subscriptions. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription.", "operationId": "GroupQuotaSubscription_QuotaAllocation_Create", @@ -798,7 +829,9 @@ } }, "patch": { - "tags": [ "SubscriptionQuota-Allocation" ], + "tags": [ + "SubscriptionQuota-Allocation" + ], "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern with 202 response and status polling API.", "description": "Request to assign quota from group quota to a specific Subscription. The subscriptions and reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, using this API. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription(s).", "operationId": "GroupQuotaSubscription_QuotaAllocation_Update", @@ -892,7 +925,9 @@ } }, "get": { - "tags": [ "SubscriptionQuota-Allocation" ], + "tags": [ + "SubscriptionQuota-Allocation" + ], "summary": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName.", "description": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", "operationId": "GroupQuotaSubscription_QuotaAllocation_Get", @@ -951,7 +986,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests/{allocationId}": { "get": { - "tags": [ "Subscription-Quota-Allocation-Requests" ], + "tags": [ + "Subscription-Quota-Allocation-Requests" + ], "operationId": "GroupQuotaSubscription_QuotaAllocationRequests_Get", "summary": "Get the status of the quota allocation request for the subscriptionId.", "description": "Get the quota allocation request status for the subscriptionId by allocationId.", @@ -1004,7 +1041,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests": { "get": { - "tags": [ "Subscription-Quota-Allocation-Requests" ], + "tags": [ + "Subscription-Quota-Allocation-Requests" + ], "operationId": "SubscriptionGroupQuota-Allocation_Request_List", "summary": "Lists all the quota allocation requests.to subscriptions", "description": "Lists all the allocation requests.", @@ -1489,8 +1528,8 @@ "x-ms-identifiers": [], "minItems": 0 } - } - }, + } + }, "SharedQuotaEntityList": { "type": "array", "description": "Share Quota Entity list.", From 568a4fa651c1ce72ecc15757ea793a995caf1008 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 15 May 2023 13:05:15 -0700 Subject: [PATCH 004/158] Updates to GroupQuota API. --- .../preview/2023-06-01-preview/GroupQuota.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json index 344ee415bc7f..1729802dce4b 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json @@ -1156,7 +1156,7 @@ } } }, - "QuotaRequestState": { + "RequestState": { "description": "Request status.", "enum": [ "Accepted", @@ -1192,7 +1192,7 @@ "readOnly": true }, "status": { - "$ref": "#/definitions/QuotaRequestState", + "$ref": "#/definitions/RequestState", "readOnly": true }, "error": { @@ -1316,7 +1316,7 @@ "readOnly": true }, "status": { - "$ref": "#/definitions/QuotaRequestState", + "$ref": "#/definitions/RequestState", "readOnly": true }, "limit": { @@ -1438,7 +1438,7 @@ "$ref": "#/definitions/ResourceBaseRequest" }, "status": { - "$ref": "#/definitions/QuotaRequestState", + "$ref": "#/definitions/RequestState", "readOnly": true } } From 2e7632a8b16b56cbd0822af5224c12a0e5d19aab Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 15 May 2023 14:34:04 -0700 Subject: [PATCH 005/158] Spell check fixes. --- .../preview/2023-06-01-preview/GroupQuota.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json index 1729802dce4b..185a59304d93 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json @@ -178,7 +178,7 @@ "SharedQuotaEntity" ], "summary": "Gets sharedQuotaEntity for the name passed.", - "description": "Gets thesharedQuotaEntity for the name passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", + "description": "Gets the sharedQuotaEntity for the name passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", "operationId": "SharedQuotaEntity_Get", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { @@ -1576,7 +1576,7 @@ "in": "path", "required": true, "type": "string", - "description": "MangmentGoup Id.", + "description": "MangementGroup Id.", "x-ms-parameter-location": "method" }, "ServicetreeIdInParameters": { @@ -1584,7 +1584,7 @@ "in": "path", "required": true, "type": "string", - "description": "ServiceTree Id.", + "description": "Service Tree Id.", "x-ms-parameter-location": "method" }, "SharedQuotaEntityNameInParameters": { From 5ea11c7e15d30a767f1f3f7a95452fa7ff3100c8 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 15 May 2023 14:41:05 -0700 Subject: [PATCH 006/158] Fix spell check. --- .../preview/2023-06-01-preview/GroupQuota.json | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json index 185a59304d93..7e589d5a12b1 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json @@ -1576,15 +1576,7 @@ "in": "path", "required": true, "type": "string", - "description": "MangementGroup Id.", - "x-ms-parameter-location": "method" - }, - "ServicetreeIdInParameters": { - "name": "serviceTreeId", - "in": "path", - "required": true, - "type": "string", - "description": "Service Tree Id.", + "description": "Management Group Id.", "x-ms-parameter-location": "method" }, "SharedQuotaEntityNameInParameters": { From 661924c144dc3ee4206341cb3015d95005951092 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 15 May 2023 14:55:13 -0700 Subject: [PATCH 007/158] Adding new preview version tag. --- specification/quota/resource-manager/readme.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/specification/quota/resource-manager/readme.md b/specification/quota/resource-manager/readme.md index 11779280581c..88bb5d88fa6b 100644 --- a/specification/quota/resource-manager/readme.md +++ b/specification/quota/resource-manager/readme.md @@ -30,6 +30,16 @@ tag: package-2023-02-01 ``` +### Tag: package-2023-06-01-preview + +These settings apply only when `--tag=package-2023-06-01` is specified on the command line. + +```yaml $(tag) == 'package-2023-06-01-preview' +input-file: + - Microsoft.Quota/stable/2023-02-01/quota.json + - Microsoft.Quota/preview/2023-06-01/groupquota.json +``` + ### Tag: package-2023-02-01 These settings apply only when `--tag=package-2023-02-01` is specified on the command line. From 6f6d1604538f892f6de6640bf48012d6e8857584 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 15 May 2023 15:45:55 -0700 Subject: [PATCH 008/158] Updating the build configs. --- .../quota/resource-manager/readme.go.md | 20 +++++++++++++++---- .../quota/resource-manager/readme.java.md | 14 +++++++++++++ .../quota/resource-manager/readme.md | 2 +- .../quota/resource-manager/readme.ruby.md | 10 ++++++++++ 4 files changed, 41 insertions(+), 5 deletions(-) diff --git a/specification/quota/resource-manager/readme.go.md b/specification/quota/resource-manager/readme.go.md index b52cb5267735..591d7ed61194 100644 --- a/specification/quota/resource-manager/readme.go.md +++ b/specification/quota/resource-manager/readme.go.md @@ -21,17 +21,19 @@ azure-arm: true ``` yaml $(go) && $(multiapi) batch: + - tag package-2023-02-01 - tag: package-2021-03-15-preview - tag: package-2021-03-15 + - tag: package-2023-06-01-preview ``` -### Tag: package-2021-03-15 and go +### Tag: package-2023-02-01 and go -These settings apply only when `--tag=package-2021-03-15 --go` is specified on the command line. +These settings apply only when `--tag=package-2023-02-01 --go` is specified on the command line. Please also specify `--go-sdk-folder=`. -``` yaml $(tag)=='package-2021-03-15' && $(go) -output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2021-03-15/$(namespace) +``` yaml $(tag)=='package-2023-02-01' && $(go) +output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2023-02-01/$(namespace) ``` ### Tag: package-2021-03-15-preview and go @@ -42,3 +44,13 @@ Please also specify `--go-sdk-folder=`. + +``` yaml $(tag)=='package-2021-03-15-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2023-06-01-preview/$(namespace) +``` \ No newline at end of file diff --git a/specification/quota/resource-manager/readme.java.md b/specification/quota/resource-manager/readme.java.md index bb311f134f94..0a22a561ca0f 100644 --- a/specification/quota/resource-manager/readme.java.md +++ b/specification/quota/resource-manager/readme.java.md @@ -45,3 +45,17 @@ java: regenerate-manager: true generate-interface: true ``` + + +### Tag: package-2023-06-01-preview and java + +These settings apply only when `--tag=package-2023-06-01-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2021-03-15-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.quota.v2023_06_01_preview + output-folder: $(azure-libraries-for-java-folder)/sdk/quota/mgmt-v2023_06_01_preview +regenerate-manager: true +generate-interface: true +``` \ No newline at end of file diff --git a/specification/quota/resource-manager/readme.md b/specification/quota/resource-manager/readme.md index 88bb5d88fa6b..fb75361a567e 100644 --- a/specification/quota/resource-manager/readme.md +++ b/specification/quota/resource-manager/readme.md @@ -32,7 +32,7 @@ tag: package-2023-02-01 ### Tag: package-2023-06-01-preview -These settings apply only when `--tag=package-2023-06-01` is specified on the command line. +These settings apply only when `--tag=package-2023-06-01-preview` is specified on the command line. ```yaml $(tag) == 'package-2023-06-01-preview' input-file: diff --git a/specification/quota/resource-manager/readme.ruby.md b/specification/quota/resource-manager/readme.ruby.md index f1664b4df244..c05535ccb4d8 100644 --- a/specification/quota/resource-manager/readme.ruby.md +++ b/specification/quota/resource-manager/readme.ruby.md @@ -27,3 +27,13 @@ Please also specify `--ruby-sdks-folder=`. + +```yaml $(tag) == 'package-2021-03-15-preview' && $(ruby) +namespace: Microsoft.Quota +output-folder: $(ruby-sdks-folder)/quota-preview +``` From 313f8da39f7b5f20362ca2d76d24fb8c61fb5151 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 15 May 2023 16:05:58 -0700 Subject: [PATCH 009/158] Fixing file Path. --- specification/quota/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/readme.md b/specification/quota/resource-manager/readme.md index fb75361a567e..6dc24edc34af 100644 --- a/specification/quota/resource-manager/readme.md +++ b/specification/quota/resource-manager/readme.md @@ -37,7 +37,7 @@ These settings apply only when `--tag=package-2023-06-01-preview` is specified o ```yaml $(tag) == 'package-2023-06-01-preview' input-file: - Microsoft.Quota/stable/2023-02-01/quota.json - - Microsoft.Quota/preview/2023-06-01/groupquota.json + - Microsoft.Quota/preview/2023-06-01-preview/groupquota.json ``` ### Tag: package-2023-02-01 From d53ca688876f72e7241d238710bd7f4fa124d08d Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 15 May 2023 16:18:50 -0700 Subject: [PATCH 010/158] Delete file with upper case file name. --- .../2023-06-01-preview/GroupQuota.json | 1607 ----------------- 1 file changed, 1607 deletions(-) delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json deleted file mode 100644 index 7e589d5a12b1..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/GroupQuota.json +++ /dev/null @@ -1,1607 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure MG Group Quota using SharedQuotaEntity.", - "version": "2023-06-01-preview", - "description": "Microsoft Azure Quota Resource Provider" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "flow": "implicit", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "scopes": { - "user_impersonation": "impersonate your user account" - }, - "type": "oauth2", - "description": "Azure Active Directory OAuth 2.0 authorization" - } - }, - "paths": { - "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}": { - "put": { - "tags": [ - "SharedQuotaEntity" - ], - "summary": "Creates a new sharedQuotaEntity for the name passed.", - "description": "Creates a new sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", - "operationId": "SharedQuotaEntity_Create", - "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/PutSharedQuotaEntity.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "SharedQuotaEntityRequest", - "in": "body", - "description": "The SharedQuotaEntity Request.", - "schema": { - "$ref": "#/definitions/SharedQuotaEntity" - } - } - ], - "responses": { - "200": { - "description": "OK.", - "schema": { - "$ref": "#/definitions/SharedQuotaEntity" - } - }, - "202": { - "description": "Request Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - }, - "patch": { - "tags": [ - "SharedQuotaEntity" - ], - "summary": "Updates a new sharedQuotaEntity for the name passed.", - "description": "Updates the sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked. \n Any change in the filters will be applicable to the future quota assignments, existing quota assigned to subscriptions from the sharedQuotaEntity remains unchanged.", - "operationId": "SharedQuotaEntity_Update", - "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/PatchSharedQuotaEntity.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "SharedQuotaEntityRequest", - "in": "body", - "description": "The SharedQuotaEntity Request.", - "schema": { - "$ref": "#/definitions/SharedQuotaEntity" - } - } - ], - "responses": { - "200": { - "description": "OK.", - "schema": { - "$ref": "#/definitions/SharedQuotaEntity" - } - }, - "202": { - "description": "Request Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - }, - "get": { - "tags": [ - "SharedQuotaEntity" - ], - "summary": "Gets sharedQuotaEntity for the name passed.", - "description": "Gets the sharedQuotaEntity for the name passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", - "operationId": "SharedQuotaEntity_Get", - "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/GetSharedQuotaEntity.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK.", - "schema": { - "$ref": "#/definitions/SharedQuotaEntity" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - }, - "delete": { - "tags": [ - "SharedQuotaEntity" - ], - "summary": "Deletes sharedQuotaEntity for the name passed.", - "description": "Deletes the sharedQuotaEntity for the name passed. All the remaining shareQuota in the sharedQuotaEntity will be lost.", - "operationId": "SharedQuotaEntity_Delete", - "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/DeleteSharedQuotaEntity.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK." - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities": { - "get": { - "tags": [ - "SharedQuotaEntity" - ], - "summary": "Lists sharedQuotaEntities for the scope passed.", - "description": "Lists sharedQuotaEntities for the scope passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", - "operationId": "SharedQuotaEntity_List", - "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/GetSharedQuotaEntityList.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK.", - "schema": { - "$ref": "#/definitions/SharedQuotaEntityList" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits/{resourceName}": { - "put": { - "tags": [ - "GroupQuotaLimits" - ], - "summary": "Creates a new Group Quota request for a specific resources.", - "description": "Creates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", - "operationId": "GroupQuotaLimits_Create", - "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/PutGroupQuotaLimits-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/ResourceInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "groupQuotaRequest", - "in": "body", - "description": "The GroupQuota Request.", - "schema": { - "$ref": "#/definitions/GroupQuotaLimit" - } - } - ], - "responses": { - "200": { - "description": "OK. Returns the quota details.", - "schema": { - "$ref": "#/definitions/GroupQuotaLimit" - } - }, - "202": { - "description": "Request Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - }, - "patch": { - "tags": [ - "GroupQuotaLimits" - ], - "summary": "Creates/Updates a new Group Quota request for a specific resources.", - "description": "Creates/Updates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status will be updated periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed,then the URI will change to Get URI and full details can be checked.", - "operationId": "GroupQuotaLimits_Update", - "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/PatchGroupQuotaLimits-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/ResourceInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "groupQuotaRequest", - "in": "body", - "description": "The GroupQuota Request.", - "schema": { - "$ref": "#/definitions/GroupQuotaLimit" - } - } - ], - "responses": { - "200": { - "description": "OK. Returns the quota details.", - "schema": { - "$ref": "#/definitions/GroupQuotaLimit" - } - }, - "202": { - "description": "Request Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - }, - "get": { - "tags": [ - "GroupQuotaLimits" - ], - "summary": "Gets the resource groupQuotaLimits for the MGId.", - "description": "Gets the resource groupQuotaLimits for the MGId. It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", - "operationId": "GroupQuotaLimits_Get", - "x-ms-examples": { - "GroupQuotaLimits_Get_Request_ForCompute": { - "$ref": "./examples/GetGroupQuotaLimits-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/ResourceInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/GroupQuotaLimit" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits": { - "get": { - "tags": [ - "GroupQuotaLimits" - ], - "summary": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope.", - "description": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope. The scope can be - providers/Microsoft.Compute/locations/. The list elements will be same as the Get API - It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", - "operationId": "GroupQuotaLimits_List", - "x-ms-examples": { - "GroupQuotaLimits_Get_Request_ForCompute": { - "$ref": "./examples/ListGroupQuotaLimits-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/ResourceInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/GroupQuotaList" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests": { - "get": { - "tags": [ - "GroupQuota-Requests" - ], - "summary": "List the status of all GroupQuota requests.", - "description": "List API to check the status of a GroupQuota requests by requestId. The groupQuotaRequest history is maintained for 1 year.", - "operationId": "GroupQuota-Requests_List", - "x-ms-examples": { - "MG-GroupQuota-Order_Get_Response_ForCompute": { - "$ref": "./examples/GetCapacityOrder-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success, with the details of the groupQuota request.", - "schema": { - "$ref": "#/definitions/SubmittedResourceRequestStatusList" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests/{requestId}": { - "get": { - "tags": [ - "GroupQuota-Requests" - ], - "summary": "Get the status of a single GroupQuota request by requestId.", - "description": "Get API to check the status of a GroupQuota request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.", - "operationId": "GroupQuota-Requests_Get", - "x-ms-examples": { - "MG-GroupQuota-Order_Get_Response_ForCompute": { - "$ref": "./examples/GetCapacityOrder-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/RequestIdInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success, with the details of the groupQuota request.", - "schema": { - "$ref": "#/definitions/SubmittedResourceRequestStatus" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations": { - "get": { - "tags": [ - "SubscriptionQuota-Allocation" - ], - "summary": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location.", - "description": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", - "operationId": "ShareQuota_MG_Subscription_List", - "x-ms-examples": { - "GroupQuota_Put_Request_ForCompute": { - "$ref": "./examples/PutQuotaAllocation-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SubscriptionIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/SubscriptionQuotaDetailsList" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations/{resourceName}": { - "put": { - "tags": [ - "SubscriptionQuota-Allocation" - ], - "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern to check the status using Async polling as standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.", - "description": "Request to assign a specific resource quota from group quota to a specific Subscription. The subscriptions can also reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, which means the maximum unused quota assigned back to MG groupQuota will be the groupQuota assigned to the subscriptions. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription.", - "operationId": "GroupQuotaSubscription_QuotaAllocation_Create", - "x-ms-examples": { - "ShareQuotaOrder_Subscription_Allocation_Put_ForCompute": { - "$ref": "./examples/PutQuotaAllocation-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SubscriptionIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/ResourceInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "allocateQuotaRequest", - "in": "body", - "description": "Quota requests payload.", - "required": true, - "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" - } - } - ], - "responses": { - "200": { - "description": "Request status details.", - "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" - } - }, - "202": { - "description": "Request Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Request MGId or resource not found. The resource was not found in pre-approved groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "406": { - "description": "The subscription is not eligible for groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "414": { - "description": "The requested quota was more than the available groupQuota. Similarly in case of quota reduction, the quota reduction is more than the quota assigned from groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - }, - "patch": { - "tags": [ - "SubscriptionQuota-Allocation" - ], - "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern with 202 response and status polling API.", - "description": "Request to assign quota from group quota to a specific Subscription. The subscriptions and reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, using this API. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription(s).", - "operationId": "GroupQuotaSubscription_QuotaAllocation_Update", - "x-ms-examples": { - "ShareQuotaOrder_Subscription_Allocation_Patch_ForCompute": { - "$ref": "./examples/PatchQuotaAllocation-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SubscriptionIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/ResourceInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "allocateQuotaRequest", - "in": "body", - "description": "Quota requests payload.", - "required": true, - "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" - } - } - ], - "responses": { - "200": { - "description": "Request status details.", - "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" - } - }, - "202": { - "description": "Request Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" - }, - "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Request MGId or resource not found. The resource was not found in pre-approved groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "406": { - "description": "The subscription is not eligible for groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "414": { - "description": "The requested quota was more than the available groupQuota. Similarly in case of quota reduction, the quota reduction is more than the quota assigned from groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - }, - "get": { - "tags": [ - "SubscriptionQuota-Allocation" - ], - "summary": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName.", - "description": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", - "operationId": "GroupQuotaSubscription_QuotaAllocation_Get", - "x-ms-examples": { - "ShareQuotaOrder_Subscription_Allocation_Get_ForCompute": { - "$ref": "./examples/GetQuotaAllocation-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SubscriptionIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/ResourceInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/SubscriptionQuotaLimit" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests/{allocationId}": { - "get": { - "tags": [ - "Subscription-Quota-Allocation-Requests" - ], - "operationId": "GroupQuotaSubscription_QuotaAllocationRequests_Get", - "summary": "Get the status of the quota allocation request for the subscriptionId.", - "description": "Get the quota allocation request status for the subscriptionId by allocationId.", - "x-ms-examples": { - "GroupQuotaAllocationRequest_Get_Request_ForCompute": { - "$ref": "./examples/GetQuotaAllocation-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SubscriptionIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/AllocationIdInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests": { - "get": { - "tags": [ - "Subscription-Quota-Allocation-Requests" - ], - "operationId": "SubscriptionGroupQuota-Allocation_Request_List", - "summary": "Lists all the quota allocation requests.to subscriptions", - "description": "Lists all the allocation requests.", - "x-ms-examples": { - "QuotaCapacityOrder_Put_Request_ForCompute": { - "$ref": "./examples/GetQuotaAllocation-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SubscriptionIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequestList" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - } - }, - "definitions": { - "Error": { - "type": "object", - "description": "Standard error response as per MS guidelines. We may skip some fields.", - "properties": { - "code": { - "type": "string" - }, - "target": { - "type": "string" - }, - "message": { - "type": "string" - }, - "innerError": { - "$ref": "#/definitions/InnerError" - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ErrorDetails" - } - } - } - }, - "ErrorContent": { - "type": "object", - "properties": { - "error": { - "$ref": "#/definitions/Error" - } - } - }, - "ErrorDetails": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "target": { - "type": "string" - }, - "message": { - "type": "string" - } - } - }, - "InnerError": { - "type": "object", - "properties": { - "trace": { - "type": "array", - "items": { - "type": "string" - } - }, - "context": { - "type": "string" - }, - "type": { - "type": "string" - } - } - }, - "RequestState": { - "description": "Request status.", - "enum": [ - "Accepted", - "Invalid", - "Succeeded", - "Failed", - "InProgress" - ], - "readOnly": true, - "type": "string", - "x-ms-enum": { - "name": "RequestState", - "modelAsString": true - } - }, - "OperationsStatus": { - "description": "A long running process operation Status. Based on - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#202-accepted-and-location-headers", - "type": "object", - "properties": { - "id": { - "description": "The operation status identifier. It should match what is used to GET the operation resource.", - "type": "string", - "readOnly": true - }, - "name": { - "type": "string", - "readOnly": true, - "description": "It must match the last segment of the id field, and will typically be a GUID / system generated value." - }, - "type": { - "description": "The type.", - "type": "string", - "readOnly": true - }, - "status": { - "$ref": "#/definitions/RequestState", - "readOnly": true - }, - "error": { - "$ref": "#/definitions/ErrorContent", - "readOnly": true - } - } - }, - "AssignedToSubscription": { - "type": "object", - "description": "SubscriptionIds and quota allocated to subscriptions from the GroupQuota.", - "additionalProperties": { - "type": "integer", - "format": "int64", - "description": "Group Quota assigned to subscription." - } - }, - "AssignedQuotaToSubscriptionList": { - "type": "array", - "readOnly": true, - "description": "Assigned Group Quota to subscriptions.", - "items": { - "$ref": "#/definitions/AssignedToSubscription" - } - }, - "GroupQuotaLimit": { - "type": "object", - "description": "Group Quota limit.", - "x-ms-azure-resource": true, - "properties": { - "id": { - "description": "The resource ID.", - "type": "string", - "readOnly": true - }, - "type": { - "description": "The type.", - "type": "string", - "readOnly": true - }, - "name": { - "description": "The resource name.", - "type": "string", - "readOnly": true - }, - "properties": { - "description": "Group Quota properties for the specified resource.", - "$ref": "#/definitions/GroupQuotaDetails" - } - } - }, - "ResourceName": { - "type": "object", - "description": "Name of the resource provided by the resource Provider. This property is already included in the request URI, so it is a readonly property returned in the response.", - "properties": { - "value": { - "description": "Resource name.", - "type": "string", - "readOnly": true - }, - "localizedValue": { - "description": "Resource display name.", - "type": "string", - "readOnly": true - } - } - }, - "GroupQuotaDetails": { - "type": "object", - "description": "Group Quota details.", - "properties": { - "limit": { - "type": "integer", - "format": "int64", - "description": "The current Group Quota Limit at the parentId level." - }, - "name": { - "$ref": "#/definitions/ResourceName", - "description": "The resource name, such as SKU name." - }, - "unit": { - "description": " The usages units, such as Count and Bytes. When requesting quota, use the **unit** value returned in the GET response in the request body of your PUT operation.", - "type": "string", - "readOnly": true - }, - "availableLimit": { - "type": "integer", - "format": "int64", - "readOnly": true, - "description": "The available Group Quota Limit at the MG level. This Group quota can be assigned to subscription(s)." - }, - "assignedToSubscriptions": { - "$ref": "#/definitions/AssignedQuotaToSubscriptionList" - } - } - }, - "GroupQuotaList": { - "type": "array", - "description": "List of Group Quotas at MG level.", - "items": { - "$ref": "#/definitions/GroupQuotaLimit" - } - }, - "SubscriptionQuotaAllocationRequest": { - "type": "object", - "description": "The new quota limit for the subscription.", - "properties": { - "id": { - "description": "The operation status identifier. It should match what is used to GET the operation resource.", - "type": "string", - "readOnly": true - }, - "name": { - "type": "string", - "readOnly": true, - "description": "It must match the last segment of the id field, and will typically be a GUID / system generated value." - }, - "type": { - "description": "The type.", - "type": "string", - "readOnly": true - }, - "status": { - "$ref": "#/definitions/RequestState", - "readOnly": true - }, - "limit": { - "type": "integer", - "format": "int64", - "description": "The new quota limit for the subscription. The incremental quota will be assigned from pre-approved groupQuota." - } - } - }, - "SubscriptionQuotaAllocationRequestList": { - "type": "array", - "description": "Assigned Group Quota to subscriptions.", - "items": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" - } - }, - "SubscriptionGroupQuotaAssignment": { - "type": "object", - "description": "MGId the source of groupQuota.", - "additionalProperties": { - "type": "integer", - "format": "int64", - "description": "Group Quota assigned to subscription." - } - }, - "SubscriptionGroupQuotaAssignmentList": { - "type": "array", - "description": "Assigned Group Quota to subscriptions.", - "items": { - "$ref": "#/definitions/SubscriptionGroupQuotaAssignment" - } - }, - "SubscriptionQuotaLimit": { - "type": "object", - "description": "Subscription Quota limit.", - "x-ms-azure-resource": true, - "properties": { - "id": { - "description": "The resource ID.", - "type": "string", - "readOnly": true - }, - "type": { - "description": "The type.", - "type": "string", - "readOnly": true - }, - "name": { - "description": "The resource name.", - "type": "string", - "readOnly": true - }, - "properties": { - "description": "Group Quota properties for the specified resource.", - "$ref": "#/definitions/SubscriptionQuotaDetails" - } - } - }, - "SubscriptionQuotaDetails": { - "type": "object", - "description": "Subscription Quota details.", - "properties": { - "limit": { - "type": "integer", - "format": "int64", - "description": "The total quota limit for the subscription." - }, - "nonShareableQuota": { - "type": "integer", - "format": "int64", - "description": "The non shareable quota for the subscription." - }, - "quotaSource": { - "$ref": "#/definitions/SubscriptionGroupQuotaAssignmentList" - } - } - }, - "SubscriptionQuotaDetailsList": { - "type": "array", - "description": "Subscription quota list.", - "items": { - "$ref": "#/definitions/SubscriptionQuotaLimit" - } - }, - "ResourceBaseRequest": { - "type": "object", - "description": "Resource definition with the requested quota.", - "properties": { - "resourceName": { - "type": "string", - "description": "The resource name, such as SKU name." - }, - "limits": { - "type": "integer", - "description": "Quota requested for the resource.", - "format": "int64" - }, - "unit": { - "type": "string", - "readOnly": true, - "description": "Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond. Based on - https://armwiki.azurewebsites.net/api_contracts/UsagesAPIContract.html?q=usages . Different RPs may have different units, Count, type as int64 should work for most of the integer values." - } - } - }, - "ResourceRequest": { - "type": "object", - "properties": { - "requestedResource": { - "description": "Requested Resource.", - "$ref": "#/definitions/ResourceBaseRequest" - } - } - }, - "SubmittedResourceRequestStatus": { - "type": "object", - "properties": { - "requestedResource": { - "description": "Requested Resource.", - "$ref": "#/definitions/ResourceBaseRequest" - }, - "status": { - "$ref": "#/definitions/RequestState", - "readOnly": true - } - } - }, - "SubmittedResourceRequestStatusList": { - "type": "array", - "description": "Subscription groupQuotaRequests list.", - "items": { - "$ref": "#/definitions/SubscriptionQuotaLimit" - } - }, - "SharedQuotaEntity": { - "type": "object", - "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", - "x-ms-azure-resource": true, - "properties": { - "id": { - "description": "Entity resource Id.", - "type": "string", - "readOnly": true - }, - "type": { - "type": "string", - "description": "Type of the entity - Microsoft.Quota/SharedQuotaEntity.", - "readOnly": true - }, - "name": { - "type": "string", - "description": "The entity name. The entity name is provided in the request, so it is not needed in the request body. The response will include it.", - "readOnly": true - }, - "subscriptionFilters": { - "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand.", - "$ref": "#/definitions/Filters" - } - } - }, - "Filter": { - "type": "object", - "description": "Filter for SharedQuota Entity.", - "properties": { - "filterEntity": { - "type": "string", - "description": "Name of the entity for filter, such as billingId, offerType.", - "enum": [ - "billingId", - "offerType" - ], - "x-ms-enum": { - "name": "SubscriptionFilterType", - "modelAsString": true - } - }, - "operator": { - "type": "string", - "description": "Operator to use for comparison., such as eq (==), neq (!=), etc.", - "enum": [ - "eq", - "neq" - ], - "x-ms-enum": { - "name": "SubscriptionFilterOperatorType", - "modelAsString": true - } - }, - "filterValue": { - "type": "string", - "description": "Value for the filterEntity for comparison. Such as billingId, offerType value." - } - }, - "required": [ - "filterEntity", - "operator", - "filterValue" - ] - }, - "Filters": { - "type": "object", - "description": "Filters for subscription, which can use shared Quota Entity.", - "properties": { - "and": { - "description": "The logical \"AND\" expression. It can have one or more filters.", - "type": "array", - "items": { - "$ref": "#/definitions/Filter" - }, - "x-ms-identifiers": [], - "minItems": 0 - } - } - }, - "SharedQuotaEntityList": { - "type": "array", - "description": "Share Quota Entity list.", - "items": { - "$ref": "#/definitions/SharedQuotaEntity" - } - } - }, - "parameters": { - "RequestIdInParameters": { - "name": "requestId", - "in": "path", - "required": true, - "type": "string", - "description": "Request Id.", - "x-ms-parameter-location": "method" - }, - "ResourceInParameters": { - "name": "resourceName", - "in": "path", - "required": true, - "type": "string", - "description": "Resource name.", - "x-ms-parameter-location": "method" - }, - "AllocationIdInParameters": { - "name": "allocationId", - "in": "path", - "required": true, - "type": "string", - "description": "Resource allocation Id.", - "x-ms-parameter-location": "method" - }, - "SubscriptionIdInParameters": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "Subscription Id.", - "x-ms-parameter-location": "method" - }, - "MgIdInParameters": { - "name": "mgId", - "in": "path", - "required": true, - "type": "string", - "description": "Management Group Id.", - "x-ms-parameter-location": "method" - }, - "SharedQuotaEntityNameInParameters": { - "name": "sharedQuotaEntityName", - "in": "path", - "required": true, - "type": "string", - "description": "The SharedQuotaEntity name. The name should be unique for the provided context tenantId/MgId.", - "x-ms-parameter-location": "method" - }, - "apiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Version of the API to be used with the client request. The current version is 2023-06-01-preview.", - "minLength": 1 - }, - "ScopeInParameters": { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "Scope for the resource. Some resources do not require location parameter, such as CosmosDb, so can be skipped in scope. For most of the resources require - providers/Microsoft.Compute/locations/{locationName}. Some Rps such as Batch requires batchAccountName - providers/Microsoft.Batch/locations/{locationName}/accountName/{batchAccountName}. This extension enables to specify resources for any all the RPs.", - "x-ms-parameter-location": "method" - } - } -} From e3d43477be1f8202f3aca031af9dd55c76664cbd Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 15 May 2023 16:19:51 -0700 Subject: [PATCH 011/158] Adding file with lower case. --- .../2023-06-01-preview/groupquota.json | 1607 +++++++++++++++++ 1 file changed, 1607 insertions(+) create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json new file mode 100644 index 000000000000..7e589d5a12b1 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -0,0 +1,1607 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure MG Group Quota using SharedQuotaEntity.", + "version": "2023-06-01-preview", + "description": "Microsoft Azure Quota Resource Provider" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + }, + "type": "oauth2", + "description": "Azure Active Directory OAuth 2.0 authorization" + } + }, + "paths": { + "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}": { + "put": { + "tags": [ + "SharedQuotaEntity" + ], + "summary": "Creates a new sharedQuotaEntity for the name passed.", + "description": "Creates a new sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", + "operationId": "SharedQuotaEntity_Create", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/PutSharedQuotaEntity.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "SharedQuotaEntityRequest", + "in": "body", + "description": "The SharedQuotaEntity Request.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "patch": { + "tags": [ + "SharedQuotaEntity" + ], + "summary": "Updates a new sharedQuotaEntity for the name passed.", + "description": "Updates the sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked. \n Any change in the filters will be applicable to the future quota assignments, existing quota assigned to subscriptions from the sharedQuotaEntity remains unchanged.", + "operationId": "SharedQuotaEntity_Update", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/PatchSharedQuotaEntity.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "SharedQuotaEntityRequest", + "in": "body", + "description": "The SharedQuotaEntity Request.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "get": { + "tags": [ + "SharedQuotaEntity" + ], + "summary": "Gets sharedQuotaEntity for the name passed.", + "description": "Gets the sharedQuotaEntity for the name passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", + "operationId": "SharedQuotaEntity_Get", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/GetSharedQuotaEntity.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "delete": { + "tags": [ + "SharedQuotaEntity" + ], + "summary": "Deletes sharedQuotaEntity for the name passed.", + "description": "Deletes the sharedQuotaEntity for the name passed. All the remaining shareQuota in the sharedQuotaEntity will be lost.", + "operationId": "SharedQuotaEntity_Delete", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/DeleteSharedQuotaEntity.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK." + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities": { + "get": { + "tags": [ + "SharedQuotaEntity" + ], + "summary": "Lists sharedQuotaEntities for the scope passed.", + "description": "Lists sharedQuotaEntities for the scope passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", + "operationId": "SharedQuotaEntity_List", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/GetSharedQuotaEntityList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntityList" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits/{resourceName}": { + "put": { + "tags": [ + "GroupQuotaLimits" + ], + "summary": "Creates a new Group Quota request for a specific resources.", + "description": "Creates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", + "operationId": "GroupQuotaLimits_Create", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/PutGroupQuotaLimits-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "groupQuotaRequest", + "in": "body", + "description": "The GroupQuota Request.", + "schema": { + "$ref": "#/definitions/GroupQuotaLimit" + } + } + ], + "responses": { + "200": { + "description": "OK. Returns the quota details.", + "schema": { + "$ref": "#/definitions/GroupQuotaLimit" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "patch": { + "tags": [ + "GroupQuotaLimits" + ], + "summary": "Creates/Updates a new Group Quota request for a specific resources.", + "description": "Creates/Updates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status will be updated periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed,then the URI will change to Get URI and full details can be checked.", + "operationId": "GroupQuotaLimits_Update", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/PatchGroupQuotaLimits-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "groupQuotaRequest", + "in": "body", + "description": "The GroupQuota Request.", + "schema": { + "$ref": "#/definitions/GroupQuotaLimit" + } + } + ], + "responses": { + "200": { + "description": "OK. Returns the quota details.", + "schema": { + "$ref": "#/definitions/GroupQuotaLimit" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "get": { + "tags": [ + "GroupQuotaLimits" + ], + "summary": "Gets the resource groupQuotaLimits for the MGId.", + "description": "Gets the resource groupQuotaLimits for the MGId. It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", + "operationId": "GroupQuotaLimits_Get", + "x-ms-examples": { + "GroupQuotaLimits_Get_Request_ForCompute": { + "$ref": "./examples/GetGroupQuotaLimits-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GroupQuotaLimit" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits": { + "get": { + "tags": [ + "GroupQuotaLimits" + ], + "summary": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope.", + "description": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope. The scope can be - providers/Microsoft.Compute/locations/. The list elements will be same as the Get API - It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", + "operationId": "GroupQuotaLimits_List", + "x-ms-examples": { + "GroupQuotaLimits_Get_Request_ForCompute": { + "$ref": "./examples/ListGroupQuotaLimits-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GroupQuotaList" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests": { + "get": { + "tags": [ + "GroupQuota-Requests" + ], + "summary": "List the status of all GroupQuota requests.", + "description": "List API to check the status of a GroupQuota requests by requestId. The groupQuotaRequest history is maintained for 1 year.", + "operationId": "GroupQuota-Requests_List", + "x-ms-examples": { + "MG-GroupQuota-Order_Get_Response_ForCompute": { + "$ref": "./examples/GetCapacityOrder-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success, with the details of the groupQuota request.", + "schema": { + "$ref": "#/definitions/SubmittedResourceRequestStatusList" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests/{requestId}": { + "get": { + "tags": [ + "GroupQuota-Requests" + ], + "summary": "Get the status of a single GroupQuota request by requestId.", + "description": "Get API to check the status of a GroupQuota request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.", + "operationId": "GroupQuota-Requests_Get", + "x-ms-examples": { + "MG-GroupQuota-Order_Get_Response_ForCompute": { + "$ref": "./examples/GetCapacityOrder-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/RequestIdInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success, with the details of the groupQuota request.", + "schema": { + "$ref": "#/definitions/SubmittedResourceRequestStatus" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations": { + "get": { + "tags": [ + "SubscriptionQuota-Allocation" + ], + "summary": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location.", + "description": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", + "operationId": "ShareQuota_MG_Subscription_List", + "x-ms-examples": { + "GroupQuota_Put_Request_ForCompute": { + "$ref": "./examples/PutQuotaAllocation-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaDetailsList" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations/{resourceName}": { + "put": { + "tags": [ + "SubscriptionQuota-Allocation" + ], + "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern to check the status using Async polling as standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.", + "description": "Request to assign a specific resource quota from group quota to a specific Subscription. The subscriptions can also reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, which means the maximum unused quota assigned back to MG groupQuota will be the groupQuota assigned to the subscriptions. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription.", + "operationId": "GroupQuotaSubscription_QuotaAllocation_Create", + "x-ms-examples": { + "ShareQuotaOrder_Subscription_Allocation_Put_ForCompute": { + "$ref": "./examples/PutQuotaAllocation-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "allocateQuotaRequest", + "in": "body", + "description": "Quota requests payload.", + "required": true, + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + } + ], + "responses": { + "200": { + "description": "Request status details.", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Request MGId or resource not found. The resource was not found in pre-approved groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "406": { + "description": "The subscription is not eligible for groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "414": { + "description": "The requested quota was more than the available groupQuota. Similarly in case of quota reduction, the quota reduction is more than the quota assigned from groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "patch": { + "tags": [ + "SubscriptionQuota-Allocation" + ], + "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern with 202 response and status polling API.", + "description": "Request to assign quota from group quota to a specific Subscription. The subscriptions and reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, using this API. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription(s).", + "operationId": "GroupQuotaSubscription_QuotaAllocation_Update", + "x-ms-examples": { + "ShareQuotaOrder_Subscription_Allocation_Patch_ForCompute": { + "$ref": "./examples/PatchQuotaAllocation-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "allocateQuotaRequest", + "in": "body", + "description": "Quota requests payload.", + "required": true, + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + } + ], + "responses": { + "200": { + "description": "Request status details.", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Azure-AsyncOperation": { + "description": "The URI to poll for completion status.", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Request MGId or resource not found. The resource was not found in pre-approved groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "406": { + "description": "The subscription is not eligible for groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "414": { + "description": "The requested quota was more than the available groupQuota. Similarly in case of quota reduction, the quota reduction is more than the quota assigned from groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "get": { + "tags": [ + "SubscriptionQuota-Allocation" + ], + "summary": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName.", + "description": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", + "operationId": "GroupQuotaSubscription_QuotaAllocation_Get", + "x-ms-examples": { + "ShareQuotaOrder_Subscription_Allocation_Get_ForCompute": { + "$ref": "./examples/GetQuotaAllocation-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaLimit" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests/{allocationId}": { + "get": { + "tags": [ + "Subscription-Quota-Allocation-Requests" + ], + "operationId": "GroupQuotaSubscription_QuotaAllocationRequests_Get", + "summary": "Get the status of the quota allocation request for the subscriptionId.", + "description": "Get the quota allocation request status for the subscriptionId by allocationId.", + "x-ms-examples": { + "GroupQuotaAllocationRequest_Get_Request_ForCompute": { + "$ref": "./examples/GetQuotaAllocation-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/AllocationIdInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests": { + "get": { + "tags": [ + "Subscription-Quota-Allocation-Requests" + ], + "operationId": "SubscriptionGroupQuota-Allocation_Request_List", + "summary": "Lists all the quota allocation requests.to subscriptions", + "description": "Lists all the allocation requests.", + "x-ms-examples": { + "QuotaCapacityOrder_Put_Request_ForCompute": { + "$ref": "./examples/GetQuotaAllocation-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequestList" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + } + }, + "definitions": { + "Error": { + "type": "object", + "description": "Standard error response as per MS guidelines. We may skip some fields.", + "properties": { + "code": { + "type": "string" + }, + "target": { + "type": "string" + }, + "message": { + "type": "string" + }, + "innerError": { + "$ref": "#/definitions/InnerError" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDetails" + } + } + } + }, + "ErrorContent": { + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/Error" + } + } + }, + "ErrorDetails": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "target": { + "type": "string" + }, + "message": { + "type": "string" + } + } + }, + "InnerError": { + "type": "object", + "properties": { + "trace": { + "type": "array", + "items": { + "type": "string" + } + }, + "context": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "RequestState": { + "description": "Request status.", + "enum": [ + "Accepted", + "Invalid", + "Succeeded", + "Failed", + "InProgress" + ], + "readOnly": true, + "type": "string", + "x-ms-enum": { + "name": "RequestState", + "modelAsString": true + } + }, + "OperationsStatus": { + "description": "A long running process operation Status. Based on - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#202-accepted-and-location-headers", + "type": "object", + "properties": { + "id": { + "description": "The operation status identifier. It should match what is used to GET the operation resource.", + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "readOnly": true, + "description": "It must match the last segment of the id field, and will typically be a GUID / system generated value." + }, + "type": { + "description": "The type.", + "type": "string", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/RequestState", + "readOnly": true + }, + "error": { + "$ref": "#/definitions/ErrorContent", + "readOnly": true + } + } + }, + "AssignedToSubscription": { + "type": "object", + "description": "SubscriptionIds and quota allocated to subscriptions from the GroupQuota.", + "additionalProperties": { + "type": "integer", + "format": "int64", + "description": "Group Quota assigned to subscription." + } + }, + "AssignedQuotaToSubscriptionList": { + "type": "array", + "readOnly": true, + "description": "Assigned Group Quota to subscriptions.", + "items": { + "$ref": "#/definitions/AssignedToSubscription" + } + }, + "GroupQuotaLimit": { + "type": "object", + "description": "Group Quota limit.", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "The resource ID.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The resource name.", + "type": "string", + "readOnly": true + }, + "properties": { + "description": "Group Quota properties for the specified resource.", + "$ref": "#/definitions/GroupQuotaDetails" + } + } + }, + "ResourceName": { + "type": "object", + "description": "Name of the resource provided by the resource Provider. This property is already included in the request URI, so it is a readonly property returned in the response.", + "properties": { + "value": { + "description": "Resource name.", + "type": "string", + "readOnly": true + }, + "localizedValue": { + "description": "Resource display name.", + "type": "string", + "readOnly": true + } + } + }, + "GroupQuotaDetails": { + "type": "object", + "description": "Group Quota details.", + "properties": { + "limit": { + "type": "integer", + "format": "int64", + "description": "The current Group Quota Limit at the parentId level." + }, + "name": { + "$ref": "#/definitions/ResourceName", + "description": "The resource name, such as SKU name." + }, + "unit": { + "description": " The usages units, such as Count and Bytes. When requesting quota, use the **unit** value returned in the GET response in the request body of your PUT operation.", + "type": "string", + "readOnly": true + }, + "availableLimit": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "The available Group Quota Limit at the MG level. This Group quota can be assigned to subscription(s)." + }, + "assignedToSubscriptions": { + "$ref": "#/definitions/AssignedQuotaToSubscriptionList" + } + } + }, + "GroupQuotaList": { + "type": "array", + "description": "List of Group Quotas at MG level.", + "items": { + "$ref": "#/definitions/GroupQuotaLimit" + } + }, + "SubscriptionQuotaAllocationRequest": { + "type": "object", + "description": "The new quota limit for the subscription.", + "properties": { + "id": { + "description": "The operation status identifier. It should match what is used to GET the operation resource.", + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "readOnly": true, + "description": "It must match the last segment of the id field, and will typically be a GUID / system generated value." + }, + "type": { + "description": "The type.", + "type": "string", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/RequestState", + "readOnly": true + }, + "limit": { + "type": "integer", + "format": "int64", + "description": "The new quota limit for the subscription. The incremental quota will be assigned from pre-approved groupQuota." + } + } + }, + "SubscriptionQuotaAllocationRequestList": { + "type": "array", + "description": "Assigned Group Quota to subscriptions.", + "items": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + }, + "SubscriptionGroupQuotaAssignment": { + "type": "object", + "description": "MGId the source of groupQuota.", + "additionalProperties": { + "type": "integer", + "format": "int64", + "description": "Group Quota assigned to subscription." + } + }, + "SubscriptionGroupQuotaAssignmentList": { + "type": "array", + "description": "Assigned Group Quota to subscriptions.", + "items": { + "$ref": "#/definitions/SubscriptionGroupQuotaAssignment" + } + }, + "SubscriptionQuotaLimit": { + "type": "object", + "description": "Subscription Quota limit.", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "The resource ID.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The resource name.", + "type": "string", + "readOnly": true + }, + "properties": { + "description": "Group Quota properties for the specified resource.", + "$ref": "#/definitions/SubscriptionQuotaDetails" + } + } + }, + "SubscriptionQuotaDetails": { + "type": "object", + "description": "Subscription Quota details.", + "properties": { + "limit": { + "type": "integer", + "format": "int64", + "description": "The total quota limit for the subscription." + }, + "nonShareableQuota": { + "type": "integer", + "format": "int64", + "description": "The non shareable quota for the subscription." + }, + "quotaSource": { + "$ref": "#/definitions/SubscriptionGroupQuotaAssignmentList" + } + } + }, + "SubscriptionQuotaDetailsList": { + "type": "array", + "description": "Subscription quota list.", + "items": { + "$ref": "#/definitions/SubscriptionQuotaLimit" + } + }, + "ResourceBaseRequest": { + "type": "object", + "description": "Resource definition with the requested quota.", + "properties": { + "resourceName": { + "type": "string", + "description": "The resource name, such as SKU name." + }, + "limits": { + "type": "integer", + "description": "Quota requested for the resource.", + "format": "int64" + }, + "unit": { + "type": "string", + "readOnly": true, + "description": "Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond. Based on - https://armwiki.azurewebsites.net/api_contracts/UsagesAPIContract.html?q=usages . Different RPs may have different units, Count, type as int64 should work for most of the integer values." + } + } + }, + "ResourceRequest": { + "type": "object", + "properties": { + "requestedResource": { + "description": "Requested Resource.", + "$ref": "#/definitions/ResourceBaseRequest" + } + } + }, + "SubmittedResourceRequestStatus": { + "type": "object", + "properties": { + "requestedResource": { + "description": "Requested Resource.", + "$ref": "#/definitions/ResourceBaseRequest" + }, + "status": { + "$ref": "#/definitions/RequestState", + "readOnly": true + } + } + }, + "SubmittedResourceRequestStatusList": { + "type": "array", + "description": "Subscription groupQuotaRequests list.", + "items": { + "$ref": "#/definitions/SubscriptionQuotaLimit" + } + }, + "SharedQuotaEntity": { + "type": "object", + "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "Entity resource Id.", + "type": "string", + "readOnly": true + }, + "type": { + "type": "string", + "description": "Type of the entity - Microsoft.Quota/SharedQuotaEntity.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "The entity name. The entity name is provided in the request, so it is not needed in the request body. The response will include it.", + "readOnly": true + }, + "subscriptionFilters": { + "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand.", + "$ref": "#/definitions/Filters" + } + } + }, + "Filter": { + "type": "object", + "description": "Filter for SharedQuota Entity.", + "properties": { + "filterEntity": { + "type": "string", + "description": "Name of the entity for filter, such as billingId, offerType.", + "enum": [ + "billingId", + "offerType" + ], + "x-ms-enum": { + "name": "SubscriptionFilterType", + "modelAsString": true + } + }, + "operator": { + "type": "string", + "description": "Operator to use for comparison., such as eq (==), neq (!=), etc.", + "enum": [ + "eq", + "neq" + ], + "x-ms-enum": { + "name": "SubscriptionFilterOperatorType", + "modelAsString": true + } + }, + "filterValue": { + "type": "string", + "description": "Value for the filterEntity for comparison. Such as billingId, offerType value." + } + }, + "required": [ + "filterEntity", + "operator", + "filterValue" + ] + }, + "Filters": { + "type": "object", + "description": "Filters for subscription, which can use shared Quota Entity.", + "properties": { + "and": { + "description": "The logical \"AND\" expression. It can have one or more filters.", + "type": "array", + "items": { + "$ref": "#/definitions/Filter" + }, + "x-ms-identifiers": [], + "minItems": 0 + } + } + }, + "SharedQuotaEntityList": { + "type": "array", + "description": "Share Quota Entity list.", + "items": { + "$ref": "#/definitions/SharedQuotaEntity" + } + } + }, + "parameters": { + "RequestIdInParameters": { + "name": "requestId", + "in": "path", + "required": true, + "type": "string", + "description": "Request Id.", + "x-ms-parameter-location": "method" + }, + "ResourceInParameters": { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "Resource name.", + "x-ms-parameter-location": "method" + }, + "AllocationIdInParameters": { + "name": "allocationId", + "in": "path", + "required": true, + "type": "string", + "description": "Resource allocation Id.", + "x-ms-parameter-location": "method" + }, + "SubscriptionIdInParameters": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription Id.", + "x-ms-parameter-location": "method" + }, + "MgIdInParameters": { + "name": "mgId", + "in": "path", + "required": true, + "type": "string", + "description": "Management Group Id.", + "x-ms-parameter-location": "method" + }, + "SharedQuotaEntityNameInParameters": { + "name": "sharedQuotaEntityName", + "in": "path", + "required": true, + "type": "string", + "description": "The SharedQuotaEntity name. The name should be unique for the provided context tenantId/MgId.", + "x-ms-parameter-location": "method" + }, + "apiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Version of the API to be used with the client request. The current version is 2023-06-01-preview.", + "minLength": 1 + }, + "ScopeInParameters": { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "Scope for the resource. Some resources do not require location parameter, such as CosmosDb, so can be skipped in scope. For most of the resources require - providers/Microsoft.Compute/locations/{locationName}. Some Rps such as Batch requires batchAccountName - providers/Microsoft.Batch/locations/{locationName}/accountName/{batchAccountName}. This extension enables to specify resources for any all the RPs.", + "x-ms-parameter-location": "method" + } + } +} From d3b6097d1473d500408339777ce8d8faf6241f5d Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 15 May 2023 16:30:22 -0700 Subject: [PATCH 012/158] Updating the version in the build files. --- specification/quota/resource-manager/readme.java.md | 10 ++++++---- specification/quota/resource-manager/readme.ruby.md | 6 +++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/specification/quota/resource-manager/readme.java.md b/specification/quota/resource-manager/readme.java.md index 0a22a561ca0f..9e3a210450cf 100644 --- a/specification/quota/resource-manager/readme.java.md +++ b/specification/quota/resource-manager/readme.java.md @@ -16,18 +16,20 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-quota ```yaml $(java) && $(multiapi) batch: + - tag: package-2021-03-15 + - tag: package-2021-03-15-preview - tag: package-2021-03-15-preview ``` -### Tag: package-2021-03-15 and java +### Tag: package-2023-01-01 and java -These settings apply only when `--tag=package-2021-03-15 --java` is specified on the command line. +These settings apply only when `--tag=package-2023-06-01 --java` is specified on the command line. Please also specify `--azure-libraries-for-java-folder=`. ``` yaml $(tag) == 'package-2021-03-15' && $(java) && $(multiapi) java: - namespace: com.microsoft.azure.management.quota.v2021_03_15 - output-folder: $(azure-libraries-for-java-folder)/sdk/quota/mgmt-v2021_03_15 + namespace: com.microsoft.azure.management.quota.v2023_02_01 + output-folder: $(azure-libraries-for-java-folder)/sdk/quota/mgmt-v2023_02_01 regenerate-manager: true generate-interface: true ``` diff --git a/specification/quota/resource-manager/readme.ruby.md b/specification/quota/resource-manager/readme.ruby.md index c05535ccb4d8..f999a5f3e80f 100644 --- a/specification/quota/resource-manager/readme.ruby.md +++ b/specification/quota/resource-manager/readme.ruby.md @@ -8,12 +8,12 @@ package-version: 2021-03-15 azure-arm: true ``` -### Tag: package-2021-03-15 and ruby +### Tag: package-2023-02-01 and ruby -These settings apply only when `--tag=package-2021-03-15 --ruby` is specified on the command line. +These settings apply only when `--tag=package-2023-02-01 --ruby` is specified on the command line. Please also specify `--ruby-sdks-folder=`. -```yaml $(tag) == 'package-2021-03-15' && $(ruby) +```yaml $(tag) == 'package-2023-02-01' && $(ruby) namespace: Microsoft.Quota output-folder: $(ruby-sdks-folder)/quota ``` From 8cac6205bf440eebaa38894274d6c0386173927d Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 15 May 2023 17:24:57 -0700 Subject: [PATCH 013/158] Adding pattern to validate parameter. --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 7e589d5a12b1..cb6fe4458e13 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1600,6 +1600,7 @@ "in": "path", "required": true, "type": "string", + "pattern": "^[a-z][a-z0-9]*$", "description": "Scope for the resource. Some resources do not require location parameter, such as CosmosDb, so can be skipped in scope. For most of the resources require - providers/Microsoft.Compute/locations/{locationName}. Some Rps such as Batch requires batchAccountName - providers/Microsoft.Batch/locations/{locationName}/accountName/{batchAccountName}. This extension enables to specify resources for any all the RPs.", "x-ms-parameter-location": "method" } From 39e9dae7d4ad591b33f4aa79cfa75b86e86a2bc5 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 15 May 2023 17:30:31 -0700 Subject: [PATCH 014/158] run prettier --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index cb6fe4458e13..a48bfcd50d75 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1600,7 +1600,7 @@ "in": "path", "required": true, "type": "string", - "pattern": "^[a-z][a-z0-9]*$", + "pattern": "^[a-z][a-z0-9]*$", "description": "Scope for the resource. Some resources do not require location parameter, such as CosmosDb, so can be skipped in scope. For most of the resources require - providers/Microsoft.Compute/locations/{locationName}. Some Rps such as Batch requires batchAccountName - providers/Microsoft.Batch/locations/{locationName}/accountName/{batchAccountName}. This extension enables to specify resources for any all the RPs.", "x-ms-parameter-location": "method" } From 3113262c8b7b2343959b0d01b0c81bbe6b8920f3 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 15 May 2023 17:51:24 -0700 Subject: [PATCH 015/158] Updating Tag --- specification/quota/resource-manager/readme.go.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/readme.go.md b/specification/quota/resource-manager/readme.go.md index 591d7ed61194..972aff904c19 100644 --- a/specification/quota/resource-manager/readme.go.md +++ b/specification/quota/resource-manager/readme.go.md @@ -51,6 +51,6 @@ output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2021-03-15-pr These settings apply only when `--tag=package-2023-06-01-preview --go` is specified on the command line. Please also specify `--go-sdk-folder=`. -``` yaml $(tag)=='package-2021-03-15-preview' && $(go) +``` yaml $(tag)=='package-2023-06-01-preview' && $(go) output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2023-06-01-preview/$(namespace) ``` \ No newline at end of file From ba2801a79e8223194e7a3e617b2c03d9df9eb9f4 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 16 May 2023 17:12:50 -0700 Subject: [PATCH 016/158] Updated Readme.md for build. --- specification/quota/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/readme.md b/specification/quota/resource-manager/readme.md index 6dc24edc34af..3d012787f720 100644 --- a/specification/quota/resource-manager/readme.md +++ b/specification/quota/resource-manager/readme.md @@ -36,8 +36,8 @@ These settings apply only when `--tag=package-2023-06-01-preview` is specified o ```yaml $(tag) == 'package-2023-06-01-preview' input-file: - - Microsoft.Quota/stable/2023-02-01/quota.json - Microsoft.Quota/preview/2023-06-01-preview/groupquota.json + - Microsoft.Quota/stable/2023-02-01/quota.json ``` ### Tag: package-2023-02-01 From 67ee34c809d74939abb3e5a661f1d2706d82fc83 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 16 May 2023 17:32:55 -0700 Subject: [PATCH 017/158] Updating the async response and adding default response. --- package-lock.json | 316 +++++++++++------- package.json | 18 +- .../2023-06-01-preview/groupquota.json | 140 +++++++- 3 files changed, 342 insertions(+), 132 deletions(-) diff --git a/package-lock.json b/package-lock.json index 12c8b9e5d7ab..68d3d3126b69 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,12 +5,16 @@ "packages": { "": { "name": "azure-rest-api-specs", + "dependencies": { + "autorest": "^3.6.3", + "pretier": "^0.0.1" + }, "devDependencies": { - "@azure-tools/cadl-apiview": "0.3.5", - "@azure-tools/cadl-autorest": "0.26.0", - "@azure-tools/cadl-azure-core": "0.26.0", - "@azure-tools/cadl-azure-resource-manager": "0.26.0", - "@azure-tools/cadl-providerhub": "0.26.0", + "@azure-tools/cadl-apiview": "^0.3.3", + "@azure-tools/cadl-autorest": "^0.19.0", + "@azure-tools/cadl-azure-core": "^0.6.0", + "@azure-tools/cadl-azure-resource-manager": "^0.9.0", + "@azure-tools/cadl-providerhub": "^0.20.0", "@azure-tools/typespec-apiview": "0.4.4", "@azure-tools/typespec-autorest": "0.29.0", "@azure-tools/typespec-azure-core": "0.29.0", @@ -24,104 +28,77 @@ } }, "node_modules/@azure-tools/cadl-apiview": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@azure-tools/cadl-apiview/-/cadl-apiview-0.3.5.tgz", - "integrity": "sha512-1+g/I7/PzEQQv8jE7HyxBKYSru+Ji0Myuviuy2qK8TE8gYcBoGjRdNb1aIIYyJpuqkazJ5hLtEKDD9enVhMNoA==", + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@azure-tools/cadl-apiview/-/cadl-apiview-0.3.3.tgz", + "integrity": "sha512-j16XUApC2C1HqRSbniJVhH0RUOeCHNE36kQt3TPI46CZQY8M6u/D8Gk3o+7MRQSBQ4QP8n9/h4h6AMAVPKVkew==", "deprecated": "Package renamed to @azure-tools/typespec-apiview.", "dev": true, - "dependencies": { - "@azure-tools/cadl-autorest": "0.26.0", - "@azure-tools/cadl-azure-core": "0.26.0", - "@azure-tools/cadl-dpg": "latest", - "@cadl-lang/compiler": "0.40.0", - "@cadl-lang/rest": "latest", - "@cadl-lang/versioning": "latest" - }, "engines": { "node": ">=16.0.0" } }, "node_modules/@azure-tools/cadl-autorest": { - "version": "0.26.0", - "resolved": "https://registry.npmjs.org/@azure-tools/cadl-autorest/-/cadl-autorest-0.26.0.tgz", - "integrity": "sha512-CoMddqhtZ7lP6O3hbX7Qxq3QeOou64IBmuf4Iz8dcTHOaLfrSoiJshbczEgO/mV62sY5kTmdamWEIi5ZRUpvWA==", + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/@azure-tools/cadl-autorest/-/cadl-autorest-0.19.0.tgz", + "integrity": "sha512-lu9eDwwBHi11bcVKH/4p6qgtUdnxhqgNT9fsoweXWPlzSMpNbmHxenpJ0iUhRc5q2+KiKwEMO+1cDiZLnpM6/g==", "dev": true, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@azure-tools/cadl-azure-core": "~0.26.0", - "@cadl-lang/compiler": "~0.40.0", - "@cadl-lang/openapi": "~0.40.0", - "@cadl-lang/rest": "~0.40.0", - "@cadl-lang/versioning": "~0.40.0" + "@azure-tools/cadl-azure-core": "~0.6.0", + "@cadl-lang/compiler": "~0.34.0", + "@cadl-lang/openapi": "~0.11.0", + "@cadl-lang/rest": "~0.16.0", + "@cadl-lang/versioning": "~0.7.0" } }, "node_modules/@azure-tools/cadl-azure-core": { - "version": "0.26.0", - "resolved": "https://registry.npmjs.org/@azure-tools/cadl-azure-core/-/cadl-azure-core-0.26.0.tgz", - "integrity": "sha512-PYmG/cp+QhyjuQa0jwTkkPp487d500FmPUB5rhjjx+OG080322d+uLeS9tx25dEq3GRoehEnF80qkupBjZBr1g==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@azure-tools/cadl-azure-core/-/cadl-azure-core-0.6.0.tgz", + "integrity": "sha512-IQVy1oAACCJAu4yJylEnZzdkc7P+5soqUsqe5+L1b0/WIKuBt8vgioESlE7LivX9BBNIPIMjmEKk5rcCZ7KTDQ==", "dev": true, - "dependencies": { - "@cadl-lang/lint": "~0.40.0" - }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@cadl-lang/compiler": "~0.40.0", - "@cadl-lang/rest": "~0.40.0" + "@cadl-lang/compiler": "~0.34.0", + "@cadl-lang/openapi": "~0.11.0", + "@cadl-lang/rest": "~0.16.0" } }, "node_modules/@azure-tools/cadl-azure-resource-manager": { - "version": "0.26.0", - "resolved": "https://registry.npmjs.org/@azure-tools/cadl-azure-resource-manager/-/cadl-azure-resource-manager-0.26.0.tgz", - "integrity": "sha512-0SVf/c5vZH6aCD05Ni7FjpGtKfd5bP8JqPFslhQyxqL9i3ILPso5xS1MOfFBI51L2gxy5ranSgGzTz3TOotiXw==", - "dev": true, - "dependencies": { - "@cadl-lang/lint": "~0.40.0" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@azure-tools/cadl-autorest": "~0.26.0", - "@azure-tools/cadl-azure-core": "~0.26.0", - "@cadl-lang/compiler": "~0.40.0", - "@cadl-lang/openapi": "~0.40.0", - "@cadl-lang/rest": "~0.40.0", - "@cadl-lang/versioning": "~0.40.0" - } - }, - "node_modules/@azure-tools/cadl-dpg": { - "version": "0.26.0", - "resolved": "https://registry.npmjs.org/@azure-tools/cadl-dpg/-/cadl-dpg-0.26.0.tgz", - "integrity": "sha512-/F40cUDwKZVPj+dBWxdZ3rXwiqs0kGV6ra/LcNoqK+M+nacd48R4L0512izfJbm8KqFen8yh9jfVC8xQfB6bJg==", + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/@azure-tools/cadl-azure-resource-manager/-/cadl-azure-resource-manager-0.9.0.tgz", + "integrity": "sha512-QVLMNmubqFqV3svEdxcnlmzoDN4Lm1DRpLeK0wxxufvg0fSlKp4XqJq9QOt4/Ed7eqasplniX5ZUzyU3TfJw0Q==", "dev": true, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@cadl-lang/compiler": "~0.40.0", - "@cadl-lang/rest": "~0.40.0" + "@azure-tools/cadl-autorest": "~0.19.0", + "@azure-tools/cadl-azure-core": "~0.6.0", + "@cadl-lang/compiler": "~0.34.0", + "@cadl-lang/openapi": "~0.11.0", + "@cadl-lang/rest": "~0.16.0" } }, "node_modules/@azure-tools/cadl-providerhub": { - "version": "0.26.0", - "resolved": "https://registry.npmjs.org/@azure-tools/cadl-providerhub/-/cadl-providerhub-0.26.0.tgz", - "integrity": "sha512-SZWnsuQziw2XJ7audHCpeYGmr1SMVOouqhqQPCSlMMo23elGmWnV+ThB3bso2t7m7PqPjGAhZZNsupQhVbWByg==", + "version": "0.20.0", + "resolved": "https://registry.npmjs.org/@azure-tools/cadl-providerhub/-/cadl-providerhub-0.20.0.tgz", + "integrity": "sha512-kz85Urz8KzRMOVmR9vKPA9U7vN9D3gsXU7JOjj08zvSRPt0cQqRW15ExClm9JsCG8XEepqKT6adNwB3KLlHOWw==", "dev": true, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@azure-tools/cadl-autorest": "~0.26.0", - "@azure-tools/cadl-azure-core": "~0.26.0", - "@azure-tools/cadl-azure-resource-manager": "~0.26.0", - "@cadl-lang/compiler": "~0.40.0", - "@cadl-lang/openapi": "~0.40.0", - "@cadl-lang/rest": "~0.40.0", - "@cadl-lang/versioning": "~0.40.0" + "@azure-tools/cadl-autorest": "~0.19.0", + "@azure-tools/cadl-azure-core": "~0.6.0", + "@azure-tools/cadl-azure-resource-manager": "~0.9.0", + "@cadl-lang/compiler": "~0.34.0", + "@cadl-lang/openapi": "~0.11.0", + "@cadl-lang/rest": "~0.16.0", + "@cadl-lang/versioning": "~0.7.0" } }, "node_modules/@azure-tools/typespec-apiview": { @@ -332,26 +309,27 @@ } }, "node_modules/@cadl-lang/compiler": { - "version": "0.40.0", - "resolved": "https://registry.npmjs.org/@cadl-lang/compiler/-/compiler-0.40.0.tgz", - "integrity": "sha512-4u/Dnm39Ma+8wH0SDu7ya1+2oBRDiNByiRoijwyScHRec26UWLyWvHMvvU89ISU6O8Vwtq0bpmbD7FeJTnlbHw==", + "version": "0.34.0", + "resolved": "https://registry.npmjs.org/@cadl-lang/compiler/-/compiler-0.34.0.tgz", + "integrity": "sha512-5KdfJTXkvzvRXVE4cvSm6lJtVVC4hEhUn+9vJXuxl3FIEmMR176xRXl9+ykcYLtDOGojVX0d1OCukeniwXQAWA==", "dev": true, + "peer": true, "dependencies": { - "@babel/code-frame": "~7.18.6", - "ajv": "~8.11.2", + "@babel/code-frame": "~7.16.7", + "ajv": "~8.9.0", "change-case": "~4.1.2", "globby": "~13.1.1", "js-yaml": "~4.1.0", "mkdirp": "~1.0.4", "mustache": "~4.2.0", - "node-fetch": "3.2.8", + "node-fetch": "~3.2.0", "node-watch": "~0.7.1", "picocolors": "~1.0.0", - "prettier": "~2.8.1", + "prettier": "~2.7.1", "prompts": "~2.4.1", - "vscode-languageserver": "~8.0.2", + "vscode-languageserver": "~7.0.0", "vscode-languageserver-textdocument": "~1.0.1", - "yargs": "~17.6.2" + "yargs": "~17.3.1" }, "bin": { "cadl": "cmd/cadl.js", @@ -361,11 +339,42 @@ "node": ">=16.0.0" } }, + "node_modules/@cadl-lang/compiler/node_modules/@babel/code-frame": { + "version": "7.16.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", + "integrity": "sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==", + "dev": true, + "peer": true, + "dependencies": { + "@babel/highlight": "^7.16.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@cadl-lang/compiler/node_modules/ajv": { + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.9.0.tgz", + "integrity": "sha512-qOKJyNj/h+OWx7s5DePL6Zu1KeM9jPZhwBqs+7DzP6bGOvqzVCSf0xueYmVuaC/oQ/VtS2zLMLHdQFbkka+XDQ==", + "dev": true, + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, "node_modules/@cadl-lang/compiler/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "peer": true, "dependencies": { "color-convert": "^2.0.1" }, @@ -380,20 +389,19 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true + "dev": true, + "peer": true }, "node_modules/@cadl-lang/compiler/node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "dev": true, + "peer": true, "dependencies": { "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", + "strip-ansi": "^6.0.0", "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" } }, "node_modules/@cadl-lang/compiler/node_modules/color-convert": { @@ -401,6 +409,7 @@ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "peer": true, "dependencies": { "color-name": "~1.1.4" }, @@ -412,13 +421,15 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "peer": true }, "node_modules/@cadl-lang/compiler/node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dev": true, + "peer": true, "dependencies": { "argparse": "^2.0.1" }, @@ -427,10 +438,11 @@ } }, "node_modules/@cadl-lang/compiler/node_modules/node-fetch": { - "version": "3.2.8", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.2.8.tgz", - "integrity": "sha512-KtpD1YhGszhntMpBDyp5lyagk8KIMopC1LEb7cQUAh7zcosaX5uK8HnbNb2i3NTQK3sIawCItS0uFC3QzcLHdg==", + "version": "3.2.10", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.2.10.tgz", + "integrity": "sha512-MhuzNwdURnZ1Cp4XTazr69K0BTizsBroX7Zx3UgDSVcZYKF/6p0CBe4EUb/hLqmzVhl0UpYfgRljQ4yxE+iCxA==", "dev": true, + "peer": true, "dependencies": { "data-uri-to-buffer": "^4.0.0", "fetch-blob": "^3.1.4", @@ -444,11 +456,69 @@ "url": "https://opencollective.com/node-fetch" } }, + "node_modules/@cadl-lang/compiler/node_modules/prettier": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", + "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", + "dev": true, + "peer": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/@cadl-lang/compiler/node_modules/vscode-jsonrpc": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-6.0.0.tgz", + "integrity": "sha512-wnJA4BnEjOSyFMvjZdpiOwhSq9uDoK8e/kpRJDTaMYzwlkrhG1fwDIZI94CLsLzlCK5cIbMMtFlJlfR57Lavmg==", + "dev": true, + "peer": true, + "engines": { + "node": ">=8.0.0 || >=10.0.0" + } + }, + "node_modules/@cadl-lang/compiler/node_modules/vscode-languageserver": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/vscode-languageserver/-/vscode-languageserver-7.0.0.tgz", + "integrity": "sha512-60HTx5ID+fLRcgdHfmz0LDZAXYEV68fzwG0JWwEPBode9NuMYTIxuYXPg4ngO8i8+Ou0lM7y6GzaYWbiDL0drw==", + "dev": true, + "peer": true, + "dependencies": { + "vscode-languageserver-protocol": "3.16.0" + }, + "bin": { + "installServerIntoExtension": "bin/installServerIntoExtension" + } + }, + "node_modules/@cadl-lang/compiler/node_modules/vscode-languageserver-protocol": { + "version": "3.16.0", + "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.16.0.tgz", + "integrity": "sha512-sdeUoAawceQdgIfTI+sdcwkiK2KU+2cbEYA0agzM2uqaUy2UpnnGHtWTHVEtS0ES4zHU0eMFRGN+oQgDxlD66A==", + "dev": true, + "peer": true, + "dependencies": { + "vscode-jsonrpc": "6.0.0", + "vscode-languageserver-types": "3.16.0" + } + }, + "node_modules/@cadl-lang/compiler/node_modules/vscode-languageserver-types": { + "version": "3.16.0", + "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.16.0.tgz", + "integrity": "sha512-k8luDIWJWyenLc5ToFQQMaSrqCHiLwyKPHKPQZ5zz21vM+vIVUSvsRpcbiECH4WR88K2XZqc4ScRcZ7nk/jbeA==", + "dev": true, + "peer": true + }, "node_modules/@cadl-lang/compiler/node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, + "peer": true, "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -466,23 +536,25 @@ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true, + "peer": true, "engines": { "node": ">=10" } }, "node_modules/@cadl-lang/compiler/node_modules/yargs": { - "version": "17.6.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz", - "integrity": "sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==", + "version": "17.3.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.3.1.tgz", + "integrity": "sha512-WUANQeVgjLbNsEmGk20f+nlHgOqzRFpiGWVaBrYGYIGANIIu3lWjoyi0fNlFmJkvfhCZ6BXINe7/W2O2bV4iaA==", "dev": true, + "peer": true, "dependencies": { - "cliui": "^8.0.1", + "cliui": "^7.0.2", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", "string-width": "^4.2.3", "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" + "yargs-parser": "^21.0.0" }, "engines": { "node": ">=12" @@ -493,55 +565,46 @@ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", "dev": true, + "peer": true, "engines": { "node": ">=12" } }, - "node_modules/@cadl-lang/lint": { - "version": "0.40.0", - "resolved": "https://registry.npmjs.org/@cadl-lang/lint/-/lint-0.40.0.tgz", - "integrity": "sha512-V/V5Msuurhb7kVZsvuAKVAHq4twmC5YC5k/t7YJWETOowFXepgIneWJPH2TDyyzO9WqJjqRJVRXPTrTuKuNFsA==", - "dev": true, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "@cadl-lang/compiler": "~0.40.0" - } - }, "node_modules/@cadl-lang/openapi": { - "version": "0.40.0", - "resolved": "https://registry.npmjs.org/@cadl-lang/openapi/-/openapi-0.40.0.tgz", - "integrity": "sha512-M2/Pb5AyZd2O5ycYBIoIf4bufip7bCUTMt3gdom1ss6726APbG1fxx98HPcTbXXx0oA+SuqEXtz8k9eaUGLadQ==", + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@cadl-lang/openapi/-/openapi-0.11.0.tgz", + "integrity": "sha512-miVNnGNq1VOdirTEStKIi00AMxPi/C53bGizrdqBUS7ZJ1vDQR7pq9hbPNYX8K7qAjMMSrJQykZc0xTOB/Jlow==", "dev": true, "peer": true, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@cadl-lang/compiler": "~0.40.0", - "@cadl-lang/rest": "~0.40.0" + "@cadl-lang/compiler": "~0.34.0", + "@cadl-lang/rest": "~0.16.0" } }, "node_modules/@cadl-lang/rest": { - "version": "0.40.0", - "resolved": "https://registry.npmjs.org/@cadl-lang/rest/-/rest-0.40.0.tgz", - "integrity": "sha512-WfGq6lN87adRKsKd3XtztvOLXHzyFlDRQiEcXKfnwXia37zVwK355KX39P1RimQ9mpDsmXaGG4ETkdUSWvXe7w==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@cadl-lang/rest/-/rest-0.16.0.tgz", + "integrity": "sha512-sf6BmJXpXWiTRZyqJkAAUZaAmfp6L35rg235PI4JeKsi93SbNExxuWR7USisA8sRvcCK9Ru8f8d0M+pb9oi4Mw==", "dev": true, + "peer": true, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@cadl-lang/compiler": "~0.40.0" + "@cadl-lang/compiler": "~0.34.0" } }, "node_modules/@cadl-lang/versioning": { - "version": "0.40.0", - "resolved": "https://registry.npmjs.org/@cadl-lang/versioning/-/versioning-0.40.0.tgz", - "integrity": "sha512-HK/jw0kxo/6RwbnR7nPyCj2kJ94uZbBhEmS08ms+fX4UB4nDNBXqXFwMwgftVZ2qdS9xEkRhLqpVYfEPzlFBJw==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@cadl-lang/versioning/-/versioning-0.7.0.tgz", + "integrity": "sha512-Wg0CyP47jZnv4hHaq8enUxhsqaJSQzYrlzQzg265CtZrUFzwlBAkqQVel8qeA6f/wljkkL5Se75Vt5tLE2kfhQ==", "dev": true, + "peer": true, "dependencies": { - "@cadl-lang/compiler": "~0.40.0" + "@cadl-lang/compiler": "~0.34.0" }, "engines": { "node": ">=16.0.0" @@ -1138,6 +1201,18 @@ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", "dev": true }, + "node_modules/autorest": { + "version": "3.6.3", + "resolved": "https://registry.npmjs.org/autorest/-/autorest-3.6.3.tgz", + "integrity": "sha512-j/Axwk9bniifTNtBLYVxfQZGQIGPKljFaCQCBWOiybVar2j3tkHP1btiC4a/t9pAJXY6IaFgWctoPM3G/Puhyg==", + "hasInstallScript": true, + "bin": { + "autorest": "entrypoints/app.js" + }, + "engines": { + "node": ">=12.0.0" + } + }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -2063,6 +2138,11 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/pretier": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/pretier/-/pretier-0.0.1.tgz", + "integrity": "sha512-sx6A34i/SbtIbiNrwwPJ9gpGKXfezVFFsv5/7v+qwu5vcwp6RJftQ60LvRbV4LQngUnJVRyU23AsUG3t+zNHEA==" + }, "node_modules/prettier": { "version": "2.8.8", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", diff --git a/package.json b/package.json index c8b6184cdbd3..bbe69840ee07 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,25 @@ { "name": "azure-rest-api-specs", "devDependencies": { - "@azure-tools/cadl-apiview": "0.3.5", - "@azure-tools/cadl-autorest": "0.26.0", - "@azure-tools/cadl-azure-core": "0.26.0", - "@azure-tools/cadl-azure-resource-manager": "0.26.0", - "@azure-tools/cadl-providerhub": "0.26.0", + "@azure-tools/cadl-apiview": "^0.3.3", + "@azure-tools/cadl-autorest": "^0.19.0", + "@azure-tools/cadl-azure-core": "^0.6.0", + "@azure-tools/cadl-azure-resource-manager": "^0.9.0", + "@azure-tools/cadl-providerhub": "^0.20.0", "@azure-tools/typespec-apiview": "0.4.4", "@azure-tools/typespec-autorest": "0.29.0", "@azure-tools/typespec-azure-core": "0.29.0", "@azure-tools/typespec-azure-resource-manager": "0.29.0", "@azure-tools/typespec-providerhub": "0.29.0", - "@typespec/compiler": "0.43.0", "@azure/avocado": "^0.8.4", "@types/prettier": "^2.7.2", + "@typespec/compiler": "0.43.0", "prettier": "^2.8.8", "typescript": "~5.0.4" }, - "private": true + "private": true, + "dependencies": { + "autorest": "^3.6.3", + "pretier": "^0.0.1" + } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index a48bfcd50d75..d0df6f623dbe 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -75,9 +75,13 @@ "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", "type": "integer" + }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", + "type": "string" }, "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", "type": "string" } }, @@ -96,6 +100,12 @@ "schema": { "$ref": "#/definitions/ErrorContent" } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } } } }, @@ -144,8 +154,12 @@ "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", "type": "integer" }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", + "type": "string" + }, "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", "type": "string" } }, @@ -170,7 +184,13 @@ "schema": { "$ref": "#/definitions/ErrorContent" } - } + }, + "default": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, } }, "get": { @@ -220,6 +240,12 @@ "schema": { "$ref": "#/definitions/ErrorContent" } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } } } }, @@ -267,6 +293,12 @@ "schema": { "$ref": "#/definitions/ErrorContent" } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } } } } @@ -316,6 +348,12 @@ "schema": { "$ref": "#/definitions/ErrorContent" } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } } } } @@ -371,9 +409,13 @@ "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", "type": "integer" + }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", + "type": "string" }, "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", "type": "string" } }, @@ -392,6 +434,12 @@ "schema": { "$ref": "#/definitions/ErrorContent" } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } } } }, @@ -445,9 +493,13 @@ "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", "type": "integer" + }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", + "type": "string" }, "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", "type": "string" } }, @@ -466,6 +518,12 @@ "schema": { "$ref": "#/definitions/ErrorContent" } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } } } }, @@ -516,6 +574,12 @@ "schema": { "$ref": "#/definitions/ErrorContent" } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } } } } @@ -568,6 +632,12 @@ "schema": { "$ref": "#/definitions/ErrorContent" } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } } } } @@ -617,6 +687,12 @@ "schema": { "$ref": "#/definitions/ErrorContent" } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } } } } @@ -669,6 +745,12 @@ "schema": { "$ref": "#/definitions/ErrorContent" } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } } } } @@ -727,6 +809,12 @@ "schema": { "$ref": "#/definitions/ErrorContent" } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } } } } @@ -786,9 +874,13 @@ "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", "type": "integer" + }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", + "type": "string" }, "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", "type": "string" } }, @@ -825,6 +917,12 @@ "schema": { "$ref": "#/definitions/ErrorContent" } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } } } }, @@ -882,9 +980,13 @@ "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", "type": "integer" + }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", + "type": "string" }, "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", "type": "string" } }, @@ -921,6 +1023,12 @@ "schema": { "$ref": "#/definitions/ErrorContent" } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } } } }, @@ -980,6 +1088,12 @@ "schema": { "$ref": "#/definitions/ErrorContent" } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } } } } @@ -1035,6 +1149,12 @@ "schema": { "$ref": "#/definitions/ErrorContent" } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } } } } @@ -1087,6 +1207,12 @@ "schema": { "$ref": "#/definitions/ErrorContent" } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } } } } From 8c73281a3e4fe79bd124ebd6cbc6773002c1a799 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 16 May 2023 17:47:37 -0700 Subject: [PATCH 018/158] Adding "x-ms-long-running-operation": true, for Async operations. --- .../2023-06-01-preview/groupquota.json | 3489 +++++++++-------- 1 file changed, 1756 insertions(+), 1733 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index d0df6f623dbe..2c2d85063fa0 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1,1734 +1,1757 @@ { - "swagger": "2.0", - "info": { - "title": "Azure MG Group Quota using SharedQuotaEntity.", - "version": "2023-06-01-preview", - "description": "Microsoft Azure Quota Resource Provider" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "flow": "implicit", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "scopes": { - "user_impersonation": "impersonate your user account" - }, - "type": "oauth2", - "description": "Azure Active Directory OAuth 2.0 authorization" - } - }, - "paths": { - "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}": { - "put": { - "tags": [ - "SharedQuotaEntity" - ], - "summary": "Creates a new sharedQuotaEntity for the name passed.", - "description": "Creates a new sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", - "operationId": "SharedQuotaEntity_Create", - "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/PutSharedQuotaEntity.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "SharedQuotaEntityRequest", - "in": "body", - "description": "The SharedQuotaEntity Request.", - "schema": { - "$ref": "#/definitions/SharedQuotaEntity" - } - } - ], - "responses": { - "200": { - "description": "OK.", - "schema": { - "$ref": "#/definitions/SharedQuotaEntity" - } - }, - "202": { - "description": "Request Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" - }, - "Location": { - "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - }, - "patch": { - "tags": [ - "SharedQuotaEntity" - ], - "summary": "Updates a new sharedQuotaEntity for the name passed.", - "description": "Updates the sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked. \n Any change in the filters will be applicable to the future quota assignments, existing quota assigned to subscriptions from the sharedQuotaEntity remains unchanged.", - "operationId": "SharedQuotaEntity_Update", - "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/PatchSharedQuotaEntity.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "SharedQuotaEntityRequest", - "in": "body", - "description": "The SharedQuotaEntity Request.", - "schema": { - "$ref": "#/definitions/SharedQuotaEntity" - } - } - ], - "responses": { - "200": { - "description": "OK.", - "schema": { - "$ref": "#/definitions/SharedQuotaEntity" - } - }, - "202": { - "description": "Request Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" - }, - "Location": { - "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - } - }, - "get": { - "tags": [ - "SharedQuotaEntity" - ], - "summary": "Gets sharedQuotaEntity for the name passed.", - "description": "Gets the sharedQuotaEntity for the name passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", - "operationId": "SharedQuotaEntity_Get", - "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/GetSharedQuotaEntity.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK.", - "schema": { - "$ref": "#/definitions/SharedQuotaEntity" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - }, - "delete": { - "tags": [ - "SharedQuotaEntity" - ], - "summary": "Deletes sharedQuotaEntity for the name passed.", - "description": "Deletes the sharedQuotaEntity for the name passed. All the remaining shareQuota in the sharedQuotaEntity will be lost.", - "operationId": "SharedQuotaEntity_Delete", - "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/DeleteSharedQuotaEntity.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK." - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities": { - "get": { - "tags": [ - "SharedQuotaEntity" - ], - "summary": "Lists sharedQuotaEntities for the scope passed.", - "description": "Lists sharedQuotaEntities for the scope passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", - "operationId": "SharedQuotaEntity_List", - "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/GetSharedQuotaEntityList.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK.", - "schema": { - "$ref": "#/definitions/SharedQuotaEntityList" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits/{resourceName}": { - "put": { - "tags": [ - "GroupQuotaLimits" - ], - "summary": "Creates a new Group Quota request for a specific resources.", - "description": "Creates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", - "operationId": "GroupQuotaLimits_Create", - "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/PutGroupQuotaLimits-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/ResourceInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "groupQuotaRequest", - "in": "body", - "description": "The GroupQuota Request.", - "schema": { - "$ref": "#/definitions/GroupQuotaLimit" - } - } - ], - "responses": { - "200": { - "description": "OK. Returns the quota details.", - "schema": { - "$ref": "#/definitions/GroupQuotaLimit" - } - }, - "202": { - "description": "Request Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" - }, - "Location": { - "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - }, - "patch": { - "tags": [ - "GroupQuotaLimits" - ], - "summary": "Creates/Updates a new Group Quota request for a specific resources.", - "description": "Creates/Updates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status will be updated periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed,then the URI will change to Get URI and full details can be checked.", - "operationId": "GroupQuotaLimits_Update", - "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/PatchGroupQuotaLimits-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/ResourceInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "groupQuotaRequest", - "in": "body", - "description": "The GroupQuota Request.", - "schema": { - "$ref": "#/definitions/GroupQuotaLimit" - } - } - ], - "responses": { - "200": { - "description": "OK. Returns the quota details.", - "schema": { - "$ref": "#/definitions/GroupQuotaLimit" - } - }, - "202": { - "description": "Request Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" - }, - "Location": { - "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - }, - "get": { - "tags": [ - "GroupQuotaLimits" - ], - "summary": "Gets the resource groupQuotaLimits for the MGId.", - "description": "Gets the resource groupQuotaLimits for the MGId. It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", - "operationId": "GroupQuotaLimits_Get", - "x-ms-examples": { - "GroupQuotaLimits_Get_Request_ForCompute": { - "$ref": "./examples/GetGroupQuotaLimits-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/ResourceInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/GroupQuotaLimit" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits": { - "get": { - "tags": [ - "GroupQuotaLimits" - ], - "summary": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope.", - "description": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope. The scope can be - providers/Microsoft.Compute/locations/. The list elements will be same as the Get API - It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", - "operationId": "GroupQuotaLimits_List", - "x-ms-examples": { - "GroupQuotaLimits_Get_Request_ForCompute": { - "$ref": "./examples/ListGroupQuotaLimits-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/ResourceInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/GroupQuotaList" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests": { - "get": { - "tags": [ - "GroupQuota-Requests" - ], - "summary": "List the status of all GroupQuota requests.", - "description": "List API to check the status of a GroupQuota requests by requestId. The groupQuotaRequest history is maintained for 1 year.", - "operationId": "GroupQuota-Requests_List", - "x-ms-examples": { - "MG-GroupQuota-Order_Get_Response_ForCompute": { - "$ref": "./examples/GetCapacityOrder-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success, with the details of the groupQuota request.", - "schema": { - "$ref": "#/definitions/SubmittedResourceRequestStatusList" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests/{requestId}": { - "get": { - "tags": [ - "GroupQuota-Requests" - ], - "summary": "Get the status of a single GroupQuota request by requestId.", - "description": "Get API to check the status of a GroupQuota request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.", - "operationId": "GroupQuota-Requests_Get", - "x-ms-examples": { - "MG-GroupQuota-Order_Get_Response_ForCompute": { - "$ref": "./examples/GetCapacityOrder-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/RequestIdInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success, with the details of the groupQuota request.", - "schema": { - "$ref": "#/definitions/SubmittedResourceRequestStatus" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations": { - "get": { - "tags": [ - "SubscriptionQuota-Allocation" - ], - "summary": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location.", - "description": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", - "operationId": "ShareQuota_MG_Subscription_List", - "x-ms-examples": { - "GroupQuota_Put_Request_ForCompute": { - "$ref": "./examples/PutQuotaAllocation-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SubscriptionIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/SubscriptionQuotaDetailsList" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations/{resourceName}": { - "put": { - "tags": [ - "SubscriptionQuota-Allocation" - ], - "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern to check the status using Async polling as standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.", - "description": "Request to assign a specific resource quota from group quota to a specific Subscription. The subscriptions can also reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, which means the maximum unused quota assigned back to MG groupQuota will be the groupQuota assigned to the subscriptions. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription.", - "operationId": "GroupQuotaSubscription_QuotaAllocation_Create", - "x-ms-examples": { - "ShareQuotaOrder_Subscription_Allocation_Put_ForCompute": { - "$ref": "./examples/PutQuotaAllocation-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SubscriptionIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/ResourceInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "allocateQuotaRequest", - "in": "body", - "description": "Quota requests payload.", - "required": true, - "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" - } - } - ], - "responses": { - "200": { - "description": "Request status details.", - "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" - } - }, - "202": { - "description": "Request Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" - }, - "Location": { - "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Request MGId or resource not found. The resource was not found in pre-approved groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "406": { - "description": "The subscription is not eligible for groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "414": { - "description": "The requested quota was more than the available groupQuota. Similarly in case of quota reduction, the quota reduction is more than the quota assigned from groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - }, - "patch": { - "tags": [ - "SubscriptionQuota-Allocation" - ], - "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern with 202 response and status polling API.", - "description": "Request to assign quota from group quota to a specific Subscription. The subscriptions and reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, using this API. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription(s).", - "operationId": "GroupQuotaSubscription_QuotaAllocation_Update", - "x-ms-examples": { - "ShareQuotaOrder_Subscription_Allocation_Patch_ForCompute": { - "$ref": "./examples/PatchQuotaAllocation-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SubscriptionIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/ResourceInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "allocateQuotaRequest", - "in": "body", - "description": "Quota requests payload.", - "required": true, - "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" - } - } - ], - "responses": { - "200": { - "description": "Request status details.", - "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" - } - }, - "202": { - "description": "Request Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" - }, - "Location": { - "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Request MGId or resource not found. The resource was not found in pre-approved groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "406": { - "description": "The subscription is not eligible for groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "414": { - "description": "The requested quota was more than the available groupQuota. Similarly in case of quota reduction, the quota reduction is more than the quota assigned from groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - }, - "get": { - "tags": [ - "SubscriptionQuota-Allocation" - ], - "summary": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName.", - "description": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", - "operationId": "GroupQuotaSubscription_QuotaAllocation_Get", - "x-ms-examples": { - "ShareQuotaOrder_Subscription_Allocation_Get_ForCompute": { - "$ref": "./examples/GetQuotaAllocation-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SubscriptionIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/ResourceInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/SubscriptionQuotaLimit" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests/{allocationId}": { - "get": { - "tags": [ - "Subscription-Quota-Allocation-Requests" - ], - "operationId": "GroupQuotaSubscription_QuotaAllocationRequests_Get", - "summary": "Get the status of the quota allocation request for the subscriptionId.", - "description": "Get the quota allocation request status for the subscriptionId by allocationId.", - "x-ms-examples": { - "GroupQuotaAllocationRequest_Get_Request_ForCompute": { - "$ref": "./examples/GetQuotaAllocation-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SubscriptionIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/AllocationIdInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests": { - "get": { - "tags": [ - "Subscription-Quota-Allocation-Requests" - ], - "operationId": "SubscriptionGroupQuota-Allocation_Request_List", - "summary": "Lists all the quota allocation requests.to subscriptions", - "description": "Lists all the allocation requests.", - "x-ms-examples": { - "QuotaCapacityOrder_Put_Request_ForCompute": { - "$ref": "./examples/GetQuotaAllocation-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SubscriptionIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequestList" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - } - }, - "definitions": { - "Error": { - "type": "object", - "description": "Standard error response as per MS guidelines. We may skip some fields.", - "properties": { - "code": { - "type": "string" - }, - "target": { - "type": "string" - }, - "message": { - "type": "string" - }, - "innerError": { - "$ref": "#/definitions/InnerError" - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ErrorDetails" - } - } - } - }, - "ErrorContent": { - "type": "object", - "properties": { - "error": { - "$ref": "#/definitions/Error" - } - } - }, - "ErrorDetails": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "target": { - "type": "string" - }, - "message": { - "type": "string" - } - } - }, - "InnerError": { - "type": "object", - "properties": { - "trace": { - "type": "array", - "items": { - "type": "string" - } - }, - "context": { - "type": "string" - }, - "type": { - "type": "string" - } - } - }, - "RequestState": { - "description": "Request status.", - "enum": [ - "Accepted", - "Invalid", - "Succeeded", - "Failed", - "InProgress" - ], - "readOnly": true, - "type": "string", - "x-ms-enum": { - "name": "RequestState", - "modelAsString": true - } - }, - "OperationsStatus": { - "description": "A long running process operation Status. Based on - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#202-accepted-and-location-headers", - "type": "object", - "properties": { - "id": { - "description": "The operation status identifier. It should match what is used to GET the operation resource.", - "type": "string", - "readOnly": true - }, - "name": { - "type": "string", - "readOnly": true, - "description": "It must match the last segment of the id field, and will typically be a GUID / system generated value." - }, - "type": { - "description": "The type.", - "type": "string", - "readOnly": true - }, - "status": { - "$ref": "#/definitions/RequestState", - "readOnly": true - }, - "error": { - "$ref": "#/definitions/ErrorContent", - "readOnly": true - } - } - }, - "AssignedToSubscription": { - "type": "object", - "description": "SubscriptionIds and quota allocated to subscriptions from the GroupQuota.", - "additionalProperties": { - "type": "integer", - "format": "int64", - "description": "Group Quota assigned to subscription." - } - }, - "AssignedQuotaToSubscriptionList": { - "type": "array", - "readOnly": true, - "description": "Assigned Group Quota to subscriptions.", - "items": { - "$ref": "#/definitions/AssignedToSubscription" - } - }, - "GroupQuotaLimit": { - "type": "object", - "description": "Group Quota limit.", - "x-ms-azure-resource": true, - "properties": { - "id": { - "description": "The resource ID.", - "type": "string", - "readOnly": true - }, - "type": { - "description": "The type.", - "type": "string", - "readOnly": true - }, - "name": { - "description": "The resource name.", - "type": "string", - "readOnly": true - }, - "properties": { - "description": "Group Quota properties for the specified resource.", - "$ref": "#/definitions/GroupQuotaDetails" - } - } - }, - "ResourceName": { - "type": "object", - "description": "Name of the resource provided by the resource Provider. This property is already included in the request URI, so it is a readonly property returned in the response.", - "properties": { - "value": { - "description": "Resource name.", - "type": "string", - "readOnly": true - }, - "localizedValue": { - "description": "Resource display name.", - "type": "string", - "readOnly": true - } - } - }, - "GroupQuotaDetails": { - "type": "object", - "description": "Group Quota details.", - "properties": { - "limit": { - "type": "integer", - "format": "int64", - "description": "The current Group Quota Limit at the parentId level." - }, - "name": { - "$ref": "#/definitions/ResourceName", - "description": "The resource name, such as SKU name." - }, - "unit": { - "description": " The usages units, such as Count and Bytes. When requesting quota, use the **unit** value returned in the GET response in the request body of your PUT operation.", - "type": "string", - "readOnly": true - }, - "availableLimit": { - "type": "integer", - "format": "int64", - "readOnly": true, - "description": "The available Group Quota Limit at the MG level. This Group quota can be assigned to subscription(s)." - }, - "assignedToSubscriptions": { - "$ref": "#/definitions/AssignedQuotaToSubscriptionList" - } - } - }, - "GroupQuotaList": { - "type": "array", - "description": "List of Group Quotas at MG level.", - "items": { - "$ref": "#/definitions/GroupQuotaLimit" - } - }, - "SubscriptionQuotaAllocationRequest": { - "type": "object", - "description": "The new quota limit for the subscription.", - "properties": { - "id": { - "description": "The operation status identifier. It should match what is used to GET the operation resource.", - "type": "string", - "readOnly": true - }, - "name": { - "type": "string", - "readOnly": true, - "description": "It must match the last segment of the id field, and will typically be a GUID / system generated value." - }, - "type": { - "description": "The type.", - "type": "string", - "readOnly": true - }, - "status": { - "$ref": "#/definitions/RequestState", - "readOnly": true - }, - "limit": { - "type": "integer", - "format": "int64", - "description": "The new quota limit for the subscription. The incremental quota will be assigned from pre-approved groupQuota." - } - } - }, - "SubscriptionQuotaAllocationRequestList": { - "type": "array", - "description": "Assigned Group Quota to subscriptions.", - "items": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" - } - }, - "SubscriptionGroupQuotaAssignment": { - "type": "object", - "description": "MGId the source of groupQuota.", - "additionalProperties": { - "type": "integer", - "format": "int64", - "description": "Group Quota assigned to subscription." - } - }, - "SubscriptionGroupQuotaAssignmentList": { - "type": "array", - "description": "Assigned Group Quota to subscriptions.", - "items": { - "$ref": "#/definitions/SubscriptionGroupQuotaAssignment" - } - }, - "SubscriptionQuotaLimit": { - "type": "object", - "description": "Subscription Quota limit.", - "x-ms-azure-resource": true, - "properties": { - "id": { - "description": "The resource ID.", - "type": "string", - "readOnly": true - }, - "type": { - "description": "The type.", - "type": "string", - "readOnly": true - }, - "name": { - "description": "The resource name.", - "type": "string", - "readOnly": true - }, - "properties": { - "description": "Group Quota properties for the specified resource.", - "$ref": "#/definitions/SubscriptionQuotaDetails" - } - } - }, - "SubscriptionQuotaDetails": { - "type": "object", - "description": "Subscription Quota details.", - "properties": { - "limit": { - "type": "integer", - "format": "int64", - "description": "The total quota limit for the subscription." - }, - "nonShareableQuota": { - "type": "integer", - "format": "int64", - "description": "The non shareable quota for the subscription." - }, - "quotaSource": { - "$ref": "#/definitions/SubscriptionGroupQuotaAssignmentList" - } - } - }, - "SubscriptionQuotaDetailsList": { - "type": "array", - "description": "Subscription quota list.", - "items": { - "$ref": "#/definitions/SubscriptionQuotaLimit" - } - }, - "ResourceBaseRequest": { - "type": "object", - "description": "Resource definition with the requested quota.", - "properties": { - "resourceName": { - "type": "string", - "description": "The resource name, such as SKU name." - }, - "limits": { - "type": "integer", - "description": "Quota requested for the resource.", - "format": "int64" - }, - "unit": { - "type": "string", - "readOnly": true, - "description": "Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond. Based on - https://armwiki.azurewebsites.net/api_contracts/UsagesAPIContract.html?q=usages . Different RPs may have different units, Count, type as int64 should work for most of the integer values." - } - } - }, - "ResourceRequest": { - "type": "object", - "properties": { - "requestedResource": { - "description": "Requested Resource.", - "$ref": "#/definitions/ResourceBaseRequest" - } - } - }, - "SubmittedResourceRequestStatus": { - "type": "object", - "properties": { - "requestedResource": { - "description": "Requested Resource.", - "$ref": "#/definitions/ResourceBaseRequest" - }, - "status": { - "$ref": "#/definitions/RequestState", - "readOnly": true - } - } - }, - "SubmittedResourceRequestStatusList": { - "type": "array", - "description": "Subscription groupQuotaRequests list.", - "items": { - "$ref": "#/definitions/SubscriptionQuotaLimit" - } - }, - "SharedQuotaEntity": { - "type": "object", - "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", - "x-ms-azure-resource": true, - "properties": { - "id": { - "description": "Entity resource Id.", - "type": "string", - "readOnly": true - }, - "type": { - "type": "string", - "description": "Type of the entity - Microsoft.Quota/SharedQuotaEntity.", - "readOnly": true - }, - "name": { - "type": "string", - "description": "The entity name. The entity name is provided in the request, so it is not needed in the request body. The response will include it.", - "readOnly": true - }, - "subscriptionFilters": { - "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand.", - "$ref": "#/definitions/Filters" - } - } - }, - "Filter": { - "type": "object", - "description": "Filter for SharedQuota Entity.", - "properties": { - "filterEntity": { - "type": "string", - "description": "Name of the entity for filter, such as billingId, offerType.", - "enum": [ - "billingId", - "offerType" - ], - "x-ms-enum": { - "name": "SubscriptionFilterType", - "modelAsString": true - } - }, - "operator": { - "type": "string", - "description": "Operator to use for comparison., such as eq (==), neq (!=), etc.", - "enum": [ - "eq", - "neq" - ], - "x-ms-enum": { - "name": "SubscriptionFilterOperatorType", - "modelAsString": true - } - }, - "filterValue": { - "type": "string", - "description": "Value for the filterEntity for comparison. Such as billingId, offerType value." - } - }, - "required": [ - "filterEntity", - "operator", - "filterValue" - ] - }, - "Filters": { - "type": "object", - "description": "Filters for subscription, which can use shared Quota Entity.", - "properties": { - "and": { - "description": "The logical \"AND\" expression. It can have one or more filters.", - "type": "array", - "items": { - "$ref": "#/definitions/Filter" - }, - "x-ms-identifiers": [], - "minItems": 0 - } - } - }, - "SharedQuotaEntityList": { - "type": "array", - "description": "Share Quota Entity list.", - "items": { - "$ref": "#/definitions/SharedQuotaEntity" - } - } - }, - "parameters": { - "RequestIdInParameters": { - "name": "requestId", - "in": "path", - "required": true, - "type": "string", - "description": "Request Id.", - "x-ms-parameter-location": "method" - }, - "ResourceInParameters": { - "name": "resourceName", - "in": "path", - "required": true, - "type": "string", - "description": "Resource name.", - "x-ms-parameter-location": "method" - }, - "AllocationIdInParameters": { - "name": "allocationId", - "in": "path", - "required": true, - "type": "string", - "description": "Resource allocation Id.", - "x-ms-parameter-location": "method" - }, - "SubscriptionIdInParameters": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "Subscription Id.", - "x-ms-parameter-location": "method" - }, - "MgIdInParameters": { - "name": "mgId", - "in": "path", - "required": true, - "type": "string", - "description": "Management Group Id.", - "x-ms-parameter-location": "method" - }, - "SharedQuotaEntityNameInParameters": { - "name": "sharedQuotaEntityName", - "in": "path", - "required": true, - "type": "string", - "description": "The SharedQuotaEntity name. The name should be unique for the provided context tenantId/MgId.", - "x-ms-parameter-location": "method" - }, - "apiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Version of the API to be used with the client request. The current version is 2023-06-01-preview.", - "minLength": 1 - }, - "ScopeInParameters": { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-z][a-z0-9]*$", - "description": "Scope for the resource. Some resources do not require location parameter, such as CosmosDb, so can be skipped in scope. For most of the resources require - providers/Microsoft.Compute/locations/{locationName}. Some Rps such as Batch requires batchAccountName - providers/Microsoft.Batch/locations/{locationName}/accountName/{batchAccountName}. This extension enables to specify resources for any all the RPs.", - "x-ms-parameter-location": "method" - } - } -} + "swagger": "2.0", + "info": { + "title": "Azure MG Group Quota using SharedQuotaEntity.", + "version": "2023-06-01-preview", + "description": "Microsoft Azure Quota Resource Provider" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + }, + "type": "oauth2", + "description": "Azure Active Directory OAuth 2.0 authorization" + } + }, + "paths": { + "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}": { + "put": { + "tags": [ + "SharedQuotaEntity" + ], + "summary": "Creates a new sharedQuotaEntity for the name passed.", + "description": "Creates a new sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", + "operationId": "SharedQuotaEntity_Create", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/PutSharedQuotaEntity.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "SharedQuotaEntityRequest", + "in": "body", + "description": "The SharedQuotaEntity Request.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "patch": { + "tags": [ + "SharedQuotaEntity" + ], + "summary": "Updates a new sharedQuotaEntity for the name passed.", + "description": "Updates the sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked. \n Any change in the filters will be applicable to the future quota assignments, existing quota assigned to subscriptions from the sharedQuotaEntity remains unchanged.", + "operationId": "SharedQuotaEntity_Update", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/PatchSharedQuotaEntity.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "SharedQuotaEntityRequest", + "in": "body", + "description": "The SharedQuotaEntity Request.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "get": { + "tags": [ + "SharedQuotaEntity" + ], + "summary": "Gets sharedQuotaEntity for the name passed.", + "description": "Gets the sharedQuotaEntity for the name passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", + "operationId": "SharedQuotaEntity_Get", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/GetSharedQuotaEntity.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "delete": { + "tags": [ + "SharedQuotaEntity" + ], + "summary": "Deletes sharedQuotaEntity for the name passed.", + "description": "Deletes the sharedQuotaEntity for the name passed. All the remaining shareQuota in the sharedQuotaEntity will be lost.", + "operationId": "SharedQuotaEntity_Delete", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/DeleteSharedQuotaEntity.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK." + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities": { + "get": { + "tags": [ + "SharedQuotaEntity" + ], + "summary": "Lists sharedQuotaEntities for the scope passed.", + "description": "Lists sharedQuotaEntities for the scope passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", + "operationId": "SharedQuotaEntity_List", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/GetSharedQuotaEntityList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntityList" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits/{resourceName}": { + "put": { + "tags": [ + "GroupQuotaLimits" + ], + "summary": "Creates a new Group Quota request for a specific resources.", + "description": "Creates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", + "operationId": "GroupQuotaLimits_Create", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/PutGroupQuotaLimits-Compute.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "groupQuotaRequest", + "in": "body", + "description": "The GroupQuota Request.", + "schema": { + "$ref": "#/definitions/GroupQuotaLimit" + } + } + ], + "responses": { + "200": { + "description": "OK. Returns the quota details.", + "schema": { + "$ref": "#/definitions/GroupQuotaLimit" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "patch": { + "tags": [ + "GroupQuotaLimits" + ], + "summary": "Creates/Updates a new Group Quota request for a specific resources.", + "description": "Creates/Updates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status will be updated periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed,then the URI will change to Get URI and full details can be checked.", + "operationId": "GroupQuotaLimits_Update", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/PatchGroupQuotaLimits-Compute.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "groupQuotaRequest", + "in": "body", + "description": "The GroupQuota Request.", + "schema": { + "$ref": "#/definitions/GroupQuotaLimit" + } + } + ], + "responses": { + "200": { + "description": "OK. Returns the quota details.", + "schema": { + "$ref": "#/definitions/GroupQuotaLimit" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "get": { + "tags": [ + "GroupQuotaLimits" + ], + "summary": "Gets the resource groupQuotaLimits for the MGId.", + "description": "Gets the resource groupQuotaLimits for the MGId. It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", + "operationId": "GroupQuotaLimits_Get", + "x-ms-examples": { + "GroupQuotaLimits_Get_Request_ForCompute": { + "$ref": "./examples/GetGroupQuotaLimits-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GroupQuotaLimit" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits": { + "get": { + "tags": [ + "GroupQuotaLimits" + ], + "summary": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope.", + "description": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope. The scope can be - providers/Microsoft.Compute/locations/. The list elements will be same as the Get API - It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", + "operationId": "GroupQuotaLimits_List", + "x-ms-examples": { + "GroupQuotaLimits_Get_Request_ForCompute": { + "$ref": "./examples/ListGroupQuotaLimits-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GroupQuotaList" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests": { + "get": { + "tags": [ + "GroupQuota-Requests" + ], + "summary": "List the status of all GroupQuota requests.", + "description": "List API to check the status of a GroupQuota requests by requestId. The groupQuotaRequest history is maintained for 1 year.", + "operationId": "GroupQuota-Requests_List", + "x-ms-examples": { + "MG-GroupQuota-Order_Get_Response_ForCompute": { + "$ref": "./examples/GetCapacityOrder-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success, with the details of the groupQuota request.", + "schema": { + "$ref": "#/definitions/SubmittedResourceRequestStatusList" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests/{requestId}": { + "get": { + "tags": [ + "GroupQuota-Requests" + ], + "summary": "Get the status of a single GroupQuota request by requestId.", + "description": "Get API to check the status of a GroupQuota request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.", + "operationId": "GroupQuota-Requests_Get", + "x-ms-examples": { + "MG-GroupQuota-Order_Get_Response_ForCompute": { + "$ref": "./examples/GetCapacityOrder-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/RequestIdInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success, with the details of the groupQuota request.", + "schema": { + "$ref": "#/definitions/SubmittedResourceRequestStatus" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations": { + "get": { + "tags": [ + "SubscriptionQuota-Allocation" + ], + "summary": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location.", + "description": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", + "operationId": "ShareQuota_MG_Subscription_List", + "x-ms-examples": { + "GroupQuota_Put_Request_ForCompute": { + "$ref": "./examples/PutQuotaAllocation-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaDetailsList" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations/{resourceName}": { + "put": { + "tags": [ + "SubscriptionQuota-Allocation" + ], + "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern to check the status using Async polling as standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.", + "description": "Request to assign a specific resource quota from group quota to a specific Subscription. The subscriptions can also reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, which means the maximum unused quota assigned back to MG groupQuota will be the groupQuota assigned to the subscriptions. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription.", + "operationId": "GroupQuotaSubscription_QuotaAllocation_Create", + "x-ms-examples": { + "ShareQuotaOrder_Subscription_Allocation_Put_ForCompute": { + "$ref": "./examples/PutQuotaAllocation-Compute.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "allocateQuotaRequest", + "in": "body", + "description": "Quota requests payload.", + "required": true, + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + } + ], + "responses": { + "200": { + "description": "Request status details.", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Request MGId or resource not found. The resource was not found in pre-approved groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "406": { + "description": "The subscription is not eligible for groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "414": { + "description": "The requested quota was more than the available groupQuota. Similarly in case of quota reduction, the quota reduction is more than the quota assigned from groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "patch": { + "tags": [ + "SubscriptionQuota-Allocation" + ], + "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern with 202 response and status polling API.", + "description": "Request to assign quota from group quota to a specific Subscription. The subscriptions and reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, using this API. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription(s).", + "operationId": "GroupQuotaSubscription_QuotaAllocation_Update", + "x-ms-examples": { + "ShareQuotaOrder_Subscription_Allocation_Patch_ForCompute": { + "$ref": "./examples/PatchQuotaAllocation-Compute.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "allocateQuotaRequest", + "in": "body", + "description": "Quota requests payload.", + "required": true, + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + } + ], + "responses": { + "200": { + "description": "Request status details.", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Request MGId or resource not found. The resource was not found in pre-approved groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "406": { + "description": "The subscription is not eligible for groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "414": { + "description": "The requested quota was more than the available groupQuota. Similarly in case of quota reduction, the quota reduction is more than the quota assigned from groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "get": { + "tags": [ + "SubscriptionQuota-Allocation" + ], + "summary": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName.", + "description": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", + "operationId": "GroupQuotaSubscription_QuotaAllocation_Get", + "x-ms-examples": { + "ShareQuotaOrder_Subscription_Allocation_Get_ForCompute": { + "$ref": "./examples/GetQuotaAllocation-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaLimit" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests/{allocationId}": { + "get": { + "tags": [ + "Subscription-Quota-Allocation-Requests" + ], + "operationId": "GroupQuotaSubscription_QuotaAllocationRequests_Get", + "summary": "Get the status of the quota allocation request for the subscriptionId.", + "description": "Get the quota allocation request status for the subscriptionId by allocationId.", + "x-ms-examples": { + "GroupQuotaAllocationRequest_Get_Request_ForCompute": { + "$ref": "./examples/GetQuotaAllocation-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/AllocationIdInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests": { + "get": { + "tags": [ + "Subscription-Quota-Allocation-Requests" + ], + "operationId": "SubscriptionGroupQuota-Allocation_Request_List", + "summary": "Lists all the quota allocation requests.to subscriptions", + "description": "Lists all the allocation requests.", + "x-ms-examples": { + "QuotaCapacityOrder_Put_Request_ForCompute": { + "$ref": "./examples/GetQuotaAllocation-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequestList" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + } + }, + "definitions": { + "Error": { + "type": "object", + "description": "Standard error response as per MS guidelines. We may skip some fields.", + "properties": { + "code": { + "type": "string" + }, + "target": { + "type": "string" + }, + "message": { + "type": "string" + }, + "innerError": { + "$ref": "#/definitions/InnerError" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDetails" + } + } + } + }, + "ErrorContent": { + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/Error" + } + } + }, + "ErrorDetails": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "target": { + "type": "string" + }, + "message": { + "type": "string" + } + } + }, + "InnerError": { + "type": "object", + "properties": { + "trace": { + "type": "array", + "items": { + "type": "string" + } + }, + "context": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "RequestState": { + "description": "Request status.", + "enum": [ + "Accepted", + "Invalid", + "Succeeded", + "Failed", + "InProgress" + ], + "readOnly": true, + "type": "string", + "x-ms-enum": { + "name": "RequestState", + "modelAsString": true + } + }, + "OperationsStatus": { + "description": "A long running process operation Status. Based on - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#202-accepted-and-location-headers", + "type": "object", + "properties": { + "id": { + "description": "The operation status identifier. It should match what is used to GET the operation resource.", + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "readOnly": true, + "description": "It must match the last segment of the id field, and will typically be a GUID / system generated value." + }, + "type": { + "description": "The type.", + "type": "string", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/RequestState", + "readOnly": true + }, + "error": { + "$ref": "#/definitions/ErrorContent", + "readOnly": true + } + } + }, + "AssignedToSubscription": { + "type": "object", + "description": "SubscriptionIds and quota allocated to subscriptions from the GroupQuota.", + "additionalProperties": { + "type": "integer", + "format": "int64", + "description": "Group Quota assigned to subscription." + } + }, + "AssignedQuotaToSubscriptionList": { + "type": "array", + "readOnly": true, + "description": "Assigned Group Quota to subscriptions.", + "items": { + "$ref": "#/definitions/AssignedToSubscription" + } + }, + "GroupQuotaLimit": { + "type": "object", + "description": "Group Quota limit.", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "The resource ID.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The resource name.", + "type": "string", + "readOnly": true + }, + "properties": { + "description": "Group Quota properties for the specified resource.", + "$ref": "#/definitions/GroupQuotaDetails" + } + } + }, + "ResourceName": { + "type": "object", + "description": "Name of the resource provided by the resource Provider. This property is already included in the request URI, so it is a readonly property returned in the response.", + "properties": { + "value": { + "description": "Resource name.", + "type": "string", + "readOnly": true + }, + "localizedValue": { + "description": "Resource display name.", + "type": "string", + "readOnly": true + } + } + }, + "GroupQuotaDetails": { + "type": "object", + "description": "Group Quota details.", + "properties": { + "limit": { + "type": "integer", + "format": "int64", + "description": "The current Group Quota Limit at the parentId level." + }, + "name": { + "$ref": "#/definitions/ResourceName", + "description": "The resource name, such as SKU name." + }, + "unit": { + "description": " The usages units, such as Count and Bytes. When requesting quota, use the **unit** value returned in the GET response in the request body of your PUT operation.", + "type": "string", + "readOnly": true + }, + "availableLimit": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "The available Group Quota Limit at the MG level. This Group quota can be assigned to subscription(s)." + }, + "assignedToSubscriptions": { + "$ref": "#/definitions/AssignedQuotaToSubscriptionList" + } + } + }, + "GroupQuotaList": { + "type": "array", + "description": "List of Group Quotas at MG level.", + "items": { + "$ref": "#/definitions/GroupQuotaLimit" + } + }, + "SubscriptionQuotaAllocationRequest": { + "type": "object", + "description": "The new quota limit for the subscription.", + "properties": { + "id": { + "description": "The operation status identifier. It should match what is used to GET the operation resource.", + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "readOnly": true, + "description": "It must match the last segment of the id field, and will typically be a GUID / system generated value." + }, + "type": { + "description": "The type.", + "type": "string", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/RequestState", + "readOnly": true + }, + "limit": { + "type": "integer", + "format": "int64", + "description": "The new quota limit for the subscription. The incremental quota will be assigned from pre-approved groupQuota." + } + } + }, + "SubscriptionQuotaAllocationRequestList": { + "type": "array", + "description": "Assigned Group Quota to subscriptions.", + "items": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + }, + "SubscriptionGroupQuotaAssignment": { + "type": "object", + "description": "MGId the source of groupQuota.", + "additionalProperties": { + "type": "integer", + "format": "int64", + "description": "Group Quota assigned to subscription." + } + }, + "SubscriptionGroupQuotaAssignmentList": { + "type": "array", + "description": "Assigned Group Quota to subscriptions.", + "items": { + "$ref": "#/definitions/SubscriptionGroupQuotaAssignment" + } + }, + "SubscriptionQuotaLimit": { + "type": "object", + "description": "Subscription Quota limit.", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "The resource ID.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The resource name.", + "type": "string", + "readOnly": true + }, + "properties": { + "description": "Group Quota properties for the specified resource.", + "$ref": "#/definitions/SubscriptionQuotaDetails" + } + } + }, + "SubscriptionQuotaDetails": { + "type": "object", + "description": "Subscription Quota details.", + "properties": { + "limit": { + "type": "integer", + "format": "int64", + "description": "The total quota limit for the subscription." + }, + "nonShareableQuota": { + "type": "integer", + "format": "int64", + "description": "The non shareable quota for the subscription." + }, + "quotaSource": { + "$ref": "#/definitions/SubscriptionGroupQuotaAssignmentList" + } + } + }, + "SubscriptionQuotaDetailsList": { + "type": "array", + "description": "Subscription quota list.", + "items": { + "$ref": "#/definitions/SubscriptionQuotaLimit" + } + }, + "ResourceBaseRequest": { + "type": "object", + "description": "Resource definition with the requested quota.", + "properties": { + "resourceName": { + "type": "string", + "description": "The resource name, such as SKU name." + }, + "limits": { + "type": "integer", + "description": "Quota requested for the resource.", + "format": "int64" + }, + "unit": { + "type": "string", + "readOnly": true, + "description": "Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond. Based on - https://armwiki.azurewebsites.net/api_contracts/UsagesAPIContract.html?q=usages . Different RPs may have different units, Count, type as int64 should work for most of the integer values." + } + } + }, + "ResourceRequest": { + "type": "object", + "properties": { + "requestedResource": { + "description": "Requested Resource.", + "$ref": "#/definitions/ResourceBaseRequest" + } + } + }, + "SubmittedResourceRequestStatus": { + "type": "object", + "properties": { + "requestedResource": { + "description": "Requested Resource.", + "$ref": "#/definitions/ResourceBaseRequest" + }, + "status": { + "$ref": "#/definitions/RequestState", + "readOnly": true + } + } + }, + "SubmittedResourceRequestStatusList": { + "type": "array", + "description": "Subscription groupQuotaRequests list.", + "items": { + "$ref": "#/definitions/SubscriptionQuotaLimit" + } + }, + "SharedQuotaEntity": { + "type": "object", + "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "Entity resource Id.", + "type": "string", + "readOnly": true + }, + "type": { + "type": "string", + "description": "Type of the entity - Microsoft.Quota/SharedQuotaEntity.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "The entity name. The entity name is provided in the request, so it is not needed in the request body. The response will include it.", + "readOnly": true + }, + "subscriptionFilters": { + "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand.", + "$ref": "#/definitions/Filters" + } + } + }, + "Filter": { + "type": "object", + "description": "Filter for SharedQuota Entity.", + "properties": { + "filterEntity": { + "type": "string", + "description": "Name of the entity for filter, such as billingId, offerType.", + "enum": [ + "billingId", + "offerType" + ], + "x-ms-enum": { + "name": "SubscriptionFilterType", + "modelAsString": true + } + }, + "operator": { + "type": "string", + "description": "Operator to use for comparison., such as eq (==), neq (!=), etc.", + "enum": [ + "eq", + "neq" + ], + "x-ms-enum": { + "name": "SubscriptionFilterOperatorType", + "modelAsString": true + } + }, + "filterValue": { + "type": "string", + "description": "Value for the filterEntity for comparison. Such as billingId, offerType value." + } + }, + "required": [ + "filterEntity", + "operator", + "filterValue" + ] + }, + "Filters": { + "type": "object", + "description": "Filters for subscription, which can use shared Quota Entity.", + "properties": { + "and": { + "description": "The logical \"AND\" expression. It can have one or more filters.", + "type": "array", + "items": { + "$ref": "#/definitions/Filter" + }, + "x-ms-identifiers": [], + "minItems": 0 + } + } + }, + "SharedQuotaEntityList": { + "type": "array", + "description": "Share Quota Entity list.", + "items": { + "$ref": "#/definitions/SharedQuotaEntity" + } + } + }, + "parameters": { + "RequestIdInParameters": { + "name": "requestId", + "in": "path", + "required": true, + "type": "string", + "description": "Request Id.", + "x-ms-parameter-location": "method" + }, + "ResourceInParameters": { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "Resource name.", + "x-ms-parameter-location": "method" + }, + "AllocationIdInParameters": { + "name": "allocationId", + "in": "path", + "required": true, + "type": "string", + "description": "Resource allocation Id.", + "x-ms-parameter-location": "method" + }, + "SubscriptionIdInParameters": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription Id.", + "x-ms-parameter-location": "method" + }, + "MgIdInParameters": { + "name": "mgId", + "in": "path", + "required": true, + "type": "string", + "description": "Management Group Id.", + "x-ms-parameter-location": "method" + }, + "SharedQuotaEntityNameInParameters": { + "name": "sharedQuotaEntityName", + "in": "path", + "required": true, + "type": "string", + "description": "The SharedQuotaEntity name. The name should be unique for the provided context tenantId/MgId.", + "x-ms-parameter-location": "method" + }, + "apiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Version of the API to be used with the client request. The current version is 2023-06-01-preview.", + "minLength": 1 + }, + "ScopeInParameters": { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-z][a-z0-9]*$", + "description": "Scope for the resource. Some resources do not require location parameter, such as CosmosDb, so can be skipped in scope. For most of the resources require - providers/Microsoft.Compute/locations/{locationName}. Some Rps such as Batch requires batchAccountName - providers/Microsoft.Batch/locations/{locationName}/accountName/{batchAccountName}. This extension enables to specify resources for any all the RPs.", + "x-ms-parameter-location": "method" + } + } +} \ No newline at end of file From 75f58b2cf575c256cc471fb33774f0758c7fbf27 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 16 May 2023 17:51:16 -0700 Subject: [PATCH 019/158] Run prettier. --- .../2023-06-01-preview/groupquota.json | 3512 ++++++++--------- 1 file changed, 1756 insertions(+), 1756 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 2c2d85063fa0..179d8f3557d4 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1,1757 +1,1757 @@ { - "swagger": "2.0", - "info": { - "title": "Azure MG Group Quota using SharedQuotaEntity.", - "version": "2023-06-01-preview", - "description": "Microsoft Azure Quota Resource Provider" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "flow": "implicit", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "scopes": { - "user_impersonation": "impersonate your user account" - }, - "type": "oauth2", - "description": "Azure Active Directory OAuth 2.0 authorization" - } - }, - "paths": { - "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}": { - "put": { - "tags": [ - "SharedQuotaEntity" - ], - "summary": "Creates a new sharedQuotaEntity for the name passed.", - "description": "Creates a new sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", - "operationId": "SharedQuotaEntity_Create", - "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/PutSharedQuotaEntity.json" - } - }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "SharedQuotaEntityRequest", - "in": "body", - "description": "The SharedQuotaEntity Request.", - "schema": { - "$ref": "#/definitions/SharedQuotaEntity" - } - } - ], - "responses": { - "200": { - "description": "OK.", - "schema": { - "$ref": "#/definitions/SharedQuotaEntity" - } - }, - "202": { - "description": "Request Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" - }, - "Location": { - "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - }, - "patch": { - "tags": [ - "SharedQuotaEntity" - ], - "summary": "Updates a new sharedQuotaEntity for the name passed.", - "description": "Updates the sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked. \n Any change in the filters will be applicable to the future quota assignments, existing quota assigned to subscriptions from the sharedQuotaEntity remains unchanged.", - "operationId": "SharedQuotaEntity_Update", - "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/PatchSharedQuotaEntity.json" - } - }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "SharedQuotaEntityRequest", - "in": "body", - "description": "The SharedQuotaEntity Request.", - "schema": { - "$ref": "#/definitions/SharedQuotaEntity" - } - } - ], - "responses": { - "200": { - "description": "OK.", - "schema": { - "$ref": "#/definitions/SharedQuotaEntity" - } - }, - "202": { - "description": "Request Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" - }, - "Location": { - "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - }, - "get": { - "tags": [ - "SharedQuotaEntity" - ], - "summary": "Gets sharedQuotaEntity for the name passed.", - "description": "Gets the sharedQuotaEntity for the name passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", - "operationId": "SharedQuotaEntity_Get", - "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/GetSharedQuotaEntity.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK.", - "schema": { - "$ref": "#/definitions/SharedQuotaEntity" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - }, - "delete": { - "tags": [ - "SharedQuotaEntity" - ], - "summary": "Deletes sharedQuotaEntity for the name passed.", - "description": "Deletes the sharedQuotaEntity for the name passed. All the remaining shareQuota in the sharedQuotaEntity will be lost.", - "operationId": "SharedQuotaEntity_Delete", - "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/DeleteSharedQuotaEntity.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK." - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities": { - "get": { - "tags": [ - "SharedQuotaEntity" - ], - "summary": "Lists sharedQuotaEntities for the scope passed.", - "description": "Lists sharedQuotaEntities for the scope passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", - "operationId": "SharedQuotaEntity_List", - "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/GetSharedQuotaEntityList.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK.", - "schema": { - "$ref": "#/definitions/SharedQuotaEntityList" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits/{resourceName}": { - "put": { - "tags": [ - "GroupQuotaLimits" - ], - "summary": "Creates a new Group Quota request for a specific resources.", - "description": "Creates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", - "operationId": "GroupQuotaLimits_Create", - "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/PutGroupQuotaLimits-Compute.json" - } - }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/ResourceInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "groupQuotaRequest", - "in": "body", - "description": "The GroupQuota Request.", - "schema": { - "$ref": "#/definitions/GroupQuotaLimit" - } - } - ], - "responses": { - "200": { - "description": "OK. Returns the quota details.", - "schema": { - "$ref": "#/definitions/GroupQuotaLimit" - } - }, - "202": { - "description": "Request Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" - }, - "Location": { - "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - }, - "patch": { - "tags": [ - "GroupQuotaLimits" - ], - "summary": "Creates/Updates a new Group Quota request for a specific resources.", - "description": "Creates/Updates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status will be updated periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed,then the URI will change to Get URI and full details can be checked.", - "operationId": "GroupQuotaLimits_Update", - "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/PatchGroupQuotaLimits-Compute.json" - } - }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/ResourceInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "groupQuotaRequest", - "in": "body", - "description": "The GroupQuota Request.", - "schema": { - "$ref": "#/definitions/GroupQuotaLimit" - } - } - ], - "responses": { - "200": { - "description": "OK. Returns the quota details.", - "schema": { - "$ref": "#/definitions/GroupQuotaLimit" - } - }, - "202": { - "description": "Request Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" - }, - "Location": { - "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - }, - "get": { - "tags": [ - "GroupQuotaLimits" - ], - "summary": "Gets the resource groupQuotaLimits for the MGId.", - "description": "Gets the resource groupQuotaLimits for the MGId. It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", - "operationId": "GroupQuotaLimits_Get", - "x-ms-examples": { - "GroupQuotaLimits_Get_Request_ForCompute": { - "$ref": "./examples/GetGroupQuotaLimits-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/ResourceInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/GroupQuotaLimit" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits": { - "get": { - "tags": [ - "GroupQuotaLimits" - ], - "summary": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope.", - "description": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope. The scope can be - providers/Microsoft.Compute/locations/. The list elements will be same as the Get API - It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", - "operationId": "GroupQuotaLimits_List", - "x-ms-examples": { - "GroupQuotaLimits_Get_Request_ForCompute": { - "$ref": "./examples/ListGroupQuotaLimits-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/ResourceInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/GroupQuotaList" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests": { - "get": { - "tags": [ - "GroupQuota-Requests" - ], - "summary": "List the status of all GroupQuota requests.", - "description": "List API to check the status of a GroupQuota requests by requestId. The groupQuotaRequest history is maintained for 1 year.", - "operationId": "GroupQuota-Requests_List", - "x-ms-examples": { - "MG-GroupQuota-Order_Get_Response_ForCompute": { - "$ref": "./examples/GetCapacityOrder-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success, with the details of the groupQuota request.", - "schema": { - "$ref": "#/definitions/SubmittedResourceRequestStatusList" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests/{requestId}": { - "get": { - "tags": [ - "GroupQuota-Requests" - ], - "summary": "Get the status of a single GroupQuota request by requestId.", - "description": "Get API to check the status of a GroupQuota request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.", - "operationId": "GroupQuota-Requests_Get", - "x-ms-examples": { - "MG-GroupQuota-Order_Get_Response_ForCompute": { - "$ref": "./examples/GetCapacityOrder-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/RequestIdInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success, with the details of the groupQuota request.", - "schema": { - "$ref": "#/definitions/SubmittedResourceRequestStatus" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations": { - "get": { - "tags": [ - "SubscriptionQuota-Allocation" - ], - "summary": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location.", - "description": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", - "operationId": "ShareQuota_MG_Subscription_List", - "x-ms-examples": { - "GroupQuota_Put_Request_ForCompute": { - "$ref": "./examples/PutQuotaAllocation-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SubscriptionIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/SubscriptionQuotaDetailsList" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations/{resourceName}": { - "put": { - "tags": [ - "SubscriptionQuota-Allocation" - ], - "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern to check the status using Async polling as standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.", - "description": "Request to assign a specific resource quota from group quota to a specific Subscription. The subscriptions can also reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, which means the maximum unused quota assigned back to MG groupQuota will be the groupQuota assigned to the subscriptions. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription.", - "operationId": "GroupQuotaSubscription_QuotaAllocation_Create", - "x-ms-examples": { - "ShareQuotaOrder_Subscription_Allocation_Put_ForCompute": { - "$ref": "./examples/PutQuotaAllocation-Compute.json" - } - }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SubscriptionIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/ResourceInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "allocateQuotaRequest", - "in": "body", - "description": "Quota requests payload.", - "required": true, - "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" - } - } - ], - "responses": { - "200": { - "description": "Request status details.", - "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" - } - }, - "202": { - "description": "Request Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" - }, - "Location": { - "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Request MGId or resource not found. The resource was not found in pre-approved groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "406": { - "description": "The subscription is not eligible for groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "414": { - "description": "The requested quota was more than the available groupQuota. Similarly in case of quota reduction, the quota reduction is more than the quota assigned from groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - }, - "patch": { - "tags": [ - "SubscriptionQuota-Allocation" - ], - "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern with 202 response and status polling API.", - "description": "Request to assign quota from group quota to a specific Subscription. The subscriptions and reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, using this API. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription(s).", - "operationId": "GroupQuotaSubscription_QuotaAllocation_Update", - "x-ms-examples": { - "ShareQuotaOrder_Subscription_Allocation_Patch_ForCompute": { - "$ref": "./examples/PatchQuotaAllocation-Compute.json" - } - }, - "x-ms-long-running-operation": true, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SubscriptionIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/ResourceInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "allocateQuotaRequest", - "in": "body", - "description": "Quota requests payload.", - "required": true, - "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" - } - } - ], - "responses": { - "200": { - "description": "Request status details.", - "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" - } - }, - "202": { - "description": "Request Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" - }, - "Location": { - "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Request MGId or resource not found. The resource was not found in pre-approved groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "406": { - "description": "The subscription is not eligible for groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "414": { - "description": "The requested quota was more than the available groupQuota. Similarly in case of quota reduction, the quota reduction is more than the quota assigned from groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - }, - "get": { - "tags": [ - "SubscriptionQuota-Allocation" - ], - "summary": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName.", - "description": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", - "operationId": "GroupQuotaSubscription_QuotaAllocation_Get", - "x-ms-examples": { - "ShareQuotaOrder_Subscription_Allocation_Get_ForCompute": { - "$ref": "./examples/GetQuotaAllocation-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SubscriptionIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/ResourceInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/SubscriptionQuotaLimit" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests/{allocationId}": { - "get": { - "tags": [ - "Subscription-Quota-Allocation-Requests" - ], - "operationId": "GroupQuotaSubscription_QuotaAllocationRequests_Get", - "summary": "Get the status of the quota allocation request for the subscriptionId.", - "description": "Get the quota allocation request status for the subscriptionId by allocationId.", - "x-ms-examples": { - "GroupQuotaAllocationRequest_Get_Request_ForCompute": { - "$ref": "./examples/GetQuotaAllocation-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SubscriptionIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/AllocationIdInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests": { - "get": { - "tags": [ - "Subscription-Quota-Allocation-Requests" - ], - "operationId": "SubscriptionGroupQuota-Allocation_Request_List", - "summary": "Lists all the quota allocation requests.to subscriptions", - "description": "Lists all the allocation requests.", - "x-ms-examples": { - "QuotaCapacityOrder_Put_Request_ForCompute": { - "$ref": "./examples/GetQuotaAllocation-Compute.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/SubscriptionIdInParameters" - }, - { - "$ref": "#/parameters/ScopeInParameters" - }, - { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequestList" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - } - } - } - } - }, - "definitions": { - "Error": { - "type": "object", - "description": "Standard error response as per MS guidelines. We may skip some fields.", - "properties": { - "code": { - "type": "string" - }, - "target": { - "type": "string" - }, - "message": { - "type": "string" - }, - "innerError": { - "$ref": "#/definitions/InnerError" - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ErrorDetails" - } - } - } - }, - "ErrorContent": { - "type": "object", - "properties": { - "error": { - "$ref": "#/definitions/Error" - } - } - }, - "ErrorDetails": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "target": { - "type": "string" - }, - "message": { - "type": "string" - } - } - }, - "InnerError": { - "type": "object", - "properties": { - "trace": { - "type": "array", - "items": { - "type": "string" - } - }, - "context": { - "type": "string" - }, - "type": { - "type": "string" - } - } - }, - "RequestState": { - "description": "Request status.", - "enum": [ - "Accepted", - "Invalid", - "Succeeded", - "Failed", - "InProgress" - ], - "readOnly": true, - "type": "string", - "x-ms-enum": { - "name": "RequestState", - "modelAsString": true - } - }, - "OperationsStatus": { - "description": "A long running process operation Status. Based on - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#202-accepted-and-location-headers", - "type": "object", - "properties": { - "id": { - "description": "The operation status identifier. It should match what is used to GET the operation resource.", - "type": "string", - "readOnly": true - }, - "name": { - "type": "string", - "readOnly": true, - "description": "It must match the last segment of the id field, and will typically be a GUID / system generated value." - }, - "type": { - "description": "The type.", - "type": "string", - "readOnly": true - }, - "status": { - "$ref": "#/definitions/RequestState", - "readOnly": true - }, - "error": { - "$ref": "#/definitions/ErrorContent", - "readOnly": true - } - } - }, - "AssignedToSubscription": { - "type": "object", - "description": "SubscriptionIds and quota allocated to subscriptions from the GroupQuota.", - "additionalProperties": { - "type": "integer", - "format": "int64", - "description": "Group Quota assigned to subscription." - } - }, - "AssignedQuotaToSubscriptionList": { - "type": "array", - "readOnly": true, - "description": "Assigned Group Quota to subscriptions.", - "items": { - "$ref": "#/definitions/AssignedToSubscription" - } - }, - "GroupQuotaLimit": { - "type": "object", - "description": "Group Quota limit.", - "x-ms-azure-resource": true, - "properties": { - "id": { - "description": "The resource ID.", - "type": "string", - "readOnly": true - }, - "type": { - "description": "The type.", - "type": "string", - "readOnly": true - }, - "name": { - "description": "The resource name.", - "type": "string", - "readOnly": true - }, - "properties": { - "description": "Group Quota properties for the specified resource.", - "$ref": "#/definitions/GroupQuotaDetails" - } - } - }, - "ResourceName": { - "type": "object", - "description": "Name of the resource provided by the resource Provider. This property is already included in the request URI, so it is a readonly property returned in the response.", - "properties": { - "value": { - "description": "Resource name.", - "type": "string", - "readOnly": true - }, - "localizedValue": { - "description": "Resource display name.", - "type": "string", - "readOnly": true - } - } - }, - "GroupQuotaDetails": { - "type": "object", - "description": "Group Quota details.", - "properties": { - "limit": { - "type": "integer", - "format": "int64", - "description": "The current Group Quota Limit at the parentId level." - }, - "name": { - "$ref": "#/definitions/ResourceName", - "description": "The resource name, such as SKU name." - }, - "unit": { - "description": " The usages units, such as Count and Bytes. When requesting quota, use the **unit** value returned in the GET response in the request body of your PUT operation.", - "type": "string", - "readOnly": true - }, - "availableLimit": { - "type": "integer", - "format": "int64", - "readOnly": true, - "description": "The available Group Quota Limit at the MG level. This Group quota can be assigned to subscription(s)." - }, - "assignedToSubscriptions": { - "$ref": "#/definitions/AssignedQuotaToSubscriptionList" - } - } - }, - "GroupQuotaList": { - "type": "array", - "description": "List of Group Quotas at MG level.", - "items": { - "$ref": "#/definitions/GroupQuotaLimit" - } - }, - "SubscriptionQuotaAllocationRequest": { - "type": "object", - "description": "The new quota limit for the subscription.", - "properties": { - "id": { - "description": "The operation status identifier. It should match what is used to GET the operation resource.", - "type": "string", - "readOnly": true - }, - "name": { - "type": "string", - "readOnly": true, - "description": "It must match the last segment of the id field, and will typically be a GUID / system generated value." - }, - "type": { - "description": "The type.", - "type": "string", - "readOnly": true - }, - "status": { - "$ref": "#/definitions/RequestState", - "readOnly": true - }, - "limit": { - "type": "integer", - "format": "int64", - "description": "The new quota limit for the subscription. The incremental quota will be assigned from pre-approved groupQuota." - } - } - }, - "SubscriptionQuotaAllocationRequestList": { - "type": "array", - "description": "Assigned Group Quota to subscriptions.", - "items": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" - } - }, - "SubscriptionGroupQuotaAssignment": { - "type": "object", - "description": "MGId the source of groupQuota.", - "additionalProperties": { - "type": "integer", - "format": "int64", - "description": "Group Quota assigned to subscription." - } - }, - "SubscriptionGroupQuotaAssignmentList": { - "type": "array", - "description": "Assigned Group Quota to subscriptions.", - "items": { - "$ref": "#/definitions/SubscriptionGroupQuotaAssignment" - } - }, - "SubscriptionQuotaLimit": { - "type": "object", - "description": "Subscription Quota limit.", - "x-ms-azure-resource": true, - "properties": { - "id": { - "description": "The resource ID.", - "type": "string", - "readOnly": true - }, - "type": { - "description": "The type.", - "type": "string", - "readOnly": true - }, - "name": { - "description": "The resource name.", - "type": "string", - "readOnly": true - }, - "properties": { - "description": "Group Quota properties for the specified resource.", - "$ref": "#/definitions/SubscriptionQuotaDetails" - } - } - }, - "SubscriptionQuotaDetails": { - "type": "object", - "description": "Subscription Quota details.", - "properties": { - "limit": { - "type": "integer", - "format": "int64", - "description": "The total quota limit for the subscription." - }, - "nonShareableQuota": { - "type": "integer", - "format": "int64", - "description": "The non shareable quota for the subscription." - }, - "quotaSource": { - "$ref": "#/definitions/SubscriptionGroupQuotaAssignmentList" - } - } - }, - "SubscriptionQuotaDetailsList": { - "type": "array", - "description": "Subscription quota list.", - "items": { - "$ref": "#/definitions/SubscriptionQuotaLimit" - } - }, - "ResourceBaseRequest": { - "type": "object", - "description": "Resource definition with the requested quota.", - "properties": { - "resourceName": { - "type": "string", - "description": "The resource name, such as SKU name." - }, - "limits": { - "type": "integer", - "description": "Quota requested for the resource.", - "format": "int64" - }, - "unit": { - "type": "string", - "readOnly": true, - "description": "Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond. Based on - https://armwiki.azurewebsites.net/api_contracts/UsagesAPIContract.html?q=usages . Different RPs may have different units, Count, type as int64 should work for most of the integer values." - } - } - }, - "ResourceRequest": { - "type": "object", - "properties": { - "requestedResource": { - "description": "Requested Resource.", - "$ref": "#/definitions/ResourceBaseRequest" - } - } - }, - "SubmittedResourceRequestStatus": { - "type": "object", - "properties": { - "requestedResource": { - "description": "Requested Resource.", - "$ref": "#/definitions/ResourceBaseRequest" - }, - "status": { - "$ref": "#/definitions/RequestState", - "readOnly": true - } - } - }, - "SubmittedResourceRequestStatusList": { - "type": "array", - "description": "Subscription groupQuotaRequests list.", - "items": { - "$ref": "#/definitions/SubscriptionQuotaLimit" - } - }, - "SharedQuotaEntity": { - "type": "object", - "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", - "x-ms-azure-resource": true, - "properties": { - "id": { - "description": "Entity resource Id.", - "type": "string", - "readOnly": true - }, - "type": { - "type": "string", - "description": "Type of the entity - Microsoft.Quota/SharedQuotaEntity.", - "readOnly": true - }, - "name": { - "type": "string", - "description": "The entity name. The entity name is provided in the request, so it is not needed in the request body. The response will include it.", - "readOnly": true - }, - "subscriptionFilters": { - "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand.", - "$ref": "#/definitions/Filters" - } - } - }, - "Filter": { - "type": "object", - "description": "Filter for SharedQuota Entity.", - "properties": { - "filterEntity": { - "type": "string", - "description": "Name of the entity for filter, such as billingId, offerType.", - "enum": [ - "billingId", - "offerType" - ], - "x-ms-enum": { - "name": "SubscriptionFilterType", - "modelAsString": true - } - }, - "operator": { - "type": "string", - "description": "Operator to use for comparison., such as eq (==), neq (!=), etc.", - "enum": [ - "eq", - "neq" - ], - "x-ms-enum": { - "name": "SubscriptionFilterOperatorType", - "modelAsString": true - } - }, - "filterValue": { - "type": "string", - "description": "Value for the filterEntity for comparison. Such as billingId, offerType value." - } - }, - "required": [ - "filterEntity", - "operator", - "filterValue" - ] - }, - "Filters": { - "type": "object", - "description": "Filters for subscription, which can use shared Quota Entity.", - "properties": { - "and": { - "description": "The logical \"AND\" expression. It can have one or more filters.", - "type": "array", - "items": { - "$ref": "#/definitions/Filter" - }, - "x-ms-identifiers": [], - "minItems": 0 - } - } - }, - "SharedQuotaEntityList": { - "type": "array", - "description": "Share Quota Entity list.", - "items": { - "$ref": "#/definitions/SharedQuotaEntity" - } - } - }, - "parameters": { - "RequestIdInParameters": { - "name": "requestId", - "in": "path", - "required": true, - "type": "string", - "description": "Request Id.", - "x-ms-parameter-location": "method" - }, - "ResourceInParameters": { - "name": "resourceName", - "in": "path", - "required": true, - "type": "string", - "description": "Resource name.", - "x-ms-parameter-location": "method" - }, - "AllocationIdInParameters": { - "name": "allocationId", - "in": "path", - "required": true, - "type": "string", - "description": "Resource allocation Id.", - "x-ms-parameter-location": "method" - }, - "SubscriptionIdInParameters": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "Subscription Id.", - "x-ms-parameter-location": "method" - }, - "MgIdInParameters": { - "name": "mgId", - "in": "path", - "required": true, - "type": "string", - "description": "Management Group Id.", - "x-ms-parameter-location": "method" - }, - "SharedQuotaEntityNameInParameters": { - "name": "sharedQuotaEntityName", - "in": "path", - "required": true, - "type": "string", - "description": "The SharedQuotaEntity name. The name should be unique for the provided context tenantId/MgId.", - "x-ms-parameter-location": "method" - }, - "apiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Version of the API to be used with the client request. The current version is 2023-06-01-preview.", - "minLength": 1 - }, - "ScopeInParameters": { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[a-z][a-z0-9]*$", - "description": "Scope for the resource. Some resources do not require location parameter, such as CosmosDb, so can be skipped in scope. For most of the resources require - providers/Microsoft.Compute/locations/{locationName}. Some Rps such as Batch requires batchAccountName - providers/Microsoft.Batch/locations/{locationName}/accountName/{batchAccountName}. This extension enables to specify resources for any all the RPs.", - "x-ms-parameter-location": "method" - } - } -} \ No newline at end of file + "swagger": "2.0", + "info": { + "title": "Azure MG Group Quota using SharedQuotaEntity.", + "version": "2023-06-01-preview", + "description": "Microsoft Azure Quota Resource Provider" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + }, + "type": "oauth2", + "description": "Azure Active Directory OAuth 2.0 authorization" + } + }, + "paths": { + "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}": { + "put": { + "tags": [ + "SharedQuotaEntity" + ], + "summary": "Creates a new sharedQuotaEntity for the name passed.", + "description": "Creates a new sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", + "operationId": "SharedQuotaEntity_Create", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/PutSharedQuotaEntity.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "SharedQuotaEntityRequest", + "in": "body", + "description": "The SharedQuotaEntity Request.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "patch": { + "tags": [ + "SharedQuotaEntity" + ], + "summary": "Updates a new sharedQuotaEntity for the name passed.", + "description": "Updates the sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked. \n Any change in the filters will be applicable to the future quota assignments, existing quota assigned to subscriptions from the sharedQuotaEntity remains unchanged.", + "operationId": "SharedQuotaEntity_Update", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/PatchSharedQuotaEntity.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "SharedQuotaEntityRequest", + "in": "body", + "description": "The SharedQuotaEntity Request.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "get": { + "tags": [ + "SharedQuotaEntity" + ], + "summary": "Gets sharedQuotaEntity for the name passed.", + "description": "Gets the sharedQuotaEntity for the name passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", + "operationId": "SharedQuotaEntity_Get", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/GetSharedQuotaEntity.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "delete": { + "tags": [ + "SharedQuotaEntity" + ], + "summary": "Deletes sharedQuotaEntity for the name passed.", + "description": "Deletes the sharedQuotaEntity for the name passed. All the remaining shareQuota in the sharedQuotaEntity will be lost.", + "operationId": "SharedQuotaEntity_Delete", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/DeleteSharedQuotaEntity.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK." + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities": { + "get": { + "tags": [ + "SharedQuotaEntity" + ], + "summary": "Lists sharedQuotaEntities for the scope passed.", + "description": "Lists sharedQuotaEntities for the scope passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", + "operationId": "SharedQuotaEntity_List", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/GetSharedQuotaEntityList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntityList" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits/{resourceName}": { + "put": { + "tags": [ + "GroupQuotaLimits" + ], + "summary": "Creates a new Group Quota request for a specific resources.", + "description": "Creates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", + "operationId": "GroupQuotaLimits_Create", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/PutGroupQuotaLimits-Compute.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "groupQuotaRequest", + "in": "body", + "description": "The GroupQuota Request.", + "schema": { + "$ref": "#/definitions/GroupQuotaLimit" + } + } + ], + "responses": { + "200": { + "description": "OK. Returns the quota details.", + "schema": { + "$ref": "#/definitions/GroupQuotaLimit" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "patch": { + "tags": [ + "GroupQuotaLimits" + ], + "summary": "Creates/Updates a new Group Quota request for a specific resources.", + "description": "Creates/Updates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status will be updated periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed,then the URI will change to Get URI and full details can be checked.", + "operationId": "GroupQuotaLimits_Update", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/PatchGroupQuotaLimits-Compute.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "groupQuotaRequest", + "in": "body", + "description": "The GroupQuota Request.", + "schema": { + "$ref": "#/definitions/GroupQuotaLimit" + } + } + ], + "responses": { + "200": { + "description": "OK. Returns the quota details.", + "schema": { + "$ref": "#/definitions/GroupQuotaLimit" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "get": { + "tags": [ + "GroupQuotaLimits" + ], + "summary": "Gets the resource groupQuotaLimits for the MGId.", + "description": "Gets the resource groupQuotaLimits for the MGId. It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", + "operationId": "GroupQuotaLimits_Get", + "x-ms-examples": { + "GroupQuotaLimits_Get_Request_ForCompute": { + "$ref": "./examples/GetGroupQuotaLimits-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GroupQuotaLimit" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits": { + "get": { + "tags": [ + "GroupQuotaLimits" + ], + "summary": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope.", + "description": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope. The scope can be - providers/Microsoft.Compute/locations/. The list elements will be same as the Get API - It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", + "operationId": "GroupQuotaLimits_List", + "x-ms-examples": { + "GroupQuotaLimits_Get_Request_ForCompute": { + "$ref": "./examples/ListGroupQuotaLimits-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/GroupQuotaList" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests": { + "get": { + "tags": [ + "GroupQuota-Requests" + ], + "summary": "List the status of all GroupQuota requests.", + "description": "List API to check the status of a GroupQuota requests by requestId. The groupQuotaRequest history is maintained for 1 year.", + "operationId": "GroupQuota-Requests_List", + "x-ms-examples": { + "MG-GroupQuota-Order_Get_Response_ForCompute": { + "$ref": "./examples/GetCapacityOrder-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success, with the details of the groupQuota request.", + "schema": { + "$ref": "#/definitions/SubmittedResourceRequestStatusList" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests/{requestId}": { + "get": { + "tags": [ + "GroupQuota-Requests" + ], + "summary": "Get the status of a single GroupQuota request by requestId.", + "description": "Get API to check the status of a GroupQuota request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.", + "operationId": "GroupQuota-Requests_Get", + "x-ms-examples": { + "MG-GroupQuota-Order_Get_Response_ForCompute": { + "$ref": "./examples/GetCapacityOrder-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/RequestIdInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success, with the details of the groupQuota request.", + "schema": { + "$ref": "#/definitions/SubmittedResourceRequestStatus" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations": { + "get": { + "tags": [ + "SubscriptionQuota-Allocation" + ], + "summary": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location.", + "description": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", + "operationId": "ShareQuota_MG_Subscription_List", + "x-ms-examples": { + "GroupQuota_Put_Request_ForCompute": { + "$ref": "./examples/PutQuotaAllocation-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaDetailsList" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations/{resourceName}": { + "put": { + "tags": [ + "SubscriptionQuota-Allocation" + ], + "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern to check the status using Async polling as standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.", + "description": "Request to assign a specific resource quota from group quota to a specific Subscription. The subscriptions can also reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, which means the maximum unused quota assigned back to MG groupQuota will be the groupQuota assigned to the subscriptions. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription.", + "operationId": "GroupQuotaSubscription_QuotaAllocation_Create", + "x-ms-examples": { + "ShareQuotaOrder_Subscription_Allocation_Put_ForCompute": { + "$ref": "./examples/PutQuotaAllocation-Compute.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "allocateQuotaRequest", + "in": "body", + "description": "Quota requests payload.", + "required": true, + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + } + ], + "responses": { + "200": { + "description": "Request status details.", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Request MGId or resource not found. The resource was not found in pre-approved groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "406": { + "description": "The subscription is not eligible for groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "414": { + "description": "The requested quota was more than the available groupQuota. Similarly in case of quota reduction, the quota reduction is more than the quota assigned from groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "patch": { + "tags": [ + "SubscriptionQuota-Allocation" + ], + "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern with 202 response and status polling API.", + "description": "Request to assign quota from group quota to a specific Subscription. The subscriptions and reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, using this API. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription(s).", + "operationId": "GroupQuotaSubscription_QuotaAllocation_Update", + "x-ms-examples": { + "ShareQuotaOrder_Subscription_Allocation_Patch_ForCompute": { + "$ref": "./examples/PatchQuotaAllocation-Compute.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "allocateQuotaRequest", + "in": "body", + "description": "Quota requests payload.", + "required": true, + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + } + ], + "responses": { + "200": { + "description": "Request status details.", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer" + }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Request MGId or resource not found. The resource was not found in pre-approved groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "406": { + "description": "The subscription is not eligible for groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "414": { + "description": "The requested quota was more than the available groupQuota. Similarly in case of quota reduction, the quota reduction is more than the quota assigned from groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "get": { + "tags": [ + "SubscriptionQuota-Allocation" + ], + "summary": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName.", + "description": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", + "operationId": "GroupQuotaSubscription_QuotaAllocation_Get", + "x-ms-examples": { + "ShareQuotaOrder_Subscription_Allocation_Get_ForCompute": { + "$ref": "./examples/GetQuotaAllocation-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/ResourceInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaLimit" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests/{allocationId}": { + "get": { + "tags": [ + "Subscription-Quota-Allocation-Requests" + ], + "operationId": "GroupQuotaSubscription_QuotaAllocationRequests_Get", + "summary": "Get the status of the quota allocation request for the subscriptionId.", + "description": "Get the quota allocation request status for the subscriptionId by allocationId.", + "x-ms-examples": { + "GroupQuotaAllocationRequest_Get_Request_ForCompute": { + "$ref": "./examples/GetQuotaAllocation-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/AllocationIdInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests": { + "get": { + "tags": [ + "Subscription-Quota-Allocation-Requests" + ], + "operationId": "SubscriptionGroupQuota-Allocation_Request_List", + "summary": "Lists all the quota allocation requests.to subscriptions", + "description": "Lists all the allocation requests.", + "x-ms-examples": { + "QuotaCapacityOrder_Put_Request_ForCompute": { + "$ref": "./examples/GetQuotaAllocation-Compute.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ScopeInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequestList" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + } + }, + "definitions": { + "Error": { + "type": "object", + "description": "Standard error response as per MS guidelines. We may skip some fields.", + "properties": { + "code": { + "type": "string" + }, + "target": { + "type": "string" + }, + "message": { + "type": "string" + }, + "innerError": { + "$ref": "#/definitions/InnerError" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDetails" + } + } + } + }, + "ErrorContent": { + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/Error" + } + } + }, + "ErrorDetails": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "target": { + "type": "string" + }, + "message": { + "type": "string" + } + } + }, + "InnerError": { + "type": "object", + "properties": { + "trace": { + "type": "array", + "items": { + "type": "string" + } + }, + "context": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "RequestState": { + "description": "Request status.", + "enum": [ + "Accepted", + "Invalid", + "Succeeded", + "Failed", + "InProgress" + ], + "readOnly": true, + "type": "string", + "x-ms-enum": { + "name": "RequestState", + "modelAsString": true + } + }, + "OperationsStatus": { + "description": "A long running process operation Status. Based on - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#202-accepted-and-location-headers", + "type": "object", + "properties": { + "id": { + "description": "The operation status identifier. It should match what is used to GET the operation resource.", + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "readOnly": true, + "description": "It must match the last segment of the id field, and will typically be a GUID / system generated value." + }, + "type": { + "description": "The type.", + "type": "string", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/RequestState", + "readOnly": true + }, + "error": { + "$ref": "#/definitions/ErrorContent", + "readOnly": true + } + } + }, + "AssignedToSubscription": { + "type": "object", + "description": "SubscriptionIds and quota allocated to subscriptions from the GroupQuota.", + "additionalProperties": { + "type": "integer", + "format": "int64", + "description": "Group Quota assigned to subscription." + } + }, + "AssignedQuotaToSubscriptionList": { + "type": "array", + "readOnly": true, + "description": "Assigned Group Quota to subscriptions.", + "items": { + "$ref": "#/definitions/AssignedToSubscription" + } + }, + "GroupQuotaLimit": { + "type": "object", + "description": "Group Quota limit.", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "The resource ID.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The resource name.", + "type": "string", + "readOnly": true + }, + "properties": { + "description": "Group Quota properties for the specified resource.", + "$ref": "#/definitions/GroupQuotaDetails" + } + } + }, + "ResourceName": { + "type": "object", + "description": "Name of the resource provided by the resource Provider. This property is already included in the request URI, so it is a readonly property returned in the response.", + "properties": { + "value": { + "description": "Resource name.", + "type": "string", + "readOnly": true + }, + "localizedValue": { + "description": "Resource display name.", + "type": "string", + "readOnly": true + } + } + }, + "GroupQuotaDetails": { + "type": "object", + "description": "Group Quota details.", + "properties": { + "limit": { + "type": "integer", + "format": "int64", + "description": "The current Group Quota Limit at the parentId level." + }, + "name": { + "$ref": "#/definitions/ResourceName", + "description": "The resource name, such as SKU name." + }, + "unit": { + "description": " The usages units, such as Count and Bytes. When requesting quota, use the **unit** value returned in the GET response in the request body of your PUT operation.", + "type": "string", + "readOnly": true + }, + "availableLimit": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "The available Group Quota Limit at the MG level. This Group quota can be assigned to subscription(s)." + }, + "assignedToSubscriptions": { + "$ref": "#/definitions/AssignedQuotaToSubscriptionList" + } + } + }, + "GroupQuotaList": { + "type": "array", + "description": "List of Group Quotas at MG level.", + "items": { + "$ref": "#/definitions/GroupQuotaLimit" + } + }, + "SubscriptionQuotaAllocationRequest": { + "type": "object", + "description": "The new quota limit for the subscription.", + "properties": { + "id": { + "description": "The operation status identifier. It should match what is used to GET the operation resource.", + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", + "readOnly": true, + "description": "It must match the last segment of the id field, and will typically be a GUID / system generated value." + }, + "type": { + "description": "The type.", + "type": "string", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/RequestState", + "readOnly": true + }, + "limit": { + "type": "integer", + "format": "int64", + "description": "The new quota limit for the subscription. The incremental quota will be assigned from pre-approved groupQuota." + } + } + }, + "SubscriptionQuotaAllocationRequestList": { + "type": "array", + "description": "Assigned Group Quota to subscriptions.", + "items": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + }, + "SubscriptionGroupQuotaAssignment": { + "type": "object", + "description": "MGId the source of groupQuota.", + "additionalProperties": { + "type": "integer", + "format": "int64", + "description": "Group Quota assigned to subscription." + } + }, + "SubscriptionGroupQuotaAssignmentList": { + "type": "array", + "description": "Assigned Group Quota to subscriptions.", + "items": { + "$ref": "#/definitions/SubscriptionGroupQuotaAssignment" + } + }, + "SubscriptionQuotaLimit": { + "type": "object", + "description": "Subscription Quota limit.", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "The resource ID.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The resource name.", + "type": "string", + "readOnly": true + }, + "properties": { + "description": "Group Quota properties for the specified resource.", + "$ref": "#/definitions/SubscriptionQuotaDetails" + } + } + }, + "SubscriptionQuotaDetails": { + "type": "object", + "description": "Subscription Quota details.", + "properties": { + "limit": { + "type": "integer", + "format": "int64", + "description": "The total quota limit for the subscription." + }, + "nonShareableQuota": { + "type": "integer", + "format": "int64", + "description": "The non shareable quota for the subscription." + }, + "quotaSource": { + "$ref": "#/definitions/SubscriptionGroupQuotaAssignmentList" + } + } + }, + "SubscriptionQuotaDetailsList": { + "type": "array", + "description": "Subscription quota list.", + "items": { + "$ref": "#/definitions/SubscriptionQuotaLimit" + } + }, + "ResourceBaseRequest": { + "type": "object", + "description": "Resource definition with the requested quota.", + "properties": { + "resourceName": { + "type": "string", + "description": "The resource name, such as SKU name." + }, + "limits": { + "type": "integer", + "description": "Quota requested for the resource.", + "format": "int64" + }, + "unit": { + "type": "string", + "readOnly": true, + "description": "Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond. Based on - https://armwiki.azurewebsites.net/api_contracts/UsagesAPIContract.html?q=usages . Different RPs may have different units, Count, type as int64 should work for most of the integer values." + } + } + }, + "ResourceRequest": { + "type": "object", + "properties": { + "requestedResource": { + "description": "Requested Resource.", + "$ref": "#/definitions/ResourceBaseRequest" + } + } + }, + "SubmittedResourceRequestStatus": { + "type": "object", + "properties": { + "requestedResource": { + "description": "Requested Resource.", + "$ref": "#/definitions/ResourceBaseRequest" + }, + "status": { + "$ref": "#/definitions/RequestState", + "readOnly": true + } + } + }, + "SubmittedResourceRequestStatusList": { + "type": "array", + "description": "Subscription groupQuotaRequests list.", + "items": { + "$ref": "#/definitions/SubscriptionQuotaLimit" + } + }, + "SharedQuotaEntity": { + "type": "object", + "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "Entity resource Id.", + "type": "string", + "readOnly": true + }, + "type": { + "type": "string", + "description": "Type of the entity - Microsoft.Quota/SharedQuotaEntity.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "The entity name. The entity name is provided in the request, so it is not needed in the request body. The response will include it.", + "readOnly": true + }, + "subscriptionFilters": { + "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand.", + "$ref": "#/definitions/Filters" + } + } + }, + "Filter": { + "type": "object", + "description": "Filter for SharedQuota Entity.", + "properties": { + "filterEntity": { + "type": "string", + "description": "Name of the entity for filter, such as billingId, offerType.", + "enum": [ + "billingId", + "offerType" + ], + "x-ms-enum": { + "name": "SubscriptionFilterType", + "modelAsString": true + } + }, + "operator": { + "type": "string", + "description": "Operator to use for comparison., such as eq (==), neq (!=), etc.", + "enum": [ + "eq", + "neq" + ], + "x-ms-enum": { + "name": "SubscriptionFilterOperatorType", + "modelAsString": true + } + }, + "filterValue": { + "type": "string", + "description": "Value for the filterEntity for comparison. Such as billingId, offerType value." + } + }, + "required": [ + "filterEntity", + "operator", + "filterValue" + ] + }, + "Filters": { + "type": "object", + "description": "Filters for subscription, which can use shared Quota Entity.", + "properties": { + "and": { + "description": "The logical \"AND\" expression. It can have one or more filters.", + "type": "array", + "items": { + "$ref": "#/definitions/Filter" + }, + "x-ms-identifiers": [], + "minItems": 0 + } + } + }, + "SharedQuotaEntityList": { + "type": "array", + "description": "Share Quota Entity list.", + "items": { + "$ref": "#/definitions/SharedQuotaEntity" + } + } + }, + "parameters": { + "RequestIdInParameters": { + "name": "requestId", + "in": "path", + "required": true, + "type": "string", + "description": "Request Id.", + "x-ms-parameter-location": "method" + }, + "ResourceInParameters": { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "Resource name.", + "x-ms-parameter-location": "method" + }, + "AllocationIdInParameters": { + "name": "allocationId", + "in": "path", + "required": true, + "type": "string", + "description": "Resource allocation Id.", + "x-ms-parameter-location": "method" + }, + "SubscriptionIdInParameters": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription Id.", + "x-ms-parameter-location": "method" + }, + "MgIdInParameters": { + "name": "mgId", + "in": "path", + "required": true, + "type": "string", + "description": "Management Group Id.", + "x-ms-parameter-location": "method" + }, + "SharedQuotaEntityNameInParameters": { + "name": "sharedQuotaEntityName", + "in": "path", + "required": true, + "type": "string", + "description": "The SharedQuotaEntity name. The name should be unique for the provided context tenantId/MgId.", + "x-ms-parameter-location": "method" + }, + "apiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Version of the API to be used with the client request. The current version is 2023-06-01-preview.", + "minLength": 1 + }, + "ScopeInParameters": { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-z][a-z0-9]*$", + "description": "Scope for the resource. Some resources do not require location parameter, such as CosmosDb, so can be skipped in scope. For most of the resources require - providers/Microsoft.Compute/locations/{locationName}. Some Rps such as Batch requires batchAccountName - providers/Microsoft.Batch/locations/{locationName}/accountName/{batchAccountName}. This extension enables to specify resources for any all the RPs.", + "x-ms-parameter-location": "method" + } + } +} From c605a6ad4fb10828d77dfcd2cc7e86b4645d1fa7 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 16 May 2023 18:06:07 -0700 Subject: [PATCH 020/158] Adding "x-ms-error-response": true, to all error responses. --- .../2023-06-01-preview/groupquota.json | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 179d8f3557d4..2f462fdb8c28 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -92,6 +92,7 @@ }, "400": { "description": "Bad Request", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } @@ -172,12 +173,14 @@ }, "400": { "description": "Bad Request", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } }, "404": { "description": "Not Found", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } @@ -229,12 +232,14 @@ }, "400": { "description": "Bad Request", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } }, "404": { "description": "Not Found", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } @@ -283,12 +288,14 @@ }, "400": { "description": "Bad Request", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } }, "404": { "description": "Not Found", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } @@ -339,12 +346,14 @@ }, "400": { "description": "Bad Request", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } }, "404": { "description": "Not Found", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } @@ -433,6 +442,7 @@ }, "400": { "description": "Bad Request", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } @@ -519,6 +529,7 @@ }, "400": { "description": "Bad Request", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } @@ -576,6 +587,7 @@ }, "400": { "description": "Bad Request", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } @@ -635,6 +647,7 @@ }, "400": { "description": "Bad Request", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } @@ -750,6 +763,7 @@ }, "404": { "description": "Not Found", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } @@ -809,12 +823,14 @@ }, "400": { "description": "Bad Request", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } }, "404": { "description": "Not found", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } @@ -907,24 +923,28 @@ }, "400": { "description": "Bad Request", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } }, "404": { "description": "Request MGId or resource not found. The resource was not found in pre-approved groupQuota.", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } }, "406": { "description": "The subscription is not eligible for groupQuota.", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } }, "414": { "description": "The requested quota was more than the available groupQuota. Similarly in case of quota reduction, the quota reduction is more than the quota assigned from groupQuota.", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } @@ -1015,24 +1035,28 @@ }, "400": { "description": "Bad Request", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } }, "404": { "description": "Request MGId or resource not found. The resource was not found in pre-approved groupQuota.", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } }, "406": { "description": "The subscription is not eligible for groupQuota.", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } }, "414": { "description": "The requested quota was more than the available groupQuota. Similarly in case of quota reduction, the quota reduction is more than the quota assigned from groupQuota.", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } @@ -1093,12 +1117,14 @@ }, "400": { "description": "Bad Request", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } }, "404": { "description": "Not found", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } @@ -1220,6 +1246,7 @@ }, "404": { "description": "Not Found", + "x-ms-error-response": true, "schema": { "$ref": "#/definitions/ErrorContent" } From 7126c218e136a98fd9a9c5dba6593fe0dca66362 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 16 May 2023 18:21:21 -0700 Subject: [PATCH 021/158] Adding min, max length limit for sharedQuotaEnity Parameter. --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 2f462fdb8c28..dea22093c679 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1777,6 +1777,8 @@ "required": true, "type": "string", "pattern": "^[a-z][a-z0-9]*$", + "minLength": 3, + "maxLength": 63, "description": "Scope for the resource. Some resources do not require location parameter, such as CosmosDb, so can be skipped in scope. For most of the resources require - providers/Microsoft.Compute/locations/{locationName}. Some Rps such as Batch requires batchAccountName - providers/Microsoft.Batch/locations/{locationName}/accountName/{batchAccountName}. This extension enables to specify resources for any all the RPs.", "x-ms-parameter-location": "method" } From 952fa6de788cb3db959ec8c8e37f1cc060114da8 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 16 May 2023 18:28:28 -0700 Subject: [PATCH 022/158] Removing all errorcodes as per - https://github.com/Azure/azure-openapi-validator/blob/main/docs/no-error-code-responses.md NoErrorCodeResponses --- .../2023-06-01-preview/groupquota.json | 263 +----------------- 1 file changed, 6 insertions(+), 257 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index dea22093c679..698458874d11 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -90,20 +90,6 @@ "$ref": "#/definitions/OperationsStatus" } }, - "400": { - "description": "Bad Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, "default": { "description": "Error", "schema": { @@ -171,27 +157,6 @@ "$ref": "#/definitions/OperationsStatus" } }, - "400": { - "description": "Bad Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not Found", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, "default": { "description": "Bad Request", "schema": { @@ -230,27 +195,6 @@ "$ref": "#/definitions/SharedQuotaEntity" } }, - "400": { - "description": "Bad Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not Found", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, "default": { "description": "Error", "schema": { @@ -344,27 +288,6 @@ "$ref": "#/definitions/SharedQuotaEntityList" } }, - "400": { - "description": "Bad Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not Found", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, "default": { "description": "Error", "schema": { @@ -440,20 +363,6 @@ "$ref": "#/definitions/OperationsStatus" } }, - "400": { - "description": "Bad Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, "default": { "description": "Error", "schema": { @@ -585,20 +494,6 @@ "$ref": "#/definitions/GroupQuotaLimit" } }, - "400": { - "description": "Bad Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, "default": { "description": "Error", "schema": { @@ -645,20 +540,6 @@ "$ref": "#/definitions/GroupQuotaList" } }, - "400": { - "description": "Bad Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, "default": { "description": "Error", "schema": { @@ -761,20 +642,6 @@ "$ref": "#/definitions/SubmittedResourceRequestStatus" } }, - "404": { - "description": "Not Found", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, "default": { "description": "Error", "schema": { @@ -919,47 +786,12 @@ }, "schema": { "$ref": "#/definitions/OperationsStatus" - } - }, - "400": { - "description": "Bad Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Request MGId or resource not found. The resource was not found in pre-approved groupQuota.", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "406": { - "description": "The subscription is not eligible for groupQuota.", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "414": { - "description": "The requested quota was more than the available groupQuota. Similarly in case of quota reduction, the quota reduction is more than the quota assigned from groupQuota.", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } } } } @@ -1033,41 +865,6 @@ "$ref": "#/definitions/OperationsStatus" } }, - "400": { - "description": "Bad Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Request MGId or resource not found. The resource was not found in pre-approved groupQuota.", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "406": { - "description": "The subscription is not eligible for groupQuota.", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "414": { - "description": "The requested quota was more than the available groupQuota. Similarly in case of quota reduction, the quota reduction is more than the quota assigned from groupQuota.", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, "default": { "description": "Error", "schema": { @@ -1115,27 +912,6 @@ "$ref": "#/definitions/SubscriptionQuotaLimit" } }, - "400": { - "description": "Bad Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not found", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, "default": { "description": "Error", "schema": { @@ -1185,19 +961,6 @@ "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" } }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, "default": { "description": "Error", "schema": { @@ -1244,20 +1007,6 @@ "$ref": "#/definitions/SubscriptionQuotaAllocationRequestList" } }, - "404": { - "description": "Not Found", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, "default": { "description": "Error", "schema": { From 40fac5051de96468c55aa4ec0f95daf224308d2f Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 16 May 2023 18:59:37 -0700 Subject: [PATCH 023/158] Fixing Linter errors. --- .../2023-06-01-preview/groupquota.json | 96 ++++++++++--------- 1 file changed, 53 insertions(+), 43 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 698458874d11..73862f6b5e0f 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -75,7 +75,8 @@ "headers": { "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" + "type": "integer", + "format": "int64" }, "Location": { "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", @@ -142,7 +143,8 @@ "headers": { "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" + "type": "integer", + "format": "int64" }, "Location": { "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", @@ -230,27 +232,6 @@ "200": { "description": "OK." }, - "400": { - "description": "Bad Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not Found", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, "default": { "description": "Error", "schema": { @@ -348,7 +329,8 @@ "headers": { "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" + "type": "integer", + "format": "int64" }, "Location": { "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", @@ -421,7 +403,8 @@ "headers": { "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" + "type": "integer", + "format": "int64" }, "Location": { "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", @@ -773,7 +756,8 @@ "headers": { "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" + "type": "integer", + "format": "int64" }, "Location": { "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", @@ -850,7 +834,8 @@ "headers": { "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer" + "type": "integer", + "format": "int64" }, "Location": { "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", @@ -1215,10 +1200,15 @@ } }, "GroupQuotaList": { - "type": "array", - "description": "List of Group Quotas at MG level.", - "items": { - "$ref": "#/definitions/GroupQuotaLimit" + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "List of Group Quotas at MG level.", + "items": { + "$ref": "#/definitions/GroupQuotaLimit" + } + } } }, "SubscriptionQuotaAllocationRequest": { @@ -1252,10 +1242,15 @@ } }, "SubscriptionQuotaAllocationRequestList": { - "type": "array", - "description": "Assigned Group Quota to subscriptions.", - "items": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "Assigned Group Quota to subscriptions.", + "items": { + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + } + } } }, "SubscriptionGroupQuotaAssignment": { @@ -1320,10 +1315,15 @@ } }, "SubscriptionQuotaDetailsList": { - "type": "array", - "description": "Subscription quota list.", - "items": { - "$ref": "#/definitions/SubscriptionQuotaLimit" + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "Subscription quota list.", + "items": { + "$ref": "#/definitions/SubscriptionQuotaLimit" + } + } } }, "ResourceBaseRequest": { @@ -1398,6 +1398,11 @@ "subscriptionFilters": { "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand.", "$ref": "#/definitions/Filters" + }, + "provisioningState": { + "description": "Provisioing state of the operation.", + "$ref": "#/definitions/RequestState", + "readOnly": true } } }, @@ -1456,10 +1461,15 @@ } }, "SharedQuotaEntityList": { - "type": "array", - "description": "Share Quota Entity list.", - "items": { - "$ref": "#/definitions/SharedQuotaEntity" + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "Share Quota Entity list.", + "items": { + "$ref": "#/definitions/SharedQuotaEntity" + } + } } } }, From 615c1520436dc0f7cde418664296d2e36167a880 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 16 May 2023 20:45:06 -0700 Subject: [PATCH 024/158] Revert "Updating the async response and adding default response." This reverts commit 67ee34c809d74939abb3e5a661f1d2706d82fc83. --- package-lock.json | 312 +++++++----------- package.json | 17 +- .../2023-06-01-preview/groupquota.json | 261 ++++++++++++++- 3 files changed, 379 insertions(+), 211 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4a856160727f..b1dff268aee1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,11 +6,11 @@ "": { "name": "azure-rest-api-specs", "devDependencies": { - "@azure-tools/cadl-apiview": "^0.3.3", - "@azure-tools/cadl-autorest": "^0.19.0", - "@azure-tools/cadl-azure-core": "^0.6.0", - "@azure-tools/cadl-azure-resource-manager": "^0.9.0", - "@azure-tools/cadl-providerhub": "^0.20.0", + "@azure-tools/cadl-apiview": "0.3.5", + "@azure-tools/cadl-autorest": "0.26.0", + "@azure-tools/cadl-azure-core": "0.26.0", + "@azure-tools/cadl-azure-resource-manager": "0.26.0", + "@azure-tools/cadl-providerhub": "0.26.0", "@azure-tools/typespec-apiview": "0.4.4", "@azure-tools/typespec-autorest": "0.30.0", "@azure-tools/typespec-azure-core": "0.30.0", @@ -24,77 +24,104 @@ } }, "node_modules/@azure-tools/cadl-apiview": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@azure-tools/cadl-apiview/-/cadl-apiview-0.3.3.tgz", - "integrity": "sha512-j16XUApC2C1HqRSbniJVhH0RUOeCHNE36kQt3TPI46CZQY8M6u/D8Gk3o+7MRQSBQ4QP8n9/h4h6AMAVPKVkew==", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@azure-tools/cadl-apiview/-/cadl-apiview-0.3.5.tgz", + "integrity": "sha512-1+g/I7/PzEQQv8jE7HyxBKYSru+Ji0Myuviuy2qK8TE8gYcBoGjRdNb1aIIYyJpuqkazJ5hLtEKDD9enVhMNoA==", "deprecated": "Package renamed to @azure-tools/typespec-apiview.", "dev": true, + "dependencies": { + "@azure-tools/cadl-autorest": "0.26.0", + "@azure-tools/cadl-azure-core": "0.26.0", + "@azure-tools/cadl-dpg": "latest", + "@cadl-lang/compiler": "0.40.0", + "@cadl-lang/rest": "latest", + "@cadl-lang/versioning": "latest" + }, "engines": { "node": ">=16.0.0" } }, "node_modules/@azure-tools/cadl-autorest": { - "version": "0.19.0", - "resolved": "https://registry.npmjs.org/@azure-tools/cadl-autorest/-/cadl-autorest-0.19.0.tgz", - "integrity": "sha512-lu9eDwwBHi11bcVKH/4p6qgtUdnxhqgNT9fsoweXWPlzSMpNbmHxenpJ0iUhRc5q2+KiKwEMO+1cDiZLnpM6/g==", + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/@azure-tools/cadl-autorest/-/cadl-autorest-0.26.0.tgz", + "integrity": "sha512-CoMddqhtZ7lP6O3hbX7Qxq3QeOou64IBmuf4Iz8dcTHOaLfrSoiJshbczEgO/mV62sY5kTmdamWEIi5ZRUpvWA==", "dev": true, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@azure-tools/cadl-azure-core": "~0.6.0", - "@cadl-lang/compiler": "~0.34.0", - "@cadl-lang/openapi": "~0.11.0", - "@cadl-lang/rest": "~0.16.0", - "@cadl-lang/versioning": "~0.7.0" + "@azure-tools/cadl-azure-core": "~0.26.0", + "@cadl-lang/compiler": "~0.40.0", + "@cadl-lang/openapi": "~0.40.0", + "@cadl-lang/rest": "~0.40.0", + "@cadl-lang/versioning": "~0.40.0" } }, "node_modules/@azure-tools/cadl-azure-core": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@azure-tools/cadl-azure-core/-/cadl-azure-core-0.6.0.tgz", - "integrity": "sha512-IQVy1oAACCJAu4yJylEnZzdkc7P+5soqUsqe5+L1b0/WIKuBt8vgioESlE7LivX9BBNIPIMjmEKk5rcCZ7KTDQ==", + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/@azure-tools/cadl-azure-core/-/cadl-azure-core-0.26.0.tgz", + "integrity": "sha512-PYmG/cp+QhyjuQa0jwTkkPp487d500FmPUB5rhjjx+OG080322d+uLeS9tx25dEq3GRoehEnF80qkupBjZBr1g==", "dev": true, + "dependencies": { + "@cadl-lang/lint": "~0.40.0" + }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@cadl-lang/compiler": "~0.34.0", - "@cadl-lang/openapi": "~0.11.0", - "@cadl-lang/rest": "~0.16.0" + "@cadl-lang/compiler": "~0.40.0", + "@cadl-lang/rest": "~0.40.0" } }, "node_modules/@azure-tools/cadl-azure-resource-manager": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/@azure-tools/cadl-azure-resource-manager/-/cadl-azure-resource-manager-0.9.0.tgz", - "integrity": "sha512-QVLMNmubqFqV3svEdxcnlmzoDN4Lm1DRpLeK0wxxufvg0fSlKp4XqJq9QOt4/Ed7eqasplniX5ZUzyU3TfJw0Q==", + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/@azure-tools/cadl-azure-resource-manager/-/cadl-azure-resource-manager-0.26.0.tgz", + "integrity": "sha512-0SVf/c5vZH6aCD05Ni7FjpGtKfd5bP8JqPFslhQyxqL9i3ILPso5xS1MOfFBI51L2gxy5ranSgGzTz3TOotiXw==", "dev": true, + "dependencies": { + "@cadl-lang/lint": "~0.40.0" + }, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@azure-tools/cadl-autorest": "~0.19.0", - "@azure-tools/cadl-azure-core": "~0.6.0", - "@cadl-lang/compiler": "~0.34.0", - "@cadl-lang/openapi": "~0.11.0", - "@cadl-lang/rest": "~0.16.0" + "@azure-tools/cadl-autorest": "~0.26.0", + "@azure-tools/cadl-azure-core": "~0.26.0", + "@cadl-lang/compiler": "~0.40.0", + "@cadl-lang/openapi": "~0.40.0", + "@cadl-lang/rest": "~0.40.0", + "@cadl-lang/versioning": "~0.40.0" + } + }, + "node_modules/@azure-tools/cadl-dpg": { + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/@azure-tools/cadl-dpg/-/cadl-dpg-0.26.0.tgz", + "integrity": "sha512-/F40cUDwKZVPj+dBWxdZ3rXwiqs0kGV6ra/LcNoqK+M+nacd48R4L0512izfJbm8KqFen8yh9jfVC8xQfB6bJg==", + "dev": true, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@cadl-lang/compiler": "~0.40.0", + "@cadl-lang/rest": "~0.40.0" } }, "node_modules/@azure-tools/cadl-providerhub": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@azure-tools/cadl-providerhub/-/cadl-providerhub-0.20.0.tgz", - "integrity": "sha512-kz85Urz8KzRMOVmR9vKPA9U7vN9D3gsXU7JOjj08zvSRPt0cQqRW15ExClm9JsCG8XEepqKT6adNwB3KLlHOWw==", + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/@azure-tools/cadl-providerhub/-/cadl-providerhub-0.26.0.tgz", + "integrity": "sha512-SZWnsuQziw2XJ7audHCpeYGmr1SMVOouqhqQPCSlMMo23elGmWnV+ThB3bso2t7m7PqPjGAhZZNsupQhVbWByg==", "dev": true, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@azure-tools/cadl-autorest": "~0.19.0", - "@azure-tools/cadl-azure-core": "~0.6.0", - "@azure-tools/cadl-azure-resource-manager": "~0.9.0", - "@cadl-lang/compiler": "~0.34.0", - "@cadl-lang/openapi": "~0.11.0", - "@cadl-lang/rest": "~0.16.0", - "@cadl-lang/versioning": "~0.7.0" + "@azure-tools/cadl-autorest": "~0.26.0", + "@azure-tools/cadl-azure-core": "~0.26.0", + "@azure-tools/cadl-azure-resource-manager": "~0.26.0", + "@cadl-lang/compiler": "~0.40.0", + "@cadl-lang/openapi": "~0.40.0", + "@cadl-lang/rest": "~0.40.0", + "@cadl-lang/versioning": "~0.40.0" } }, "node_modules/@azure-tools/typespec-apiview": { @@ -305,27 +332,26 @@ } }, "node_modules/@cadl-lang/compiler": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/@cadl-lang/compiler/-/compiler-0.34.0.tgz", - "integrity": "sha512-5KdfJTXkvzvRXVE4cvSm6lJtVVC4hEhUn+9vJXuxl3FIEmMR176xRXl9+ykcYLtDOGojVX0d1OCukeniwXQAWA==", + "version": "0.40.0", + "resolved": "https://registry.npmjs.org/@cadl-lang/compiler/-/compiler-0.40.0.tgz", + "integrity": "sha512-4u/Dnm39Ma+8wH0SDu7ya1+2oBRDiNByiRoijwyScHRec26UWLyWvHMvvU89ISU6O8Vwtq0bpmbD7FeJTnlbHw==", "dev": true, - "peer": true, "dependencies": { - "@babel/code-frame": "~7.16.7", - "ajv": "~8.9.0", + "@babel/code-frame": "~7.18.6", + "ajv": "~8.11.2", "change-case": "~4.1.2", "globby": "~13.1.1", "js-yaml": "~4.1.0", "mkdirp": "~1.0.4", "mustache": "~4.2.0", - "node-fetch": "~3.2.0", + "node-fetch": "3.2.8", "node-watch": "~0.7.1", "picocolors": "~1.0.0", - "prettier": "~2.7.1", + "prettier": "~2.8.1", "prompts": "~2.4.1", - "vscode-languageserver": "~7.0.0", + "vscode-languageserver": "~8.0.2", "vscode-languageserver-textdocument": "~1.0.1", - "yargs": "~17.3.1" + "yargs": "~17.6.2" }, "bin": { "cadl": "cmd/cadl.js", @@ -335,42 +361,11 @@ "node": ">=16.0.0" } }, - "node_modules/@cadl-lang/compiler/node_modules/@babel/code-frame": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", - "integrity": "sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==", - "dev": true, - "peer": true, - "dependencies": { - "@babel/highlight": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@cadl-lang/compiler/node_modules/ajv": { - "version": "8.9.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.9.0.tgz", - "integrity": "sha512-qOKJyNj/h+OWx7s5DePL6Zu1KeM9jPZhwBqs+7DzP6bGOvqzVCSf0xueYmVuaC/oQ/VtS2zLMLHdQFbkka+XDQ==", - "dev": true, - "peer": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, "node_modules/@cadl-lang/compiler/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, - "peer": true, "dependencies": { "color-convert": "^2.0.1" }, @@ -385,19 +380,20 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, - "peer": true + "dev": true }, "node_modules/@cadl-lang/compiler/node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, - "peer": true, "dependencies": { "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", + "strip-ansi": "^6.0.1", "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" } }, "node_modules/@cadl-lang/compiler/node_modules/color-convert": { @@ -405,7 +401,6 @@ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, - "peer": true, "dependencies": { "color-name": "~1.1.4" }, @@ -417,15 +412,13 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "peer": true + "dev": true }, "node_modules/@cadl-lang/compiler/node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dev": true, - "peer": true, "dependencies": { "argparse": "^2.0.1" }, @@ -434,11 +427,10 @@ } }, "node_modules/@cadl-lang/compiler/node_modules/node-fetch": { - "version": "3.2.10", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.2.10.tgz", - "integrity": "sha512-MhuzNwdURnZ1Cp4XTazr69K0BTizsBroX7Zx3UgDSVcZYKF/6p0CBe4EUb/hLqmzVhl0UpYfgRljQ4yxE+iCxA==", + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.2.8.tgz", + "integrity": "sha512-KtpD1YhGszhntMpBDyp5lyagk8KIMopC1LEb7cQUAh7zcosaX5uK8HnbNb2i3NTQK3sIawCItS0uFC3QzcLHdg==", "dev": true, - "peer": true, "dependencies": { "data-uri-to-buffer": "^4.0.0", "fetch-blob": "^3.1.4", @@ -452,69 +444,11 @@ "url": "https://opencollective.com/node-fetch" } }, - "node_modules/@cadl-lang/compiler/node_modules/prettier": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", - "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", - "dev": true, - "peer": true, - "bin": { - "prettier": "bin-prettier.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/@cadl-lang/compiler/node_modules/vscode-jsonrpc": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-6.0.0.tgz", - "integrity": "sha512-wnJA4BnEjOSyFMvjZdpiOwhSq9uDoK8e/kpRJDTaMYzwlkrhG1fwDIZI94CLsLzlCK5cIbMMtFlJlfR57Lavmg==", - "dev": true, - "peer": true, - "engines": { - "node": ">=8.0.0 || >=10.0.0" - } - }, - "node_modules/@cadl-lang/compiler/node_modules/vscode-languageserver": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/vscode-languageserver/-/vscode-languageserver-7.0.0.tgz", - "integrity": "sha512-60HTx5ID+fLRcgdHfmz0LDZAXYEV68fzwG0JWwEPBode9NuMYTIxuYXPg4ngO8i8+Ou0lM7y6GzaYWbiDL0drw==", - "dev": true, - "peer": true, - "dependencies": { - "vscode-languageserver-protocol": "3.16.0" - }, - "bin": { - "installServerIntoExtension": "bin/installServerIntoExtension" - } - }, - "node_modules/@cadl-lang/compiler/node_modules/vscode-languageserver-protocol": { - "version": "3.16.0", - "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.16.0.tgz", - "integrity": "sha512-sdeUoAawceQdgIfTI+sdcwkiK2KU+2cbEYA0agzM2uqaUy2UpnnGHtWTHVEtS0ES4zHU0eMFRGN+oQgDxlD66A==", - "dev": true, - "peer": true, - "dependencies": { - "vscode-jsonrpc": "6.0.0", - "vscode-languageserver-types": "3.16.0" - } - }, - "node_modules/@cadl-lang/compiler/node_modules/vscode-languageserver-types": { - "version": "3.16.0", - "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.16.0.tgz", - "integrity": "sha512-k8luDIWJWyenLc5ToFQQMaSrqCHiLwyKPHKPQZ5zz21vM+vIVUSvsRpcbiECH4WR88K2XZqc4ScRcZ7nk/jbeA==", - "dev": true, - "peer": true - }, "node_modules/@cadl-lang/compiler/node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, - "peer": true, "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -532,25 +466,23 @@ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true, - "peer": true, "engines": { "node": ">=10" } }, "node_modules/@cadl-lang/compiler/node_modules/yargs": { - "version": "17.3.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.3.1.tgz", - "integrity": "sha512-WUANQeVgjLbNsEmGk20f+nlHgOqzRFpiGWVaBrYGYIGANIIu3lWjoyi0fNlFmJkvfhCZ6BXINe7/W2O2bV4iaA==", + "version": "17.6.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz", + "integrity": "sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==", "dev": true, - "peer": true, "dependencies": { - "cliui": "^7.0.2", + "cliui": "^8.0.1", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", "string-width": "^4.2.3", "y18n": "^5.0.5", - "yargs-parser": "^21.0.0" + "yargs-parser": "^21.1.1" }, "engines": { "node": ">=12" @@ -561,46 +493,55 @@ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", "dev": true, - "peer": true, "engines": { "node": ">=12" } }, + "node_modules/@cadl-lang/lint": { + "version": "0.40.0", + "resolved": "https://registry.npmjs.org/@cadl-lang/lint/-/lint-0.40.0.tgz", + "integrity": "sha512-V/V5Msuurhb7kVZsvuAKVAHq4twmC5YC5k/t7YJWETOowFXepgIneWJPH2TDyyzO9WqJjqRJVRXPTrTuKuNFsA==", + "dev": true, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@cadl-lang/compiler": "~0.40.0" + } + }, "node_modules/@cadl-lang/openapi": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@cadl-lang/openapi/-/openapi-0.11.0.tgz", - "integrity": "sha512-miVNnGNq1VOdirTEStKIi00AMxPi/C53bGizrdqBUS7ZJ1vDQR7pq9hbPNYX8K7qAjMMSrJQykZc0xTOB/Jlow==", + "version": "0.40.0", + "resolved": "https://registry.npmjs.org/@cadl-lang/openapi/-/openapi-0.40.0.tgz", + "integrity": "sha512-M2/Pb5AyZd2O5ycYBIoIf4bufip7bCUTMt3gdom1ss6726APbG1fxx98HPcTbXXx0oA+SuqEXtz8k9eaUGLadQ==", "dev": true, "peer": true, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@cadl-lang/compiler": "~0.34.0", - "@cadl-lang/rest": "~0.16.0" + "@cadl-lang/compiler": "~0.40.0", + "@cadl-lang/rest": "~0.40.0" } }, "node_modules/@cadl-lang/rest": { - "version": "0.16.0", - "resolved": "https://registry.npmjs.org/@cadl-lang/rest/-/rest-0.16.0.tgz", - "integrity": "sha512-sf6BmJXpXWiTRZyqJkAAUZaAmfp6L35rg235PI4JeKsi93SbNExxuWR7USisA8sRvcCK9Ru8f8d0M+pb9oi4Mw==", + "version": "0.40.0", + "resolved": "https://registry.npmjs.org/@cadl-lang/rest/-/rest-0.40.0.tgz", + "integrity": "sha512-WfGq6lN87adRKsKd3XtztvOLXHzyFlDRQiEcXKfnwXia37zVwK355KX39P1RimQ9mpDsmXaGG4ETkdUSWvXe7w==", "dev": true, - "peer": true, "engines": { "node": ">=16.0.0" }, "peerDependencies": { - "@cadl-lang/compiler": "~0.34.0" + "@cadl-lang/compiler": "~0.40.0" } }, "node_modules/@cadl-lang/versioning": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/@cadl-lang/versioning/-/versioning-0.7.0.tgz", - "integrity": "sha512-Wg0CyP47jZnv4hHaq8enUxhsqaJSQzYrlzQzg265CtZrUFzwlBAkqQVel8qeA6f/wljkkL5Se75Vt5tLE2kfhQ==", + "version": "0.40.0", + "resolved": "https://registry.npmjs.org/@cadl-lang/versioning/-/versioning-0.40.0.tgz", + "integrity": "sha512-HK/jw0kxo/6RwbnR7nPyCj2kJ94uZbBhEmS08ms+fX4UB4nDNBXqXFwMwgftVZ2qdS9xEkRhLqpVYfEPzlFBJw==", "dev": true, - "peer": true, "dependencies": { - "@cadl-lang/compiler": "~0.34.0" + "@cadl-lang/compiler": "~0.40.0" }, "engines": { "node": ">=16.0.0" @@ -1277,18 +1218,6 @@ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", "dev": true }, - "node_modules/autorest": { - "version": "3.6.3", - "resolved": "https://registry.npmjs.org/autorest/-/autorest-3.6.3.tgz", - "integrity": "sha512-j/Axwk9bniifTNtBLYVxfQZGQIGPKljFaCQCBWOiybVar2j3tkHP1btiC4a/t9pAJXY6IaFgWctoPM3G/Puhyg==", - "hasInstallScript": true, - "bin": { - "autorest": "entrypoints/app.js" - }, - "engines": { - "node": ">=12.0.0" - } - }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -2214,11 +2143,6 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/pretier": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/pretier/-/pretier-0.0.1.tgz", - "integrity": "sha512-sx6A34i/SbtIbiNrwwPJ9gpGKXfezVFFsv5/7v+qwu5vcwp6RJftQ60LvRbV4LQngUnJVRyU23AsUG3t+zNHEA==" - }, "node_modules/prettier": { "version": "2.8.8", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", diff --git a/package.json b/package.json index fe8da69d687a..6431cb7079b5 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "azure-rest-api-specs", "devDependencies": { - "@azure-tools/cadl-apiview": "^0.3.3", - "@azure-tools/cadl-autorest": "^0.19.0", - "@azure-tools/cadl-azure-core": "^0.6.0", - "@azure-tools/cadl-azure-resource-manager": "^0.9.0", - "@azure-tools/cadl-providerhub": "^0.20.0", + "@azure-tools/cadl-apiview": "0.3.5", + "@azure-tools/cadl-autorest": "0.26.0", + "@azure-tools/cadl-azure-core": "0.26.0", + "@azure-tools/cadl-azure-resource-manager": "0.26.0", + "@azure-tools/cadl-providerhub": "0.26.0", "@azure-tools/typespec-apiview": "0.4.4", "@azure-tools/typespec-autorest": "0.30.0", "@azure-tools/typespec-azure-core": "0.30.0", @@ -14,13 +14,8 @@ "@typespec/compiler": "0.44.0", "@azure/avocado": "^0.8.4", "@types/prettier": "^2.7.2", - "@typespec/compiler": "0.43.0", "prettier": "^2.8.8", "typescript": "~5.0.4" }, - "private": true, - "dependencies": { - "autorest": "^3.6.3", - "pretier": "^0.0.1" - } + "private": true } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 73862f6b5e0f..3eff77f972ff 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -78,12 +78,15 @@ "type": "integer", "format": "int64" }, +<<<<<<< HEAD "Location": { "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", "type": "string" }, +======= +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "Azure-AsyncOperation": { - "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "description": "The URI to poll for completion status.", "type": "string" } }, @@ -91,8 +94,19 @@ "$ref": "#/definitions/OperationsStatus" } }, +<<<<<<< HEAD "default": { "description": "Error", +======= + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -146,12 +160,15 @@ "type": "integer", "format": "int64" }, +<<<<<<< HEAD "Location": { "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", "type": "string" }, +======= +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "Azure-AsyncOperation": { - "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "description": "The URI to poll for completion status.", "type": "string" } }, @@ -164,6 +181,21 @@ "schema": { "$ref": "#/definitions/ErrorContent" } +<<<<<<< HEAD +======= + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) } } }, @@ -197,8 +229,25 @@ "$ref": "#/definitions/SharedQuotaEntity" } }, +<<<<<<< HEAD "default": { "description": "Error", +======= + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -232,8 +281,25 @@ "200": { "description": "OK." }, +<<<<<<< HEAD "default": { "description": "Error", +======= + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -269,8 +335,25 @@ "$ref": "#/definitions/SharedQuotaEntityList" } }, +<<<<<<< HEAD "default": { "description": "Error", +======= + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -332,12 +415,15 @@ "type": "integer", "format": "int64" }, +<<<<<<< HEAD "Location": { "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", "type": "string" }, +======= +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "Azure-AsyncOperation": { - "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "description": "The URI to poll for completion status.", "type": "string" } }, @@ -345,8 +431,19 @@ "$ref": "#/definitions/OperationsStatus" } }, +<<<<<<< HEAD "default": { "description": "Error", +======= + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -406,12 +503,15 @@ "type": "integer", "format": "int64" }, +<<<<<<< HEAD "Location": { "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", "type": "string" }, +======= +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "Azure-AsyncOperation": { - "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "description": "The URI to poll for completion status.", "type": "string" } }, @@ -432,12 +532,15 @@ "schema": { "$ref": "#/definitions/ErrorContent" } +<<<<<<< HEAD }, "default": { "description": "Error", "schema": { "$ref": "#/definitions/ErrorContent" } +======= +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) } } }, @@ -477,8 +580,19 @@ "$ref": "#/definitions/GroupQuotaLimit" } }, +<<<<<<< HEAD "default": { "description": "Error", +======= + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -523,8 +637,19 @@ "$ref": "#/definitions/GroupQuotaList" } }, +<<<<<<< HEAD "default": { "description": "Error", +======= + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -578,12 +703,15 @@ "schema": { "$ref": "#/definitions/ErrorContent" } +<<<<<<< HEAD }, "default": { "description": "Error", "schema": { "$ref": "#/definitions/ErrorContent" } +======= +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) } } } @@ -625,8 +753,19 @@ "$ref": "#/definitions/SubmittedResourceRequestStatus" } }, +<<<<<<< HEAD "default": { "description": "Error", +======= + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -691,12 +830,15 @@ "schema": { "$ref": "#/definitions/ErrorContent" } +<<<<<<< HEAD }, "default": { "description": "Error", "schema": { "$ref": "#/definitions/ErrorContent" } +======= +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) } } } @@ -759,23 +901,59 @@ "type": "integer", "format": "int64" }, +<<<<<<< HEAD "Location": { "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", "type": "string" }, +======= +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "Azure-AsyncOperation": { - "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "description": "The URI to poll for completion status.", "type": "string" } }, "schema": { "$ref": "#/definitions/OperationsStatus" +<<<<<<< HEAD }, "default": { "description": "Error", "schema": { "$ref": "#/definitions/ErrorContent" } +======= + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Request MGId or resource not found. The resource was not found in pre-approved groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "406": { + "description": "The subscription is not eligible for groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "414": { + "description": "The requested quota was more than the available groupQuota. Similarly in case of quota reduction, the quota reduction is more than the quota assigned from groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", + "schema": { + "$ref": "#/definitions/ErrorContent" +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) } } } @@ -837,12 +1015,15 @@ "type": "integer", "format": "int64" }, +<<<<<<< HEAD "Location": { "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", "type": "string" }, +======= +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "Azure-AsyncOperation": { - "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "description": "The URI to poll for completion status.", "type": "string" } }, @@ -850,8 +1031,37 @@ "$ref": "#/definitions/OperationsStatus" } }, +<<<<<<< HEAD "default": { "description": "Error", +======= + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Request MGId or resource not found. The resource was not found in pre-approved groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "406": { + "description": "The subscription is not eligible for groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "414": { + "description": "The requested quota was more than the available groupQuota. Similarly in case of quota reduction, the quota reduction is more than the quota assigned from groupQuota.", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -897,8 +1107,25 @@ "$ref": "#/definitions/SubscriptionQuotaLimit" } }, +<<<<<<< HEAD "default": { "description": "Error", +======= + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "404": { + "description": "Not found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -946,8 +1173,19 @@ "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" } }, +<<<<<<< HEAD "default": { "description": "Error", +======= + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -992,8 +1230,19 @@ "$ref": "#/definitions/SubscriptionQuotaAllocationRequestList" } }, +<<<<<<< HEAD "default": { "description": "Error", +======= + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + }, + "429": { + "description": "Too many Request", +>>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } From 782c9bd155ea4534b9e870284598a5014a6cd6a8 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 16 May 2023 21:03:34 -0700 Subject: [PATCH 025/158] Fix spell --- .../2023-06-01-preview/groupquota.json | 286 +----------------- 1 file changed, 1 insertion(+), 285 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 3eff77f972ff..77a22622cc26 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -78,13 +78,10 @@ "type": "integer", "format": "int64" }, -<<<<<<< HEAD "Location": { "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", "type": "string" }, -======= ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "Azure-AsyncOperation": { "description": "The URI to poll for completion status.", "type": "string" @@ -94,19 +91,8 @@ "$ref": "#/definitions/OperationsStatus" } }, -<<<<<<< HEAD "default": { "description": "Error", -======= - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -160,13 +146,10 @@ "type": "integer", "format": "int64" }, -<<<<<<< HEAD "Location": { "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", "type": "string" }, -======= ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "Azure-AsyncOperation": { "description": "The URI to poll for completion status.", "type": "string" @@ -181,21 +164,6 @@ "schema": { "$ref": "#/definitions/ErrorContent" } -<<<<<<< HEAD -======= - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) } } }, @@ -229,25 +197,8 @@ "$ref": "#/definitions/SharedQuotaEntity" } }, -<<<<<<< HEAD "default": { "description": "Error", -======= - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -281,25 +232,8 @@ "200": { "description": "OK." }, -<<<<<<< HEAD "default": { "description": "Error", -======= - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -335,25 +269,8 @@ "$ref": "#/definitions/SharedQuotaEntityList" } }, -<<<<<<< HEAD "default": { "description": "Error", -======= - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -415,13 +332,10 @@ "type": "integer", "format": "int64" }, -<<<<<<< HEAD "Location": { "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", "type": "string" }, -======= ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "Azure-AsyncOperation": { "description": "The URI to poll for completion status.", "type": "string" @@ -431,19 +345,8 @@ "$ref": "#/definitions/OperationsStatus" } }, -<<<<<<< HEAD "default": { "description": "Error", -======= - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -503,13 +406,10 @@ "type": "integer", "format": "int64" }, -<<<<<<< HEAD "Location": { "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", "type": "string" }, -======= ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "Azure-AsyncOperation": { "description": "The URI to poll for completion status.", "type": "string" @@ -519,28 +419,11 @@ "$ref": "#/definitions/OperationsStatus" } }, - "400": { - "description": "Bad Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } -<<<<<<< HEAD - }, "default": { "description": "Error", "schema": { "$ref": "#/definitions/ErrorContent" } -======= ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) } } }, @@ -580,19 +463,8 @@ "$ref": "#/definitions/GroupQuotaLimit" } }, -<<<<<<< HEAD "default": { "description": "Error", -======= - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -637,19 +509,8 @@ "$ref": "#/definitions/GroupQuotaList" } }, -<<<<<<< HEAD "default": { "description": "Error", -======= - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -703,15 +564,12 @@ "schema": { "$ref": "#/definitions/ErrorContent" } -<<<<<<< HEAD }, "default": { "description": "Error", "schema": { "$ref": "#/definitions/ErrorContent" } -======= ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) } } } @@ -753,19 +611,8 @@ "$ref": "#/definitions/SubmittedResourceRequestStatus" } }, -<<<<<<< HEAD "default": { "description": "Error", -======= - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -810,35 +657,11 @@ "$ref": "#/definitions/SubscriptionQuotaDetailsList" } }, - "400": { - "description": "Bad Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not found", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } -<<<<<<< HEAD - }, "default": { "description": "Error", "schema": { "$ref": "#/definitions/ErrorContent" } -======= ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) } } } @@ -901,13 +724,10 @@ "type": "integer", "format": "int64" }, -<<<<<<< HEAD "Location": { "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", "type": "string" }, -======= ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "Azure-AsyncOperation": { "description": "The URI to poll for completion status.", "type": "string" @@ -915,45 +735,12 @@ }, "schema": { "$ref": "#/definitions/OperationsStatus" -<<<<<<< HEAD }, "default": { "description": "Error", "schema": { "$ref": "#/definitions/ErrorContent" } -======= - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Request MGId or resource not found. The resource was not found in pre-approved groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "406": { - "description": "The subscription is not eligible for groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "414": { - "description": "The requested quota was more than the available groupQuota. Similarly in case of quota reduction, the quota reduction is more than the quota assigned from groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "schema": { - "$ref": "#/definitions/ErrorContent" ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) } } } @@ -1015,13 +802,10 @@ "type": "integer", "format": "int64" }, -<<<<<<< HEAD "Location": { "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", "type": "string" }, -======= ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "Azure-AsyncOperation": { "description": "The URI to poll for completion status.", "type": "string" @@ -1031,37 +815,8 @@ "$ref": "#/definitions/OperationsStatus" } }, -<<<<<<< HEAD "default": { "description": "Error", -======= - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Request MGId or resource not found. The resource was not found in pre-approved groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "406": { - "description": "The subscription is not eligible for groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "414": { - "description": "The requested quota was more than the available groupQuota. Similarly in case of quota reduction, the quota reduction is more than the quota assigned from groupQuota.", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -1107,25 +862,8 @@ "$ref": "#/definitions/SubscriptionQuotaLimit" } }, -<<<<<<< HEAD "default": { "description": "Error", -======= - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "404": { - "description": "Not found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -1173,19 +911,8 @@ "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" } }, -<<<<<<< HEAD "default": { "description": "Error", -======= - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -1230,19 +957,8 @@ "$ref": "#/definitions/SubscriptionQuotaAllocationRequestList" } }, -<<<<<<< HEAD "default": { "description": "Error", -======= - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", ->>>>>>> parent of 67ee34c809 (Updating the async response and adding default response.) "schema": { "$ref": "#/definitions/ErrorContent" } @@ -1649,7 +1365,7 @@ "$ref": "#/definitions/Filters" }, "provisioningState": { - "description": "Provisioing state of the operation.", + "description": "provisioning state of the operation.", "$ref": "#/definitions/RequestState", "readOnly": true } From 96f296147cc8ec60af27c7599883b8873aea229e Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 16 May 2023 21:38:16 -0700 Subject: [PATCH 026/158] Fixing Lint Errors. --- .../2023-06-01-preview/groupquota.json | 61 +++++++++++-------- 1 file changed, 36 insertions(+), 25 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 77a22622cc26..4e7e0aaa328a 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -627,7 +627,7 @@ ], "summary": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location.", "description": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", - "operationId": "ShareQuota_MG_Subscription_List", + "operationId": "ShareQuotaMGSubscription_List", "x-ms-examples": { "GroupQuota_Put_Request_ForCompute": { "$ref": "./examples/PutQuotaAllocation-Compute.json" @@ -673,7 +673,7 @@ ], "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern to check the status using Async polling as standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.", "description": "Request to assign a specific resource quota from group quota to a specific Subscription. The subscriptions can also reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, which means the maximum unused quota assigned back to MG groupQuota will be the groupQuota assigned to the subscriptions. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription.", - "operationId": "GroupQuotaSubscription_QuotaAllocation_Create", + "operationId": "GroupQuotaSubscriptionQuotaAllocation_Create", "x-ms-examples": { "ShareQuotaOrder_Subscription_Allocation_Put_ForCompute": { "$ref": "./examples/PutQuotaAllocation-Compute.json" @@ -751,9 +751,9 @@ ], "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern with 202 response and status polling API.", "description": "Request to assign quota from group quota to a specific Subscription. The subscriptions and reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, using this API. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription(s).", - "operationId": "GroupQuotaSubscription_QuotaAllocation_Update", + "operationId": "GroupQuotaSubscriptionQuotaAllocation_Update", "x-ms-examples": { - "ShareQuotaOrder_Subscription_Allocation_Patch_ForCompute": { + "SharedQuota_Subscription_Allocation_Patch_ForCompute": { "$ref": "./examples/PatchQuotaAllocation-Compute.json" } }, @@ -829,7 +829,7 @@ ], "summary": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName.", "description": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", - "operationId": "GroupQuotaSubscription_QuotaAllocation_Get", + "operationId": "GroupQuotaSubscriptionQuotaAllocation_Get", "x-ms-examples": { "ShareQuotaOrder_Subscription_Allocation_Get_ForCompute": { "$ref": "./examples/GetQuotaAllocation-Compute.json" @@ -876,7 +876,7 @@ "tags": [ "Subscription-Quota-Allocation-Requests" ], - "operationId": "GroupQuotaSubscription_QuotaAllocationRequests_Get", + "operationId": "GroupQuotaSubscriptionQuotaAllocationRequests_Get", "summary": "Get the status of the quota allocation request for the subscriptionId.", "description": "Get the quota allocation request status for the subscriptionId by allocationId.", "x-ms-examples": { @@ -925,7 +925,7 @@ "tags": [ "Subscription-Quota-Allocation-Requests" ], - "operationId": "SubscriptionGroupQuota-Allocation_Request_List", + "operationId": "SubscriptionGroupQuotaAllocationRequest_List", "summary": "Lists all the quota allocation requests.to subscriptions", "description": "Lists all the allocation requests.", "x-ms-examples": { @@ -988,7 +988,8 @@ "type": "array", "items": { "$ref": "#/definitions/ErrorDetails" - } + }, + "x-ms-identifiers": [] } } }, @@ -1091,7 +1092,8 @@ "description": "Assigned Group Quota to subscriptions.", "items": { "$ref": "#/definitions/AssignedToSubscription" - } + }, + "x-ms-identifiers": [] }, "GroupQuotaLimit": { "type": "object", @@ -1232,7 +1234,8 @@ "description": "Assigned Group Quota to subscriptions.", "items": { "$ref": "#/definitions/SubscriptionGroupQuotaAssignment" - } + }, + "x-ms-identifiers": [] }, "SubscriptionQuotaLimit": { "type": "object", @@ -1334,10 +1337,15 @@ } }, "SubmittedResourceRequestStatusList": { - "type": "array", - "description": "Subscription groupQuotaRequests list.", - "items": { - "$ref": "#/definitions/SubscriptionQuotaLimit" + "type": "object", + "properties": { + "value": { + "type": "array", + "description": "Subscription groupQuotaRequests list.", + "items": { + "$ref": "#/definitions/SubscriptionQuotaLimit" + } + } } }, "SharedQuotaEntity": { @@ -1360,14 +1368,16 @@ "description": "The entity name. The entity name is provided in the request, so it is not needed in the request body. The response will include it.", "readOnly": true }, - "subscriptionFilters": { - "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand.", - "$ref": "#/definitions/Filters" - }, - "provisioningState": { - "description": "provisioning state of the operation.", - "$ref": "#/definitions/RequestState", - "readOnly": true + "properties": { + "subscriptionFilters": { + "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand.", + "$ref": "#/definitions/Filters" + }, + "provisioningState": { + "description": "provisioning state of the operation.", + "$ref": "#/definitions/RequestState", + "readOnly": true + } } } }, @@ -1483,6 +1493,9 @@ "name": "sharedQuotaEntityName", "in": "path", "required": true, + "pattern": "^[a-z][a-z0-9]*$", + "minLength": 3, + "maxLength": 63, "type": "string", "description": "The SharedQuotaEntity name. The name should be unique for the provided context tenantId/MgId.", "x-ms-parameter-location": "method" @@ -1491,6 +1504,7 @@ "name": "api-version", "in": "query", "required": true, + "x-ms-parameter-location": "client", "type": "string", "description": "Version of the API to be used with the client request. The current version is 2023-06-01-preview.", "minLength": 1 @@ -1500,9 +1514,6 @@ "in": "path", "required": true, "type": "string", - "pattern": "^[a-z][a-z0-9]*$", - "minLength": 3, - "maxLength": 63, "description": "Scope for the resource. Some resources do not require location parameter, such as CosmosDb, so can be skipped in scope. For most of the resources require - providers/Microsoft.Compute/locations/{locationName}. Some Rps such as Batch requires batchAccountName - providers/Microsoft.Batch/locations/{locationName}/accountName/{batchAccountName}. This extension enables to specify resources for any all the RPs.", "x-ms-parameter-location": "method" } From b3ac811e8fcae87e32f8067d15f40c09875ff90e Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 16 May 2023 21:46:26 -0700 Subject: [PATCH 027/158] Fix ProvisioningStateSpecifiedForLROPut --- .../preview/2023-06-01-preview/groupquota.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 4e7e0aaa328a..89c64bceb7e7 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1372,12 +1372,12 @@ "subscriptionFilters": { "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand.", "$ref": "#/definitions/Filters" - }, - "provisioningState": { - "description": "provisioning state of the operation.", - "$ref": "#/definitions/RequestState", - "readOnly": true } + }, + "provisioningState": { + "description": "provisioning state of the operation.", + "$ref": "#/definitions/RequestState", + "readOnly": true } } }, From 79c960766288596e7e8216c6b02ba92d75913fbf Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 16 May 2023 21:55:01 -0700 Subject: [PATCH 028/158] Fix LroErrorContent --- .../preview/2023-06-01-preview/groupquota.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 89c64bceb7e7..04d4e0bd6a48 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -94,7 +94,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorContent" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -162,7 +162,7 @@ "default": { "description": "Bad Request", "schema": { - "$ref": "#/definitions/ErrorContent" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -348,7 +348,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorContent" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -422,7 +422,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorContent" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } From 874eeb9eef1e85d59b2dc91f33ad65b9e3470f43 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 16 May 2023 21:59:19 -0700 Subject: [PATCH 029/158] Fix ResourceNameRestriction --- .../preview/2023-06-01-preview/groupquota.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 04d4e0bd6a48..bd4d2b604752 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -232,6 +232,9 @@ "200": { "description": "OK." }, + "204": { + "description": "No Content." + }, "default": { "description": "Error", "schema": { @@ -1462,6 +1465,9 @@ "in": "path", "required": true, "type": "string", + "pattern": "^[a-z][a-z0-9]*$", + "minLength": 3, + "maxLength": 63, "description": "Resource name.", "x-ms-parameter-location": "method" }, From e47bddee2717eda383dc07cc1b7eea0cbfaee280 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 16 May 2023 22:11:01 -0700 Subject: [PATCH 030/158] Fix Lint Errors --- .../preview/2023-06-01-preview/groupquota.json | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index bd4d2b604752..5ffecc349719 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -677,6 +677,7 @@ "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern to check the status using Async polling as standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.", "description": "Request to assign a specific resource quota from group quota to a specific Subscription. The subscriptions can also reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, which means the maximum unused quota assigned back to MG groupQuota will be the groupQuota assigned to the subscriptions. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription.", "operationId": "GroupQuotaSubscriptionQuotaAllocation_Create", + "x-ms-azure-resource": true, "x-ms-examples": { "ShareQuotaOrder_Subscription_Allocation_Put_ForCompute": { "$ref": "./examples/PutQuotaAllocation-Compute.json" @@ -738,12 +739,12 @@ }, "schema": { "$ref": "#/definitions/OperationsStatus" - }, - "default": { - "description": "Error", - "schema": { - "$ref": "#/definitions/ErrorContent" - } + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" } } } From 59e95dc803be9a461c79cac51787d6f73f16789d Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 16 May 2023 22:23:54 -0700 Subject: [PATCH 031/158] Fix Lint Errors --- .../2023-06-01-preview/groupquota.json | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 5ffecc349719..ad6947c612de 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -37,7 +37,7 @@ ], "summary": "Creates a new sharedQuotaEntity for the name passed.", "description": "Creates a new sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", - "operationId": "SharedQuotaEntity_Create", + "operationId": "SharedQuotaEntity_CreateOrUpdate", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { "$ref": "./examples/PutSharedQuotaEntity.json" @@ -83,7 +83,7 @@ "type": "string" }, "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", "type": "string" } }, @@ -151,7 +151,7 @@ "type": "string" }, "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", "type": "string" } }, @@ -288,7 +288,7 @@ ], "summary": "Creates a new Group Quota request for a specific resources.", "description": "Creates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", - "operationId": "GroupQuotaLimits_Create", + "operationId": "GroupQuotaLimits_CreateOrUpdate", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { "$ref": "./examples/PutGroupQuotaLimits-Compute.json" @@ -340,7 +340,7 @@ "type": "string" }, "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", "type": "string" } }, @@ -414,7 +414,7 @@ "type": "string" }, "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", "type": "string" } }, @@ -676,7 +676,7 @@ ], "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern to check the status using Async polling as standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.", "description": "Request to assign a specific resource quota from group quota to a specific Subscription. The subscriptions can also reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, which means the maximum unused quota assigned back to MG groupQuota will be the groupQuota assigned to the subscriptions. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription.", - "operationId": "GroupQuotaSubscriptionQuotaAllocation_Create", + "operationId": "GroupQuotaSubscriptionQuotaAllocation_CreateOrUpdate", "x-ms-azure-resource": true, "x-ms-examples": { "ShareQuotaOrder_Subscription_Allocation_Put_ForCompute": { @@ -733,7 +733,7 @@ "type": "string" }, "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", "type": "string" } }, @@ -811,7 +811,7 @@ "type": "string" }, "Azure-AsyncOperation": { - "description": "The URI to poll for completion status.", + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", "type": "string" } }, @@ -1171,7 +1171,7 @@ } }, "GroupQuotaList": { - "type": "object", + "description": "List of Group Quotas at MG level.", "properties": { "value": { "type": "array", @@ -1287,7 +1287,7 @@ } }, "SubscriptionQuotaDetailsList": { - "type": "object", + "description": "Subscription quota list.", "properties": { "value": { "type": "array", @@ -1341,7 +1341,7 @@ } }, "SubmittedResourceRequestStatusList": { - "type": "object", + "description": "Share Quota Entity list.", "properties": { "value": { "type": "array", @@ -1440,7 +1440,7 @@ } }, "SharedQuotaEntityList": { - "type": "object", + "description": "Share Quota Entity list.", "properties": { "value": { "type": "array", From 9d3e080c4976a6ea04ff55edda74efedde96140e Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 16 May 2023 22:40:27 -0700 Subject: [PATCH 032/158] Fix Lint Errors --- .../2023-06-01-preview/groupquota.json | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index ad6947c612de..c0ead431b974 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -717,7 +717,7 @@ "200": { "description": "Request status details.", "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + "$ref": "#/definitions/SubscriptionQuotaLimit" } }, "202": { @@ -744,7 +744,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorContent" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -795,7 +795,7 @@ "200": { "description": "Request status details.", "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + "$ref": "#/definitions/SubscriptionQuotaLimit" } }, "202": { @@ -822,7 +822,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorContent" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -1295,6 +1295,11 @@ "items": { "$ref": "#/definitions/SubscriptionQuotaLimit" } + }, + "@nextLink": { + "description": "The URL to use for getting the next set of results.", + "type": "string", + "readOnly": true } } }, @@ -1349,6 +1354,11 @@ "items": { "$ref": "#/definitions/SubscriptionQuotaLimit" } + }, + "@nextLink": { + "description": "The URL to use for getting the next set of results.", + "type": "string", + "readOnly": true } } }, @@ -1448,6 +1458,11 @@ "items": { "$ref": "#/definitions/SharedQuotaEntity" } + }, + "@nextLink": { + "description": "The URL to use for getting the next set of results.", + "type": "string", + "readOnly": true } } } From f72107079afec7e7b651e358057d3a61dd41dfd6 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 16 May 2023 23:11:45 -0700 Subject: [PATCH 033/158] Fix Lint Errors - ProvisioningStateSpecifiedForLROPut --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index c0ead431b974..7a2fced30de2 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1388,7 +1388,7 @@ "$ref": "#/definitions/Filters" } }, - "provisioningState": { + "ProvisioningState": { "description": "provisioning state of the operation.", "$ref": "#/definitions/RequestState", "readOnly": true From d2c50b606c06f696916344cd02b88f7b50ebb33d Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 16 May 2023 23:17:03 -0700 Subject: [PATCH 034/158] Fix Lint Errors - GetCollectionOnlyHasValueAndNextLink --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 7a2fced30de2..c9c824946164 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1450,6 +1450,7 @@ } }, "SharedQuotaEntityList": { + "type": "object", "description": "Share Quota Entity list.", "properties": { "value": { From a3519a90b5e3ae442475e43f60538d2e533279b7 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 16 May 2023 23:20:31 -0700 Subject: [PATCH 035/158] Fix Lint Errors - GetCollectionOnlyHasValueAndNextLink --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index c9c824946164..05b2cc9f349f 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1171,6 +1171,7 @@ } }, "GroupQuotaList": { + "type": "object", "description": "List of Group Quotas at MG level.", "properties": { "value": { @@ -1287,6 +1288,7 @@ } }, "SubscriptionQuotaDetailsList": { + "type": "object", "description": "Subscription quota list.", "properties": { "value": { @@ -1346,6 +1348,7 @@ } }, "SubmittedResourceRequestStatusList": { + "type": "object", "description": "Share Quota Entity list.", "properties": { "value": { From 91c3067d6c925d966a023aae27678d085d31677c Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 16 May 2023 23:27:34 -0700 Subject: [PATCH 036/158] Fix Lint Errors - ProvisioningStateSpecifiedForLROPut --- .../preview/2023-06-01-preview/groupquota.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 05b2cc9f349f..70a1cd22e225 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1389,12 +1389,12 @@ "subscriptionFilters": { "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand.", "$ref": "#/definitions/Filters" + }, + "provisioningState": { + "description": "provisioning state of the operation.", + "$ref": "#/definitions/RequestState", + "readOnly": true } - }, - "ProvisioningState": { - "description": "provisioning state of the operation.", - "$ref": "#/definitions/RequestState", - "readOnly": true } } }, From 726f44d17675f3ba15a4d46a5ae7661438e283a4 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 16 May 2023 23:30:02 -0700 Subject: [PATCH 037/158] Fix Lint Errors - ProvisioningStateSpecifiedForLROPut --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 70a1cd22e225..21ad91eec928 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1071,7 +1071,7 @@ "type": "string", "readOnly": true }, - "status": { + "provisioningState": { "$ref": "#/definitions/RequestState", "readOnly": true }, From a7d7a5844f3eb084642f44b246fbfd4052884415 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Wed, 17 May 2023 10:34:46 -0700 Subject: [PATCH 038/158] Fix Lint Errors - ProvisioningStateSpecifiedForLROPut --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 21ad91eec928..c4fb16a2daee 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1386,6 +1386,9 @@ "readOnly": true }, "properties": { + "title": "Properties", + "x-ms-client-flatten": true, + "type": "object", "subscriptionFilters": { "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand.", "$ref": "#/definitions/Filters" From 2fb8199b35333b825c0598111fab1d55f2eed416 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Wed, 17 May 2023 10:40:21 -0700 Subject: [PATCH 039/158] Fix Lint Errors - GetCollectionOnlyHasValueAndNextLink --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index c4fb16a2daee..d68b1dfb29cb 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1291,6 +1291,7 @@ "type": "object", "description": "Subscription quota list.", "properties": { + "type": "object", "value": { "type": "array", "description": "Subscription quota list.", @@ -1351,6 +1352,7 @@ "type": "object", "description": "Share Quota Entity list.", "properties": { + "type": "object", "value": { "type": "array", "description": "Subscription groupQuotaRequests list.", @@ -1459,6 +1461,7 @@ "type": "object", "description": "Share Quota Entity list.", "properties": { + "type": "object", "value": { "type": "array", "description": "Share Quota Entity list.", From 3008fdbdcd098ef17bbebb35546f49df8da99098 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Wed, 17 May 2023 11:26:43 -0700 Subject: [PATCH 040/158] Fix Lint Errors - getCollectionOnlyHasValueAndNextLink --- .../preview/2023-06-01-preview/groupquota.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index d68b1dfb29cb..68098652c3ab 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1299,7 +1299,7 @@ "$ref": "#/definitions/SubscriptionQuotaLimit" } }, - "@nextLink": { + "nextLink": { "description": "The URL to use for getting the next set of results.", "type": "string", "readOnly": true @@ -1360,7 +1360,7 @@ "$ref": "#/definitions/SubscriptionQuotaLimit" } }, - "@nextLink": { + "nextLink": { "description": "The URL to use for getting the next set of results.", "type": "string", "readOnly": true @@ -1469,7 +1469,7 @@ "$ref": "#/definitions/SharedQuotaEntity" } }, - "@nextLink": { + "nextLink": { "description": "The URL to use for getting the next set of results.", "type": "string", "readOnly": true From e500bf277a3e3b6f326e9da4f32f79af5fc24880 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Wed, 17 May 2023 11:33:19 -0700 Subject: [PATCH 041/158] Fixing ProvisioningStateSpecifiedForLROPut. Change 202 to 201. --- .../preview/2023-06-01-preview/groupquota.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 68098652c3ab..9040a2a89542 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -70,7 +70,7 @@ "$ref": "#/definitions/SharedQuotaEntity" } }, - "202": { + "201": { "description": "Request Accepted", "headers": { "Retry-After": { @@ -79,7 +79,7 @@ "format": "int64" }, "Location": { - "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers. New guidelines - https://github.com/microsoft/api-guidelines/blob/vNext/Guidelines.md#131-resource-based-long-running-operations-relo", "type": "string" }, "Azure-AsyncOperation": { From ab49099fd41f8eacbb55da945d547ee48f793321 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Wed, 17 May 2023 12:07:24 -0700 Subject: [PATCH 042/158] Fixing ProvisioningStateSpecifiedForLROPut. Change 202 to 201. --- .../2023-06-01-preview/groupquota.json | 33 ++++++++++++------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 9040a2a89542..32bff2e8883e 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -138,8 +138,8 @@ "$ref": "#/definitions/SharedQuotaEntity" } }, - "202": { - "description": "Request Accepted", + "201": { + "description": "Request Created", "headers": { "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", @@ -327,8 +327,8 @@ "$ref": "#/definitions/GroupQuotaLimit" } }, - "202": { - "description": "Request Accepted", + "201": { + "description": "Request Created", "headers": { "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", @@ -401,8 +401,8 @@ "$ref": "#/definitions/GroupQuotaLimit" } }, - "202": { - "description": "Request Accepted", + "201": { + "description": "Request Created", "headers": { "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", @@ -720,8 +720,8 @@ "$ref": "#/definitions/SubscriptionQuotaLimit" } }, - "202": { - "description": "Request Accepted", + "201": { + "description": "Request Created", "headers": { "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", @@ -798,8 +798,8 @@ "$ref": "#/definitions/SubscriptionQuotaLimit" } }, - "202": { - "description": "Request Accepted", + "201": { + "description": "Request Created", "headers": { "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", @@ -1040,6 +1040,7 @@ "description": "Request status.", "enum": [ "Accepted", + "Created", "Invalid", "Succeeded", "Failed", @@ -1180,6 +1181,11 @@ "items": { "$ref": "#/definitions/GroupQuotaLimit" } + }, + "nextLink": { + "description": "The URL to use for getting the next set of results.", + "type": "string", + "readOnly": true } } }, @@ -1222,6 +1228,11 @@ "items": { "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" } + }, + "nextLink": { + "description": "The URL to use for getting the next set of results.", + "type": "string", + "readOnly": true } } }, @@ -1396,7 +1407,7 @@ "$ref": "#/definitions/Filters" }, "provisioningState": { - "description": "provisioning state of the operation.", + "description": "Provisioning state of the operation.", "$ref": "#/definitions/RequestState", "readOnly": true } From 8470473f8736be57216c3c77ff0f53c6abc7778e Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Wed, 17 May 2023 12:20:21 -0700 Subject: [PATCH 043/158] Fixing description for 200, 201. --- .../2023-06-01-preview/groupquota.json | 25 +++++-------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 32bff2e8883e..c1ddf53f6dde 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -65,13 +65,13 @@ ], "responses": { "200": { - "description": "OK.", + "description": "OK, Create or Update", "schema": { "$ref": "#/definitions/SharedQuotaEntity" } }, "201": { - "description": "Request Accepted", + "description": "Request Accepted, , Create or Update", "headers": { "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", @@ -322,13 +322,13 @@ ], "responses": { "200": { - "description": "OK. Returns the quota details.", + "description": "OK. Create or Update", "schema": { "$ref": "#/definitions/GroupQuotaLimit" } }, "201": { - "description": "Request Created", + "description": "Request Created. Create or Update", "headers": { "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", @@ -555,19 +555,6 @@ "$ref": "#/definitions/SubmittedResourceRequestStatusList" } }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, - "429": { - "description": "Too many Request", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorContent" - } - }, "default": { "description": "Error", "schema": { @@ -715,13 +702,13 @@ ], "responses": { "200": { - "description": "Request status details.", + "description": "OK. , Create or Update", "schema": { "$ref": "#/definitions/SubscriptionQuotaLimit" } }, "201": { - "description": "Request Created", + "description": "Request Created. Create or Update", "headers": { "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", From e03efd575ebf0777b2892d0ffc6b6607dac8d070 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Wed, 17 May 2023 12:32:17 -0700 Subject: [PATCH 044/158] Update readme.md --- specification/quota/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/readme.md b/specification/quota/resource-manager/readme.md index 3d012787f720..12265f489919 100644 --- a/specification/quota/resource-manager/readme.md +++ b/specification/quota/resource-manager/readme.md @@ -26,7 +26,7 @@ These are the global settings for the Quota API. ``` yaml openapi-type: arm -tag: package-2023-02-01 +tag: package-2023-06-01-preview ``` From 1cf29eeddd4e95b992afca2148c25ed270e42205 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Wed, 17 May 2023 12:45:29 -0700 Subject: [PATCH 045/158] Update for LroPatch202 - Patch response 202. --- .../preview/2023-06-01-preview/groupquota.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index c1ddf53f6dde..60afc6c9bfea 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -138,8 +138,8 @@ "$ref": "#/definitions/SharedQuotaEntity" } }, - "201": { - "description": "Request Created", + "202": { + "description": "Request Accepted", "headers": { "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", @@ -401,8 +401,8 @@ "$ref": "#/definitions/GroupQuotaLimit" } }, - "201": { - "description": "Request Created", + "202": { + "description": "Request Accepted", "headers": { "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", @@ -785,8 +785,8 @@ "$ref": "#/definitions/SubscriptionQuotaLimit" } }, - "201": { - "description": "Request Created", + "202": { + "description": "Request Accepted", "headers": { "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", From 472d8ac400fc50569b56c61cf48fe3a41df17e13 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Wed, 17 May 2023 12:57:18 -0700 Subject: [PATCH 046/158] Fixing UnSupportedPatchProperties --- .../2023-06-01-preview/groupquota.json | 45 +++++++++++++++---- 1 file changed, 36 insertions(+), 9 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 60afc6c9bfea..93058e9946d2 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1095,17 +1095,26 @@ "id": { "description": "The resource ID.", "type": "string", - "readOnly": true + "readOnly": true, + "x-ms-mutability": [ + "read" + ] }, "type": { "description": "The type.", "type": "string", - "readOnly": true + "readOnly": true, + "x-ms-mutability": [ + "read" + ] }, "name": { "description": "The resource name.", "type": "string", - "readOnly": true + "readOnly": true, + "x-ms-mutability": [ + "read" + ] }, "properties": { "description": "Group Quota properties for the specified resource.", @@ -1183,17 +1192,26 @@ "id": { "description": "The operation status identifier. It should match what is used to GET the operation resource.", "type": "string", - "readOnly": true + "readOnly": true, + "x-ms-mutability": [ + "read" + ] }, "name": { + "description": "It must match the last segment of the id field, and will typically be a GUID / system generated value.", "type": "string", "readOnly": true, - "description": "It must match the last segment of the id field, and will typically be a GUID / system generated value." + "x-ms-mutability": [ + "read" + ] }, "type": { "description": "The type.", "type": "string", - "readOnly": true + "readOnly": true, + "x-ms-mutability": [ + "read" + ] }, "status": { "$ref": "#/definitions/RequestState", @@ -1373,17 +1391,26 @@ "id": { "description": "Entity resource Id.", "type": "string", - "readOnly": true + "readOnly": true, + "x-ms-mutability": [ + "read" + ] }, "type": { "type": "string", "description": "Type of the entity - Microsoft.Quota/SharedQuotaEntity.", - "readOnly": true + "readOnly": true, + "x-ms-mutability": [ + "read" + ] }, "name": { "type": "string", "description": "The entity name. The entity name is provided in the request, so it is not needed in the request body. The response will include it.", - "readOnly": true + "readOnly": true, + "x-ms-mutability": [ + "read" + ] }, "properties": { "title": "Properties", From c08765f92dd2a045a19c63ecbb3d666a1959f1b4 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Wed, 17 May 2023 14:44:58 -0700 Subject: [PATCH 047/158] Fixing UnSupportedPatchProperties x-ms-mutability --- .../2023-06-01-preview/groupquota.json | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 93058e9946d2..fe75b6df9a9f 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -704,7 +704,7 @@ "200": { "description": "OK. , Create or Update", "schema": { - "$ref": "#/definitions/SubscriptionQuotaLimit" + "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" } }, "201": { @@ -1097,7 +1097,7 @@ "type": "string", "readOnly": true, "x-ms-mutability": [ - "read" + "create" ] }, "type": { @@ -1105,7 +1105,7 @@ "type": "string", "readOnly": true, "x-ms-mutability": [ - "read" + "create" ] }, "name": { @@ -1113,7 +1113,7 @@ "type": "string", "readOnly": true, "x-ms-mutability": [ - "read" + "create" ] }, "properties": { @@ -1194,7 +1194,7 @@ "type": "string", "readOnly": true, "x-ms-mutability": [ - "read" + "create" ] }, "name": { @@ -1202,7 +1202,7 @@ "type": "string", "readOnly": true, "x-ms-mutability": [ - "read" + "create" ] }, "type": { @@ -1210,7 +1210,7 @@ "type": "string", "readOnly": true, "x-ms-mutability": [ - "read" + "create" ] }, "status": { @@ -1393,7 +1393,7 @@ "type": "string", "readOnly": true, "x-ms-mutability": [ - "read" + "create" ] }, "type": { @@ -1401,7 +1401,7 @@ "description": "Type of the entity - Microsoft.Quota/SharedQuotaEntity.", "readOnly": true, "x-ms-mutability": [ - "read" + "create" ] }, "name": { @@ -1409,7 +1409,7 @@ "description": "The entity name. The entity name is provided in the request, so it is not needed in the request body. The response will include it.", "readOnly": true, "x-ms-mutability": [ - "read" + "create" ] }, "properties": { From e716accdd9c63ebee24b96b220d017333ba995ff Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Wed, 17 May 2023 15:31:41 -0700 Subject: [PATCH 048/158] Making property x-ms-mutability: read --- .../preview/2023-06-01-preview/groupquota.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index fe75b6df9a9f..245b673f55d9 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1097,7 +1097,7 @@ "type": "string", "readOnly": true, "x-ms-mutability": [ - "create" + "read" ] }, "type": { @@ -1105,7 +1105,7 @@ "type": "string", "readOnly": true, "x-ms-mutability": [ - "create" + "read" ] }, "name": { @@ -1113,7 +1113,7 @@ "type": "string", "readOnly": true, "x-ms-mutability": [ - "create" + "read" ] }, "properties": { @@ -1194,7 +1194,7 @@ "type": "string", "readOnly": true, "x-ms-mutability": [ - "create" + "read" ] }, "name": { @@ -1202,7 +1202,7 @@ "type": "string", "readOnly": true, "x-ms-mutability": [ - "create" + "read" ] }, "type": { @@ -1210,7 +1210,7 @@ "type": "string", "readOnly": true, "x-ms-mutability": [ - "create" + "read" ] }, "status": { @@ -1393,7 +1393,7 @@ "type": "string", "readOnly": true, "x-ms-mutability": [ - "create" + "read" ] }, "type": { @@ -1401,7 +1401,7 @@ "description": "Type of the entity - Microsoft.Quota/SharedQuotaEntity.", "readOnly": true, "x-ms-mutability": [ - "create" + "read" ] }, "name": { @@ -1409,7 +1409,7 @@ "description": "The entity name. The entity name is provided in the request, so it is not needed in the request body. The response will include it.", "readOnly": true, "x-ms-mutability": [ - "create" + "read" ] }, "properties": { From eecee75e8b3207586f8d92277471b9c3509f4b6a Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Wed, 17 May 2023 23:30:17 -0700 Subject: [PATCH 049/158] Different schema for Path request - UnSupportedPatchProperties --- .../2023-06-01-preview/groupquota.json | 36 ++++++++++++------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 245b673f55d9..0bbed40611bc 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -123,11 +123,11 @@ "$ref": "#/parameters/apiVersionParameter" }, { - "name": "SharedQuotaEntityRequest", + "name": "SharedQuotaEntityPatchRequest", "in": "body", - "description": "The SharedQuotaEntity Request.", + "description": "The SharedQuotaEntity Patch Request.", "schema": { - "$ref": "#/definitions/SharedQuotaEntity" + "$ref": "#/definitions/SharedQuotaEntityBase" } } ], @@ -1383,6 +1383,25 @@ } } }, + "SharedQuotaEntityBase": { + "type": "object", + "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", + "x-ms-azure-resource": true, + "properties": { + "title": "Properties", + "x-ms-client-flatten": true, + "type": "object", + "subscriptionFilters": { + "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand.", + "$ref": "#/definitions/Filters" + }, + "provisioningState": { + "description": "Provisioning state of the operation.", + "$ref": "#/definitions/RequestState", + "readOnly": true + } + } + }, "SharedQuotaEntity": { "type": "object", "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", @@ -1416,16 +1435,7 @@ "title": "Properties", "x-ms-client-flatten": true, "type": "object", - "subscriptionFilters": { - "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand.", - "$ref": "#/definitions/Filters" - }, - "provisioningState": { - "description": "Provisioning state of the operation.", - "$ref": "#/definitions/RequestState", - "readOnly": true - } - } + "$ref" : "#/definitions/SharedQuotaEntityBase", } }, "Filter": { From 7447a7fb2ebee38134c4d4b902393a074f86a0f7 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Wed, 17 May 2023 23:42:51 -0700 Subject: [PATCH 050/158] Prettier Check --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 0bbed40611bc..f5fcbf09fd54 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1389,7 +1389,6 @@ "x-ms-azure-resource": true, "properties": { "title": "Properties", - "x-ms-client-flatten": true, "type": "object", "subscriptionFilters": { "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand.", From c97ba0d81e40fdbccf685612e2b06e3f4146ce6d Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Wed, 17 May 2023 23:48:48 -0700 Subject: [PATCH 051/158] Prettier Check --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index f5fcbf09fd54..fd619e1e0c5e 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1434,7 +1434,8 @@ "title": "Properties", "x-ms-client-flatten": true, "type": "object", - "$ref" : "#/definitions/SharedQuotaEntityBase", + "$ref": "#/definitions/SharedQuotaEntityBase" + } } }, "Filter": { From 2920c1808c754d065bf1b2885f59d92b45c6dda1 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 18 May 2023 15:53:40 -0700 Subject: [PATCH 052/158] Update default package. --- specification/quota/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/readme.md b/specification/quota/resource-manager/readme.md index 12265f489919..3d012787f720 100644 --- a/specification/quota/resource-manager/readme.md +++ b/specification/quota/resource-manager/readme.md @@ -26,7 +26,7 @@ These are the global settings for the Quota API. ``` yaml openapi-type: arm -tag: package-2023-06-01-preview +tag: package-2023-02-01 ``` From 801beb64afcb9c61d3369f8e66f394e8849e883e Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 23 May 2023 15:40:19 -0700 Subject: [PATCH 053/158] Moving the properties bellow level. --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index fd619e1e0c5e..26887b2110e2 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1213,6 +1213,8 @@ "read" ] }, + "properties":{ + "type": "object", "status": { "$ref": "#/definitions/RequestState", "readOnly": true @@ -1223,6 +1225,7 @@ "description": "The new quota limit for the subscription. The incremental quota will be assigned from pre-approved groupQuota." } } + } }, "SubscriptionQuotaAllocationRequestList": { "type": "object", From 7f7f1716c9ac5d33ae8009603d4467be461b8a70 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 23 May 2023 15:47:59 -0700 Subject: [PATCH 054/158] Run prettier. --- .../2023-06-01-preview/groupquota.json | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 26887b2110e2..c668ed75b5e7 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1213,19 +1213,19 @@ "read" ] }, - "properties":{ + "properties": { "type": "object", - "status": { - "$ref": "#/definitions/RequestState", - "readOnly": true - }, - "limit": { - "type": "integer", - "format": "int64", - "description": "The new quota limit for the subscription. The incremental quota will be assigned from pre-approved groupQuota." + "status": { + "$ref": "#/definitions/RequestState", + "readOnly": true + }, + "limit": { + "type": "integer", + "format": "int64", + "description": "The new quota limit for the subscription. The incremental quota will be assigned from pre-approved groupQuota." + } } } - } }, "SubscriptionQuotaAllocationRequestList": { "type": "object", From e37b72f8df454ead95640e3f8e00c76edbb69093 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 23 May 2023 15:59:20 -0700 Subject: [PATCH 055/158] Changr Operation name to SharedQuotaEntities. --- .../preview/2023-06-01-preview/groupquota.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index c668ed75b5e7..9eb08339c3ac 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -37,7 +37,7 @@ ], "summary": "Creates a new sharedQuotaEntity for the name passed.", "description": "Creates a new sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", - "operationId": "SharedQuotaEntity_CreateOrUpdate", + "operationId": "SharedQuotaEntities_CreateOrUpdate", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { "$ref": "./examples/PutSharedQuotaEntity.json" @@ -105,7 +105,7 @@ ], "summary": "Updates a new sharedQuotaEntity for the name passed.", "description": "Updates the sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked. \n Any change in the filters will be applicable to the future quota assignments, existing quota assigned to subscriptions from the sharedQuotaEntity remains unchanged.", - "operationId": "SharedQuotaEntity_Update", + "operationId": "SharedQuotaEntities_Update", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { "$ref": "./examples/PatchSharedQuotaEntity.json" @@ -173,7 +173,7 @@ ], "summary": "Gets sharedQuotaEntity for the name passed.", "description": "Gets the sharedQuotaEntity for the name passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", - "operationId": "SharedQuotaEntity_Get", + "operationId": "SharedQuotaEntities_Get", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { "$ref": "./examples/GetSharedQuotaEntity.json" @@ -211,7 +211,7 @@ ], "summary": "Deletes sharedQuotaEntity for the name passed.", "description": "Deletes the sharedQuotaEntity for the name passed. All the remaining shareQuota in the sharedQuotaEntity will be lost.", - "operationId": "SharedQuotaEntity_Delete", + "operationId": "SharedQuotaEntities_Delete", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { "$ref": "./examples/DeleteSharedQuotaEntity.json" @@ -251,7 +251,7 @@ ], "summary": "Lists sharedQuotaEntities for the scope passed.", "description": "Lists sharedQuotaEntities for the scope passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", - "operationId": "SharedQuotaEntity_List", + "operationId": "SharedQuotaEntities_List", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { "$ref": "./examples/GetSharedQuotaEntityList.json" From c082da64b3510f04a54fee2b2ad44cc59186b8af Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Wed, 24 May 2023 00:29:29 -0700 Subject: [PATCH 056/158] Adding subscription list for filter and comments to address 1P requirement using CO APIs, not in ARm/3P APIs. seperation of conerns amkes it simple. --- .../preview/2023-06-01-preview/groupquota.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 9eb08339c3ac..67dcfda1862c 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1447,10 +1447,11 @@ "properties": { "filterEntity": { "type": "string", - "description": "Name of the entity for filter, such as billingId, offerType.", + "description": "Name of the entity for filter, such as billingId, offerType, subscriptionIds )List of subscriptions), the list of subscriptions can be modified - add new subscriptions or remove previously added subscriptions. The operation will be get the sharedQuotaEntity, update the list of subscriptions - add or remove or update the list of subscriptions - add new subscriptions and remove old subscriptions, thus it will overwrite the list of subscrpitions to keep it consistent with other properties. we can add an API to add or remove subscriptions from list, if it helps the user. Alternatively, we can add a exclusion and inclusion list, where exclusion overrides the inclusion, similar to RBAC - deny overrides the allow. It may be bit hard for the user to understand, but power users can use it. By default all the subscriptions under the scope with the filters will be included, ease of use, else user can use advanced filters and use subscription list or inclusion and exclusion rules. We need to focus these ARMP APIs for 3P customers, where it's easier to use out of the box. The 1P customer user use case can be addressed by advanced filters. I would suggest to address the 1P customer use case in Capacity Order Growth APIs and have special handing based on each group's requirement, but let's keep the 3P APIs clean, easy to adpot and compliant with ARM RBAC.", "enum": [ "billingId", - "offerType" + "offerType", + "subscriptionIds" ], "x-ms-enum": { "name": "SubscriptionFilterType", From 19e57faadeb6c5aa08fe453515730c95057d6315 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Wed, 24 May 2023 12:10:31 -0700 Subject: [PATCH 057/158] Making filtervalues as array. --- .../preview/2023-06-01-preview/groupquota.json | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 67dcfda1862c..137400cb5c40 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1470,15 +1470,18 @@ "modelAsString": true } }, - "filterValue": { - "type": "string", - "description": "Value for the filterEntity for comparison. Such as billingId, offerType value." + "filterValues": { + "type": "array", + "items": { + "type": "string", + "description": "Values for the filterEntity for comparison. Such as billingId, offerType, subscriptionIds value." + } } }, "required": [ "filterEntity", "operator", - "filterValue" + "filterValues" ] }, "Filters": { From 8fc3af82a3095f9457f96f0e6587173aac1e0e39 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Wed, 24 May 2023 13:01:58 -0700 Subject: [PATCH 058/158] Fixing Linter error. --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 137400cb5c40..b381c23319b2 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1391,8 +1391,6 @@ "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", "x-ms-azure-resource": true, "properties": { - "title": "Properties", - "type": "object", "subscriptionFilters": { "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand.", "$ref": "#/definitions/Filters" @@ -1503,7 +1501,6 @@ "type": "object", "description": "Share Quota Entity list.", "properties": { - "type": "object", "value": { "type": "array", "description": "Share Quota Entity list.", From 28e2c79d11d97407ca1802eb0e23cc976502f749 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Wed, 24 May 2023 16:48:06 -0700 Subject: [PATCH 059/158] Adding SubscriptionList and attributes to SharedQuotaEntity. --- .../2023-06-01-preview/groupquota.json | 33 ++++++++++++++++--- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index b381c23319b2..85ee3f98e4db 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1395,6 +1395,10 @@ "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand.", "$ref": "#/definitions/Filters" }, + "subsscriptionIds": { + "description": "List of subscriptions included in the ShareQuotaEntity.", + "$ref": "#/definitions/subscriptionIdList" + }, "provisioningState": { "description": "Provisioning state of the operation.", "$ref": "#/definitions/RequestState", @@ -1402,6 +1406,27 @@ } } }, + "AttributeType": { + "type": "string", + "description": "Name of the entity for filter, such as offerType.", + "enum": [ + "billingId", + "serviceTreeId", + "subscriptionType" + ], + "x-ms-enum": { + "name": "SharedQuotaAttributeType", + "modelAsString": true + } + }, + "subscriptionIdList": { + "type": "array", + "description": "List of subscrtionIds.", + "items": { + "type": "string", + "description": "SubscriptionId." + } + }, "SharedQuotaEntity": { "type": "object", "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", @@ -1445,11 +1470,9 @@ "properties": { "filterEntity": { "type": "string", - "description": "Name of the entity for filter, such as billingId, offerType, subscriptionIds )List of subscriptions), the list of subscriptions can be modified - add new subscriptions or remove previously added subscriptions. The operation will be get the sharedQuotaEntity, update the list of subscriptions - add or remove or update the list of subscriptions - add new subscriptions and remove old subscriptions, thus it will overwrite the list of subscrpitions to keep it consistent with other properties. we can add an API to add or remove subscriptions from list, if it helps the user. Alternatively, we can add a exclusion and inclusion list, where exclusion overrides the inclusion, similar to RBAC - deny overrides the allow. It may be bit hard for the user to understand, but power users can use it. By default all the subscriptions under the scope with the filters will be included, ease of use, else user can use advanced filters and use subscription list or inclusion and exclusion rules. We need to focus these ARMP APIs for 3P customers, where it's easier to use out of the box. The 1P customer user use case can be addressed by advanced filters. I would suggest to address the 1P customer use case in Capacity Order Growth APIs and have special handing based on each group's requirement, but let's keep the 3P APIs clean, easy to adpot and compliant with ARM RBAC.", + "description": "Name of the entity for filter, such as offerType.", "enum": [ - "billingId", - "offerType", - "subscriptionIds" + "offerType" ], "x-ms-enum": { "name": "SubscriptionFilterType", @@ -1472,7 +1495,7 @@ "type": "array", "items": { "type": "string", - "description": "Values for the filterEntity for comparison. Such as billingId, offerType, subscriptionIds value." + "description": "Values for the filterEntity for comparison. Such as offerType values." } } }, From 753f47b59d4cd5254b8e89ad529b6d3e2bbb2153 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Wed, 24 May 2023 17:12:10 -0700 Subject: [PATCH 060/158] Adding APIs to manage subscription List for SharedQuotaEntity. --- .../2023-06-01-preview/groupquota.json | 260 +++++++++++++++++- 1 file changed, 257 insertions(+), 3 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 85ee3f98e4db..471fd5af695a 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -281,6 +281,236 @@ } } }, + "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/subscriptions": { + "put": { + "tags": [ + "SharedQuotaEntities-Subscriptions" + ], + "summary": "Adds subscription(s) to the sharedQuotaEntity.", + "description": "Adds list of subscriptions to sharedQuotaEntity.", + "operationId": "SharedQuotaEntitiesSubscriptionsAdd_CreateOrUpdate", + "x-ms-examples": { + "GroupQuotaLimits_Put_Subscriptions": { + "$ref": "./examples/PutSharedQuotaEntitySubscriptions.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "SubscriptionListForSharedQuotaEntity", + "in": "body", + "description": "TThe List of subscriptions to add to SharedQuotaEntity.", + "schema": { + "$ref": "#/definitions/SubscriptionList" + } + } + ], + "responses": { + "200": { + "description": "OK, Create or Update", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + }, + "201": { + "description": "Request Accepted, , Create or Update", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int64" + }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers. New guidelines - https://github.com/microsoft/api-guidelines/blob/vNext/Guidelines.md#131-resource-based-long-running-operations-relo", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "SharedQuotaEntities-Subscriptions" + ], + "summary": "Updates a the sharedQuotaEntity with the subscriptions to add to the subscriptions list.", + "description": "Updates a the sharedQuotaEntity with the subscriptions to add to the subscriptions list.", + "operationId": "SharedQuotaEntitiesSubscriptions_Update", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/PatchSharedQuotaEntitySubscriptionsAdd.json" + } + }, + "x-ms-long-running-operation": true, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "SharedQuotaEntityPatchRequest", + "in": "body", + "description": "The List of subscriptions to add to SharedQuotaEntity.", + "schema": { + "$ref": "#/definitions/SubscriptionList" + } + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int64" + }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "default": { + "description": "Bad Request", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "SharedQuotaEntities-Subscriptions" + ], + "summary": "Gets sharedQuotaEntity Subscription List for the SharedQuotaEntity name passed.", + "description": "Gets sharedQuotaEntity Subscription List for the SharedQuotaEntity name passed.", + "operationId": "SharedQuotaEntitiesSubscriptions_GetList", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/GetSharedQuotaEntitySubscriptions.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "SharedQuotaEntitySubscriptionDeleteequest", + "in": "body", + "description": "The List of subscriptions to remove from SharedQuotaEntity.", + "schema": { + "$ref": "#/definitions/SubscriptionList" + } + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/SharedQuotaEntity" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + }, + "delete": { + "tags": [ + "SharedQuotaEntities-Subscriptions" + ], + "summary": "Removes the subscription from sharedQuotaEntity.", + "description": "Removes the subscription from sharedQuotaEntity. It will return the remaining subscriptions in the sharedQuotaEntity.", + "operationId": "SharedQuotaEntities_Delete", + "x-ms-examples": { + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/DeleteSharedQuotaEntitySubscriptions.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "SharedQuotaEntityPatchRequest", + "in": "body", + "description": "The List of subscriptions to remove from SharedQuotaEntity.", + "schema": { + "$ref": "#/definitions/SubscriptionList" + } + } + ], + "responses": { + "200": { + "description": "OK." + }, + "204": { + "description": "No Content." + }, + "default": { + "description": "Error", + "schema": { + "$ref": "#/definitions/ErrorContent" + } + } + } + } + }, "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits/{resourceName}": { "put": { "tags": [ @@ -1371,7 +1601,6 @@ "type": "object", "description": "Share Quota Entity list.", "properties": { - "type": "object", "value": { "type": "array", "description": "Subscription groupQuotaRequests list.", @@ -1392,13 +1621,17 @@ "x-ms-azure-resource": true, "properties": { "subscriptionFilters": { - "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand.", + "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand. Based on the filter the subscriptions will be automatically added to SharedQuotaEntity.", "$ref": "#/definitions/Filters" }, "subsscriptionIds": { - "description": "List of subscriptions included in the ShareQuotaEntity.", + "description": "List of subscriptions included in the ShareQuotaEntity. It can be null at the time of creation or a list of subscriptions can be passed.", "$ref": "#/definitions/subscriptionIdList" }, + "attributes": { + "description": "List of atrribute included in the ShareQuotaEntity. The attributes will validate the subscriptions to add to the SharedQuotaEntity, if they satisfy the conditions, else an error will be returned.", + "$ref": "#/definitions/AttributeList" + }, "provisioningState": { "description": "Provisioning state of the operation.", "$ref": "#/definitions/RequestState", @@ -1419,6 +1652,27 @@ "modelAsString": true } }, + "Attribute": { + "type": "object", + "properties": { + "attribute": { + "$ref": "#/definitions/AttributeType", + "description": "The attribute type." + }, + "value": { + "type": "string", + "description": "The value for the attribute." + } + } + }, + "AttributeList": { + "type": "array", + "description": "Attributes List for the SharedQuotaEntity.", + "items": { + "$ref": "#/definitions/Attribute", + "description": "The attribute type and corresponding value." + } + }, "subscriptionIdList": { "type": "array", "description": "List of subscrtionIds.", From 1c44846dd0c4b5de414db447e3feeb554e2082c2 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Wed, 24 May 2023 23:05:04 -0700 Subject: [PATCH 061/158] Adding APIs to manage subscription List for SharedQuotaEntity. comments update for Pt vs Patch. --- .../preview/2023-06-01-preview/groupquota.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 471fd5af695a..61d88fa93de1 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -281,13 +281,13 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/subscriptions": { + "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/subscriptionsToSharedQuotaEntity": { "put": { "tags": [ "SharedQuotaEntities-Subscriptions" ], "summary": "Adds subscription(s) to the sharedQuotaEntity.", - "description": "Adds list of subscriptions to sharedQuotaEntity.", + "description": "Adds list of subscriptions to sharedQuotaEntity. Should it overwrite the exitsing subscritionList, as per put? Patch is to add, delete is for removing the subscripting from list.", "operationId": "SharedQuotaEntitiesSubscriptionsAdd_CreateOrUpdate", "x-ms-examples": { "GroupQuotaLimits_Put_Subscriptions": { From 0ef05d80735b6a7bb243547a4035ab702338cafe Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 25 May 2023 11:30:25 -0700 Subject: [PATCH 062/158] Fixing comments. --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 61d88fa93de1..b2f4f9e24c17 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -71,7 +71,7 @@ } }, "201": { - "description": "Request Accepted, , Create or Update", + "description": "Request Accepted, Create or Update", "headers": { "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", From 943035eefb8a9f2e8a8bae5d4560ac11808e3d2f Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 25 May 2023 12:13:28 -0700 Subject: [PATCH 063/158] Schema Fix. --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index b2f4f9e24c17..4150b9a988c5 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1620,6 +1620,7 @@ "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", "x-ms-azure-resource": true, "properties": { + "type": "object", "subscriptionFilters": { "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand. Based on the filter the subscriptions will be automatically added to SharedQuotaEntity.", "$ref": "#/definitions/Filters" From 22de962bbecae6fab22c520ac5b72c8b90b759c2 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 25 May 2023 14:06:53 -0700 Subject: [PATCH 064/158] Updating Patch request body. Make id, name type readonly. --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 4150b9a988c5..8545acfafc82 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -127,7 +127,7 @@ "in": "body", "description": "The SharedQuotaEntity Patch Request.", "schema": { - "$ref": "#/definitions/SharedQuotaEntityBase" + "$ref": "#/definitions/SharedQuotaEntity" } } ], @@ -1713,7 +1713,6 @@ }, "properties": { "title": "Properties", - "x-ms-client-flatten": true, "type": "object", "$ref": "#/definitions/SharedQuotaEntityBase" } From 7afdf77e97e8db0ca30131b9fc2e419ff83a25b1 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 25 May 2023 14:47:06 -0700 Subject: [PATCH 065/158] Fix linter errors. --- .../2023-06-01-preview/groupquota.json | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 8545acfafc82..e548f385c8f9 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -310,7 +310,7 @@ "in": "body", "description": "TThe List of subscriptions to add to SharedQuotaEntity.", "schema": { - "$ref": "#/definitions/SubscriptionList" + "$ref": "#/definitions/subscriptionIdList" } } ], @@ -378,7 +378,7 @@ "in": "body", "description": "The List of subscriptions to add to SharedQuotaEntity.", "schema": { - "$ref": "#/definitions/SubscriptionList" + "$ref": "#/definitions/subscriptionIdList" } } ], @@ -386,7 +386,7 @@ "200": { "description": "OK.", "schema": { - "$ref": "#/definitions/SharedQuotaEntity" + "$ref": "#/definitions/subscriptionIdList" } }, "202": { @@ -445,7 +445,7 @@ "in": "body", "description": "The List of subscriptions to remove from SharedQuotaEntity.", "schema": { - "$ref": "#/definitions/SubscriptionList" + "$ref": "#/definitions/subscriptionIdList" } } ], @@ -453,7 +453,7 @@ "200": { "description": "OK.", "schema": { - "$ref": "#/definitions/SharedQuotaEntity" + "$ref": "#/definitions/subscriptionIdList" } }, "default": { @@ -463,7 +463,9 @@ } } } - }, + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/subscriptionsToSharedQuotaEntity/{subscriptionId}": { "delete": { "tags": [ "SharedQuotaEntities-Subscriptions" @@ -487,12 +489,8 @@ "$ref": "#/parameters/apiVersionParameter" }, { - "name": "SharedQuotaEntityPatchRequest", - "in": "body", - "description": "The List of subscriptions to remove from SharedQuotaEntity.", - "schema": { - "$ref": "#/definitions/SubscriptionList" - } + "$ref": "#/parameters/SubscriptionIdInParameters" { + " } ], "responses": { From cc9398bcb58072b35126d2fc34507657b4ba7a7d Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 25 May 2023 14:48:27 -0700 Subject: [PATCH 066/158] Schema Fix. --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index e548f385c8f9..5dc23d6e6c13 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -489,8 +489,7 @@ "$ref": "#/parameters/apiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdInParameters" { - " + "$ref": "#/parameters/SubscriptionIdInParameters" } ], "responses": { From 05c253a83b797d04b4d69354e5b281b78fa7a3f6 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 25 May 2023 16:45:15 -0700 Subject: [PATCH 067/158] Fixng Patch response. --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 5dc23d6e6c13..0e8a5fbf0504 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -318,7 +318,7 @@ "200": { "description": "OK, Create or Update", "schema": { - "$ref": "#/definitions/SharedQuotaEntity" + "$ref": "#/definitions/subscriptionIdList" } }, "201": { From 77305d83e2401efb5aa59e56d1b5e542ea5cc50a Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 25 May 2023 16:58:09 -0700 Subject: [PATCH 068/158] Spell fix. --- .../preview/2023-06-01-preview/groupquota.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 0e8a5fbf0504..dc283185443c 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -287,7 +287,7 @@ "SharedQuotaEntities-Subscriptions" ], "summary": "Adds subscription(s) to the sharedQuotaEntity.", - "description": "Adds list of subscriptions to sharedQuotaEntity. Should it overwrite the exitsing subscritionList, as per put? Patch is to add, delete is for removing the subscripting from list.", + "description": "Adds list of subscriptions to sharedQuotaEntity. Should it overwrite the existing subscriptionList, as per put? Patch is to add, delete is for removing the subscripting from list.", "operationId": "SharedQuotaEntitiesSubscriptionsAdd_CreateOrUpdate", "x-ms-examples": { "GroupQuotaLimits_Put_Subscriptions": { @@ -1622,12 +1622,12 @@ "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand. Based on the filter the subscriptions will be automatically added to SharedQuotaEntity.", "$ref": "#/definitions/Filters" }, - "subsscriptionIds": { + "subscriptionIds": { "description": "List of subscriptions included in the ShareQuotaEntity. It can be null at the time of creation or a list of subscriptions can be passed.", "$ref": "#/definitions/subscriptionIdList" }, "attributes": { - "description": "List of atrribute included in the ShareQuotaEntity. The attributes will validate the subscriptions to add to the SharedQuotaEntity, if they satisfy the conditions, else an error will be returned.", + "description": "List of attribute included in the ShareQuotaEntity. The attributes will validate the subscriptions to add to the SharedQuotaEntity, if they satisfy the conditions, else an error will be returned.", "$ref": "#/definitions/AttributeList" }, "provisioningState": { @@ -1673,7 +1673,7 @@ }, "subscriptionIdList": { "type": "array", - "description": "List of subscrtionIds.", + "description": "List of subscriptionIds.", "items": { "type": "string", "description": "SubscriptionId." From 05586d6e3cc0dd7da107a44c45037e373538b0e8 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 25 May 2023 17:10:14 -0700 Subject: [PATCH 069/158] Fixing ProvisioningStateSpecifiedForLROPatch. --- .../2023-06-01-preview/groupquota.json | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index dc283185443c..e6749f854035 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1672,11 +1672,22 @@ } }, "subscriptionIdList": { - "type": "array", - "description": "List of subscriptionIds.", - "items": { - "type": "string", - "description": "SubscriptionId." + "x-ms-azure-resource": true, + "properties": { + "provisioningState": { + "type": "string", + "description": "Provisioning state", + "$ref": "#/definitions/RequestState", + "readOnly": true + }, + "subscriptionIds": { + "type": "array", + "description": "List of subscriptionIds.", + "items": { + "type": "string", + "description": "SubscriptionId." + } + } } }, "SharedQuotaEntity": { From 2c10d3945239204902c69b6f6c197e167983d791 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 25 May 2023 17:17:47 -0700 Subject: [PATCH 070/158] Fixing ProvisioningStateSpecifiedForLROPatch. --- .../preview/2023-06-01-preview/groupquota.json | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index e6749f854035..33c4ea7aa6d1 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -439,14 +439,6 @@ }, { "$ref": "#/parameters/apiVersionParameter" - }, - { - "name": "SharedQuotaEntitySubscriptionDeleteequest", - "in": "body", - "description": "The List of subscriptions to remove from SharedQuotaEntity.", - "schema": { - "$ref": "#/definitions/subscriptionIdList" - } } ], "responses": { @@ -1391,6 +1383,10 @@ }, "assignedToSubscriptions": { "$ref": "#/definitions/AssignedQuotaToSubscriptionList" + }, + "provisioningState": { + "$ref": "#/definitions/RequestState", + "readOnly": true } } }, @@ -1442,7 +1438,7 @@ }, "properties": { "type": "object", - "status": { + "provisioningState ": { "$ref": "#/definitions/RequestState", "readOnly": true }, From e18028ca8cc5b77e3e7bf5cc90fd2f5dcf10d56c Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 25 May 2023 17:31:16 -0700 Subject: [PATCH 071/158] Fixing ProvisioningStateSpecifiedForLROPatch. --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 33c4ea7aa6d1..da60931d6ecc 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1411,6 +1411,7 @@ "SubscriptionQuotaAllocationRequest": { "type": "object", "description": "The new quota limit for the subscription.", + "x-ms-azure-resource": true, "properties": { "id": { "description": "The operation status identifier. It should match what is used to GET the operation resource.", From d5d11129dfd21fe29e6e773a1ddabfe03e16e51b Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 25 May 2023 17:42:55 -0700 Subject: [PATCH 072/158] Fixing ProvisioningStateSpecifiedForLROPatch. --- .../preview/2023-06-01-preview/groupquota.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index da60931d6ecc..6b7667547e80 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1505,6 +1505,10 @@ "type": "string", "readOnly": true }, + "provisioningState": { + "$ref": "#/definitions/RequestState", + "readOnly": true + }, "properties": { "description": "Group Quota properties for the specified resource.", "$ref": "#/definitions/SubscriptionQuotaDetails" From f7301145db67efa0bf2d7735253b44f249186bdc Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 25 May 2023 17:52:32 -0700 Subject: [PATCH 073/158] Fixng XmsIdentifierValidation --- .../preview/2023-06-01-preview/groupquota.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 6b7667547e80..5bf011900825 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1661,7 +1661,10 @@ "value": { "type": "string", "description": "The value for the attribute." - } + }, + "x-ms-identifiers": [ + "attribute" + ] } }, "AttributeList": { From 7f6d25ffc2c8d27e041a79fc83b4ee63d42ee666 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 30 May 2023 10:59:57 -0700 Subject: [PATCH 074/158] Updating operationsId. --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 5bf011900825..6dc38ad693e5 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -464,7 +464,7 @@ ], "summary": "Removes the subscription from sharedQuotaEntity.", "description": "Removes the subscription from sharedQuotaEntity. It will return the remaining subscriptions in the sharedQuotaEntity.", - "operationId": "SharedQuotaEntities_Delete", + "operationId": "SharedQuotaEntitiesSubscriptions_Delete", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { "$ref": "./examples/DeleteSharedQuotaEntitySubscriptions.json" From efc53457cfe6f30e33cb0866f0cf81aa2120c3c6 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 30 May 2023 11:08:26 -0700 Subject: [PATCH 075/158] Remove object from properties. --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 6dc38ad693e5..629e98631d87 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1618,7 +1618,6 @@ "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", "x-ms-azure-resource": true, "properties": { - "type": "object", "subscriptionFilters": { "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand. Based on the filter the subscriptions will be automatically added to SharedQuotaEntity.", "$ref": "#/definitions/Filters" From fbd9b8b81b5afcc8f085302e8cacbd69d66a49f8 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 30 May 2023 11:16:11 -0700 Subject: [PATCH 076/158] Adding Id, name, type as top level property. --- .../2023-06-01-preview/groupquota.json | 36 ++++++++++++++----- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 629e98631d87..6d3d3ac84342 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1676,19 +1676,37 @@ }, "subscriptionIdList": { "x-ms-azure-resource": true, - "properties": { - "provisioningState": { + "type": "object", + "protperties": { + "id": { + "description": "The resource ID.", "type": "string", - "description": "Provisioning state", - "$ref": "#/definitions/RequestState", "readOnly": true }, - "subscriptionIds": { - "type": "array", - "description": "List of subscriptionIds.", - "items": { + "type": { + "description": "The type.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The resource name.", + "type": "string", + "readOnly": true + }, + "properties": { + "provisioningState": { "type": "string", - "description": "SubscriptionId." + "description": "Provisioning state", + "$ref": "#/definitions/RequestState", + "readOnly": true + }, + "subscriptionIds": { + "type": "array", + "description": "List of subscriptionIds.", + "items": { + "type": "string", + "description": "SubscriptionId." + } } } } From be43b1a1b7fc1a2bcbedf26e3b331fcaf92b0e11 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 30 May 2023 11:18:32 -0700 Subject: [PATCH 077/158] Adding "x-ms-identifiers" to attributeList --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 6d3d3ac84342..8bf1fe00f7dc 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1672,7 +1672,8 @@ "items": { "$ref": "#/definitions/Attribute", "description": "The attribute type and corresponding value." - } + }, + "x-ms-identifiers": [] }, "subscriptionIdList": { "x-ms-azure-resource": true, From f21f6c4d83ecf65bbedd28713d3595097a80bd73 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 30 May 2023 11:23:13 -0700 Subject: [PATCH 078/158] Making all objects definition starting with upper case name. --- .../2023-06-01-preview/groupquota.json | 58 +++++++++---------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 8bf1fe00f7dc..9ba25a64d306 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -52,7 +52,7 @@ "$ref": "#/parameters/SharedQuotaEntityNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "SharedQuotaEntityRequest", @@ -120,7 +120,7 @@ "$ref": "#/parameters/SharedQuotaEntityNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "SharedQuotaEntityPatchRequest", @@ -187,7 +187,7 @@ "$ref": "#/parameters/SharedQuotaEntityNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -225,7 +225,7 @@ "$ref": "#/parameters/SharedQuotaEntityNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -262,7 +262,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -303,14 +303,14 @@ "$ref": "#/parameters/SharedQuotaEntityNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "SubscriptionListForSharedQuotaEntity", "in": "body", "description": "TThe List of subscriptions to add to SharedQuotaEntity.", "schema": { - "$ref": "#/definitions/subscriptionIdList" + "$ref": "#/definitions/SubscriptionIdList" } } ], @@ -318,7 +318,7 @@ "200": { "description": "OK, Create or Update", "schema": { - "$ref": "#/definitions/subscriptionIdList" + "$ref": "#/definitions/SubscriptionIdList" } }, "201": { @@ -371,14 +371,14 @@ "$ref": "#/parameters/SharedQuotaEntityNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "SharedQuotaEntityPatchRequest", "in": "body", "description": "The List of subscriptions to add to SharedQuotaEntity.", "schema": { - "$ref": "#/definitions/subscriptionIdList" + "$ref": "#/definitions/SubscriptionIdList" } } ], @@ -386,7 +386,7 @@ "200": { "description": "OK.", "schema": { - "$ref": "#/definitions/subscriptionIdList" + "$ref": "#/definitions/SubscriptionIdList" } }, "202": { @@ -438,14 +438,14 @@ "$ref": "#/parameters/SharedQuotaEntityNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK.", "schema": { - "$ref": "#/definitions/subscriptionIdList" + "$ref": "#/definitions/SubscriptionIdList" } }, "default": { @@ -478,7 +478,7 @@ "$ref": "#/parameters/SharedQuotaEntityNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdInParameters" @@ -528,7 +528,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "groupQuotaRequest", @@ -602,7 +602,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "groupQuotaRequest", @@ -675,7 +675,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -721,7 +721,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -764,7 +764,7 @@ "$ref": "#/parameters/SharedQuotaEntityNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -810,7 +810,7 @@ "$ref": "#/parameters/RequestIdInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -856,7 +856,7 @@ "$ref": "#/parameters/SharedQuotaEntityNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -907,7 +907,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "allocateQuotaRequest", @@ -985,7 +985,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "allocateQuotaRequest", @@ -1062,7 +1062,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -1111,7 +1111,7 @@ "$ref": "#/parameters/AllocationIdInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -1157,7 +1157,7 @@ "$ref": "#/parameters/SharedQuotaEntityNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -1624,7 +1624,7 @@ }, "subscriptionIds": { "description": "List of subscriptions included in the ShareQuotaEntity. It can be null at the time of creation or a list of subscriptions can be passed.", - "$ref": "#/definitions/subscriptionIdList" + "$ref": "#/definitions/SubscriptionIdList" }, "attributes": { "description": "List of attribute included in the ShareQuotaEntity. The attributes will validate the subscriptions to add to the SharedQuotaEntity, if they satisfy the conditions, else an error will be returned.", @@ -1675,7 +1675,7 @@ }, "x-ms-identifiers": [] }, - "subscriptionIdList": { + "SubscriptionIdList": { "x-ms-azure-resource": true, "type": "object", "protperties": { @@ -1878,7 +1878,7 @@ "description": "The SharedQuotaEntity name. The name should be unique for the provided context tenantId/MgId.", "x-ms-parameter-location": "method" }, - "apiVersionParameter": { + "ApiVersionParameter": { "name": "api-version", "in": "query", "required": true, From e8baf1fa293c98900213d7a9accca3297ad89a2a Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 30 May 2023 11:29:25 -0700 Subject: [PATCH 079/158] Fix spelling. --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 9ba25a64d306..46725df6ef23 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1678,7 +1678,7 @@ "SubscriptionIdList": { "x-ms-azure-resource": true, "type": "object", - "protperties": { + "properties": { "id": { "description": "The resource ID.", "type": "string", From bfb7176c420576a85e27a559aaea42a0d46239da Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Wed, 31 May 2023 15:45:59 -0700 Subject: [PATCH 080/158] Fixing Spelling. --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 46725df6ef23..78e3ef430767 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1627,7 +1627,7 @@ "$ref": "#/definitions/SubscriptionIdList" }, "attributes": { - "description": "List of attribute included in the ShareQuotaEntity. The attributes will validate the subscriptions to add to the SharedQuotaEntity, if they satisfy the conditions, else an error will be returned.", + "description": "List of attributes included in the ShareQuotaEntity. The attributes will validate the subscriptions to add to the SharedQuotaEntity, if they satisfy the conditions, else an error will be returned.", "$ref": "#/definitions/AttributeList" }, "provisioningState": { From 0ead5603c76a39ec6bc41b01e545df289461d61b Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Wed, 31 May 2023 16:21:16 -0700 Subject: [PATCH 081/158] Removing extra comma and spaces. --- .../preview/2023-06-01-preview/groupquota.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 78e3ef430767..01b8d57b61ad 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -322,7 +322,7 @@ } }, "201": { - "description": "Request Accepted, , Create or Update", + "description": "Request Accepted, Create or Update", "headers": { "Retry-After": { "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", @@ -921,7 +921,7 @@ ], "responses": { "200": { - "description": "OK. , Create or Update", + "description": "OK. Create or Update", "schema": { "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" } From f3bc8f849d33b37b95b3331d2708ec5f372ed944 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 1 Jun 2023 15:27:13 -0700 Subject: [PATCH 082/158] Updating SharedQuotaEntity AdditionalAttributes" properties. Todo: Remove unused objects Filters. --- .../2023-06-01-preview/groupquota.json | 87 ++++++++++++++++--- 1 file changed, 77 insertions(+), 10 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 01b8d57b61ad..efa71fb52713 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1618,9 +1618,9 @@ "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", "x-ms-azure-resource": true, "properties": { - "subscriptionFilters": { - "description": "Placeholder for filter. It will be expanded to include the list of operator, condition, operand. Based on the filter the subscriptions will be automatically added to SharedQuotaEntity.", - "$ref": "#/definitions/Filters" + "sdditionalAttributes": { + "description": "Additional attributes to allow subscription, which can be added to the subscriptionIds.", + "$ref": "#/definitions/AdditionalAttributes" }, "subscriptionIds": { "description": "List of subscriptions included in the ShareQuotaEntity. It can be null at the time of creation or a list of subscriptions can be passed.", @@ -1695,6 +1695,7 @@ "readOnly": true }, "properties": { + "type": "object", "provisioningState": { "type": "string", "description": "Provisioning state", @@ -1748,6 +1749,73 @@ } } }, + "BillingAccountId": { + "type": "object", + "properties": { + "id": { + "type": "string" + } + } + }, + "EnvironmentType": { + "type": "string", + "description": "Environment name.", + "enum": [ + "Non Production", + "Production" + ], + "x-ms-enum": { + "name": "EnvironmentType", + "modelAsString": true + } + }, + "Environment": { + "type": "object", + "$ref": "#/definitions/EnvironmentType" + }, + "GroupingIdType": { + "type": "string", + "description": "GroupingId type.", + "enum": [ + "MangmentGroupId", + "ServiceTreeId" + ], + "x-ms-enum": { + "name": "GroupingIdType", + "modelAsString": true + } + }, + "GroupingId": { + "description": "The grouping Id for the group quota. It can be MangmentGroup Id or ServiceTreeId if applicable. ", + "type": "object", + "properties": { + "groupingIdType": { + "$ref": "#/definitions/GroupingIdType" + }, + "value": { + "description": "GroupId value based on the groupingType selected - ManagmentGroup Id or ServiceTreeId.", + "type": "string" + } + } + }, + "AdditionalAttributes": { + "description": "Additional attribute to allow subscriptions to be part of the GroupQuota.", + "type": "object", + "properties": { + "billingAccountId": { + "$ref": "#/definitions/BillingAccountId" + }, + "groupId": { + "$ref": "#/definitions/GroupingId" + }, + "enviornment": { + "$ref": "#/definitions/Environment" + } + }, + "required": [ + "billingAccountId" + ] + }, "Filter": { "type": "object", "description": "Filter for SharedQuota Entity.", @@ -1756,7 +1824,9 @@ "type": "string", "description": "Name of the entity for filter, such as offerType.", "enum": [ - "offerType" + "billingId", + "groupId", + "environment" ], "x-ms-enum": { "name": "SubscriptionFilterType", @@ -1775,12 +1845,9 @@ "modelAsString": true } }, - "filterValues": { - "type": "array", - "items": { - "type": "string", - "description": "Values for the filterEntity for comparison. Such as offerType values." - } + "filterValue": { + "type": "string", + "description": "Values for the filterEntity for comparison." } }, "required": [ From ca05d4e5c72acc9a6b391340a763110f585414d1 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 1 Jun 2023 15:28:06 -0700 Subject: [PATCH 083/158] Fix Typo. --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index efa71fb52713..cbdf821e332d 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1618,7 +1618,7 @@ "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", "x-ms-azure-resource": true, "properties": { - "sdditionalAttributes": { + "additionalAttributes": { "description": "Additional attributes to allow subscription, which can be added to the subscriptionIds.", "$ref": "#/definitions/AdditionalAttributes" }, From df48d1aa9c46943527df4f8d22ce16f1d94cad67 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 1 Jun 2023 15:31:17 -0700 Subject: [PATCH 084/158] Remove duplicate attributes. --- .../preview/2023-06-01-preview/groupquota.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index cbdf821e332d..9dceed0b36d2 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1626,10 +1626,6 @@ "description": "List of subscriptions included in the ShareQuotaEntity. It can be null at the time of creation or a list of subscriptions can be passed.", "$ref": "#/definitions/SubscriptionIdList" }, - "attributes": { - "description": "List of attributes included in the ShareQuotaEntity. The attributes will validate the subscriptions to add to the SharedQuotaEntity, if they satisfy the conditions, else an error will be returned.", - "$ref": "#/definitions/AttributeList" - }, "provisioningState": { "description": "Provisioning state of the operation.", "$ref": "#/definitions/RequestState", From e5b044e82130d2a1faa837403fbcf88591a326fc Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 1 Jun 2023 17:34:29 -0700 Subject: [PATCH 085/158] Updated based on suggestions. --- .../preview/2023-06-01-preview/groupquota.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 9dceed0b36d2..10deb8955c85 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1771,9 +1771,8 @@ }, "GroupingIdType": { "type": "string", - "description": "GroupingId type.", + "description": "GroupingId type. More types of groupIds can be supported in future. MGID is already in the URI, so it's not needed and cause errors, if the MGId in Uri is different properties.'", "enum": [ - "MangmentGroupId", "ServiceTreeId" ], "x-ms-enum": { @@ -1799,6 +1798,7 @@ "type": "object", "properties": { "billingAccountId": { + "description": "BillingAccountId. The customer can make mistake and select a billing account ID not belonging to MG. Let us think from the end user perspective. Make it simpler and less error prone, where the customer is struggling to provide the right configuration.", "$ref": "#/definitions/BillingAccountId" }, "groupId": { From 42a904f421821ac5ac29b5641d0475dd40ad12a9 Mon Sep 17 00:00:00 2001 From: Vincent Vole Date: Mon, 5 Jun 2023 13:21:38 -0700 Subject: [PATCH 086/158] spell check --- custom-words.txt | 1 + .../preview/2023-06-01-preview/groupquota.json | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/custom-words.txt b/custom-words.txt index 53b7bdc98fa1..63d689cdd548 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -1318,6 +1318,7 @@ metricnamespace Metric's metricsadvisor metrictype +mgid mgmt MHSM MHSMIP diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 10deb8955c85..6e0e92326353 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1781,14 +1781,14 @@ } }, "GroupingId": { - "description": "The grouping Id for the group quota. It can be MangmentGroup Id or ServiceTreeId if applicable. ", + "description": "The grouping Id for the group quota. It can be ManagementGroup Id or ServiceTreeId if applicable. ", "type": "object", "properties": { "groupingIdType": { "$ref": "#/definitions/GroupingIdType" }, "value": { - "description": "GroupId value based on the groupingType selected - ManagmentGroup Id or ServiceTreeId.", + "description": "GroupId value based on the groupingType selected - ManagementGroup Id or ServiceTreeId.", "type": "string" } } @@ -1804,7 +1804,7 @@ "groupId": { "$ref": "#/definitions/GroupingId" }, - "enviornment": { + "environment": { "$ref": "#/definitions/Environment" } }, From 4c2d4bf1fdbe0ef8df8805173b918846c1263255 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 5 Jun 2023 17:02:17 -0700 Subject: [PATCH 087/158] Updated to new APIs - GroupQuotas --- .../2023-06-01-preview/groupquota.json | 406 +++++++----------- 1 file changed, 153 insertions(+), 253 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 10deb8955c85..81cc731f74b1 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -5,17 +5,11 @@ "version": "2023-06-01-preview", "description": "Microsoft Azure Quota Resource Provider" }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "consumes": [ "application/json" ], + "produces": [ "application/json" ], "security": [ { - "azure_auth": [ - "user_impersonation" - ] + "azure_auth": [ "user_impersonation" ] } ], "securityDefinitions": { @@ -32,9 +26,7 @@ "paths": { "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}": { "put": { - "tags": [ - "SharedQuotaEntity" - ], + "tags": [ "SharedQuotaEntity" ], "summary": "Creates a new sharedQuotaEntity for the name passed.", "description": "Creates a new sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", "operationId": "SharedQuotaEntities_CreateOrUpdate", @@ -52,7 +44,7 @@ "$ref": "#/parameters/SharedQuotaEntityNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/apiVersionParameter" }, { "name": "SharedQuotaEntityRequest", @@ -100,9 +92,7 @@ } }, "patch": { - "tags": [ - "SharedQuotaEntity" - ], + "tags": [ "SharedQuotaEntity" ], "summary": "Updates a new sharedQuotaEntity for the name passed.", "description": "Updates the sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked. \n Any change in the filters will be applicable to the future quota assignments, existing quota assigned to subscriptions from the sharedQuotaEntity remains unchanged.", "operationId": "SharedQuotaEntities_Update", @@ -120,7 +110,7 @@ "$ref": "#/parameters/SharedQuotaEntityNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/apiVersionParameter" }, { "name": "SharedQuotaEntityPatchRequest", @@ -168,9 +158,7 @@ } }, "get": { - "tags": [ - "SharedQuotaEntity" - ], + "tags": [ "SharedQuotaEntity" ], "summary": "Gets sharedQuotaEntity for the name passed.", "description": "Gets the sharedQuotaEntity for the name passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", "operationId": "SharedQuotaEntities_Get", @@ -187,7 +175,7 @@ "$ref": "#/parameters/SharedQuotaEntityNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/apiVersionParameter" } ], "responses": { @@ -200,15 +188,13 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorContent" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } }, "delete": { - "tags": [ - "SharedQuotaEntity" - ], + "tags": [ "SharedQuotaEntity" ], "summary": "Deletes sharedQuotaEntity for the name passed.", "description": "Deletes the sharedQuotaEntity for the name passed. All the remaining shareQuota in the sharedQuotaEntity will be lost.", "operationId": "SharedQuotaEntities_Delete", @@ -225,7 +211,7 @@ "$ref": "#/parameters/SharedQuotaEntityNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/apiVersionParameter" } ], "responses": { @@ -238,7 +224,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorContent" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -246,9 +232,7 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities": { "get": { - "tags": [ - "SharedQuotaEntity" - ], + "tags": [ "SharedQuotaEntity" ], "summary": "Lists sharedQuotaEntities for the scope passed.", "description": "Lists sharedQuotaEntities for the scope passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", "operationId": "SharedQuotaEntities_List", @@ -262,7 +246,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/apiVersionParameter" } ], "responses": { @@ -275,26 +259,24 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorContent" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } } }, "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/subscriptionsToSharedQuotaEntity": { - "put": { - "tags": [ - "SharedQuotaEntities-Subscriptions" - ], - "summary": "Adds subscription(s) to the sharedQuotaEntity.", - "description": "Adds list of subscriptions to sharedQuotaEntity. Should it overwrite the existing subscriptionList, as per put? Patch is to add, delete is for removing the subscripting from list.", - "operationId": "SharedQuotaEntitiesSubscriptionsAdd_CreateOrUpdate", + + "get": { + "tags": [ "SharedQuotaEntities-Subscription" ], + "summary": "Gets sharedQuotaEntity Subscription List for the SharedQuotaEntity name passed.", + "description": "Gets sharedQuotaEntity Subscription List for the SharedQuotaEntity name passed.", + "operationId": "SharedQuotaEntitiesSubscriptions_GetList", "x-ms-examples": { - "GroupQuotaLimits_Put_Subscriptions": { - "$ref": "./examples/PutSharedQuotaEntitySubscriptions.json" + "GroupQuotaLimits_Put_Request_ForCompute": { + "$ref": "./examples/GetSharedQuotaEntitySubscriptions.json" } }, - "x-ms-long-running-operation": true, "parameters": [ { "$ref": "#/parameters/MgIdInParameters" @@ -303,44 +285,53 @@ "$ref": "#/parameters/SharedQuotaEntityNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "SubscriptionListForSharedQuotaEntity", - "in": "body", - "description": "TThe List of subscriptions to add to SharedQuotaEntity.", - "schema": { - "$ref": "#/definitions/SubscriptionIdList" - } + "$ref": "#/parameters/apiVersionParameter" } ], "responses": { "200": { - "description": "OK, Create or Update", + "description": "OK.", "schema": { "$ref": "#/definitions/SubscriptionIdList" } }, - "201": { - "description": "Request Accepted, Create or Update", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int64" - }, - "Location": { - "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers. New guidelines - https://github.com/microsoft/api-guidelines/blob/vNext/Guidelines.md#131-resource-based-long-running-operations-relo", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", - "type": "string" - } - }, + "default": { + "description": "Error", "schema": { - "$ref": "#/definitions/OperationsStatus" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/subscriptionsToSharedQuotaEntity/{subscriptionId}": { + "put": { + "tags": [ "SharedQuotaEntities-Subscription" ], + "summary": "Adds subscription to the sharedQuotaEntity.", + "description": "Adds a subscriptions to sharedQuotaEntity.", + "operationId": "SharedQuotaEntitiesSubscriptionsAdd_CreateOrUpdate", + "x-ms-examples": { + "GroupQuotaLimits_Put_Subscriptions": { + "$ref": "./examples/PutSharedQuotaEntitySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + } + ], + "responses": { + "200": { + "description": "OK, Create or Update" }, "default": { "description": "Error", @@ -351,18 +342,15 @@ } }, "patch": { - "tags": [ - "SharedQuotaEntities-Subscriptions" - ], - "summary": "Updates a the sharedQuotaEntity with the subscriptions to add to the subscriptions list.", - "description": "Updates a the sharedQuotaEntity with the subscriptions to add to the subscriptions list.", + "tags": [ "SharedQuotaEntities-Subscription" ], + "summary": "Updates the sharedQuotaEntity with the subscription to add to the subscriptions list.", + "description": "Updates the sharedQuotaEntity with the subscription to add to the subscriptions list.", "operationId": "SharedQuotaEntitiesSubscriptions_Update", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/PatchSharedQuotaEntitySubscriptionsAdd.json" + "$ref": "./examples/PatchSharedQuotaEntitySubscriptionAdd.json" } }, - "x-ms-long-running-operation": true, "parameters": [ { "$ref": "#/parameters/MgIdInParameters" @@ -371,15 +359,10 @@ "$ref": "#/parameters/SharedQuotaEntityNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/apiVersionParameter" }, { - "name": "SharedQuotaEntityPatchRequest", - "in": "body", - "description": "The List of subscriptions to add to SharedQuotaEntity.", - "schema": { - "$ref": "#/definitions/SubscriptionIdList" - } + "$ref": "#/parameters/SubscriptionIdInParameters" } ], "responses": { @@ -389,27 +372,6 @@ "$ref": "#/definitions/SubscriptionIdList" } }, - "202": { - "description": "Request Accepted", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int64" - }, - "Location": { - "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" - } - }, "default": { "description": "Bad Request", "schema": { @@ -418,16 +380,14 @@ } } }, - "get": { - "tags": [ - "SharedQuotaEntities-Subscriptions" - ], - "summary": "Gets sharedQuotaEntity Subscription List for the SharedQuotaEntity name passed.", - "description": "Gets sharedQuotaEntity Subscription List for the SharedQuotaEntity name passed.", - "operationId": "SharedQuotaEntitiesSubscriptions_GetList", + "delete": { + "tags": [ "SharedQuotaEntities-Subscription" ], + "summary": "Removes the subscription from sharedQuotaEntity.", + "description": "Removes the subscription from sharedQuotaEntity.", + "operationId": "SharedQuotaEntitiesSubscriptions_Delete", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/GetSharedQuotaEntitySubscriptions.json" + "$ref": "./examples/DeleteSharedQuotaEntitySubscriptions.json" } }, "parameters": [ @@ -438,36 +398,35 @@ "$ref": "#/parameters/SharedQuotaEntityNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" } ], "responses": { "200": { - "description": "OK.", - "schema": { - "$ref": "#/definitions/SubscriptionIdList" - } + "description": "OK." + }, + "204": { + "description": "No Content." }, "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorContent" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } - } - }, - "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/subscriptionsToSharedQuotaEntity/{subscriptionId}": { - "delete": { - "tags": [ - "SharedQuotaEntities-Subscriptions" - ], - "summary": "Removes the subscription from sharedQuotaEntity.", - "description": "Removes the subscription from sharedQuotaEntity. It will return the remaining subscriptions in the sharedQuotaEntity.", - "operationId": "SharedQuotaEntitiesSubscriptions_Delete", + }, + "get": { + "tags": [ "SharedQuotaEntities-Subscription" ], + "summary": "Checks if the subscription is in sharedQuotaEntity SubscriptionIdList.", + "description": "Checks if the subscription is in sharedQuotaEntity SubscriptionIdList.", + "operationId": "SharedQuotaEntitiesSubscription_Get", "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/DeleteSharedQuotaEntitySubscriptions.json" + "GroupQuotaLimits_Put_Subscription": { + "$ref": "./examples/DeleteSharedQuotaEntitySubscription.json" } }, "parameters": [ @@ -478,7 +437,7 @@ "$ref": "#/parameters/SharedQuotaEntityNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/apiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdInParameters" @@ -494,7 +453,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorContent" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -502,9 +461,7 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits/{resourceName}": { "put": { - "tags": [ - "GroupQuotaLimits" - ], + "tags": [ "GroupQuotaLimits" ], "summary": "Creates a new Group Quota request for a specific resources.", "description": "Creates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", "operationId": "GroupQuotaLimits_CreateOrUpdate", @@ -528,7 +485,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/apiVersionParameter" }, { "name": "groupQuotaRequest", @@ -576,9 +533,7 @@ } }, "patch": { - "tags": [ - "GroupQuotaLimits" - ], + "tags": [ "GroupQuotaLimits" ], "summary": "Creates/Updates a new Group Quota request for a specific resources.", "description": "Creates/Updates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status will be updated periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed,then the URI will change to Get URI and full details can be checked.", "operationId": "GroupQuotaLimits_Update", @@ -602,7 +557,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/apiVersionParameter" }, { "name": "groupQuotaRequest", @@ -650,9 +605,7 @@ } }, "get": { - "tags": [ - "GroupQuotaLimits" - ], + "tags": [ "GroupQuotaLimits" ], "summary": "Gets the resource groupQuotaLimits for the MGId.", "description": "Gets the resource groupQuotaLimits for the MGId. It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", "operationId": "GroupQuotaLimits_Get", @@ -675,7 +628,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/apiVersionParameter" } ], "responses": { @@ -688,7 +641,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorContent" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -696,9 +649,7 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits": { "get": { - "tags": [ - "GroupQuotaLimits" - ], + "tags": [ "GroupQuotaLimits" ], "summary": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope.", "description": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope. The scope can be - providers/Microsoft.Compute/locations/. The list elements will be same as the Get API - It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", "operationId": "GroupQuotaLimits_List", @@ -721,7 +672,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/apiVersionParameter" } ], "responses": { @@ -734,7 +685,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorContent" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -742,9 +693,7 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests": { "get": { - "tags": [ - "GroupQuota-Requests" - ], + "tags": [ "GroupQuota-Requests" ], "summary": "List the status of all GroupQuota requests.", "description": "List API to check the status of a GroupQuota requests by requestId. The groupQuotaRequest history is maintained for 1 year.", "operationId": "GroupQuota-Requests_List", @@ -764,7 +713,7 @@ "$ref": "#/parameters/SharedQuotaEntityNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/apiVersionParameter" } ], "responses": { @@ -777,7 +726,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorContent" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -785,9 +734,7 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests/{requestId}": { "get": { - "tags": [ - "GroupQuota-Requests" - ], + "tags": [ "GroupQuota-Requests" ], "summary": "Get the status of a single GroupQuota request by requestId.", "description": "Get API to check the status of a GroupQuota request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.", "operationId": "GroupQuota-Requests_Get", @@ -810,7 +757,7 @@ "$ref": "#/parameters/RequestIdInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/apiVersionParameter" } ], "responses": { @@ -823,7 +770,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorContent" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -831,9 +778,7 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations": { "get": { - "tags": [ - "SubscriptionQuota-Allocation" - ], + "tags": [ "SubscriptionQuota-Allocation" ], "summary": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location.", "description": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", "operationId": "ShareQuotaMGSubscription_List", @@ -856,7 +801,7 @@ "$ref": "#/parameters/SharedQuotaEntityNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/apiVersionParameter" } ], "responses": { @@ -869,7 +814,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorContent" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -877,9 +822,7 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations/{resourceName}": { "put": { - "tags": [ - "SubscriptionQuota-Allocation" - ], + "tags": [ "SubscriptionQuota-Allocation" ], "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern to check the status using Async polling as standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.", "description": "Request to assign a specific resource quota from group quota to a specific Subscription. The subscriptions can also reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, which means the maximum unused quota assigned back to MG groupQuota will be the groupQuota assigned to the subscriptions. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription.", "operationId": "GroupQuotaSubscriptionQuotaAllocation_CreateOrUpdate", @@ -907,7 +850,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/apiVersionParameter" }, { "name": "allocateQuotaRequest", @@ -921,7 +864,7 @@ ], "responses": { "200": { - "description": "OK. Create or Update", + "description": "OK. , Create or Update", "schema": { "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" } @@ -956,9 +899,7 @@ } }, "patch": { - "tags": [ - "SubscriptionQuota-Allocation" - ], + "tags": [ "SubscriptionQuota-Allocation" ], "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern with 202 response and status polling API.", "description": "Request to assign quota from group quota to a specific Subscription. The subscriptions and reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, using this API. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription(s).", "operationId": "GroupQuotaSubscriptionQuotaAllocation_Update", @@ -985,7 +926,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/apiVersionParameter" }, { "name": "allocateQuotaRequest", @@ -1034,9 +975,7 @@ } }, "get": { - "tags": [ - "SubscriptionQuota-Allocation" - ], + "tags": [ "SubscriptionQuota-Allocation" ], "summary": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName.", "description": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", "operationId": "GroupQuotaSubscriptionQuotaAllocation_Get", @@ -1062,7 +1001,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/apiVersionParameter" } ], "responses": { @@ -1075,7 +1014,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorContent" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -1083,9 +1022,7 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests/{allocationId}": { "get": { - "tags": [ - "Subscription-Quota-Allocation-Requests" - ], + "tags": [ "Subscription-Quota-Allocation-Requests" ], "operationId": "GroupQuotaSubscriptionQuotaAllocationRequests_Get", "summary": "Get the status of the quota allocation request for the subscriptionId.", "description": "Get the quota allocation request status for the subscriptionId by allocationId.", @@ -1111,7 +1048,7 @@ "$ref": "#/parameters/AllocationIdInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/apiVersionParameter" } ], "responses": { @@ -1124,7 +1061,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorContent" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -1132,9 +1069,7 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests": { "get": { - "tags": [ - "Subscription-Quota-Allocation-Requests" - ], + "tags": [ "Subscription-Quota-Allocation-Requests" ], "operationId": "SubscriptionGroupQuotaAllocationRequest_List", "summary": "Lists all the quota allocation requests.to subscriptions", "description": "Lists all the allocation requests.", @@ -1157,7 +1092,7 @@ "$ref": "#/parameters/SharedQuotaEntityNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/apiVersionParameter" } ], "responses": { @@ -1170,7 +1105,7 @@ "default": { "description": "Error", "schema": { - "$ref": "#/definitions/ErrorContent" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } } @@ -1283,7 +1218,7 @@ "readOnly": true }, "error": { - "$ref": "#/definitions/ErrorContent", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", "readOnly": true } } @@ -1315,25 +1250,19 @@ "description": "The resource ID.", "type": "string", "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "x-ms-mutability": [ "read" ] }, "type": { "description": "The type.", "type": "string", "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "x-ms-mutability": [ "read" ] }, "name": { "description": "The resource name.", "type": "string", "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "x-ms-mutability": [ "read" ] }, "properties": { "description": "Group Quota properties for the specified resource.", @@ -1417,25 +1346,19 @@ "description": "The operation status identifier. It should match what is used to GET the operation resource.", "type": "string", "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "x-ms-mutability": [ "read" ] }, "name": { "description": "It must match the last segment of the id field, and will typically be a GUID / system generated value.", "type": "string", "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "x-ms-mutability": [ "read" ] }, "type": { "description": "The type.", "type": "string", "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "x-ms-mutability": [ "read" ] }, "properties": { "type": "object", @@ -1636,11 +1559,7 @@ "AttributeType": { "type": "string", "description": "Name of the entity for filter, such as offerType.", - "enum": [ - "billingId", - "serviceTreeId", - "subscriptionType" - ], + "enum": [ "billingId", "serviceTreeId", "subscriptionType" ], "x-ms-enum": { "name": "SharedQuotaAttributeType", "modelAsString": true @@ -1657,9 +1576,7 @@ "type": "string", "description": "The value for the attribute." }, - "x-ms-identifiers": [ - "attribute" - ] + "x-ms-identifiers": [ "attribute" ] } }, "AttributeList": { @@ -1718,25 +1635,19 @@ "description": "Entity resource Id.", "type": "string", "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "x-ms-mutability": [ "read" ] }, "type": { "type": "string", "description": "Type of the entity - Microsoft.Quota/SharedQuotaEntity.", "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "x-ms-mutability": [ "read" ] }, "name": { "type": "string", "description": "The entity name. The entity name is provided in the request, so it is not needed in the request body. The response will include it.", "readOnly": true, - "x-ms-mutability": [ - "read" - ] + "x-ms-mutability": [ "read" ] }, "properties": { "title": "Properties", @@ -1756,10 +1667,7 @@ "EnvironmentType": { "type": "string", "description": "Environment name.", - "enum": [ - "Non Production", - "Production" - ], + "enum": [ "Non Production", "Production" ], "x-ms-enum": { "name": "EnvironmentType", "modelAsString": true @@ -1771,10 +1679,15 @@ }, "GroupingIdType": { "type": "string", - "description": "GroupingId type. More types of groupIds can be supported in future. MGID is already in the URI, so it's not needed and cause errors, if the MGId in Uri is different properties.'", - "enum": [ - "ServiceTreeId" - ], + "GroupingIdType": { + "type": "string", + "description": "GroupingId type. More types of groupIds can be supported in future. MGID is already in the URI, so it's not needed and cause errors, if the MGId in Uri is different properties.'", + "enum": [ "ServiceTreeId" ], + "x-ms-enum": { + "name": "GroupingIdType", + "modelAsString": true + } + }, "x-ms-enum": { "name": "GroupingIdType", "modelAsString": true @@ -1798,7 +1711,7 @@ "type": "object", "properties": { "billingAccountId": { - "description": "BillingAccountId. The customer can make mistake and select a billing account ID not belonging to MG. Let us think from the end user perspective. Make it simpler and less error prone, where the customer is struggling to provide the right configuration.", + "description": "BillingAccountId. The customer can make mistake and select a billing account ID not belonging to MG. Let's think from the end user perspective. Make it simpler and less error prone, where the customer is struggling to provide the right configuration.", "$ref": "#/definitions/BillingAccountId" }, "groupId": { @@ -1808,9 +1721,7 @@ "$ref": "#/definitions/Environment" } }, - "required": [ - "billingAccountId" - ] + "required": [ "billingAccountId" ] }, "Filter": { "type": "object", @@ -1819,11 +1730,7 @@ "filterEntity": { "type": "string", "description": "Name of the entity for filter, such as offerType.", - "enum": [ - "billingId", - "groupId", - "environment" - ], + "enum": [ "billingId", "groupId", "environment" ], "x-ms-enum": { "name": "SubscriptionFilterType", "modelAsString": true @@ -1832,10 +1739,7 @@ "operator": { "type": "string", "description": "Operator to use for comparison., such as eq (==), neq (!=), etc.", - "enum": [ - "eq", - "neq" - ], + "enum": [ "eq", "neq" ], "x-ms-enum": { "name": "SubscriptionFilterOperatorType", "modelAsString": true @@ -1846,11 +1750,7 @@ "description": "Values for the filterEntity for comparison." } }, - "required": [ - "filterEntity", - "operator", - "filterValues" - ] + "required": [ "filterEntity", "operator", "filterValues" ] }, "Filters": { "type": "object", @@ -1941,7 +1841,7 @@ "description": "The SharedQuotaEntity name. The name should be unique for the provided context tenantId/MgId.", "x-ms-parameter-location": "method" }, - "ApiVersionParameter": { + "apiVersionParameter": { "name": "api-version", "in": "query", "required": true, From 41d39f22b12617c2ea486ba6457798c78153c536 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Tue, 6 Jun 2023 09:25:20 -0700 Subject: [PATCH 088/158] add json reference --- .../examples/GetQuotaAllocation-Compute.json | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetQuotaAllocation-Compute.json diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetQuotaAllocation-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetQuotaAllocation-Compute.json new file mode 100644 index 000000000000..d3dc50f64481 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetQuotaAllocation-Compute.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "orderId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "provider": "Microsoft.Compute", + "location": "eastus", + "resourceName": "standardA4Family", + "allocationId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3" + }, + "responses": { + "200": { + "body": { + "capacityOderId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "AllocationId": "CCEC67B3-7657-4966-BFFC-41EFD36BAADD", + "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "provider": "Microsoft.Compute", + "location": "eastus", + "resourceName": "standardA4Family", + "limits": 150, + "isHoBo": true, + "providerSpecificProperties": [ + { + "name": "accountName", + "value": "BatchAccount_EUS_1" + } + ], + "additionalFlags": "regional", + "status": "Succeeded" + } + }, + "404": { + "body": { + "error": { + "code": "NotFound", + "target": "capacityOrder", + "message": "Capacity order not found." + } + } + } + } +} \ No newline at end of file From 7cc0745458302c9437266dce69640d58338703e8 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Tue, 6 Jun 2023 09:32:53 -0700 Subject: [PATCH 089/158] prettier fix --- .../examples/GetQuotaAllocation-Compute.json | 2 +- .../2023-06-01-preview/groupquota.json | 177 +++++++++++++----- 2 files changed, 135 insertions(+), 44 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetQuotaAllocation-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetQuotaAllocation-Compute.json index d3dc50f64481..8e67a107ae07 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetQuotaAllocation-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetQuotaAllocation-Compute.json @@ -38,4 +38,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 7b425dcac077..c48b7cb50bba 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -5,11 +5,17 @@ "version": "2023-06-01-preview", "description": "Microsoft Azure Quota Resource Provider" }, - "consumes": [ "application/json" ], - "produces": [ "application/json" ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "security": [ { - "azure_auth": [ "user_impersonation" ] + "azure_auth": [ + "user_impersonation" + ] } ], "securityDefinitions": { @@ -26,7 +32,9 @@ "paths": { "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}": { "put": { - "tags": [ "SharedQuotaEntity" ], + "tags": [ + "SharedQuotaEntity" + ], "summary": "Creates a new sharedQuotaEntity for the name passed.", "description": "Creates a new sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", "operationId": "SharedQuotaEntities_CreateOrUpdate", @@ -92,7 +100,9 @@ } }, "patch": { - "tags": [ "SharedQuotaEntity" ], + "tags": [ + "SharedQuotaEntity" + ], "summary": "Updates a new sharedQuotaEntity for the name passed.", "description": "Updates the sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked. \n Any change in the filters will be applicable to the future quota assignments, existing quota assigned to subscriptions from the sharedQuotaEntity remains unchanged.", "operationId": "SharedQuotaEntities_Update", @@ -158,7 +168,9 @@ } }, "get": { - "tags": [ "SharedQuotaEntity" ], + "tags": [ + "SharedQuotaEntity" + ], "summary": "Gets sharedQuotaEntity for the name passed.", "description": "Gets the sharedQuotaEntity for the name passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", "operationId": "SharedQuotaEntities_Get", @@ -194,7 +206,9 @@ } }, "delete": { - "tags": [ "SharedQuotaEntity" ], + "tags": [ + "SharedQuotaEntity" + ], "summary": "Deletes sharedQuotaEntity for the name passed.", "description": "Deletes the sharedQuotaEntity for the name passed. All the remaining shareQuota in the sharedQuotaEntity will be lost.", "operationId": "SharedQuotaEntities_Delete", @@ -232,7 +246,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities": { "get": { - "tags": [ "SharedQuotaEntity" ], + "tags": [ + "SharedQuotaEntity" + ], "summary": "Lists sharedQuotaEntities for the scope passed.", "description": "Lists sharedQuotaEntities for the scope passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", "operationId": "SharedQuotaEntities_List", @@ -266,9 +282,10 @@ } }, "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/subscriptionsToSharedQuotaEntity": { - "get": { - "tags": [ "SharedQuotaEntities-Subscription" ], + "tags": [ + "SharedQuotaEntities-Subscription" + ], "summary": "Gets sharedQuotaEntity Subscription List for the SharedQuotaEntity name passed.", "description": "Gets sharedQuotaEntity Subscription List for the SharedQuotaEntity name passed.", "operationId": "SharedQuotaEntitiesSubscriptions_GetList", @@ -306,7 +323,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/subscriptionsToSharedQuotaEntity/{subscriptionId}": { "put": { - "tags": [ "SharedQuotaEntities-Subscription" ], + "tags": [ + "SharedQuotaEntities-Subscription" + ], "summary": "Adds subscription to the sharedQuotaEntity.", "description": "Adds a subscriptions to sharedQuotaEntity.", "operationId": "SharedQuotaEntitiesSubscriptionsAdd_CreateOrUpdate", @@ -342,7 +361,9 @@ } }, "patch": { - "tags": [ "SharedQuotaEntities-Subscription" ], + "tags": [ + "SharedQuotaEntities-Subscription" + ], "summary": "Updates the sharedQuotaEntity with the subscription to add to the subscriptions list.", "description": "Updates the sharedQuotaEntity with the subscription to add to the subscriptions list.", "operationId": "SharedQuotaEntitiesSubscriptions_Update", @@ -381,7 +402,9 @@ } }, "delete": { - "tags": [ "SharedQuotaEntities-Subscription" ], + "tags": [ + "SharedQuotaEntities-Subscription" + ], "summary": "Removes the subscription from sharedQuotaEntity.", "description": "Removes the subscription from sharedQuotaEntity.", "operationId": "SharedQuotaEntitiesSubscriptions_Delete", @@ -420,7 +443,9 @@ } }, "get": { - "tags": [ "SharedQuotaEntities-Subscription" ], + "tags": [ + "SharedQuotaEntities-Subscription" + ], "summary": "Checks if the subscription is in sharedQuotaEntity SubscriptionIdList.", "description": "Checks if the subscription is in sharedQuotaEntity SubscriptionIdList.", "operationId": "SharedQuotaEntitiesSubscription_Get", @@ -461,7 +486,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits/{resourceName}": { "put": { - "tags": [ "GroupQuotaLimits" ], + "tags": [ + "GroupQuotaLimits" + ], "summary": "Creates a new Group Quota request for a specific resources.", "description": "Creates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", "operationId": "GroupQuotaLimits_CreateOrUpdate", @@ -533,7 +560,9 @@ } }, "patch": { - "tags": [ "GroupQuotaLimits" ], + "tags": [ + "GroupQuotaLimits" + ], "summary": "Creates/Updates a new Group Quota request for a specific resources.", "description": "Creates/Updates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status will be updated periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed,then the URI will change to Get URI and full details can be checked.", "operationId": "GroupQuotaLimits_Update", @@ -605,7 +634,9 @@ } }, "get": { - "tags": [ "GroupQuotaLimits" ], + "tags": [ + "GroupQuotaLimits" + ], "summary": "Gets the resource groupQuotaLimits for the MGId.", "description": "Gets the resource groupQuotaLimits for the MGId. It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", "operationId": "GroupQuotaLimits_Get", @@ -649,7 +680,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits": { "get": { - "tags": [ "GroupQuotaLimits" ], + "tags": [ + "GroupQuotaLimits" + ], "summary": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope.", "description": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope. The scope can be - providers/Microsoft.Compute/locations/. The list elements will be same as the Get API - It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", "operationId": "GroupQuotaLimits_List", @@ -693,7 +726,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests": { "get": { - "tags": [ "GroupQuota-Requests" ], + "tags": [ + "GroupQuota-Requests" + ], "summary": "List the status of all GroupQuota requests.", "description": "List API to check the status of a GroupQuota requests by requestId. The groupQuotaRequest history is maintained for 1 year.", "operationId": "GroupQuota-Requests_List", @@ -734,7 +769,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests/{requestId}": { "get": { - "tags": [ "GroupQuota-Requests" ], + "tags": [ + "GroupQuota-Requests" + ], "summary": "Get the status of a single GroupQuota request by requestId.", "description": "Get API to check the status of a GroupQuota request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.", "operationId": "GroupQuota-Requests_Get", @@ -778,7 +815,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations": { "get": { - "tags": [ "SubscriptionQuota-Allocation" ], + "tags": [ + "SubscriptionQuota-Allocation" + ], "summary": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location.", "description": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", "operationId": "ShareQuotaMGSubscription_List", @@ -822,7 +861,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations/{resourceName}": { "put": { - "tags": [ "SubscriptionQuota-Allocation" ], + "tags": [ + "SubscriptionQuota-Allocation" + ], "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern to check the status using Async polling as standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.", "description": "Request to assign a specific resource quota from group quota to a specific Subscription. The subscriptions can also reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, which means the maximum unused quota assigned back to MG groupQuota will be the groupQuota assigned to the subscriptions. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription.", "operationId": "GroupQuotaSubscriptionQuotaAllocation_CreateOrUpdate", @@ -899,7 +940,9 @@ } }, "patch": { - "tags": [ "SubscriptionQuota-Allocation" ], + "tags": [ + "SubscriptionQuota-Allocation" + ], "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern with 202 response and status polling API.", "description": "Request to assign quota from group quota to a specific Subscription. The subscriptions and reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, using this API. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription(s).", "operationId": "GroupQuotaSubscriptionQuotaAllocation_Update", @@ -975,7 +1018,9 @@ } }, "get": { - "tags": [ "SubscriptionQuota-Allocation" ], + "tags": [ + "SubscriptionQuota-Allocation" + ], "summary": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName.", "description": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", "operationId": "GroupQuotaSubscriptionQuotaAllocation_Get", @@ -1022,7 +1067,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests/{allocationId}": { "get": { - "tags": [ "Subscription-Quota-Allocation-Requests" ], + "tags": [ + "Subscription-Quota-Allocation-Requests" + ], "operationId": "GroupQuotaSubscriptionQuotaAllocationRequests_Get", "summary": "Get the status of the quota allocation request for the subscriptionId.", "description": "Get the quota allocation request status for the subscriptionId by allocationId.", @@ -1069,7 +1116,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests": { "get": { - "tags": [ "Subscription-Quota-Allocation-Requests" ], + "tags": [ + "Subscription-Quota-Allocation-Requests" + ], "operationId": "SubscriptionGroupQuotaAllocationRequest_List", "summary": "Lists all the quota allocation requests.to subscriptions", "description": "Lists all the allocation requests.", @@ -1250,19 +1299,25 @@ "description": "The resource ID.", "type": "string", "readOnly": true, - "x-ms-mutability": [ "read" ] + "x-ms-mutability": [ + "read" + ] }, "type": { "description": "The type.", "type": "string", "readOnly": true, - "x-ms-mutability": [ "read" ] + "x-ms-mutability": [ + "read" + ] }, "name": { "description": "The resource name.", "type": "string", "readOnly": true, - "x-ms-mutability": [ "read" ] + "x-ms-mutability": [ + "read" + ] }, "properties": { "description": "Group Quota properties for the specified resource.", @@ -1346,19 +1401,25 @@ "description": "The operation status identifier. It should match what is used to GET the operation resource.", "type": "string", "readOnly": true, - "x-ms-mutability": [ "read" ] + "x-ms-mutability": [ + "read" + ] }, "name": { "description": "It must match the last segment of the id field, and will typically be a GUID / system generated value.", "type": "string", "readOnly": true, - "x-ms-mutability": [ "read" ] + "x-ms-mutability": [ + "read" + ] }, "type": { "description": "The type.", "type": "string", "readOnly": true, - "x-ms-mutability": [ "read" ] + "x-ms-mutability": [ + "read" + ] }, "properties": { "type": "object", @@ -1559,7 +1620,11 @@ "AttributeType": { "type": "string", "description": "Name of the entity for filter, such as offerType.", - "enum": [ "billingId", "serviceTreeId", "subscriptionType" ], + "enum": [ + "billingId", + "serviceTreeId", + "subscriptionType" + ], "x-ms-enum": { "name": "SharedQuotaAttributeType", "modelAsString": true @@ -1576,7 +1641,9 @@ "type": "string", "description": "The value for the attribute." }, - "x-ms-identifiers": [ "attribute" ] + "x-ms-identifiers": [ + "attribute" + ] } }, "AttributeList": { @@ -1635,19 +1702,25 @@ "description": "Entity resource Id.", "type": "string", "readOnly": true, - "x-ms-mutability": [ "read" ] + "x-ms-mutability": [ + "read" + ] }, "type": { "type": "string", "description": "Type of the entity - Microsoft.Quota/SharedQuotaEntity.", "readOnly": true, - "x-ms-mutability": [ "read" ] + "x-ms-mutability": [ + "read" + ] }, "name": { "type": "string", "description": "The entity name. The entity name is provided in the request, so it is not needed in the request body. The response will include it.", "readOnly": true, - "x-ms-mutability": [ "read" ] + "x-ms-mutability": [ + "read" + ] }, "properties": { "title": "Properties", @@ -1667,7 +1740,10 @@ "EnvironmentType": { "type": "string", "description": "Environment name.", - "enum": [ "Non Production", "Production" ], + "enum": [ + "Non Production", + "Production" + ], "x-ms-enum": { "name": "EnvironmentType", "modelAsString": true @@ -1682,7 +1758,9 @@ "GroupingIdType": { "type": "string", "description": "GroupingId type. More types of groupIds can be supported in future. MGID is already in the URI, so it's not needed and cause errors, if the MGId in Uri is different properties.'", - "enum": [ "ServiceTreeId" ], + "enum": [ + "ServiceTreeId" + ], "x-ms-enum": { "name": "GroupingIdType", "modelAsString": true @@ -1721,7 +1799,9 @@ "$ref": "#/definitions/Environment" } }, - "required": [ "billingAccountId" ] + "required": [ + "billingAccountId" + ] }, "Filter": { "type": "object", @@ -1730,7 +1810,11 @@ "filterEntity": { "type": "string", "description": "Name of the entity for filter, such as offerType.", - "enum": [ "billingId", "groupId", "environment" ], + "enum": [ + "billingId", + "groupId", + "environment" + ], "x-ms-enum": { "name": "SubscriptionFilterType", "modelAsString": true @@ -1739,7 +1823,10 @@ "operator": { "type": "string", "description": "Operator to use for comparison., such as eq (==), neq (!=), etc.", - "enum": [ "eq", "neq" ], + "enum": [ + "eq", + "neq" + ], "x-ms-enum": { "name": "SubscriptionFilterOperatorType", "modelAsString": true @@ -1750,7 +1837,11 @@ "description": "Values for the filterEntity for comparison." } }, - "required": [ "filterEntity", "operator", "filterValues" ] + "required": [ + "filterEntity", + "operator", + "filterValues" + ] }, "Filters": { "type": "object", From ee5f7de14555da27a1005b6c1a8977b468fa482e Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 6 Jun 2023 10:45:39 -0700 Subject: [PATCH 090/158] Run Prettier. --- .../2023-06-01-preview/groupquota.json | 177 +++++++++++++----- 1 file changed, 134 insertions(+), 43 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 7b425dcac077..c48b7cb50bba 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -5,11 +5,17 @@ "version": "2023-06-01-preview", "description": "Microsoft Azure Quota Resource Provider" }, - "consumes": [ "application/json" ], - "produces": [ "application/json" ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "security": [ { - "azure_auth": [ "user_impersonation" ] + "azure_auth": [ + "user_impersonation" + ] } ], "securityDefinitions": { @@ -26,7 +32,9 @@ "paths": { "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}": { "put": { - "tags": [ "SharedQuotaEntity" ], + "tags": [ + "SharedQuotaEntity" + ], "summary": "Creates a new sharedQuotaEntity for the name passed.", "description": "Creates a new sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", "operationId": "SharedQuotaEntities_CreateOrUpdate", @@ -92,7 +100,9 @@ } }, "patch": { - "tags": [ "SharedQuotaEntity" ], + "tags": [ + "SharedQuotaEntity" + ], "summary": "Updates a new sharedQuotaEntity for the name passed.", "description": "Updates the sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked. \n Any change in the filters will be applicable to the future quota assignments, existing quota assigned to subscriptions from the sharedQuotaEntity remains unchanged.", "operationId": "SharedQuotaEntities_Update", @@ -158,7 +168,9 @@ } }, "get": { - "tags": [ "SharedQuotaEntity" ], + "tags": [ + "SharedQuotaEntity" + ], "summary": "Gets sharedQuotaEntity for the name passed.", "description": "Gets the sharedQuotaEntity for the name passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", "operationId": "SharedQuotaEntities_Get", @@ -194,7 +206,9 @@ } }, "delete": { - "tags": [ "SharedQuotaEntity" ], + "tags": [ + "SharedQuotaEntity" + ], "summary": "Deletes sharedQuotaEntity for the name passed.", "description": "Deletes the sharedQuotaEntity for the name passed. All the remaining shareQuota in the sharedQuotaEntity will be lost.", "operationId": "SharedQuotaEntities_Delete", @@ -232,7 +246,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities": { "get": { - "tags": [ "SharedQuotaEntity" ], + "tags": [ + "SharedQuotaEntity" + ], "summary": "Lists sharedQuotaEntities for the scope passed.", "description": "Lists sharedQuotaEntities for the scope passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", "operationId": "SharedQuotaEntities_List", @@ -266,9 +282,10 @@ } }, "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/subscriptionsToSharedQuotaEntity": { - "get": { - "tags": [ "SharedQuotaEntities-Subscription" ], + "tags": [ + "SharedQuotaEntities-Subscription" + ], "summary": "Gets sharedQuotaEntity Subscription List for the SharedQuotaEntity name passed.", "description": "Gets sharedQuotaEntity Subscription List for the SharedQuotaEntity name passed.", "operationId": "SharedQuotaEntitiesSubscriptions_GetList", @@ -306,7 +323,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/subscriptionsToSharedQuotaEntity/{subscriptionId}": { "put": { - "tags": [ "SharedQuotaEntities-Subscription" ], + "tags": [ + "SharedQuotaEntities-Subscription" + ], "summary": "Adds subscription to the sharedQuotaEntity.", "description": "Adds a subscriptions to sharedQuotaEntity.", "operationId": "SharedQuotaEntitiesSubscriptionsAdd_CreateOrUpdate", @@ -342,7 +361,9 @@ } }, "patch": { - "tags": [ "SharedQuotaEntities-Subscription" ], + "tags": [ + "SharedQuotaEntities-Subscription" + ], "summary": "Updates the sharedQuotaEntity with the subscription to add to the subscriptions list.", "description": "Updates the sharedQuotaEntity with the subscription to add to the subscriptions list.", "operationId": "SharedQuotaEntitiesSubscriptions_Update", @@ -381,7 +402,9 @@ } }, "delete": { - "tags": [ "SharedQuotaEntities-Subscription" ], + "tags": [ + "SharedQuotaEntities-Subscription" + ], "summary": "Removes the subscription from sharedQuotaEntity.", "description": "Removes the subscription from sharedQuotaEntity.", "operationId": "SharedQuotaEntitiesSubscriptions_Delete", @@ -420,7 +443,9 @@ } }, "get": { - "tags": [ "SharedQuotaEntities-Subscription" ], + "tags": [ + "SharedQuotaEntities-Subscription" + ], "summary": "Checks if the subscription is in sharedQuotaEntity SubscriptionIdList.", "description": "Checks if the subscription is in sharedQuotaEntity SubscriptionIdList.", "operationId": "SharedQuotaEntitiesSubscription_Get", @@ -461,7 +486,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits/{resourceName}": { "put": { - "tags": [ "GroupQuotaLimits" ], + "tags": [ + "GroupQuotaLimits" + ], "summary": "Creates a new Group Quota request for a specific resources.", "description": "Creates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", "operationId": "GroupQuotaLimits_CreateOrUpdate", @@ -533,7 +560,9 @@ } }, "patch": { - "tags": [ "GroupQuotaLimits" ], + "tags": [ + "GroupQuotaLimits" + ], "summary": "Creates/Updates a new Group Quota request for a specific resources.", "description": "Creates/Updates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status will be updated periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed,then the URI will change to Get URI and full details can be checked.", "operationId": "GroupQuotaLimits_Update", @@ -605,7 +634,9 @@ } }, "get": { - "tags": [ "GroupQuotaLimits" ], + "tags": [ + "GroupQuotaLimits" + ], "summary": "Gets the resource groupQuotaLimits for the MGId.", "description": "Gets the resource groupQuotaLimits for the MGId. It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", "operationId": "GroupQuotaLimits_Get", @@ -649,7 +680,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits": { "get": { - "tags": [ "GroupQuotaLimits" ], + "tags": [ + "GroupQuotaLimits" + ], "summary": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope.", "description": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope. The scope can be - providers/Microsoft.Compute/locations/. The list elements will be same as the Get API - It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", "operationId": "GroupQuotaLimits_List", @@ -693,7 +726,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests": { "get": { - "tags": [ "GroupQuota-Requests" ], + "tags": [ + "GroupQuota-Requests" + ], "summary": "List the status of all GroupQuota requests.", "description": "List API to check the status of a GroupQuota requests by requestId. The groupQuotaRequest history is maintained for 1 year.", "operationId": "GroupQuota-Requests_List", @@ -734,7 +769,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests/{requestId}": { "get": { - "tags": [ "GroupQuota-Requests" ], + "tags": [ + "GroupQuota-Requests" + ], "summary": "Get the status of a single GroupQuota request by requestId.", "description": "Get API to check the status of a GroupQuota request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.", "operationId": "GroupQuota-Requests_Get", @@ -778,7 +815,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations": { "get": { - "tags": [ "SubscriptionQuota-Allocation" ], + "tags": [ + "SubscriptionQuota-Allocation" + ], "summary": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location.", "description": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", "operationId": "ShareQuotaMGSubscription_List", @@ -822,7 +861,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations/{resourceName}": { "put": { - "tags": [ "SubscriptionQuota-Allocation" ], + "tags": [ + "SubscriptionQuota-Allocation" + ], "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern to check the status using Async polling as standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.", "description": "Request to assign a specific resource quota from group quota to a specific Subscription. The subscriptions can also reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, which means the maximum unused quota assigned back to MG groupQuota will be the groupQuota assigned to the subscriptions. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription.", "operationId": "GroupQuotaSubscriptionQuotaAllocation_CreateOrUpdate", @@ -899,7 +940,9 @@ } }, "patch": { - "tags": [ "SubscriptionQuota-Allocation" ], + "tags": [ + "SubscriptionQuota-Allocation" + ], "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern with 202 response and status polling API.", "description": "Request to assign quota from group quota to a specific Subscription. The subscriptions and reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, using this API. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription(s).", "operationId": "GroupQuotaSubscriptionQuotaAllocation_Update", @@ -975,7 +1018,9 @@ } }, "get": { - "tags": [ "SubscriptionQuota-Allocation" ], + "tags": [ + "SubscriptionQuota-Allocation" + ], "summary": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName.", "description": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", "operationId": "GroupQuotaSubscriptionQuotaAllocation_Get", @@ -1022,7 +1067,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests/{allocationId}": { "get": { - "tags": [ "Subscription-Quota-Allocation-Requests" ], + "tags": [ + "Subscription-Quota-Allocation-Requests" + ], "operationId": "GroupQuotaSubscriptionQuotaAllocationRequests_Get", "summary": "Get the status of the quota allocation request for the subscriptionId.", "description": "Get the quota allocation request status for the subscriptionId by allocationId.", @@ -1069,7 +1116,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests": { "get": { - "tags": [ "Subscription-Quota-Allocation-Requests" ], + "tags": [ + "Subscription-Quota-Allocation-Requests" + ], "operationId": "SubscriptionGroupQuotaAllocationRequest_List", "summary": "Lists all the quota allocation requests.to subscriptions", "description": "Lists all the allocation requests.", @@ -1250,19 +1299,25 @@ "description": "The resource ID.", "type": "string", "readOnly": true, - "x-ms-mutability": [ "read" ] + "x-ms-mutability": [ + "read" + ] }, "type": { "description": "The type.", "type": "string", "readOnly": true, - "x-ms-mutability": [ "read" ] + "x-ms-mutability": [ + "read" + ] }, "name": { "description": "The resource name.", "type": "string", "readOnly": true, - "x-ms-mutability": [ "read" ] + "x-ms-mutability": [ + "read" + ] }, "properties": { "description": "Group Quota properties for the specified resource.", @@ -1346,19 +1401,25 @@ "description": "The operation status identifier. It should match what is used to GET the operation resource.", "type": "string", "readOnly": true, - "x-ms-mutability": [ "read" ] + "x-ms-mutability": [ + "read" + ] }, "name": { "description": "It must match the last segment of the id field, and will typically be a GUID / system generated value.", "type": "string", "readOnly": true, - "x-ms-mutability": [ "read" ] + "x-ms-mutability": [ + "read" + ] }, "type": { "description": "The type.", "type": "string", "readOnly": true, - "x-ms-mutability": [ "read" ] + "x-ms-mutability": [ + "read" + ] }, "properties": { "type": "object", @@ -1559,7 +1620,11 @@ "AttributeType": { "type": "string", "description": "Name of the entity for filter, such as offerType.", - "enum": [ "billingId", "serviceTreeId", "subscriptionType" ], + "enum": [ + "billingId", + "serviceTreeId", + "subscriptionType" + ], "x-ms-enum": { "name": "SharedQuotaAttributeType", "modelAsString": true @@ -1576,7 +1641,9 @@ "type": "string", "description": "The value for the attribute." }, - "x-ms-identifiers": [ "attribute" ] + "x-ms-identifiers": [ + "attribute" + ] } }, "AttributeList": { @@ -1635,19 +1702,25 @@ "description": "Entity resource Id.", "type": "string", "readOnly": true, - "x-ms-mutability": [ "read" ] + "x-ms-mutability": [ + "read" + ] }, "type": { "type": "string", "description": "Type of the entity - Microsoft.Quota/SharedQuotaEntity.", "readOnly": true, - "x-ms-mutability": [ "read" ] + "x-ms-mutability": [ + "read" + ] }, "name": { "type": "string", "description": "The entity name. The entity name is provided in the request, so it is not needed in the request body. The response will include it.", "readOnly": true, - "x-ms-mutability": [ "read" ] + "x-ms-mutability": [ + "read" + ] }, "properties": { "title": "Properties", @@ -1667,7 +1740,10 @@ "EnvironmentType": { "type": "string", "description": "Environment name.", - "enum": [ "Non Production", "Production" ], + "enum": [ + "Non Production", + "Production" + ], "x-ms-enum": { "name": "EnvironmentType", "modelAsString": true @@ -1682,7 +1758,9 @@ "GroupingIdType": { "type": "string", "description": "GroupingId type. More types of groupIds can be supported in future. MGID is already in the URI, so it's not needed and cause errors, if the MGId in Uri is different properties.'", - "enum": [ "ServiceTreeId" ], + "enum": [ + "ServiceTreeId" + ], "x-ms-enum": { "name": "GroupingIdType", "modelAsString": true @@ -1721,7 +1799,9 @@ "$ref": "#/definitions/Environment" } }, - "required": [ "billingAccountId" ] + "required": [ + "billingAccountId" + ] }, "Filter": { "type": "object", @@ -1730,7 +1810,11 @@ "filterEntity": { "type": "string", "description": "Name of the entity for filter, such as offerType.", - "enum": [ "billingId", "groupId", "environment" ], + "enum": [ + "billingId", + "groupId", + "environment" + ], "x-ms-enum": { "name": "SubscriptionFilterType", "modelAsString": true @@ -1739,7 +1823,10 @@ "operator": { "type": "string", "description": "Operator to use for comparison., such as eq (==), neq (!=), etc.", - "enum": [ "eq", "neq" ], + "enum": [ + "eq", + "neq" + ], "x-ms-enum": { "name": "SubscriptionFilterOperatorType", "modelAsString": true @@ -1750,7 +1837,11 @@ "description": "Values for the filterEntity for comparison." } }, - "required": [ "filterEntity", "operator", "filterValues" ] + "required": [ + "filterEntity", + "operator", + "filterValues" + ] }, "Filters": { "type": "object", From 129830e182617e1b9f8941671f7eb577a5b1c1ff Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 6 Jun 2023 16:03:01 -0700 Subject: [PATCH 091/158] Run Prettier. --- .../2023-06-01-preview/groupquota.json | 323 ++++++++---------- 1 file changed, 134 insertions(+), 189 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index c48b7cb50bba..4a6ff1299b93 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "title": "Azure MG Group Quota using SharedQuotaEntity.", + "title": "Azure MG Group Quota using GroupQuota Entity.", "version": "2023-06-01-preview", "description": "Microsoft Azure Quota Resource Provider" }, @@ -30,17 +30,17 @@ } }, "paths": { - "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}": { + "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}": { "put": { "tags": [ - "SharedQuotaEntity" + "GroupQuotas" ], - "summary": "Creates a new sharedQuotaEntity for the name passed.", - "description": "Creates a new sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", - "operationId": "SharedQuotaEntities_CreateOrUpdate", + "summary": "Creates a new GroupQuota for the name passed.", + "description": "Creates a new GroupQuota for the name passed. A RequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", + "operationId": "GroupQuotas_CreateOrUpdate", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/PutSharedQuotaEntity.json" + "$ref": "./examples/PutGroupQuotas.json" } }, "x-ms-long-running-operation": true, @@ -49,17 +49,17 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { - "name": "SharedQuotaEntityRequest", + "name": "GroupQuotaRequest", "in": "body", - "description": "The SharedQuotaEntity Request.", + "description": "The GroupQuota Request.", "schema": { - "$ref": "#/definitions/SharedQuotaEntity" + "$ref": "#/definitions/GroupQuotasEntity" } } ], @@ -67,7 +67,7 @@ "200": { "description": "OK, Create or Update", "schema": { - "$ref": "#/definitions/SharedQuotaEntity" + "$ref": "#/definitions/GroupQuotasEntity" } }, "201": { @@ -101,14 +101,14 @@ }, "patch": { "tags": [ - "SharedQuotaEntity" + "GroupQuotas" ], - "summary": "Updates a new sharedQuotaEntity for the name passed.", - "description": "Updates the sharedQuotaEntity for the name passed. A sharedQuotaEntityRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked. \n Any change in the filters will be applicable to the future quota assignments, existing quota assigned to subscriptions from the sharedQuotaEntity remains unchanged.", - "operationId": "SharedQuotaEntities_Update", + "summary": "Updates a new GroupQuotas for the name passed.", + "description": "Updates the GroupQuotas for the name passed. A GroupQuotas RequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked. \n Any change in the filters will be applicable to the future quota assignments, existing quota assigned to subscriptions from the GroupQuotas remains unchanged.", + "operationId": "GroupQuotas_Update", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/PatchSharedQuotaEntity.json" + "$ref": "./examples/Patch GroupQuotas.json" } }, "x-ms-long-running-operation": true, @@ -117,17 +117,17 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { - "name": "SharedQuotaEntityPatchRequest", + "name": " GroupQuotasPatchRequest", "in": "body", - "description": "The SharedQuotaEntity Patch Request.", + "description": "The GroupQuotas Patch Request.", "schema": { - "$ref": "#/definitions/SharedQuotaEntity" + "$ref": "#/definitions/GroupQuotasEntity" } } ], @@ -135,7 +135,7 @@ "200": { "description": "OK.", "schema": { - "$ref": "#/definitions/SharedQuotaEntity" + "$ref": "#/definitions/GroupQuotasEntity" } }, "202": { @@ -169,14 +169,14 @@ }, "get": { "tags": [ - "SharedQuotaEntity" + "GroupQuotas" ], - "summary": "Gets sharedQuotaEntity for the name passed.", - "description": "Gets the sharedQuotaEntity for the name passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", - "operationId": "SharedQuotaEntities_Get", + "summary": "Gets GroupQuotas for the name passed.", + "description": "Gets the GroupQuotas for the name passed. It will return the GroupQuotas properties only.The details on groupQuota can be access from the groupQuota APIs.", + "operationId": " GroupQuotas_Get", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/GetSharedQuotaEntity.json" + "$ref": "./examples/GetGroupQuotas,json" } }, "parameters": [ @@ -184,17 +184,17 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK.", "schema": { - "$ref": "#/definitions/SharedQuotaEntity" + "$ref": "#/definitions/GroupQuotasEntity" } }, "default": { @@ -207,14 +207,14 @@ }, "delete": { "tags": [ - "SharedQuotaEntity" + "GroupQuotas" ], - "summary": "Deletes sharedQuotaEntity for the name passed.", - "description": "Deletes the sharedQuotaEntity for the name passed. All the remaining shareQuota in the sharedQuotaEntity will be lost.", - "operationId": "SharedQuotaEntities_Delete", + "summary": "Deletes GroupQuotas for the name passed.", + "description": "Deletes the GroupQuotas for the name passed. All the remaining shareQuota in the GroupQuotas will be lost.", + "operationId": "GroupQuotas_Delete", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/DeleteSharedQuotaEntity.json" + "$ref": "./examples/DeleteGroupQuotas,json" } }, "parameters": [ @@ -222,10 +222,10 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -244,17 +244,17 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities": { + "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/groupQuotas": { "get": { "tags": [ - "SharedQuotaEntity" + "GroupQuotas" ], - "summary": "Lists sharedQuotaEntities for the scope passed.", - "description": "Lists sharedQuotaEntities for the scope passed. It will display the SharedQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", - "operationId": "SharedQuotaEntities_List", + "summary": "Lists GroupQuotas for the scope passed.", + "description": "Lists GroupQuotas for the scope passed. It will return the ShareGroupQuotasdQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", + "operationId": "GroupQuotas_List", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/GetSharedQuotaEntityList.json" + "$ref": "./examples/GetGroupQuotasList.json" } }, "parameters": [ @@ -262,14 +262,14 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK.", "schema": { - "$ref": "#/definitions/SharedQuotaEntityList" + "$ref": "#/definitions/GroupQuotasList" } }, "default": { @@ -281,17 +281,17 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/subscriptionsToSharedQuotaEntity": { + "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptions": { "get": { "tags": [ - "SharedQuotaEntities-Subscription" + "GroupQuotas-Subscriptions" ], - "summary": "Gets sharedQuotaEntity Subscription List for the SharedQuotaEntity name passed.", - "description": "Gets sharedQuotaEntity Subscription List for the SharedQuotaEntity name passed.", - "operationId": "SharedQuotaEntitiesSubscriptions_GetList", + "summary": "Gets GroupQuotas Subscription List for the GroupQuotas name passed.", + "description": "Gets GroupQuotas Subscription List for the GroupQuotas name passed.", + "operationId": "GroupQuotaSubscriptions_GetList", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/GetSharedQuotaEntitySubscriptions.json" + "$ref": "./examples/GetGroupQuotaSubscriptions.json" } }, "parameters": [ @@ -299,10 +299,10 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -321,17 +321,17 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/subscriptionsToSharedQuotaEntity/{subscriptionId}": { + "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptions/{subscriptionId}": { "put": { "tags": [ - "SharedQuotaEntities-Subscription" + "GroupQuotas-Subscriptions" ], - "summary": "Adds subscription to the sharedQuotaEntity.", - "description": "Adds a subscriptions to sharedQuotaEntity.", - "operationId": "SharedQuotaEntitiesSubscriptionsAdd_CreateOrUpdate", + "summary": "Adds subscription to the GroupQuotas.", + "description": "Adds a subscriptions to GroupQuotas.", + "operationId": "GroupQuotasEntitiesSubscriptionsAdd_CreateOrUpdate", "x-ms-examples": { "GroupQuotaLimits_Put_Subscriptions": { - "$ref": "./examples/PutSharedQuotaEntitySubscription.json" + "$ref": "./examples/PutGroupQuotasSubscription.json" } }, "parameters": [ @@ -339,10 +339,10 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdInParameters" @@ -362,14 +362,14 @@ }, "patch": { "tags": [ - "SharedQuotaEntities-Subscription" + "GroupQuotas-Subscriptions" ], - "summary": "Updates the sharedQuotaEntity with the subscription to add to the subscriptions list.", - "description": "Updates the sharedQuotaEntity with the subscription to add to the subscriptions list.", - "operationId": "SharedQuotaEntitiesSubscriptions_Update", + "summary": "Updates the GroupQuotas with the subscription to add to the subscriptions list.", + "description": "Updates the GroupQuotas with the subscription to add to the subscriptions list.", + "operationId": "GroupQuotaSubscriptions_Update", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/PatchSharedQuotaEntitySubscriptionAdd.json" + "$ref": "./examples/PatchGroupQuotasSubscriptionAdd.json" } }, "parameters": [ @@ -377,10 +377,10 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdInParameters" @@ -403,14 +403,14 @@ }, "delete": { "tags": [ - "SharedQuotaEntities-Subscription" + "GroupQuotas-Subscriptions" ], - "summary": "Removes the subscription from sharedQuotaEntity.", - "description": "Removes the subscription from sharedQuotaEntity.", - "operationId": "SharedQuotaEntitiesSubscriptions_Delete", + "summary": "Removes the subscription from GroupQuotas.", + "description": "Removes the subscription from GroupQuotas.", + "operationId": "GroupQuotaSubscriptions_Delete", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/DeleteSharedQuotaEntitySubscriptions.json" + "$ref": "./examples/DeleteGroupQuotasSubscriptions.json" } }, "parameters": [ @@ -418,10 +418,10 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdInParameters" @@ -444,14 +444,14 @@ }, "get": { "tags": [ - "SharedQuotaEntities-Subscription" + "GroupQuotas-Subscriptions" ], - "summary": "Checks if the subscription is in sharedQuotaEntity SubscriptionIdList.", - "description": "Checks if the subscription is in sharedQuotaEntity SubscriptionIdList.", - "operationId": "SharedQuotaEntitiesSubscription_Get", + "summary": "Checks if the subscription is in GroupQuotas SubscriptionIdList.", + "description": "Checks if the subscription is in GroupQuotas SubscriptionIdList.", + "operationId": "SGroupQuotaSubscription_Get", "x-ms-examples": { "GroupQuotaLimits_Put_Subscription": { - "$ref": "./examples/DeleteSharedQuotaEntitySubscription.json" + "$ref": "./examples/DeleteGroupQuotasSubscription.json" } }, "parameters": [ @@ -459,10 +459,10 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdInParameters" @@ -484,7 +484,7 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits/{resourceName}": { + "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaLimits/{resourceName}": { "put": { "tags": [ "GroupQuotaLimits" @@ -506,13 +506,13 @@ "$ref": "#/parameters/ScopeInParameters" }, { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + "$ref": "#/parameters/GroupQuotaNameInParameters" }, { "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "groupQuotaRequest", @@ -580,13 +580,13 @@ "$ref": "#/parameters/ScopeInParameters" }, { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + "$ref": "#/parameters/GroupQuotaNameInParameters" }, { "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "groupQuotaRequest", @@ -653,13 +653,13 @@ "$ref": "#/parameters/ScopeInParameters" }, { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + "$ref": "#/parameters/GroupQuotaNameInParameters" }, { "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -678,7 +678,7 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaLimits": { + "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaLimits": { "get": { "tags": [ "GroupQuotaLimits" @@ -699,13 +699,13 @@ "$ref": "#/parameters/ScopeInParameters" }, { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + "$ref": "#/parameters/GroupQuotaNameInParameters" }, { "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -724,10 +724,10 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests": { + "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaRequests": { "get": { "tags": [ - "GroupQuota-Requests" + "GroupQuotaLimits-Requests" ], "summary": "List the status of all GroupQuota requests.", "description": "List API to check the status of a GroupQuota requests by requestId. The groupQuotaRequest history is maintained for 1 year.", @@ -745,10 +745,10 @@ "$ref": "#/parameters/ScopeInParameters" }, { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -767,10 +767,10 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/groupQuotaRequests/{requestId}": { + "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaRequests/{requestId}": { "get": { "tags": [ - "GroupQuota-Requests" + "GroupQuotaLimits-Requests" ], "summary": "Get the status of a single GroupQuota request by requestId.", "description": "Get API to check the status of a GroupQuota request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.", @@ -788,13 +788,13 @@ "$ref": "#/parameters/ScopeInParameters" }, { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + "$ref": "#/parameters/GroupQuotaNameInParameters" }, { "$ref": "#/parameters/RequestIdInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -813,7 +813,7 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations": { + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations": { "get": { "tags": [ "SubscriptionQuota-Allocation" @@ -837,10 +837,10 @@ "$ref": "#/parameters/ScopeInParameters" }, { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -859,7 +859,7 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocations/{resourceName}": { + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations/{resourceName}": { "put": { "tags": [ "SubscriptionQuota-Allocation" @@ -885,13 +885,13 @@ "$ref": "#/parameters/ScopeInParameters" }, { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + "$ref": "#/parameters/GroupQuotaNameInParameters" }, { "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "allocateQuotaRequest", @@ -947,7 +947,7 @@ "description": "Request to assign quota from group quota to a specific Subscription. The subscriptions and reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, using this API. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription(s).", "operationId": "GroupQuotaSubscriptionQuotaAllocation_Update", "x-ms-examples": { - "SharedQuota_Subscription_Allocation_Patch_ForCompute": { + "GroupQuotas_Subscription_Allocation_Patch_ForCompute": { "$ref": "./examples/PatchQuotaAllocation-Compute.json" } }, @@ -963,13 +963,13 @@ "$ref": "#/parameters/ScopeInParameters" }, { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + "$ref": "#/parameters/GroupQuotaNameInParameters" }, { "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "allocateQuotaRequest", @@ -1040,13 +1040,13 @@ "$ref": "#/parameters/ScopeInParameters" }, { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + "$ref": "#/parameters/GroupQuotaNameInParameters" }, { "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -1065,7 +1065,7 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests/{allocationId}": { + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests/{allocationId}": { "get": { "tags": [ "Subscription-Quota-Allocation-Requests" @@ -1089,13 +1089,13 @@ "$ref": "#/parameters/ScopeInParameters" }, { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + "$ref": "#/parameters/GroupQuotaNameInParameters" }, { "$ref": "#/parameters/AllocationIdInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -1114,7 +1114,7 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/sharedQuotaEntities/{sharedQuotaEntityName}/quotaAllocationRequests": { + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests": { "get": { "tags": [ "Subscription-Quota-Allocation-Requests" @@ -1138,10 +1138,10 @@ "$ref": "#/parameters/ScopeInParameters" }, { - "$ref": "#/parameters/SharedQuotaEntityNameInParameters" + "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/apiVersionParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -1597,7 +1597,7 @@ } } }, - "SharedQuotaEntityBase": { + "GroupQuotasEntityBase": { "type": "object", "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", "x-ms-azure-resource": true, @@ -1626,7 +1626,7 @@ "subscriptionType" ], "x-ms-enum": { - "name": "SharedQuotaAttributeType", + "name": "GroupQuotaAttributeType", "modelAsString": true } }, @@ -1648,7 +1648,7 @@ }, "AttributeList": { "type": "array", - "description": "Attributes List for the SharedQuotaEntity.", + "description": "Attributes List for the GroupQuotas,", "items": { "$ref": "#/definitions/Attribute", "description": "The attribute type and corresponding value." @@ -1693,7 +1693,7 @@ } } }, - "SharedQuotaEntity": { + "GroupQuotasEntity": { "type": "object", "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", "x-ms-azure-resource": true, @@ -1708,7 +1708,7 @@ }, "type": { "type": "string", - "description": "Type of the entity - Microsoft.Quota/SharedQuotaEntity.", + "description": "Type of the entity - Microsoft.Quota/GroupQuotas,", "readOnly": true, "x-ms-mutability": [ "read" @@ -1725,7 +1725,7 @@ "properties": { "title": "Properties", "type": "object", - "$ref": "#/definitions/SharedQuotaEntityBase" + "$ref": "#/definitions/GroupQuotasEntityBase" } } }, @@ -1772,14 +1772,14 @@ } }, "GroupingId": { - "description": "The grouping Id for the group quota. It can be ManagementGroup Id or ServiceTreeId if applicable. ", + "description": "The grouping Id for the group quota. It can be MangmentGroup Id or ServiceTreeId if applicable. ", "type": "object", "properties": { "groupingIdType": { "$ref": "#/definitions/GroupingIdType" }, "value": { - "description": "GroupId value based on the groupingType selected - ManagementGroup Id or ServiceTreeId.", + "description": "GroupId value based on the groupingType selected - ManagmentGroup Id or ServiceTreeId.", "type": "string" } } @@ -1795,7 +1795,7 @@ "groupId": { "$ref": "#/definitions/GroupingId" }, - "environment": { + "enviornment": { "$ref": "#/definitions/Environment" } }, @@ -1803,62 +1803,7 @@ "billingAccountId" ] }, - "Filter": { - "type": "object", - "description": "Filter for SharedQuota Entity.", - "properties": { - "filterEntity": { - "type": "string", - "description": "Name of the entity for filter, such as offerType.", - "enum": [ - "billingId", - "groupId", - "environment" - ], - "x-ms-enum": { - "name": "SubscriptionFilterType", - "modelAsString": true - } - }, - "operator": { - "type": "string", - "description": "Operator to use for comparison., such as eq (==), neq (!=), etc.", - "enum": [ - "eq", - "neq" - ], - "x-ms-enum": { - "name": "SubscriptionFilterOperatorType", - "modelAsString": true - } - }, - "filterValue": { - "type": "string", - "description": "Values for the filterEntity for comparison." - } - }, - "required": [ - "filterEntity", - "operator", - "filterValues" - ] - }, - "Filters": { - "type": "object", - "description": "Filters for subscription, which can use shared Quota Entity.", - "properties": { - "and": { - "description": "The logical \"AND\" expression. It can have one or more filters.", - "type": "array", - "items": { - "$ref": "#/definitions/Filter" - }, - "x-ms-identifiers": [], - "minItems": 0 - } - } - }, - "SharedQuotaEntityList": { + "GroupQuotasList": { "type": "object", "description": "Share Quota Entity list.", "properties": { @@ -1866,7 +1811,7 @@ "type": "array", "description": "Share Quota Entity list.", "items": { - "$ref": "#/definitions/SharedQuotaEntity" + "$ref": "#/definitions/GroupQuotasEntity" } }, "nextLink": { @@ -1921,18 +1866,18 @@ "description": "Management Group Id.", "x-ms-parameter-location": "method" }, - "SharedQuotaEntityNameInParameters": { - "name": "sharedQuotaEntityName", + "GroupQuotaNameInParameters": { + "name": "groupQuotaName", "in": "path", "required": true, "pattern": "^[a-z][a-z0-9]*$", "minLength": 3, "maxLength": 63, "type": "string", - "description": "The SharedQuotaEntity name. The name should be unique for the provided context tenantId/MgId.", + "description": "The GroupQuota name. The name should be unique for the provided context tenantId/MgId.", "x-ms-parameter-location": "method" }, - "apiVersionParameter": { + "ApiVersionParameter": { "name": "api-version", "in": "query", "required": true, From bf10e54a8f162af0995dcaad0c74c941298adeb4 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 8 Jun 2023 10:40:16 -0700 Subject: [PATCH 092/158] Removing Space from NonProduction enum definition. --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 4a6ff1299b93..596d03f8b4f5 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1741,7 +1741,7 @@ "type": "string", "description": "Environment name.", "enum": [ - "Non Production", + "NonProduction", "Production" ], "x-ms-enum": { From 003fb5bc586bc105eee9b4d895f45c22913d86b0 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 8 Jun 2023 10:52:52 -0700 Subject: [PATCH 093/158] spell Fix. --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 596d03f8b4f5..b31261acc2c6 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1795,7 +1795,7 @@ "groupId": { "$ref": "#/definitions/GroupingId" }, - "enviornment": { + "environment": { "$ref": "#/definitions/Environment" } }, From 0a3ea8aae861ec17448cf0896962041f6f52f7c5 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Sun, 11 Jun 2023 19:12:14 -0700 Subject: [PATCH 094/158] add example json and fix semantic validation --- .../DeleteGroupQuotaSubscriptions.json | 16 ++ .../examples/DeleteGroupQuotas.json | 15 ++ .../examples/GetCapacityOrder-Compute.json | 103 ++++++++++++ .../examples/GetGroupQuotaLimits-Compute.json | 17 ++ .../examples/GetGroupQuotaSubscriptions.json | 15 ++ .../examples/GetGroupQuotas.json | 15 ++ .../examples/GetGroupQuotasList.json | 14 ++ .../ListGroupQuotaLimits-Compute.json | 16 ++ .../PatchGroupQuotaLimits-Compute.json | 21 +++ .../examples/PatchGroupQuotas.json | 32 ++++ .../PatchGroupQuotasSubscriptionAdd.json | 16 ++ .../PatchQuotaAllocation-Compute.json | 45 ++++++ .../examples/PutCapacityOrder-Batch.json | 94 +++++++++++ .../PutCapacityOrder-BatchAI-Compute.json | 130 +++++++++++++++ ...apacityOrder-BatchAI-CosmosDb-Compute.json | 148 ++++++++++++++++++ .../examples/PutCapacityOrder-BatchAI.json | 77 +++++++++ .../examples/PutCapacityOrder-Compute.json | 94 +++++++++++ .../examples/PutGroupQuotaLimits-Compute.json | 21 +++ .../examples/PutGroupQuotas.json | 32 ++++ .../examples/PutGroupQuotasSubscription.json | 16 ++ .../examples/PutQuotaAllocation-Batch.json | 50 ++++++ .../examples/PutQuotaAllocation-BatchAI.json | 50 ++++++ .../examples/PutQuotaAllocation-Compute.json | 45 ++++++ .../examples/PutQuotaAllocation-CosmosDb.json | 45 ++++++ .../2023-06-01-preview/groupquota.json | 95 +++++------ 25 files changed, 1168 insertions(+), 54 deletions(-) create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/DeleteGroupQuotaSubscriptions.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/DeleteGroupQuotas.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetCapacityOrder-Compute.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotaLimits-Compute.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotaSubscriptions.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotas.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotasList.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/ListGroupQuotaLimits-Compute.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotaLimits-Compute.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotas.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotasSubscriptionAdd.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchQuotaAllocation-Compute.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-Batch.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI-Compute.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI-CosmosDb-Compute.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-Compute.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotaLimits-Compute.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotas.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotasSubscription.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-Batch.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-BatchAI.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-Compute.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-CosmosDb.json diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/DeleteGroupQuotaSubscriptions.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/DeleteGroupQuotaSubscriptions.json new file mode 100644 index 000000000000..d7540a14f723 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/DeleteGroupQuotaSubscriptions.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "sharedQuotaEntityName": "yourSQENameHere", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": {} + }, + "404": { + "body": {} + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/DeleteGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/DeleteGroupQuotas.json new file mode 100644 index 000000000000..022a2433864b --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/DeleteGroupQuotas.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "sharedQuotaEntityName": "yourSQENameHere", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": {} + }, + "404": { + "body": {} + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetCapacityOrder-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetCapacityOrder-Compute.json new file mode 100644 index 000000000000..e1808cea339d --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetCapacityOrder-Compute.json @@ -0,0 +1,103 @@ +{ + "parameters": { + "orderId": "ea10185a-465d-42cd-b339-7d0d9331c34c" + }, + "responses": { + "200": { + "body": { + "id": "ea10185a-465d-42cd-b339-7d0d9331c34c", + "serviceTreeId": "fb10185a-465d-42cd-b339-7d0d9331c340", + "prerequsiteOrderIds": [], + "onBehalfOfCustomers": [], + "needByDate": "2022-10-15", + "etaDate": "", + "requestorContactEmail": "backupops@microsoft.com", + "stage": "GA", + "state": "buildout", + "isHoBo": false, + "orders": [ + { + "resourceProvider": "Microsoft.Compute", + "resources": [ + { + "location": "Poland Central", + "resourceDetails": [ + { + "requestedResource": { + "resourceName": "standardDSv3Family", + "limits": 1115, + "providerSpecificProperties": [], + "unit": "cores" + }, + "alternateResources": [ + { + "resourceName": "standardESv3Family", + "limits": 1115, + "providerSpecificProperties": [], + "unit": "cores" + }, + { + "resourceName": "standardA4Family", + "limits": 2300, + "providerSpecificProperties": [], + "unit": "cores" + } + ], + "approvedResource": "standardA4Family", + "status": "Approved" + }, + { + "requestedResource": { + "resourceName": "standardFFamily", + "limits": 250, + "providerSpecificProperties": [], + "unit": "cores" + }, + "alternateResources": [], + "approvedResource": "standardFFamily", + "status": "Approved" + }, + { + "requestedResource": { + "resourceName": "lowPriorityCores", + "limits": 2500, + "providerSpecificProperties": [], + "unit": "cores" + }, + "alternateResources": [], + "approvedResource": "lowPriorityCores", + "status": "Approved" + }, + { + "requestedResource": { + "resourceName": "cores", + "limits": 2300, + "providerSpecificProperties": [], + "unit": "cores" + }, + "alternateResources": [], + "approvedResource": "cores", + "status": "Approved" + } + ] + } + ], + "metadata": { + "serviceName": "AzureBackup" + }, + "status": "Approved" + } + ] + } + }, + "404": { + "body": { + "error": { + "code": "NotFound", + "target": "capacityOrder", + "message": "Capacity order not found." + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotaLimits-Compute.json new file mode 100644 index 000000000000..289be79695b0 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotaLimits-Compute.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "scope": "providers/Microsoft.Compute/locations/westus", + "sharedQuotaEntityName": "yourSQENameHere", + "resourceName": "cores", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": {} + }, + "404": { + "body": {} + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotaSubscriptions.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotaSubscriptions.json new file mode 100644 index 000000000000..022a2433864b --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotaSubscriptions.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "sharedQuotaEntityName": "yourSQENameHere", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": {} + }, + "404": { + "body": {} + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotas.json new file mode 100644 index 000000000000..022a2433864b --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotas.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "sharedQuotaEntityName": "yourSQENameHere", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": {} + }, + "404": { + "body": {} + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotasList.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotasList.json new file mode 100644 index 000000000000..c51a5c0deec5 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotasList.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": {} + }, + "404": { + "body": {} + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/ListGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/ListGroupQuotaLimits-Compute.json new file mode 100644 index 000000000000..0b4d88aa7aa7 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/ListGroupQuotaLimits-Compute.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "scope": "providers/Microsoft.Compute/locations/westus", + "sharedQuotaEntityName": "yourSQENameHere", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": {} + }, + "404": { + "body": {} + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotaLimits-Compute.json new file mode 100644 index 000000000000..6af2ce2494bc --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotaLimits-Compute.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "scope": "providers/Microsoft.Compute/locations/westus", + "sharedQuotaEntityName": "yourSQENameHere", + "resourceName": "cores", + "api-version": "2023-06-01-preview", + "body": { + "limit": 1000, + "name": {} + } + }, + "responses": { + "200": { + "body": {} + }, + "404": { + "body": {} + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotas.json new file mode 100644 index 000000000000..4d8700dcebc7 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotas.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "sharedQuotaEntityName": "yourSQENameHere", + "api-version": "2023-06-01-preview", + "body": { + "properties": { + "additionalAttributes": { + "billingAccountId": { + "id": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09" + }, + "groupId": { + "groupingIdType": "ServiceTreeId", + "value": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09" + }, + "environment": "Non Production" + }, + "subscriptionIds": { + "properties": {} + } + } + } + }, + "responses": { + "200": { + "body": {} + }, + "404": { + "body": {} + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotasSubscriptionAdd.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotasSubscriptionAdd.json new file mode 100644 index 000000000000..d7540a14f723 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotasSubscriptionAdd.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "sharedQuotaEntityName": "yourSQENameHere", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": {} + }, + "404": { + "body": {} + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchQuotaAllocation-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchQuotaAllocation-Compute.json new file mode 100644 index 000000000000..5d5baf9c7c76 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchQuotaAllocation-Compute.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "orderId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "provider": "Microsoft.Compute", + "location": "eastus", + "resourceName": "standardA4Family", + "allocateQuotaRequest": { + "limits": 1115, + "providerSpecificProperties": [], + "additionalFlags": "Regional" + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "30", + "Azure-AsyncOperation": "https://capacityorder-ppe.trafficmanaget.net/allocations/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3" + }, + "body": { + "id": "allocations/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "name": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "status": "Accepted" + } + }, + "400": { + "body": { + "error": { + "code": "BadRequest", + "target": "capacityOrder", + "message": "Required parameter needByDate missing." + } + } + }, + "404": { + "body": { + "error": { + "code": "NotFound", + "target": "capacityOrder", + "message": "Capacity order not found." + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-Batch.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-Batch.json new file mode 100644 index 000000000000..1e8e4e1d33aa --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-Batch.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "createQuotaRequest": { + "serviceTreeId": "fb10185a-465d-42cd-b339-7d0d9331c340", + "prerequsiteOrderIds": [], + "onBehalfOfCustomers": [], + "needByDate": "2022-10-15", + "requestorContactEmail": "backupops@microsoft.com", + "isHoBo": true, + "stage": "GA", + "state": "growth", + "orders": [ + { + "resourceProvider": "Microsoft.Batch", + "resources": [ + { + "location": "PolandCentral", + "resourceDetails": [ + { + "requestedResource": { + "resourceName": "accounts", + "limits": 250, + "providerSpecificProperties": [] + }, + "alternateResources": [] + }, + { + "requestedResource": { + "resourceName": "standardDSv3Family", + "limits": 1115, + "providerSpecificProperties": [] + }, + "alternateResources": [ + { + "resourceName": "standardESv3Family", + "limits": 1115, + "providerSpecificProperties": [] + }, + { + "resourceName": "standardA4Family", + "limits": 2300, + "providerSpecificProperties": [] + } + ] + }, + { + "requestedResource": { + "resourceName": "pools", + "limits": 250, + "providerSpecificProperties": [] + }, + "alternateResources": [] + }, + { + "requestedResource": { + "resourceName": "jobs", + "limits": 250, + "providerSpecificProperties": [] + }, + "alternateResources": [] + } + ] + } + ] + } + ], + "metadata": { + "serviceName": "AzureBackup" + } + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "30", + "Azure-AsyncOperation": "https://capacityorder-ppe.trafficmanaget.net/capacityOrder/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3" + }, + "body": { + "id": "capacityOrder/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "name": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "status": "Accepted" + } + }, + "400": { + "body": { + "error": { + "code": "BadRequest", + "target": "capacityOrder", + "message": "Required parameter needByDate missing." + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI-Compute.json new file mode 100644 index 000000000000..8b0fff67c401 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI-Compute.json @@ -0,0 +1,130 @@ +{ + "parameters": { + "createQuotaRequest": { + "serviceTreeId": "fb10185a-465d-42cd-b339-7d0d9331c340", + "prerequsiteOrderIds": [], + "onBehalfOfCustomers": [], + "needByDate": "2022-10-15", + "requestorContactEmail": "backupops@microsoft.com", + "stage": "GA", + "isHoBo": false, + "state": "buildout", + "orders": [ + { + "resourceProvider": "Microsoft.MachineLearningServices", + "resources": [ + { + "location": "Poland Central", + "resourceDetails": [ + { + "requestedResource": { + "resourceName": "TotalLowPriorityCores", + "limits": 1115, + "providerSpecificProperties": [ + { + "name": "resourceType", + "value": "lowPriority" + } + ] + }, + "alternateResources": [] + }, + { + "requestedResource": { + "resourceName": "StandardDv2Family", + "limits": 250, + "providerSpecificProperties": [ + { + "name": "resourceType", + "value": "dedicated" + } + ] + }, + "alternateResources": [] + } + ] + } + ] + }, + { + "resourceProvider": "Microsoft.Compute", + "locations": [ + { + "location": "Poland Central", + "resources": [ + { + "requestedResource": { + "resourceName": "standardDSv3Family", + "limits": 1115, + "providerSpecificProperties": [] + }, + "alternateResources": [ + { + "resourceName": "standardESv3Family", + "limits": 1115, + "providerSpecificProperties": [] + }, + { + "resourceName": "standardA4Family", + "limits": 2300, + "providerSpecificProperties": [] + } + ] + }, + { + "requestedResource": { + "resourceName": "standardFFamily", + "limits": 250, + "providerSpecificProperties": [] + }, + "alternateResources": [] + }, + { + "requestedResource": { + "resourceName": "lowPriorityCores", + "limits": 2500, + "providerSpecificProperties": [] + }, + "alternateResources": [] + }, + { + "requestedResource": { + "resourceName": "cores", + "limits": 2300, + "providerSpecificProperties": [] + }, + "alternateResources": [] + } + ] + } + ] + } + ], + "metadata": { + "serviceName": "AzureBackup" + } + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "30", + "Azure-AsyncOperation": "https://capacityorder-ppe.trafficmanaget.net/capacityOrder/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3" + }, + "body": { + "id": "capacityOrder/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "name": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "status": "Accepted" + } + }, + "400": { + "body": { + "error": { + "code": "BadRequest", + "target": "capacityOrder", + "message": "Required parameter needByDate missing." + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI-CosmosDb-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI-CosmosDb-Compute.json new file mode 100644 index 000000000000..fee1490f7d06 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI-CosmosDb-Compute.json @@ -0,0 +1,148 @@ +{ + "parameters": { + "createQuotaRequest": { + "serviceTreeId": "fb10185a-465d-42cd-b339-7d0d9331c340", + "prerequsiteOrderIds": [], + "onBehalfOfCustomers": [], + "needByDate": "2022-10-15", + "requestorContactEmail": "backupops@microsoft.com", + "stage": "GA", + "state": "buildout", + "isHoBo": false, + "orders": [ + { + "resourceProvider": "Microsoft.CosmosDb", + "resources": [ + { + "location": "global", + "resourceDetails": [ + { + "requestedResource": { + "resourceName": "databaseAccounts", + "limits": 11 + }, + "providerSpecificProperties": [], + "alternateResources": [] + } + ] + } + ] + }, + { + "resourceProvider": "Microsoft.MachineLearningServices", + "locations": [ + { + "location": "Poland Central", + "resources": [ + { + "requestedResource": { + "resourceName": "TotalLowPriorityCores", + "limits": 1115, + "providerSpecificProperties": [ + { + "name": "resourceType", + "value": "lowPriority" + } + ] + }, + "alternateResources": [] + }, + { + "requestedResource": { + "resourceName": "StandardDv2Family", + "limits": 250, + "providerSpecificProperties": [ + { + "name": "resourceType", + "value": "dedicated" + } + ] + }, + "alternateResources": [] + } + ] + } + ] + }, + { + "resourceProvider": "Microsoft.Compute", + "locations": [ + { + "location": "Poland Central", + "resources": [ + { + "requestedResource": { + "resourceName": "standardDSv3Family", + "limits": 1115, + "providerSpecificProperties": [] + }, + "alternateResources": [ + { + "resourceName": "standardESv3Family", + "limits": 1115, + "providerSpecificProperties": [] + }, + { + "resourceName": "standardA4Family", + "limits": 2300, + "providerSpecificProperties": [] + } + ] + }, + { + "requestedResource": { + "resourceName": "standardFFamily", + "limits": 250, + "providerSpecificProperties": [] + }, + "alternateResources": [] + }, + { + "requestedResource": { + "resourceName": "lowPriorityCores", + "limits": 2500, + "providerSpecificProperties": [] + }, + "alternateResources": [] + }, + { + "requestedResource": { + "resourceName": "cores", + "limits": 2300, + "providerSpecificProperties": [] + }, + "alternateResources": [] + } + ] + } + ] + } + ], + "metadata": { + "serviceName": "AzureBackup" + } + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "30", + "Azure-AsyncOperation": "https://capacityorder-ppe.trafficmanaget.net/capacityOrder/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3" + }, + "body": { + "id": "capacityOrder/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "name": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "status": "Accepted" + } + }, + "400": { + "body": { + "error": { + "code": "BadRequest", + "target": "capacityOrder", + "message": "Required parameter needByDate missing." + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI.json new file mode 100644 index 000000000000..194e7d59e916 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI.json @@ -0,0 +1,77 @@ +{ + "parameters": { + "createQuotaRequest": { + "serviceTreeId": "fb10185a-465d-42cd-b339-7d0d9331c340", + "prerequsiteOrderIds": [], + "onBehalfOfCustomers": [], + "needByDate": "2022-10-15", + "requestorContactEmail": "backupops@microsoft.com", + "isHoBo": false, + "stage": "GA", + "state": "buildout", + "orders": [ + { + "resourceProvider": "Microsoft.MachineLearningServices", + "resources": [ + { + "location": "Poland Central", + "resourceDetails": [ + { + "requestedResource": { + "resourceName": "TotalLowPriorityCores", + "limits": 1115, + "providerSpecificProperties": [ + { + "name": "resourceType", + "value": "lowPriority" + } + ] + }, + "alternateResources": [] + }, + { + "requestedResource": { + "resourceName": "StandardDv2Family", + "limits": 250, + "providerSpecificProperties": [ + { + "name": "resourceType", + "value": "dedicated" + } + ] + }, + "alternateResources": [] + } + ] + } + ] + } + ], + "metadata": { + "serviceName": "AzureBackup" + } + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "30", + "Azure-AsyncOperation": "https://capacityorder-ppe.trafficmanaget.net/capacityOrder/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3" + }, + "body": { + "id": "capacityOrder/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "name": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "status": "Accepted" + } + }, + "400": { + "body": { + "error": { + "code": "BadRequest", + "target": "capacityOrder", + "message": "Required parameter needByDate missing." + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-Compute.json new file mode 100644 index 000000000000..eb99f8e047ae --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-Compute.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "createQuotaRequest": { + "serviceTreeId": "fb10185a-465d-42cd-b339-7d0d9331c340", + "prerequsiteOrderIds": [], + "onBehalfOfCustomers": [], + "needByDate": "2022-10-15", + "requestorContactEmail": "backupops@microsoft.com", + "isHoBo": true, + "stage": "GA", + "state": "buildout", + "orders": [ + { + "resourceProvider": "Microsoft.Compute", + "resources": [ + { + "location": "Poland Central", + "resourceDetails": [ + { + "requestedResource": { + "resourceName": "standardDSv3Family", + "limits": 1115, + "providerSpecificProperties": [] + }, + "alternateResources": [ + { + "resourceName": "standardESv3Family", + "limits": 1115, + "providerSpecificProperties": [] + }, + { + "resourceName": "standardA4Family", + "limits": 2300, + "providerSpecificProperties": [] + } + ] + }, + { + "requestedResource": { + "resourceName": "standardFFamily", + "limits": 250, + "providerSpecificProperties": [] + }, + "alternateResources": [] + }, + { + "requestedResource": { + "resourceName": "lowPriorityCores", + "limits": 2500, + "providerSpecificProperties": [] + }, + "alternateResources": [] + }, + { + "requestedResource": { + "resourceName": "cores", + "limits": 2300, + "providerSpecificProperties": [] + }, + "alternateResources": [] + } + ] + } + ] + } + ], + "metadata": { + "serviceName": "AzureBackup" + } + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "30", + "Azure-AsyncOperation": "https://capacityorder-ppe.trafficmanaget.net/capacityOrder/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3" + }, + "body": { + "id": "capacityOrder/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "name": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "status": "Accepted" + } + }, + "400": { + "body": { + "error": { + "code": "BadRequest", + "target": "capacityOrder", + "message": "Required parameter needByDate missing." + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotaLimits-Compute.json new file mode 100644 index 000000000000..6af2ce2494bc --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotaLimits-Compute.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "scope": "providers/Microsoft.Compute/locations/westus", + "sharedQuotaEntityName": "yourSQENameHere", + "resourceName": "cores", + "api-version": "2023-06-01-preview", + "body": { + "limit": 1000, + "name": {} + } + }, + "responses": { + "200": { + "body": {} + }, + "404": { + "body": {} + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotas.json new file mode 100644 index 000000000000..4d8700dcebc7 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotas.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "sharedQuotaEntityName": "yourSQENameHere", + "api-version": "2023-06-01-preview", + "body": { + "properties": { + "additionalAttributes": { + "billingAccountId": { + "id": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09" + }, + "groupId": { + "groupingIdType": "ServiceTreeId", + "value": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09" + }, + "environment": "Non Production" + }, + "subscriptionIds": { + "properties": {} + } + } + } + }, + "responses": { + "200": { + "body": {} + }, + "404": { + "body": {} + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotasSubscription.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotasSubscription.json new file mode 100644 index 000000000000..d7540a14f723 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotasSubscription.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "sharedQuotaEntityName": "yourSQENameHere", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": {} + }, + "404": { + "body": {} + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-Batch.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-Batch.json new file mode 100644 index 000000000000..282687db85cc --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-Batch.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "orderId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "provider": "Microsoft.MachineLearningServices", + "location": "eastus", + "resourceName": "standardA4Family", + "allocateQuotaRequest": { + "limits": 115, + "providerSpecificProperties": [ + { + "name": "accountName", + "value": "batch_Account_eus_1" + } + ], + "additionalFlags": "None" + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "30", + "Azure-AsyncOperation": "https://capacityorder-ppe.trafficmanaget.net/allocations/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3" + }, + "body": { + "id": "allocations/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "name": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "status": "Accepted" + } + }, + "400": { + "body": { + "error": { + "code": "BadRequest", + "target": "capacityOrder", + "message": "Required parameter needByDate missing." + } + } + }, + "404": { + "body": { + "error": { + "code": "NotFound", + "target": "capacityOrder", + "message": "Capacity order not found." + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-BatchAI.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-BatchAI.json new file mode 100644 index 000000000000..a81688710716 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-BatchAI.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "orderId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "provider": "Microsoft.MachineLearningServices", + "location": "eastus", + "resourceName": "standardA4Family", + "allocateQuotaRequest": { + "limits": 1115, + "providerSpecificProperties": [ + { + "name": "resourceType", + "value": "dedicated" + } + ], + "additionalFlags": "None" + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "30", + "Azure-AsyncOperation": "https://capacityorder-ppe.trafficmanaget.net/allocations/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3" + }, + "body": { + "id": "allocations/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "name": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "status": "Accepted" + } + }, + "400": { + "body": { + "error": { + "code": "BadRequest", + "target": "capacityOrder", + "message": "Required parameter needByDate missing." + } + } + }, + "404": { + "body": { + "error": { + "code": "NotFound", + "target": "capacityOrder", + "message": "Capacity order not found." + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-Compute.json new file mode 100644 index 000000000000..5d5baf9c7c76 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-Compute.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "orderId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "provider": "Microsoft.Compute", + "location": "eastus", + "resourceName": "standardA4Family", + "allocateQuotaRequest": { + "limits": 1115, + "providerSpecificProperties": [], + "additionalFlags": "Regional" + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "30", + "Azure-AsyncOperation": "https://capacityorder-ppe.trafficmanaget.net/allocations/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3" + }, + "body": { + "id": "allocations/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "name": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "status": "Accepted" + } + }, + "400": { + "body": { + "error": { + "code": "BadRequest", + "target": "capacityOrder", + "message": "Required parameter needByDate missing." + } + } + }, + "404": { + "body": { + "error": { + "code": "NotFound", + "target": "capacityOrder", + "message": "Capacity order not found." + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-CosmosDb.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-CosmosDb.json new file mode 100644 index 000000000000..0f03dc97f593 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-CosmosDb.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "orderId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "provider": "Microsoft.CosmosDb", + "location": "global", + "resourceName": "databaseAccounts", + "allocateQuotaRequest": { + "limits": 5, + "providerSpecificProperties": [], + "additionalFlags": "None" + } + }, + "responses": { + "202": { + "headers": { + "Retry-After": "30", + "Azure-AsyncOperation": "https://capacityorder-ppe.trafficmanaget.net/allocations/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3" + }, + "body": { + "id": "allocations/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "name": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "status": "Accepted" + } + }, + "400": { + "body": { + "error": { + "code": "BadRequest", + "target": "capacityOrder", + "message": "Required parameter needByDate missing." + } + } + }, + "404": { + "body": { + "error": { + "code": "NotFound", + "target": "capacityOrder", + "message": "Capacity order not found." + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 0843bc3b4fff..27420e548b35 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -108,7 +108,7 @@ "operationId": "GroupQuotas_Update", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/Patch GroupQuotas.json" + "$ref": "./examples/PatchGroupQuotas.json" } }, "x-ms-long-running-operation": true, @@ -176,7 +176,7 @@ "operationId": " GroupQuotas_Get", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/GetGroupQuotas,json" + "$ref": "./examples/GetGroupQuotas.json" } }, "parameters": [ @@ -214,7 +214,7 @@ "operationId": "GroupQuotas_Delete", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/DeleteGroupQuotas,json" + "$ref": "./examples/DeleteGroupQuotas.json" } }, "parameters": [ @@ -286,8 +286,8 @@ "tags": [ "GroupQuotas-Subscriptions" ], - "summary": "Gets GroupQuotas Subscription List for the GroupQuotas name passed.", - "description": "Gets GroupQuotas Subscription List for the GroupQuotas name passed.", + "summary": "Gets GroupQuota Subscription List for the GroupQuotas name passed.", + "description": "Gets GroupQuota Subscription List for the GroupQuota name passed.", "operationId": "GroupQuotaSubscriptions_GetList", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { @@ -410,7 +410,7 @@ "operationId": "GroupQuotaSubscriptions_Delete", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/DeleteGroupQuotasSubscriptions.json" + "$ref": "./examples/DeleteGroupQuotaSubscriptions.json" } }, "parameters": [ @@ -451,7 +451,7 @@ "operationId": "SGroupQuotaSubscription_Get", "x-ms-examples": { "GroupQuotaLimits_Put_Subscription": { - "$ref": "./examples/DeleteGroupQuotasSubscription.json" + "$ref": "./examples/DeleteGroupQuotaSubscriptions.json" } }, "parameters": [ @@ -701,9 +701,6 @@ { "$ref": "#/parameters/GroupQuotaNameInParameters" }, - { - "$ref": "#/parameters/ResourceInParameters" - }, { "$ref": "#/parameters/ApiVersionParameter" } @@ -822,8 +819,8 @@ "description": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", "operationId": "ShareQuotaMGSubscription_List", "x-ms-examples": { - "GroupQuota_Put_Request_ForCompute": { - "$ref": "./examples/PutQuotaAllocation-Compute.json" + "GroupQuota_Get_Request_ForCompute": { + "$ref": "./examples/GetQuotaAllocation-Compute.json" } }, "parameters": [ @@ -1421,17 +1418,14 @@ "read" ] }, - "properties": { - "type": "object", - "provisioningState ": { - "$ref": "#/definitions/RequestState", - "readOnly": true - }, - "limit": { - "type": "integer", - "format": "int64", - "description": "The new quota limit for the subscription. The incremental quota will be assigned from pre-approved groupQuota." - } + "provisioningState ": { + "$ref": "#/definitions/RequestState", + "readOnly": true + }, + "limit": { + "type": "integer", + "format": "int64", + "description": "The new quota limit for the subscription. The incremental quota will be assigned from pre-approved groupQuota." } } }, @@ -1522,7 +1516,6 @@ "type": "object", "description": "Subscription quota list.", "properties": { - "type": "object", "value": { "type": "array", "description": "Subscription quota list.", @@ -1640,11 +1633,11 @@ "value": { "type": "string", "description": "The value for the attribute." - }, - "x-ms-identifiers": [ - "attribute" - ] - } + } + }, + "x-ms-identifiers": [ + "attribute" + ] }, "AttributeList": { "type": "array", @@ -1674,21 +1667,22 @@ "type": "string", "readOnly": true }, - "properties": { - "type": "object", - "provisioningState": { - "type": "string", - "description": "Provisioning state", - "$ref": "#/definitions/RequestState", - "readOnly": true - }, - "subscriptionIds": { - "type": "array", - "description": "List of subscriptionIds.", - "items": { - "type": "string", - "description": "SubscriptionId." + "provisioningState": { + "type": "string", + "description": "Provisioning state", + "allOf": [ + { + "$ref": "#/definitions/RequestState" } + ], + "readOnly": true + }, + "subscriptionIds": { + "type": "array", + "description": "List of subscriptionIds.", + "items": { + "type": "string", + "description": "SubscriptionId." } } } @@ -1755,17 +1749,10 @@ }, "GroupingIdType": { "type": "string", - "GroupingIdType": { - "type": "string", - "description": "GroupingId type. More types of groupIds can be supported in future. MGID is already in the URI, so it's not needed and cause errors, if the MGId in Uri is different properties.'", - "enum": [ - "ServiceTreeId" - ], - "x-ms-enum": { - "name": "GroupingIdType", - "modelAsString": true - } - }, + "description": "GroupingId type. More types of groupIds can be supported in future. MGID is already in the URI, so it's not needed and cause errors, if the MGId in Uri is different properties.'", + "enum": [ + "ServiceTreeId" + ], "x-ms-enum": { "name": "GroupingIdType", "modelAsString": true From 5ca9d3cd4dc18b9efde364fa51967d492467ac50 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Sun, 11 Jun 2023 19:14:48 -0700 Subject: [PATCH 095/158] spell check --- .../preview/2023-06-01-preview/groupquota.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 27420e548b35..d199dc06a5a2 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1759,14 +1759,14 @@ } }, "GroupingId": { - "description": "The grouping Id for the group quota. It can be MangmentGroup Id or ServiceTreeId if applicable. ", + "description": "The grouping Id for the group quota. It can be ManagementGroup Id or ServiceTreeId if applicable. ", "type": "object", "properties": { "groupingIdType": { "$ref": "#/definitions/GroupingIdType" }, "value": { - "description": "GroupId value based on the groupingType selected - ManagmentGroup Id or ServiceTreeId.", + "description": "GroupId value based on the groupingType selected - ManagementGroup Id or ServiceTreeId.", "type": "string" } } From 4443b40b7420e500a546f2405952b8eac73473ba Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Sun, 11 Jun 2023 19:30:38 -0700 Subject: [PATCH 096/158] prettier --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index d199dc06a5a2..1ee53151298b 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1633,7 +1633,7 @@ "value": { "type": "string", "description": "The value for the attribute." - } + } }, "x-ms-identifiers": [ "attribute" From a3cff454cba3e9f0805fb7233f7be341daf1c94d Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Sun, 11 Jun 2023 20:10:37 -0700 Subject: [PATCH 097/158] ProvisioningStateSpecifiedForLROPut LintDiff fix --- .../2023-06-01-preview/groupquota.json | 36 +++++++------------ 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 1ee53151298b..d12474883fda 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1590,26 +1590,6 @@ } } }, - "GroupQuotasEntityBase": { - "type": "object", - "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", - "x-ms-azure-resource": true, - "properties": { - "additionalAttributes": { - "description": "Additional attributes to allow subscription, which can be added to the subscriptionIds.", - "$ref": "#/definitions/AdditionalAttributes" - }, - "subscriptionIds": { - "description": "List of subscriptions included in the ShareQuotaEntity. It can be null at the time of creation or a list of subscriptions can be passed.", - "$ref": "#/definitions/SubscriptionIdList" - }, - "provisioningState": { - "description": "Provisioning state of the operation.", - "$ref": "#/definitions/RequestState", - "readOnly": true - } - } - }, "AttributeType": { "type": "string", "description": "Name of the entity for filter, such as offerType.", @@ -1716,10 +1696,18 @@ "read" ] }, - "properties": { - "title": "Properties", - "type": "object", - "$ref": "#/definitions/GroupQuotasEntityBase" + "additionalAttributes": { + "description": "Additional attributes to allow subscription, which can be added to the subscriptionIds.", + "$ref": "#/definitions/AdditionalAttributes" + }, + "subscriptionIds": { + "description": "List of subscriptions included in the ShareQuotaEntity. It can be null at the time of creation or a list of subscriptions can be passed.", + "$ref": "#/definitions/SubscriptionIdList" + }, + "provisioningState": { + "description": "Provisioning state of the operation.", + "$ref": "#/definitions/RequestState", + "readOnly": true } } }, From 2c03f664a27d8dcd305ecd0015b37e7bcfe9ae69 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Sun, 11 Jun 2023 20:11:20 -0700 Subject: [PATCH 098/158] ProvisioningStateSpecifiedForLROPut LintDiff fix --- .../2023-06-01-preview/groupquota.json | 41 ------------------- 1 file changed, 41 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index d12474883fda..8b2d5f29383b 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -441,47 +441,6 @@ } } } - }, - "get": { - "tags": [ - "GroupQuotas-Subscriptions" - ], - "summary": "Checks if the subscription is in GroupQuotas SubscriptionIdList.", - "description": "Checks if the subscription is in GroupQuotas SubscriptionIdList.", - "operationId": "SGroupQuotaSubscription_Get", - "x-ms-examples": { - "GroupQuotaLimits_Put_Subscription": { - "$ref": "./examples/DeleteGroupQuotaSubscriptions.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/GroupQuotaNameInParameters" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdInParameters" - } - ], - "responses": { - "200": { - "description": "OK." - }, - "204": { - "description": "No Content." - }, - "default": { - "description": "Error", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } } }, "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaLimits/{resourceName}": { From 2cd2fd944fd545ed60616db718c89fb6ba249d10 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Sun, 11 Jun 2023 20:37:15 -0700 Subject: [PATCH 099/158] replace get for group quota subscriptions --- .../2023-06-01-preview/groupquota.json | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 8b2d5f29383b..d12474883fda 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -441,6 +441,47 @@ } } } + }, + "get": { + "tags": [ + "GroupQuotas-Subscriptions" + ], + "summary": "Checks if the subscription is in GroupQuotas SubscriptionIdList.", + "description": "Checks if the subscription is in GroupQuotas SubscriptionIdList.", + "operationId": "SGroupQuotaSubscription_Get", + "x-ms-examples": { + "GroupQuotaLimits_Put_Subscription": { + "$ref": "./examples/DeleteGroupQuotaSubscriptions.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/GroupQuotaNameInParameters" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdInParameters" + } + ], + "responses": { + "200": { + "description": "OK." + }, + "204": { + "description": "No Content." + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } } }, "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaLimits/{resourceName}": { From e57bfdf0f5971959055781b51f8f73711400398b Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Sun, 11 Jun 2023 21:10:24 -0700 Subject: [PATCH 100/158] add back GroupQuotasEntityBase and new provisioning state in OperationStatus --- .../2023-06-01-preview/groupquota.json | 45 ++++++++++++------- 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index d12474883fda..a58299891799 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1259,9 +1259,12 @@ "type": "string", "readOnly": true }, - "provisioningState": { - "$ref": "#/definitions/RequestState", - "readOnly": true + "properties": { + "type": "object", + "provisioningState": { + "$ref": "#/definitions/RequestState", + "readOnly": true + } }, "error": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", @@ -1590,6 +1593,26 @@ } } }, + "GroupQuotasEntityBase": { + "type": "object", + "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", + "x-ms-azure-resource": true, + "properties": { + "additionalAttributes": { + "description": "Additional attributes to allow subscription, which can be added to the subscriptionIds.", + "$ref": "#/definitions/AdditionalAttributes" + }, + "subscriptionIds": { + "description": "List of subscriptions included in the ShareQuotaEntity. It can be null at the time of creation or a list of subscriptions can be passed.", + "$ref": "#/definitions/SubscriptionIdList" + }, + "provisioningState": { + "description": "Provisioning state of the operation.", + "$ref": "#/definitions/RequestState", + "readOnly": true + } + } + }, "AttributeType": { "type": "string", "description": "Name of the entity for filter, such as offerType.", @@ -1696,18 +1719,10 @@ "read" ] }, - "additionalAttributes": { - "description": "Additional attributes to allow subscription, which can be added to the subscriptionIds.", - "$ref": "#/definitions/AdditionalAttributes" - }, - "subscriptionIds": { - "description": "List of subscriptions included in the ShareQuotaEntity. It can be null at the time of creation or a list of subscriptions can be passed.", - "$ref": "#/definitions/SubscriptionIdList" - }, - "provisioningState": { - "description": "Provisioning state of the operation.", - "$ref": "#/definitions/RequestState", - "readOnly": true + "properties": { + "title": "Properties", + "type": "object", + "$ref": "#/definitions/GroupQuotasEntityBase" } } }, From f26f2e4a73257015b30ba7084ae7af0ac5d6b7ea Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Sun, 11 Jun 2023 22:42:30 -0700 Subject: [PATCH 101/158] add properties field to nesting --- .../preview/2023-06-01-preview/groupquota.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index a58299891799..3667f9a61220 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1261,9 +1261,11 @@ }, "properties": { "type": "object", - "provisioningState": { - "$ref": "#/definitions/RequestState", - "readOnly": true + "properties": { + "provisioningState": { + "$ref": "#/definitions/RequestState", + "readOnly": true + } } }, "error": { From 0cdfc0b75d73f3f8d00618eac6d8cce25dc3a55a Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 12 Jun 2023 17:23:09 -0700 Subject: [PATCH 102/158] adding DisplayName and changes based on review suggestions. --- .../2023-06-01-preview/groupquota.json | 97 ++++++------------- 1 file changed, 32 insertions(+), 65 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index b31261acc2c6..2587f93b66bb 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1597,64 +1597,6 @@ } } }, - "GroupQuotasEntityBase": { - "type": "object", - "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", - "x-ms-azure-resource": true, - "properties": { - "additionalAttributes": { - "description": "Additional attributes to allow subscription, which can be added to the subscriptionIds.", - "$ref": "#/definitions/AdditionalAttributes" - }, - "subscriptionIds": { - "description": "List of subscriptions included in the ShareQuotaEntity. It can be null at the time of creation or a list of subscriptions can be passed.", - "$ref": "#/definitions/SubscriptionIdList" - }, - "provisioningState": { - "description": "Provisioning state of the operation.", - "$ref": "#/definitions/RequestState", - "readOnly": true - } - } - }, - "AttributeType": { - "type": "string", - "description": "Name of the entity for filter, such as offerType.", - "enum": [ - "billingId", - "serviceTreeId", - "subscriptionType" - ], - "x-ms-enum": { - "name": "GroupQuotaAttributeType", - "modelAsString": true - } - }, - "Attribute": { - "type": "object", - "properties": { - "attribute": { - "$ref": "#/definitions/AttributeType", - "description": "The attribute type." - }, - "value": { - "type": "string", - "description": "The value for the attribute." - }, - "x-ms-identifiers": [ - "attribute" - ] - } - }, - "AttributeList": { - "type": "array", - "description": "Attributes List for the GroupQuotas,", - "items": { - "$ref": "#/definitions/Attribute", - "description": "The attribute type and corresponding value." - }, - "x-ms-identifiers": [] - }, "SubscriptionIdList": { "x-ms-azure-resource": true, "type": "object", @@ -1693,6 +1635,34 @@ } } }, + "GroupQuotasEntityBase": { + "type": "object", + "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", + "x-ms-azure-resource": true, + "properties": { + "displayName": { + "description": "Display name of the GroupQuota entity.", + "type": "string" + }, + "additionalAttributes": { + "description": "Additional attributes to allow subscription, which can be added to the subscriptionIds.", + "$ref": "#/definitions/AdditionalAttributes" + }, + "subscriptionIds": { + "description": "List of subscriptions included in the ShareQuotaEntity. It can be null at the time of creation or a list of subscriptions can be passed.", + "type": "array", + "items": { + "type": "string", + "description": "SubscriptionId." + } + }, + "provisioningState": { + "description": "Provisioning state of the operation.", + "$ref": "#/definitions/RequestState", + "readOnly": true + } + } + }, "GroupQuotasEntity": { "type": "object", "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", @@ -1757,9 +1727,10 @@ "type": "string", "GroupingIdType": { "type": "string", - "description": "GroupingId type. More types of groupIds can be supported in future. MGID is already in the URI, so it's not needed and cause errors, if the MGId in Uri is different properties.'", + "description": "GroupingId type. It is required property. More types of groupIds can be supported in future. MGID is already in the URI, so it's not needed.'", "enum": [ - "ServiceTreeId" + "ServiceTreeId", + "BillingId" ], "x-ms-enum": { "name": "GroupingIdType", @@ -1788,10 +1759,6 @@ "description": "Additional attribute to allow subscriptions to be part of the GroupQuota.", "type": "object", "properties": { - "billingAccountId": { - "description": "BillingAccountId. The customer can make mistake and select a billing account ID not belonging to MG. Let's think from the end user perspective. Make it simpler and less error prone, where the customer is struggling to provide the right configuration.", - "$ref": "#/definitions/BillingAccountId" - }, "groupId": { "$ref": "#/definitions/GroupingId" }, @@ -1800,7 +1767,7 @@ } }, "required": [ - "billingAccountId" + "groupId" ] }, "GroupQuotasList": { From 32d89ced4bbf79c89a8fc0cb1f2c468d223819ed Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Tue, 13 Jun 2023 04:29:37 -0700 Subject: [PATCH 103/158] add 201, remove 204 --- .../2023-06-01-preview/groupquota.json | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 2a4b2e44be6b..3b1ec42a4b0c 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -352,6 +352,27 @@ "200": { "description": "OK, Create or Update" }, + "201": { + "description": "Request Accepted, Create or Update", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int64" + }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers. New guidelines - https://github.com/microsoft/api-guidelines/blob/vNext/Guidelines.md#131-resource-based-long-running-operations-relo", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, "default": { "description": "Error", "schema": { @@ -472,9 +493,6 @@ "200": { "description": "OK." }, - "204": { - "description": "No Content." - }, "default": { "description": "Error", "schema": { From 2d27b16a8e20099cd6173d1dc85e777b34581aea Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Tue, 13 Jun 2023 04:53:06 -0700 Subject: [PATCH 104/158] camel case rule fix --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 3b1ec42a4b0c..8844b7028a56 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1441,7 +1441,7 @@ "read" ] }, - "provisioningState ": { + "provisioningState": { "$ref": "#/definitions/RequestState", "readOnly": true }, From 979cf59068aec664cf4bce8fc5f3cd2252fb8cc8 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Tue, 13 Jun 2023 05:04:14 -0700 Subject: [PATCH 105/158] BodyTopLevelProperties fix --- .../2023-06-01-preview/groupquota.json | 58 ++++++++++--------- 1 file changed, 31 insertions(+), 27 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 8844b7028a56..d7e3cc9952fc 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1441,14 +1441,16 @@ "read" ] }, - "provisioningState": { - "$ref": "#/definitions/RequestState", - "readOnly": true - }, - "limit": { - "type": "integer", - "format": "int64", - "description": "The new quota limit for the subscription. The incremental quota will be assigned from pre-approved groupQuota." + "properties": { + "provisioningState": { + "$ref": "#/definitions/RequestState", + "readOnly": true + }, + "limit": { + "type": "integer", + "format": "int64", + "description": "The new quota limit for the subscription. The incremental quota will be assigned from pre-approved groupQuota." + } } } }, @@ -1506,10 +1508,6 @@ "type": "string", "readOnly": true }, - "provisioningState": { - "$ref": "#/definitions/RequestState", - "readOnly": true - }, "properties": { "description": "Group Quota properties for the specified resource.", "$ref": "#/definitions/SubscriptionQuotaDetails" @@ -1530,6 +1528,10 @@ "format": "int64", "description": "The non shareable quota for the subscription." }, + "provisioningState": { + "$ref": "#/definitions/RequestState", + "readOnly": true + }, "quotaSource": { "$ref": "#/definitions/SubscriptionGroupQuotaAssignmentList" } @@ -1632,22 +1634,24 @@ "type": "string", "readOnly": true }, - "provisioningState": { - "type": "string", - "description": "Provisioning state", - "allOf": [ - { - "$ref": "#/definitions/RequestState" - } - ], - "readOnly": true - }, - "subscriptionIds": { - "type": "array", - "description": "List of subscriptionIds.", - "items": { + "properties": { + "provisioningState": { "type": "string", - "description": "SubscriptionId." + "description": "Provisioning state", + "allOf": [ + { + "$ref": "#/definitions/RequestState" + } + ], + "readOnly": true + }, + "subscriptionIds": { + "type": "array", + "description": "List of subscriptionIds.", + "items": { + "type": "string", + "description": "SubscriptionId." + } } } } From 6b803e68f59aeb58e5389d39bd11059a5f93e5d5 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Tue, 13 Jun 2023 05:20:54 -0700 Subject: [PATCH 106/158] NoDuplicatePathsForScopeParameter fix --- .../preview/2023-06-01-preview/groupquota.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index d7e3cc9952fc..6b09f34cad38 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -502,7 +502,7 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaLimits/{resourceName}": { + "/providers/Microsoft.Management/managementGroups/{mgId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaLimits/{resourceName}": { "put": { "tags": [ "GroupQuotaLimits" @@ -696,7 +696,7 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaLimits": { + "/providers/Microsoft.Management/managementGroups/{mgId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaLimits": { "get": { "tags": [ "GroupQuotaLimits" @@ -739,7 +739,7 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaRequests": { + "/providers/Microsoft.Management/managementGroups/{mgId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaRequests": { "get": { "tags": [ "GroupQuotaLimits-Requests" @@ -782,7 +782,7 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/{scope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaRequests/{requestId}": { + "/providers/Microsoft.Management/managementGroups/{mgId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaRequests/{requestId}": { "get": { "tags": [ "GroupQuotaLimits-Requests" @@ -828,7 +828,7 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations": { + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations": { "get": { "tags": [ "SubscriptionQuota-Allocation" @@ -874,7 +874,7 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations/{resourceName}": { + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations/{resourceName}": { "put": { "tags": [ "SubscriptionQuota-Allocation" @@ -1080,7 +1080,7 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests/{allocationId}": { + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests/{allocationId}": { "get": { "tags": [ "Subscription-Quota-Allocation-Requests" @@ -1129,7 +1129,7 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{scope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests": { + "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests": { "get": { "tags": [ "Subscription-Quota-Allocation-Requests" @@ -1868,7 +1868,7 @@ "minLength": 1 }, "ScopeInParameters": { - "name": "scope", + "name": "resourceProviderScope", "in": "path", "required": true, "type": "string", From a599566ab4f305c88d0c921bb284838dab948d2f Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Tue, 13 Jun 2023 07:23:09 -0700 Subject: [PATCH 107/158] fix nesting of provisioningState in properties bag --- .../2023-06-01-preview/groupquota.json | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 6b09f34cad38..369cf4e80bd9 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1442,14 +1442,17 @@ ] }, "properties": { - "provisioningState": { - "$ref": "#/definitions/RequestState", - "readOnly": true - }, - "limit": { - "type": "integer", - "format": "int64", - "description": "The new quota limit for the subscription. The incremental quota will be assigned from pre-approved groupQuota." + "type": "object", + "properties": { + "provisioningState": { + "$ref": "#/definitions/RequestState", + "readOnly": true + }, + "limit": { + "type": "integer", + "format": "int64", + "description": "The new quota limit for the subscription. The incremental quota will be assigned from pre-approved groupQuota." + } } } } From c33ee1a15c6ac3762b55dd64f6aeac7b2f4c364f Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Tue, 13 Jun 2023 16:57:10 -0700 Subject: [PATCH 108/158] create separate GroupQuotaSubscriptionId definition --- .../2023-06-01-preview/groupquota.json | 40 +++++++++++++------ 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 369cf4e80bd9..5fbf20c3bf93 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -309,7 +309,7 @@ "200": { "description": "OK.", "schema": { - "$ref": "#/definitions/SubscriptionIdList" + "$ref": "#/definitions/GroupQuotaSubscriptionIdList" } }, "default": { @@ -350,7 +350,10 @@ ], "responses": { "200": { - "description": "OK, Create or Update" + "description": "OK, Create or Update", + "schema": { + "$ref": "#/definitions/GroupQuotaSubscriptionId" + } }, "201": { "description": "Request Accepted, Create or Update", @@ -411,7 +414,7 @@ "200": { "description": "OK.", "schema": { - "$ref": "#/definitions/SubscriptionIdList" + "$ref": "#/definitions/GroupQuotaSubscriptionId" } }, "default": { @@ -491,7 +494,10 @@ ], "responses": { "200": { - "description": "OK." + "description": "OK.", + "schema": { + "$ref": "#/definitions/GroupQuotaSubscriptionId" + } }, "default": { "description": "Error", @@ -882,7 +888,6 @@ "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern to check the status using Async polling as standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.", "description": "Request to assign a specific resource quota from group quota to a specific Subscription. The subscriptions can also reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, which means the maximum unused quota assigned back to MG groupQuota will be the groupQuota assigned to the subscriptions. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription.", "operationId": "GroupQuotaSubscriptionQuotaAllocation_CreateOrUpdate", - "x-ms-azure-resource": true, "x-ms-examples": { "ShareQuotaOrder_Subscription_Allocation_Put_ForCompute": { "$ref": "./examples/PutQuotaAllocation-Compute.json" @@ -1618,7 +1623,7 @@ } } }, - "SubscriptionIdList": { + "GroupQuotaSubscriptionIdList": { "x-ms-azure-resource": true, "type": "object", "properties": { @@ -1637,6 +1642,19 @@ "type": "string", "readOnly": true }, + "value": { + "type": "array", + "description": "The full list of subscription ids that have been requested to be added to a Group Quot and their provisioning status.", + "items": { + "$ref": "#/definitions/GroupQuotaSubscriptionId" + } + } + } + }, + "GroupQuotaSubscriptionId": { + "type": "object", + "description": "A subscription id that has been requested to be added to a Group Quota. Includes status of that add request.", + "properties": { "properties": { "provisioningState": { "type": "string", @@ -1648,13 +1666,9 @@ ], "readOnly": true }, - "subscriptionIds": { - "type": "array", - "description": "List of subscriptionIds.", - "items": { - "type": "string", - "description": "SubscriptionId." - } + "subscriptionId": { + "type": "string", + "description": "SubscriptionId." } } } From 33ae1884e17711c15a4a4d9e5ecf1d81e6970ffb Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Tue, 13 Jun 2023 16:57:35 -0700 Subject: [PATCH 109/158] prettiern --- .../preview/2023-06-01-preview/groupquota.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 5fbf20c3bf93..a1abbcd2a390 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1643,11 +1643,11 @@ "readOnly": true }, "value": { - "type": "array", + "type": "array", "description": "The full list of subscription ids that have been requested to be added to a Group Quot and their provisioning status.", - "items": { - "$ref": "#/definitions/GroupQuotaSubscriptionId" - } + "items": { + "$ref": "#/definitions/GroupQuotaSubscriptionId" + } } } }, From 227b38d82214c1008f92dc3c4d86af9dfcc69c49 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Tue, 13 Jun 2023 17:02:19 -0700 Subject: [PATCH 110/158] Spell Fix. --- .../preview/2023-06-01-preview/groupquota.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 2587f93b66bb..6223d6bd12a2 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -250,7 +250,7 @@ "GroupQuotas" ], "summary": "Lists GroupQuotas for the scope passed.", - "description": "Lists GroupQuotas for the scope passed. It will return the ShareGroupQuotasdQuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", + "description": "Lists GroupQuotas for the scope passed. It will return the GroupQuotas QuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", "operationId": "GroupQuotas_List", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { @@ -1743,14 +1743,14 @@ } }, "GroupingId": { - "description": "The grouping Id for the group quota. It can be MangmentGroup Id or ServiceTreeId if applicable. ", + "description": "The grouping Id for the group quota. It can be management Group Id or ServiceTreeId if applicable. ", "type": "object", "properties": { "groupingIdType": { "$ref": "#/definitions/GroupingIdType" }, "value": { - "description": "GroupId value based on the groupingType selected - ManagmentGroup Id or ServiceTreeId.", + "description": "GroupId value based on the groupingType selected - management Group Id or ServiceTreeId.", "type": "string" } } From bd994c5dd25e81df85b5f04cf17929464bd67df2 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Tue, 13 Jun 2023 17:16:14 -0700 Subject: [PATCH 111/158] change GroupQuotas-Subscriptions apis to return the GroupQuotasEntity modified --- .../2023-06-01-preview/groupquota.json | 96 +------------------ 1 file changed, 3 insertions(+), 93 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index a1abbcd2a390..0953115ea4a6 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -281,46 +281,6 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptions": { - "get": { - "tags": [ - "GroupQuotas-Subscriptions" - ], - "summary": "Gets GroupQuota Subscription List for the GroupQuotas name passed.", - "description": "Gets GroupQuota Subscription List for the GroupQuota name passed.", - "operationId": "GroupQuotaSubscriptions_GetList", - "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/GetGroupQuotaSubscriptions.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/GroupQuotaNameInParameters" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK.", - "schema": { - "$ref": "#/definitions/GroupQuotaSubscriptionIdList" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - } - } - }, "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptions/{subscriptionId}": { "put": { "tags": [ @@ -352,7 +312,7 @@ "200": { "description": "OK, Create or Update", "schema": { - "$ref": "#/definitions/GroupQuotaSubscriptionId" + "$ref": "#/definitions/GroupQuotasEntity" } }, "201": { @@ -414,7 +374,7 @@ "200": { "description": "OK.", "schema": { - "$ref": "#/definitions/GroupQuotaSubscriptionId" + "$ref": "#/definitions/GroupQuotasEntity" } }, "default": { @@ -496,7 +456,7 @@ "200": { "description": "OK.", "schema": { - "$ref": "#/definitions/GroupQuotaSubscriptionId" + "$ref": "#/definitions/GroupQuotasEntity" } }, "default": { @@ -1623,56 +1583,6 @@ } } }, - "GroupQuotaSubscriptionIdList": { - "x-ms-azure-resource": true, - "type": "object", - "properties": { - "id": { - "description": "The resource ID.", - "type": "string", - "readOnly": true - }, - "type": { - "description": "The type.", - "type": "string", - "readOnly": true - }, - "name": { - "description": "The resource name.", - "type": "string", - "readOnly": true - }, - "value": { - "type": "array", - "description": "The full list of subscription ids that have been requested to be added to a Group Quot and their provisioning status.", - "items": { - "$ref": "#/definitions/GroupQuotaSubscriptionId" - } - } - } - }, - "GroupQuotaSubscriptionId": { - "type": "object", - "description": "A subscription id that has been requested to be added to a Group Quota. Includes status of that add request.", - "properties": { - "properties": { - "provisioningState": { - "type": "string", - "description": "Provisioning state", - "allOf": [ - { - "$ref": "#/definitions/RequestState" - } - ], - "readOnly": true - }, - "subscriptionId": { - "type": "string", - "description": "SubscriptionId." - } - } - } - }, "GroupQuotasEntityBase": { "type": "object", "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", From 33add023eda66a7effc70a6ba374b5e4a1f367c7 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Tue, 13 Jun 2023 17:47:58 -0700 Subject: [PATCH 112/158] some renaming and fix list reference for SubmittedResourceRequestStatusList --- .../preview/2023-06-01-preview/groupquota.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 0953115ea4a6..f4d28d9b5d66 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -269,7 +269,7 @@ "200": { "description": "OK.", "schema": { - "$ref": "#/definitions/GroupQuotasList" + "$ref": "#/definitions/GroupQuotaList" } }, "default": { @@ -693,7 +693,7 @@ "200": { "description": "Success", "schema": { - "$ref": "#/definitions/GroupQuotaList" + "$ref": "#/definitions/GroupQuotaLimitList" } }, "default": { @@ -1359,13 +1359,13 @@ } } }, - "GroupQuotaList": { + "GroupQuotaLimitList": { "type": "object", - "description": "List of Group Quotas at MG level.", + "description": "List of Group Quota Limit details.", "properties": { "value": { "type": "array", - "description": "List of Group Quotas at MG level.", + "description": "List of Group Quota Limit details.", "items": { "$ref": "#/definitions/GroupQuotaLimit" } @@ -1573,7 +1573,7 @@ "type": "array", "description": "Subscription groupQuotaRequests list.", "items": { - "$ref": "#/definitions/SubscriptionQuotaLimit" + "$ref": "#/definitions/SubmittedResourceRequestStatus" } }, "nextLink": { @@ -1711,13 +1711,13 @@ "groupId" ] }, - "GroupQuotasList": { + "GroupQuotaList": { "type": "object", - "description": "Share Quota Entity list.", + "description": "List of Group Quotas at MG level.", "properties": { "value": { "type": "array", - "description": "Share Quota Entity list.", + "description": "List of Group Quotas at MG level.", "items": { "$ref": "#/definitions/GroupQuotasEntity" } From c4d62a4d14fb453457550c074108e35b30af259f Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Tue, 13 Jun 2023 17:58:47 -0700 Subject: [PATCH 113/158] update operationId and put response for SubscriptionQuota-Allocation --- .../preview/2023-06-01-preview/groupquota.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index f4d28d9b5d66..b793fc9cc3d0 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -801,7 +801,7 @@ ], "summary": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location.", "description": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", - "operationId": "ShareQuotaMGSubscription_List", + "operationId": "GroupQuotaSubscriptionQuotaAllocation_List", "x-ms-examples": { "GroupQuota_Get_Request_ForCompute": { "$ref": "./examples/GetQuotaAllocation-Compute.json" @@ -887,7 +887,7 @@ "200": { "description": "OK. , Create or Update", "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + "$ref": "#/definitions/SubscriptionQuotaLimit" } }, "201": { From 4048f336626ff0814f7b20cef2c91de16dc7ee3d Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Wed, 14 Jun 2023 10:34:43 -0700 Subject: [PATCH 114/158] add ms identifier --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index b793fc9cc3d0..8e4d0c54e483 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1574,7 +1574,8 @@ "description": "Subscription groupQuotaRequests list.", "items": { "$ref": "#/definitions/SubmittedResourceRequestStatus" - } + }, + "x-ms-identifiers": [] }, "nextLink": { "description": "The URL to use for getting the next set of results.", From aa48cf45101738ccaee5de6c491afb72ea431ee9 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 15 Jun 2023 14:31:32 -0700 Subject: [PATCH 115/158] Add comment field to quota request. --- .../preview/2023-06-01-preview/groupquota.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 4da79d5d974a..e929eabba48e 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1335,6 +1335,10 @@ "format": "int64", "description": "The current Group Quota Limit at the parentId level." }, + "comment": { + "description": "Any comment related to quota request.", + "type": "string" + }, "name": { "$ref": "#/definitions/ResourceName", "description": "The resource name, such as SKU name." From 68568421905166f4d70c2ae7249c8264eeca459f Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Mon, 26 Jun 2023 11:56:01 -0700 Subject: [PATCH 116/158] update GroupQuotas example json --- .../examples/DeleteGroupQuotas.json | 15 ----- .../examples/GetGroupQuotas.json | 15 ----- .../DeleteGroupQuotas.json} | 5 +- .../examples/GroupQuotas/GetGroupQuotas.json | 32 ++++++++++ .../GroupQuotas/GetGroupQuotasList.json | 36 +++++++++++ .../GroupQuotas/PatchGroupQuotas.json | 60 +++++++++++++++++++ .../examples/GroupQuotas/PutGroupQuotas.json | 60 +++++++++++++++++++ .../examples/PatchGroupQuotas.json | 32 ---------- .../examples/PutGroupQuotas.json | 32 ---------- .../2023-06-01-preview/groupquota.json | 26 ++++---- 10 files changed, 203 insertions(+), 110 deletions(-) delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/DeleteGroupQuotas.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotas.json rename specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/{GetGroupQuotasList.json => GroupQuotas/DeleteGroupQuotas.json} (72%) create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotas.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotasList.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotas.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotas.json diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/DeleteGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/DeleteGroupQuotas.json deleted file mode 100644 index 022a2433864b..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/DeleteGroupQuotas.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "sharedQuotaEntityName": "yourSQENameHere", - "api-version": "2023-06-01-preview" - }, - "responses": { - "200": { - "body": {} - }, - "404": { - "body": {} - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotas.json deleted file mode 100644 index 022a2433864b..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotas.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "sharedQuotaEntityName": "yourSQENameHere", - "api-version": "2023-06-01-preview" - }, - "responses": { - "200": { - "body": {} - }, - "404": { - "body": {} - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotasList.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/DeleteGroupQuotas.json similarity index 72% rename from specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotasList.json rename to specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/DeleteGroupQuotas.json index c51a5c0deec5..c6d7da419bc3 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotasList.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/DeleteGroupQuotas.json @@ -1,14 +1,13 @@ { "parameters": { "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "groupQuotaName ": "yourGroupQuotaNameHere", "api-version": "2023-06-01-preview" }, "responses": { "200": { - "body": {} }, - "404": { - "body": {} + "204": { } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotas.json new file mode 100644 index 000000000000..94eb19a04336 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotas.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "groupQuotaName ": "yourGroupQuotaNameHere", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "GroupQuota1", + "additionalAttributes": { + "groupId": { + "groupingIdType": "ServiceTreeId", + "value": "yourServiceTreeIdHere" + }, + "environment": "Production" + }, + "subscriptionIds": [ + "id1", + "id2", + "id3" + ], + "provisioningState": "Accepted" + }, + "id": "id", + "type": "type", + "name": "name" + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotasList.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotasList.json new file mode 100644 index 000000000000..c3b7ffcba3f1 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotasList.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "displayName": "GroupQuota1", + "additionalAttributes": { + "groupId": { + "groupingIdType": "ServiceTreeId", + "value": "yourServiceTreeIdHere" + }, + "environment": "Production" + }, + "subscriptionIds": [ + "id1", + "id2", + "id3" + ], + "provisioningState": "Accepted" + }, + "id": "id", + "type": "type", + "name": "name" + } + ], + "nextLink": "https://yourLinkHere.com" + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json new file mode 100644 index 000000000000..007754d28807 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "groupQuotaName ": "yourGroupQuotaNameHere", + "api-version": "2023-06-01-preview", + "body": { + "properties": { + "displayName": "GroupQuota1", + "additionalAttributes": { + "groupId": { + "groupingIdType": "ServiceTreeId", + "value": "yourServiceTreeIdHere" + }, + "environment": "Production" + }, + "subscriptionIds": [ + "id1", + "id2", + "id3" + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "GroupQuota1", + "additionalAttributes": { + "groupId": { + "groupingIdType": "ServiceTreeId", + "value": "yourServiceTreeIdHere" + }, + "environment": "Production" + }, + "subscriptionIds": [ + "id1", + "id2", + "id3" + ], + "provisioningState": "Accepted" + }, + "id": "id", + "type": "type", + "name": "name" + } + }, + "202": { + "body": { + "id": "id", + "type": "type", + "name": "name", + "properties": { + "provisioningState": "Accepted" + }, + "error": "some error message" + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json new file mode 100644 index 000000000000..7c8ee91c3ca9 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "groupQuotaName ": "yourGroupQuotaNameHere", + "api-version": "2023-06-01-preview", + "body": { + "properties": { + "displayName": "GroupQuota1", + "additionalAttributes": { + "groupId": { + "groupingIdType": "ServiceTreeId", + "value": "yourServiceTreeIdHere" + }, + "environment": "Production" + }, + "subscriptionIds": [ + "id1", + "id2", + "id3" + ] + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "GroupQuota1", + "additionalAttributes": { + "groupId": { + "groupingIdType": "ServiceTreeId", + "value": "yourServiceTreeIdHere" + }, + "environment": "Production" + }, + "subscriptionIds": [ + "id1", + "id2", + "id3" + ], + "provisioningState": "Accepted" + }, + "id": "id", + "type": "type", + "name": "name" + } + }, + "201": { + "body": { + "id": "id", + "type": "type", + "name": "name", + "properties": { + "provisioningState": "Accepted" + }, + "error": "some error message" + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotas.json deleted file mode 100644 index 4d8700dcebc7..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotas.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "sharedQuotaEntityName": "yourSQENameHere", - "api-version": "2023-06-01-preview", - "body": { - "properties": { - "additionalAttributes": { - "billingAccountId": { - "id": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09" - }, - "groupId": { - "groupingIdType": "ServiceTreeId", - "value": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09" - }, - "environment": "Non Production" - }, - "subscriptionIds": { - "properties": {} - } - } - } - }, - "responses": { - "200": { - "body": {} - }, - "404": { - "body": {} - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotas.json deleted file mode 100644 index 4d8700dcebc7..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotas.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "parameters": { - "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "sharedQuotaEntityName": "yourSQENameHere", - "api-version": "2023-06-01-preview", - "body": { - "properties": { - "additionalAttributes": { - "billingAccountId": { - "id": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09" - }, - "groupId": { - "groupingIdType": "ServiceTreeId", - "value": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09" - }, - "environment": "Non Production" - }, - "subscriptionIds": { - "properties": {} - } - } - } - }, - "responses": { - "200": { - "body": {} - }, - "404": { - "body": {} - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index e929eabba48e..1e4befa8f315 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -39,8 +39,8 @@ "description": "Creates a new GroupQuota for the name passed. A RequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", "operationId": "GroupQuotas_CreateOrUpdate", "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/PutGroupQuotas.json" + "GroupQuotas_Put_Request_ForCompute": { + "$ref": "./examples/GroupQuotas/PutGroupQuotas.json" } }, "x-ms-long-running-operation": true, @@ -55,9 +55,9 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "name": "GroupQuotaRequest", + "name": "GroupQuota Put Request Body", "in": "body", - "description": "The GroupQuota Request.", + "description": "The GroupQuota body details for creation or update of a GroupQuota entity.", "schema": { "$ref": "#/definitions/GroupQuotasEntity" } @@ -107,8 +107,8 @@ "description": "Updates the GroupQuotas for the name passed. A GroupQuotas RequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked. \n Any change in the filters will be applicable to the future quota assignments, existing quota assigned to subscriptions from the GroupQuotas remains unchanged.", "operationId": "GroupQuotas_Update", "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/PatchGroupQuotas.json" + "GroupQuotas_Patch_Request_ForCompute": { + "$ref": "./examples/GroupQuotas/PatchGroupQuotas.json" } }, "x-ms-long-running-operation": true, @@ -175,8 +175,8 @@ "description": "Gets the GroupQuotas for the name passed. It will return the GroupQuotas properties only. The details on groupQuota can be access from the groupQuota APIs.", "operationId": " GroupQuotas_Get", "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/GetGroupQuotas.json" + "GroupQuotas_Get_Request_ForCompute": { + "$ref": "./examples/GroupQuotas/GetGroupQuotas.json" } }, "parameters": [ @@ -213,8 +213,8 @@ "description": "Deletes the GroupQuotas for the name passed. All the remaining shareQuota in the GroupQuotas will be lost.", "operationId": "GroupQuotas_Delete", "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/DeleteGroupQuotas.json" + "GroupQuotas_Delete_Request_ForCompute": { + "$ref": "./examples/GroupQuotas/DeleteGroupQuotas.json" } }, "parameters": [ @@ -253,8 +253,8 @@ "description": "Lists GroupQuotas for the scope passed. It will return the GroupQuotas QuotaEntity properties only.The details on groupQuota can be access from the groupQuota APIs.", "operationId": "GroupQuotas_List", "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/GetGroupQuotasList.json" + "GroupQuotas_List_Request_ForCompute": { + "$ref": "./examples/GroupQuotas/GetGroupQuotasList.json" } }, "parameters": [ @@ -1504,7 +1504,7 @@ "$ref": "#/definitions/RequestState", "readOnly": true }, - "quotaSource": { + "quotaSources": { "$ref": "#/definitions/SubscriptionGroupQuotaAssignmentList" } } From 8c72551c8c22d11e2192b27e14981cb52cc7696c Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 26 Jun 2023 16:41:59 -0700 Subject: [PATCH 117/158] Making GroupQuota package default. --- specification/quota/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/readme.md b/specification/quota/resource-manager/readme.md index 3d012787f720..12265f489919 100644 --- a/specification/quota/resource-manager/readme.md +++ b/specification/quota/resource-manager/readme.md @@ -26,7 +26,7 @@ These are the global settings for the Quota API. ``` yaml openapi-type: arm -tag: package-2023-02-01 +tag: package-2023-06-01-preview ``` From 87f62784859acf916eb589ad8d6d88a542584cfe Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 26 Jun 2023 17:01:51 -0700 Subject: [PATCH 118/158] Using local Error definition for operations Status schema. --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index e929eabba48e..c6f6fcd29ded 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1252,7 +1252,7 @@ } }, "error": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", + "$ref": "Error", "readOnly": true } } From abf7e7843ec39a8a6a76de0485376b875c2c7fef Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 26 Jun 2023 17:11:09 -0700 Subject: [PATCH 119/158] Fix Error Definition Ref. --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index c6f6fcd29ded..0b35939190ef 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1252,7 +1252,7 @@ } }, "error": { - "$ref": "Error", + "$ref": "#/definitions/Error", "readOnly": true } } From b2d5ec95181ea2cca34f262f2e7ea30125a3ed68 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 26 Jun 2023 17:20:34 -0700 Subject: [PATCH 120/158] Using common paramteres. --- .../2023-06-01-preview/groupquota.json | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 0b35939190ef..dfb1002a32bf 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -107,7 +107,7 @@ "description": "Updates the GroupQuotas for the name passed. A GroupQuotas RequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked. \n Any change in the filters will be applicable to the future quota assignments, existing quota assigned to subscriptions from the GroupQuotas remains unchanged.", "operationId": "GroupQuotas_Update", "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { + "GroupQuotaLimits_Get_Request_ForCompute": { "$ref": "./examples/PatchGroupQuotas.json" } }, @@ -1480,7 +1480,7 @@ "type": "string", "readOnly": true }, - "properties": { + "additionalProperties": { "description": "Group Quota properties for the specified resource.", "$ref": "#/definitions/SubscriptionQuotaDetails" } @@ -1764,12 +1764,7 @@ "x-ms-parameter-location": "method" }, "SubscriptionIdInParameters": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "Subscription Id.", - "x-ms-parameter-location": "method" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/SubscriptionIdParameter" }, "MgIdInParameters": { "name": "mgId", @@ -1791,13 +1786,7 @@ "x-ms-parameter-location": "method" }, "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "x-ms-parameter-location": "client", - "type": "string", - "description": "Version of the API to be used with the client request. The current version is 2023-06-01-preview.", - "minLength": 1 + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, "ScopeInParameters": { "name": "resourceProviderScope", From db4b99061eab99b0fefbbd38d64de51892d91e15 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 26 Jun 2023 17:34:09 -0700 Subject: [PATCH 121/158] Adding direct ref to common parameters. --- .../2023-06-01-preview/groupquota.json | 65 +++++++++---------- 1 file changed, 31 insertions(+), 34 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index dfb1002a32bf..9d48dcfb5bff 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -52,7 +52,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, { "name": "GroupQuotaRequest", @@ -120,7 +120,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, { "name": " GroupQuotasPatchRequest", @@ -187,7 +187,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" } ], "responses": { @@ -225,7 +225,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" } ], "responses": { @@ -262,7 +262,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" } ], "responses": { @@ -302,10 +302,10 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdInParameters" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/SubscriptionIdParameter" } ], "responses": { @@ -364,10 +364,10 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdInParameters" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/SubscriptionIdParameter" } ], "responses": { @@ -405,10 +405,10 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdInParameters" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/SubscriptionIdParameter" } ], "responses": { @@ -446,10 +446,10 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdInParameters" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/SubscriptionIdParameter" } ], "responses": { @@ -496,7 +496,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, { "name": "groupQuotaRequest", @@ -570,7 +570,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, { "name": "groupQuotaRequest", @@ -643,7 +643,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" } ], "responses": { @@ -686,7 +686,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" } ], "responses": { @@ -729,7 +729,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" } ], "responses": { @@ -775,7 +775,7 @@ "$ref": "#/parameters/RequestIdInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" } ], "responses": { @@ -812,7 +812,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "#/parameters/SubscriptionIdInParameters" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/SubscriptionIdParameter" }, { "$ref": "#/parameters/ScopeInParameters" @@ -821,7 +821,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" } ], "responses": { @@ -859,7 +859,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "#/parameters/SubscriptionIdInParameters" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/SubscriptionIdParameter" }, { "$ref": "#/parameters/ScopeInParameters" @@ -871,7 +871,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, { "name": "allocateQuotaRequest", @@ -937,7 +937,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "#/parameters/SubscriptionIdInParameters" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/SubscriptionIdParameter" }, { "$ref": "#/parameters/ScopeInParameters" @@ -949,7 +949,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, { "name": "allocateQuotaRequest", @@ -1014,7 +1014,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "#/parameters/SubscriptionIdInParameters" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/SubscriptionIdParameter" }, { "$ref": "#/parameters/ScopeInParameters" @@ -1026,7 +1026,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" } ], "responses": { @@ -1063,7 +1063,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "#/parameters/SubscriptionIdInParameters" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/SubscriptionIdParameter" }, { "$ref": "#/parameters/ScopeInParameters" @@ -1075,7 +1075,7 @@ "$ref": "#/parameters/AllocationIdInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" } ], "responses": { @@ -1112,7 +1112,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "#/parameters/SubscriptionIdInParameters" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/SubscriptionIdParameter" }, { "$ref": "#/parameters/ScopeInParameters" @@ -1121,7 +1121,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" } ], "responses": { @@ -1785,9 +1785,6 @@ "description": "The GroupQuota name. The name should be unique for the provided context tenantId/MgId.", "x-ms-parameter-location": "method" }, - "ApiVersionParameter": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" - }, "ScopeInParameters": { "name": "resourceProviderScope", "in": "path", From a980c65941e77b14d9ad9fa5c72cb6b8a6d4b027 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 26 Jun 2023 17:51:33 -0700 Subject: [PATCH 122/158] Using common Parameters. --- .../preview/2023-06-01-preview/groupquota.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 9d48dcfb5bff..3a6ac6f8aabf 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1763,14 +1763,13 @@ "description": "Resource allocation Id.", "x-ms-parameter-location": "method" }, - "SubscriptionIdInParameters": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/SubscriptionIdParameter" - }, "MgIdInParameters": { "name": "mgId", "in": "path", "required": true, "type": "string", + "minLength": 3, + "maxLength": 63, "description": "Management Group Id.", "x-ms-parameter-location": "method" }, From cd259e9dca282792cd8b462bd0d2f884e8e920c1 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Mon, 26 Jun 2023 17:55:59 -0700 Subject: [PATCH 123/158] Refer to common paramteres. Path fix. --- .../2023-06-01-preview/groupquota.json | 62 +++++++++---------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 3a6ac6f8aabf..ac8ee18df8f3 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -52,7 +52,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "name": "GroupQuotaRequest", @@ -120,7 +120,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "name": " GroupQuotasPatchRequest", @@ -187,7 +187,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -225,7 +225,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -262,7 +262,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -302,10 +302,10 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -364,10 +364,10 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -405,10 +405,10 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -446,10 +446,10 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -496,7 +496,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "name": "groupQuotaRequest", @@ -570,7 +570,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "name": "groupQuotaRequest", @@ -643,7 +643,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -686,7 +686,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -729,7 +729,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -775,7 +775,7 @@ "$ref": "#/parameters/RequestIdInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -812,7 +812,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "#/parameters/ScopeInParameters" @@ -821,7 +821,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -859,7 +859,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "#/parameters/ScopeInParameters" @@ -871,7 +871,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "name": "allocateQuotaRequest", @@ -937,7 +937,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "#/parameters/ScopeInParameters" @@ -949,7 +949,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "name": "allocateQuotaRequest", @@ -1014,7 +1014,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "#/parameters/ScopeInParameters" @@ -1026,7 +1026,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1063,7 +1063,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "#/parameters/ScopeInParameters" @@ -1075,7 +1075,7 @@ "$ref": "#/parameters/AllocationIdInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1112,7 +1112,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "#/parameters/ScopeInParameters" @@ -1121,7 +1121,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { From 77a8f10082015515a058bfea07e545a62fb146de Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Wed, 28 Jun 2023 16:40:29 -0700 Subject: [PATCH 124/158] update example json files --- .../DeleteGroupQuotaSubscriptions.json | 16 -- .../examples/GetCapacityOrder-Compute.json | 103 ------------ .../examples/GetGroupQuotaLimits-Compute.json | 17 -- .../examples/GetGroupQuotaSubscriptions.json | 15 -- .../examples/GetQuotaAllocation-Compute.json | 41 ----- .../GroupQuotaLimits-Requests_Get.json | 22 +++ .../GroupQuotaLimits-Requests_List.json | 26 +++ .../GetGroupQuotaLimits-Compute.json | 35 +++++ .../ListGroupQuotaLimits-Compute.json | 39 +++++ .../PatchGroupQuotaLimits-Compute.json | 69 ++++++++ .../PutGroupQuotaLimits-Compute.json | 69 ++++++++ .../DeleteGroupQuotaSubscriptions.json | 13 ++ .../GetGroupQuotaSubscriptions.json | 34 ++++ .../PatchGroupQuotasSubscription.json | 37 +++++ .../PutGroupQuotasSubscription.json | 61 ++++++++ .../GroupQuotas/DeleteGroupQuotas.json | 9 +- .../examples/GroupQuotas/GetGroupQuotas.json | 3 +- .../GroupQuotas/GetGroupQuotasList.json | 1 + .../GroupQuotas/PatchGroupQuotas.json | 26 ++- .../examples/GroupQuotas/PutGroupQuotas.json | 27 +++- .../ListGroupQuotaLimits-Compute.json | 16 -- .../PatchGroupQuotaLimits-Compute.json | 21 --- .../PatchGroupQuotasSubscriptionAdd.json | 16 -- .../PatchQuotaAllocation-Compute.json | 45 ------ .../examples/PutCapacityOrder-Batch.json | 94 ----------- .../PutCapacityOrder-BatchAI-Compute.json | 130 --------------- ...apacityOrder-BatchAI-CosmosDb-Compute.json | 148 ------------------ .../examples/PutCapacityOrder-BatchAI.json | 77 --------- .../examples/PutCapacityOrder-Compute.json | 94 ----------- .../examples/PutGroupQuotaLimits-Compute.json | 21 --- .../examples/PutGroupQuotasSubscription.json | 16 -- .../examples/PutQuotaAllocation-Batch.json | 50 ------ .../examples/PutQuotaAllocation-BatchAI.json | 50 ------ .../examples/PutQuotaAllocation-Compute.json | 45 ------ .../examples/PutQuotaAllocation-CosmosDb.json | 45 ------ ...location-Requests_Get_Request-Compute.json | 24 +++ ...ocation-Requests_List_Request-Compute.json | 28 ++++ ...nQuota-Allocation_Get_Request-Compute.json | 30 ++++ ...Quota-Allocation_List_Request-Compute.json | 34 ++++ ...uota-Allocation_Patch_Request-Compute.json | 62 ++++++++ ...nQuota-Allocation_Put_Request-Compute.json | 62 ++++++++ .../2023-06-01-preview/groupquota.json | 78 ++++----- 42 files changed, 734 insertions(+), 1115 deletions(-) delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/DeleteGroupQuotaSubscriptions.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetCapacityOrder-Compute.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotaLimits-Compute.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotaSubscriptions.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetQuotaAllocation-Compute.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits-Requests/GroupQuotaLimits-Requests_Get.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits-Requests/GroupQuotaLimits-Requests_List.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/GetGroupQuotaLimits-Compute.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/ListGroupQuotaLimits-Compute.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/DeleteGroupQuotaSubscriptions.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/GetGroupQuotaSubscriptions.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PatchGroupQuotasSubscription.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/ListGroupQuotaLimits-Compute.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotaLimits-Compute.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotasSubscriptionAdd.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchQuotaAllocation-Compute.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-Batch.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI-Compute.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI-CosmosDb-Compute.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-Compute.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotaLimits-Compute.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotasSubscription.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-Batch.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-BatchAI.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-Compute.json delete mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-CosmosDb.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_Get_Request-Compute.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_List_Request-Compute.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Get_Request-Compute.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_List_Request-Compute.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/DeleteGroupQuotaSubscriptions.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/DeleteGroupQuotaSubscriptions.json deleted file mode 100644 index d7540a14f723..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/DeleteGroupQuotaSubscriptions.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "sharedQuotaEntityName": "yourSQENameHere", - "api-version": "2023-06-01-preview" - }, - "responses": { - "200": { - "body": {} - }, - "404": { - "body": {} - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetCapacityOrder-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetCapacityOrder-Compute.json deleted file mode 100644 index e1808cea339d..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetCapacityOrder-Compute.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "parameters": { - "orderId": "ea10185a-465d-42cd-b339-7d0d9331c34c" - }, - "responses": { - "200": { - "body": { - "id": "ea10185a-465d-42cd-b339-7d0d9331c34c", - "serviceTreeId": "fb10185a-465d-42cd-b339-7d0d9331c340", - "prerequsiteOrderIds": [], - "onBehalfOfCustomers": [], - "needByDate": "2022-10-15", - "etaDate": "", - "requestorContactEmail": "backupops@microsoft.com", - "stage": "GA", - "state": "buildout", - "isHoBo": false, - "orders": [ - { - "resourceProvider": "Microsoft.Compute", - "resources": [ - { - "location": "Poland Central", - "resourceDetails": [ - { - "requestedResource": { - "resourceName": "standardDSv3Family", - "limits": 1115, - "providerSpecificProperties": [], - "unit": "cores" - }, - "alternateResources": [ - { - "resourceName": "standardESv3Family", - "limits": 1115, - "providerSpecificProperties": [], - "unit": "cores" - }, - { - "resourceName": "standardA4Family", - "limits": 2300, - "providerSpecificProperties": [], - "unit": "cores" - } - ], - "approvedResource": "standardA4Family", - "status": "Approved" - }, - { - "requestedResource": { - "resourceName": "standardFFamily", - "limits": 250, - "providerSpecificProperties": [], - "unit": "cores" - }, - "alternateResources": [], - "approvedResource": "standardFFamily", - "status": "Approved" - }, - { - "requestedResource": { - "resourceName": "lowPriorityCores", - "limits": 2500, - "providerSpecificProperties": [], - "unit": "cores" - }, - "alternateResources": [], - "approvedResource": "lowPriorityCores", - "status": "Approved" - }, - { - "requestedResource": { - "resourceName": "cores", - "limits": 2300, - "providerSpecificProperties": [], - "unit": "cores" - }, - "alternateResources": [], - "approvedResource": "cores", - "status": "Approved" - } - ] - } - ], - "metadata": { - "serviceName": "AzureBackup" - }, - "status": "Approved" - } - ] - } - }, - "404": { - "body": { - "error": { - "code": "NotFound", - "target": "capacityOrder", - "message": "Capacity order not found." - } - } - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotaLimits-Compute.json deleted file mode 100644 index 289be79695b0..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotaLimits-Compute.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "scope": "providers/Microsoft.Compute/locations/westus", - "sharedQuotaEntityName": "yourSQENameHere", - "resourceName": "cores", - "api-version": "2023-06-01-preview" - }, - "responses": { - "200": { - "body": {} - }, - "404": { - "body": {} - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotaSubscriptions.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotaSubscriptions.json deleted file mode 100644 index 022a2433864b..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetGroupQuotaSubscriptions.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "sharedQuotaEntityName": "yourSQENameHere", - "api-version": "2023-06-01-preview" - }, - "responses": { - "200": { - "body": {} - }, - "404": { - "body": {} - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetQuotaAllocation-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetQuotaAllocation-Compute.json deleted file mode 100644 index 8e67a107ae07..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetQuotaAllocation-Compute.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "orderId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "provider": "Microsoft.Compute", - "location": "eastus", - "resourceName": "standardA4Family", - "allocationId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3" - }, - "responses": { - "200": { - "body": { - "capacityOderId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "AllocationId": "CCEC67B3-7657-4966-BFFC-41EFD36BAADD", - "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "provider": "Microsoft.Compute", - "location": "eastus", - "resourceName": "standardA4Family", - "limits": 150, - "isHoBo": true, - "providerSpecificProperties": [ - { - "name": "accountName", - "value": "BatchAccount_EUS_1" - } - ], - "additionalFlags": "regional", - "status": "Succeeded" - } - }, - "404": { - "body": { - "error": { - "code": "NotFound", - "target": "capacityOrder", - "message": "Capacity order not found." - } - } - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits-Requests/GroupQuotaLimits-Requests_Get.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits-Requests/GroupQuotaLimits-Requests_Get.json new file mode 100644 index 000000000000..2e5e94bc9cc7 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits-Requests/GroupQuotaLimits-Requests_Get.json @@ -0,0 +1,22 @@ +{ + "operationId": "GroupQuotaLimits-Requests_List", + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "resourceProviderScope": "providers/Microsoft.Compute/locations/westus", + "groupQuotaName": "groupquota1", + "requestId": "someId", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": { + "requestedResource": { + "resourceName": "cores", + "limits": 110, + "unit": "vCPUs" + }, + "status": "Accepted" + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits-Requests/GroupQuotaLimits-Requests_List.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits-Requests/GroupQuotaLimits-Requests_List.json new file mode 100644 index 000000000000..0f6509852bb7 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits-Requests/GroupQuotaLimits-Requests_List.json @@ -0,0 +1,26 @@ +{ + "operationId": "GroupQuotaLimits-Requests_List", + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "resourceProviderScope": "providers/Microsoft.Compute/locations/westus", + "groupQuotaName": "groupquota1", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "requestedResource": { + "resourceName": "cores", + "limits": 110, + "unit": "vCPUs" + }, + "status": "Accepted" + } + ], + "nextLink": "https://yourLinkHere.com" + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/GetGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/GetGroupQuotaLimits-Compute.json new file mode 100644 index 000000000000..4b33f2e7f1be --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/GetGroupQuotaLimits-Compute.json @@ -0,0 +1,35 @@ +{ + "operationId": "GroupQuotaLimits_Get", + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "resourceProviderScope": "providers/Microsoft.Compute/locations/westus", + "groupQuotaName": "groupquota1", + "resourceName": "cores", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "id", + "type": "type", + "name": "name", + "properties": { + "limit": 100, + "comment": "comment text", + "name": { + "value": "cores", + "localizedValue": "Total Regional vCPUs" + }, + "unit": "vCPUs", + "availableLimit": 80, + "assignedToSubscriptions": [ + { + "subId1": 20 + } + ], + "provisioningState": "Accepted" + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/ListGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/ListGroupQuotaLimits-Compute.json new file mode 100644 index 000000000000..9183be4ff633 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/ListGroupQuotaLimits-Compute.json @@ -0,0 +1,39 @@ +{ + "operationId": "GroupQuotaLimits_List", + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "resourceProviderScope": "providers/Microsoft.Compute/locations/westus", + "groupQuotaName": "groupquota1", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "id", + "type": "type", + "name": "name", + "properties": { + "limit": 100, + "comment": "comment text", + "name": { + "value": "cores", + "localizedValue": "Total Regional vCPUs" + }, + "unit": "vCPUs", + "availableLimit": 80, + "assignedToSubscriptions": [ + { + "subId1": 20 + } + ], + "provisioningState": "Accepted" + } + } + ], + "nextLink": "https://yourLinkHere.com" + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json new file mode 100644 index 000000000000..bb9d5876fe35 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json @@ -0,0 +1,69 @@ +{ + "operationId": "GroupQuotaLimits_Update", + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "resourceProviderScope": "providers/Microsoft.Compute/locations/westus", + "groupQuotaName": "groupquota1", + "resourceName": "cores", + "api-version": "2023-06-01-preview", + "groupQuotaRequest": { + "properties": { + "limit": 110, + "comment": "comment text", + "name": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "id", + "type": "type", + "name": "name", + "properties": { + "limit": 100, + "comment": "comment text", + "name": { + "value": "cores", + "localizedValue": "Total Regional vCPUs" + }, + "unit": "vCPUs", + "availableLimit": 80, + "assignedToSubscriptions": [ + { + "subId1": 20 + } + ], + "provisioningState": "Accepted" + } + } + }, + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "id", + "type": "type", + "name": "name", + "properties": { + "provisioningState": "Accepted" + }, + "error": { + "error": { + "code": "errorCode", + "message": "errorMesssage", + "target": "errorTarget", + "details": [], + "additionalInfo": [ + { + "type": "additionalInfoType", + "info": {} + } + ] + } + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json new file mode 100644 index 000000000000..77e24545ebca --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json @@ -0,0 +1,69 @@ +{ + "operationId": "GroupQuotaLimits_CreateOrUpdate", + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "resourceProviderScope": "providers/Microsoft.Compute/locations/westus", + "groupQuotaName": "groupquota1", + "resourceName": "cores", + "api-version": "2023-06-01-preview", + "groupQuotaRequest": { + "properties": { + "limit": 110, + "comment": "comment text", + "name": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "id", + "type": "type", + "name": "name", + "properties": { + "limit": 100, + "comment": "comment text", + "name": { + "value": "cores", + "localizedValue": "Total Regional vCPUs" + }, + "unit": "vCPUs", + "availableLimit": 80, + "assignedToSubscriptions": [ + { + "subId1": 20 + } + ], + "provisioningState": "Accepted" + } + } + }, + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "id", + "type": "type", + "name": "name", + "properties": { + "provisioningState": "Accepted" + }, + "error": { + "error": { + "code": "errorCode", + "message": "errorMesssage", + "target": "errorTarget", + "details": [], + "additionalInfo": [ + { + "type": "additionalInfoType", + "info": {} + } + ] + } + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/DeleteGroupQuotaSubscriptions.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/DeleteGroupQuotaSubscriptions.json new file mode 100644 index 000000000000..73bac69e4ae8 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/DeleteGroupQuotaSubscriptions.json @@ -0,0 +1,13 @@ +{ + "operationId": "GroupQuotaSubscriptions_Delete", + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "groupQuotaName": "groupquota1", + "api-version": "2023-06-01-preview", + "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/GetGroupQuotaSubscriptions.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/GetGroupQuotaSubscriptions.json new file mode 100644 index 000000000000..cd5fe226766e --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/GetGroupQuotaSubscriptions.json @@ -0,0 +1,34 @@ +{ + "operationId": "GroupQuotaSubscription_Get", + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "groupQuotaName": "groupquota1", + "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "GroupQuota1", + "additionalAttributes": { + "groupId": { + "groupingIdType": "ServiceTreeId", + "value": "yourServiceTreeIdHere" + }, + "environment": "Production" + }, + "subscriptionIds": [ + "id1", + "id2", + "id3" + ], + "provisioningState": "Accepted" + }, + "id": "id", + "type": "type", + "name": "name" + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PatchGroupQuotasSubscription.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PatchGroupQuotasSubscription.json new file mode 100644 index 000000000000..ba83807fa9a6 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PatchGroupQuotasSubscription.json @@ -0,0 +1,37 @@ +{ + "operationId": "GroupQuotaSubscriptions_Update", + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "groupQuotaName": "groupquota1", + "api-version": "2023-06-01-preview", + "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09" + }, + "responses": { + "200": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "properties": { + "displayName": "GroupQuota1", + "additionalAttributes": { + "groupId": { + "groupingIdType": "ServiceTreeId", + "value": "yourServiceTreeIdHere" + }, + "environment": "Production" + }, + "subscriptionIds": [ + "id1", + "id2", + "id3" + ], + "provisioningState": "Accepted" + }, + "id": "id", + "type": "type", + "name": "name" + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json new file mode 100644 index 000000000000..812a8e989d8c --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json @@ -0,0 +1,61 @@ +{ + "operationId": "GroupQuotaSubscriptions_CreateOrUpdate", + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "groupQuotaName": "groupquota1", + "api-version": "2023-06-01-preview", + "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09" + }, + "responses": { + "200": { + "body": { + "properties": { + "displayName": "GroupQuota1", + "additionalAttributes": { + "groupId": { + "groupingIdType": "ServiceTreeId", + "value": "yourServiceTreeIdHere" + }, + "environment": "Production" + }, + "subscriptionIds": [ + "id1", + "id2", + "id3" + ], + "provisioningState": "Accepted" + }, + "id": "id", + "type": "type", + "name": "name" + } + }, + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "id", + "type": "type", + "name": "name", + "properties": { + "provisioningState": "Accepted" + }, + "error": { + "error": { + "code": "errorCode", + "message": "errorMesssage", + "target": "errorTarget", + "details": [], + "additionalInfo": [ + { + "type": "additionalInfoType", + "info": {} + } + ] + } + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/DeleteGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/DeleteGroupQuotas.json index c6d7da419bc3..ffa8f005eccc 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/DeleteGroupQuotas.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/DeleteGroupQuotas.json @@ -1,13 +1,12 @@ { + "operationId": "GroupQuotas_Delete", "parameters": { "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "groupQuotaName ": "yourGroupQuotaNameHere", + "groupQuotaName": "groupquota1", "api-version": "2023-06-01-preview" }, "responses": { - "200": { - }, - "204": { - } + "200": {}, + "204": {} } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotas.json index 94eb19a04336..dd56e24afe3d 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotas.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotas.json @@ -1,7 +1,8 @@ { + "operationId": " GroupQuotas_Get", "parameters": { "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "groupQuotaName ": "yourGroupQuotaNameHere", + "groupQuotaName": "groupquota1", "api-version": "2023-06-01-preview" }, "responses": { diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotasList.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotasList.json index c3b7ffcba3f1..07ea36a31701 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotasList.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotasList.json @@ -1,4 +1,5 @@ { + "operationId": "GroupQuotas_List", "parameters": { "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", "api-version": "2023-06-01-preview" diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json index 007754d28807..be465c4e4568 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json @@ -1,9 +1,9 @@ { "parameters": { "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "groupQuotaName ": "yourGroupQuotaNameHere", + "groupQuotaName": "groupquota1", "api-version": "2023-06-01-preview", - "body": { + "GroupQuotasPatchRequestBody": { "properties": { "displayName": "GroupQuota1", "additionalAttributes": { @@ -13,7 +13,7 @@ }, "environment": "Production" }, - "subscriptionIds": [ + "subscriptionIds": [ "id1", "id2", "id3" @@ -23,7 +23,7 @@ }, "responses": { "200": { - "body": { + "body": { "properties": { "displayName": "GroupQuota1", "additionalAttributes": { @@ -46,6 +46,9 @@ } }, "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, "body": { "id": "id", "type": "type", @@ -53,7 +56,20 @@ "properties": { "provisioningState": "Accepted" }, - "error": "some error message" + "error": { + "error": { + "code": "errorCode", + "message": "errorMesssage", + "target": "errorTarget", + "details": [], + "additionalInfo": [ + { + "type": "additionalInfoType", + "info": {} + } + ] + } + } } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json index 7c8ee91c3ca9..814c2de80d8d 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json @@ -1,9 +1,10 @@ { + "operationId": "GroupQuotas_CreateOrUpdate", "parameters": { "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "groupQuotaName ": "yourGroupQuotaNameHere", + "groupQuotaName": "groupquota1", "api-version": "2023-06-01-preview", - "body": { + "GroupQuotaPutRequestBody": { "properties": { "displayName": "GroupQuota1", "additionalAttributes": { @@ -13,7 +14,7 @@ }, "environment": "Production" }, - "subscriptionIds": [ + "subscriptionIds": [ "id1", "id2", "id3" @@ -23,7 +24,7 @@ }, "responses": { "200": { - "body": { + "body": { "properties": { "displayName": "GroupQuota1", "additionalAttributes": { @@ -46,6 +47,9 @@ } }, "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, "body": { "id": "id", "type": "type", @@ -53,7 +57,20 @@ "properties": { "provisioningState": "Accepted" }, - "error": "some error message" + "error": { + "error": { + "code": "errorCode", + "message": "errorMesssage", + "target": "errorTarget", + "details": [], + "additionalInfo": [ + { + "type": "additionalInfoType", + "info": {} + } + ] + } + } } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/ListGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/ListGroupQuotaLimits-Compute.json deleted file mode 100644 index 0b4d88aa7aa7..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/ListGroupQuotaLimits-Compute.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "scope": "providers/Microsoft.Compute/locations/westus", - "sharedQuotaEntityName": "yourSQENameHere", - "api-version": "2023-06-01-preview" - }, - "responses": { - "200": { - "body": {} - }, - "404": { - "body": {} - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotaLimits-Compute.json deleted file mode 100644 index 6af2ce2494bc..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotaLimits-Compute.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "scope": "providers/Microsoft.Compute/locations/westus", - "sharedQuotaEntityName": "yourSQENameHere", - "resourceName": "cores", - "api-version": "2023-06-01-preview", - "body": { - "limit": 1000, - "name": {} - } - }, - "responses": { - "200": { - "body": {} - }, - "404": { - "body": {} - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotasSubscriptionAdd.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotasSubscriptionAdd.json deleted file mode 100644 index d7540a14f723..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchGroupQuotasSubscriptionAdd.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "sharedQuotaEntityName": "yourSQENameHere", - "api-version": "2023-06-01-preview" - }, - "responses": { - "200": { - "body": {} - }, - "404": { - "body": {} - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchQuotaAllocation-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchQuotaAllocation-Compute.json deleted file mode 100644 index 5d5baf9c7c76..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PatchQuotaAllocation-Compute.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "orderId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "provider": "Microsoft.Compute", - "location": "eastus", - "resourceName": "standardA4Family", - "allocateQuotaRequest": { - "limits": 1115, - "providerSpecificProperties": [], - "additionalFlags": "Regional" - } - }, - "responses": { - "202": { - "headers": { - "Retry-After": "30", - "Azure-AsyncOperation": "https://capacityorder-ppe.trafficmanaget.net/allocations/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3" - }, - "body": { - "id": "allocations/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "name": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "status": "Accepted" - } - }, - "400": { - "body": { - "error": { - "code": "BadRequest", - "target": "capacityOrder", - "message": "Required parameter needByDate missing." - } - } - }, - "404": { - "body": { - "error": { - "code": "NotFound", - "target": "capacityOrder", - "message": "Capacity order not found." - } - } - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-Batch.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-Batch.json deleted file mode 100644 index 1e8e4e1d33aa..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-Batch.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "parameters": { - "createQuotaRequest": { - "serviceTreeId": "fb10185a-465d-42cd-b339-7d0d9331c340", - "prerequsiteOrderIds": [], - "onBehalfOfCustomers": [], - "needByDate": "2022-10-15", - "requestorContactEmail": "backupops@microsoft.com", - "isHoBo": true, - "stage": "GA", - "state": "growth", - "orders": [ - { - "resourceProvider": "Microsoft.Batch", - "resources": [ - { - "location": "PolandCentral", - "resourceDetails": [ - { - "requestedResource": { - "resourceName": "accounts", - "limits": 250, - "providerSpecificProperties": [] - }, - "alternateResources": [] - }, - { - "requestedResource": { - "resourceName": "standardDSv3Family", - "limits": 1115, - "providerSpecificProperties": [] - }, - "alternateResources": [ - { - "resourceName": "standardESv3Family", - "limits": 1115, - "providerSpecificProperties": [] - }, - { - "resourceName": "standardA4Family", - "limits": 2300, - "providerSpecificProperties": [] - } - ] - }, - { - "requestedResource": { - "resourceName": "pools", - "limits": 250, - "providerSpecificProperties": [] - }, - "alternateResources": [] - }, - { - "requestedResource": { - "resourceName": "jobs", - "limits": 250, - "providerSpecificProperties": [] - }, - "alternateResources": [] - } - ] - } - ] - } - ], - "metadata": { - "serviceName": "AzureBackup" - } - } - }, - "responses": { - "202": { - "headers": { - "Retry-After": "30", - "Azure-AsyncOperation": "https://capacityorder-ppe.trafficmanaget.net/capacityOrder/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3" - }, - "body": { - "id": "capacityOrder/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "name": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "status": "Accepted" - } - }, - "400": { - "body": { - "error": { - "code": "BadRequest", - "target": "capacityOrder", - "message": "Required parameter needByDate missing." - } - } - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI-Compute.json deleted file mode 100644 index 8b0fff67c401..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI-Compute.json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "parameters": { - "createQuotaRequest": { - "serviceTreeId": "fb10185a-465d-42cd-b339-7d0d9331c340", - "prerequsiteOrderIds": [], - "onBehalfOfCustomers": [], - "needByDate": "2022-10-15", - "requestorContactEmail": "backupops@microsoft.com", - "stage": "GA", - "isHoBo": false, - "state": "buildout", - "orders": [ - { - "resourceProvider": "Microsoft.MachineLearningServices", - "resources": [ - { - "location": "Poland Central", - "resourceDetails": [ - { - "requestedResource": { - "resourceName": "TotalLowPriorityCores", - "limits": 1115, - "providerSpecificProperties": [ - { - "name": "resourceType", - "value": "lowPriority" - } - ] - }, - "alternateResources": [] - }, - { - "requestedResource": { - "resourceName": "StandardDv2Family", - "limits": 250, - "providerSpecificProperties": [ - { - "name": "resourceType", - "value": "dedicated" - } - ] - }, - "alternateResources": [] - } - ] - } - ] - }, - { - "resourceProvider": "Microsoft.Compute", - "locations": [ - { - "location": "Poland Central", - "resources": [ - { - "requestedResource": { - "resourceName": "standardDSv3Family", - "limits": 1115, - "providerSpecificProperties": [] - }, - "alternateResources": [ - { - "resourceName": "standardESv3Family", - "limits": 1115, - "providerSpecificProperties": [] - }, - { - "resourceName": "standardA4Family", - "limits": 2300, - "providerSpecificProperties": [] - } - ] - }, - { - "requestedResource": { - "resourceName": "standardFFamily", - "limits": 250, - "providerSpecificProperties": [] - }, - "alternateResources": [] - }, - { - "requestedResource": { - "resourceName": "lowPriorityCores", - "limits": 2500, - "providerSpecificProperties": [] - }, - "alternateResources": [] - }, - { - "requestedResource": { - "resourceName": "cores", - "limits": 2300, - "providerSpecificProperties": [] - }, - "alternateResources": [] - } - ] - } - ] - } - ], - "metadata": { - "serviceName": "AzureBackup" - } - } - }, - "responses": { - "202": { - "headers": { - "Retry-After": "30", - "Azure-AsyncOperation": "https://capacityorder-ppe.trafficmanaget.net/capacityOrder/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3" - }, - "body": { - "id": "capacityOrder/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "name": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "status": "Accepted" - } - }, - "400": { - "body": { - "error": { - "code": "BadRequest", - "target": "capacityOrder", - "message": "Required parameter needByDate missing." - } - } - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI-CosmosDb-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI-CosmosDb-Compute.json deleted file mode 100644 index fee1490f7d06..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI-CosmosDb-Compute.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "parameters": { - "createQuotaRequest": { - "serviceTreeId": "fb10185a-465d-42cd-b339-7d0d9331c340", - "prerequsiteOrderIds": [], - "onBehalfOfCustomers": [], - "needByDate": "2022-10-15", - "requestorContactEmail": "backupops@microsoft.com", - "stage": "GA", - "state": "buildout", - "isHoBo": false, - "orders": [ - { - "resourceProvider": "Microsoft.CosmosDb", - "resources": [ - { - "location": "global", - "resourceDetails": [ - { - "requestedResource": { - "resourceName": "databaseAccounts", - "limits": 11 - }, - "providerSpecificProperties": [], - "alternateResources": [] - } - ] - } - ] - }, - { - "resourceProvider": "Microsoft.MachineLearningServices", - "locations": [ - { - "location": "Poland Central", - "resources": [ - { - "requestedResource": { - "resourceName": "TotalLowPriorityCores", - "limits": 1115, - "providerSpecificProperties": [ - { - "name": "resourceType", - "value": "lowPriority" - } - ] - }, - "alternateResources": [] - }, - { - "requestedResource": { - "resourceName": "StandardDv2Family", - "limits": 250, - "providerSpecificProperties": [ - { - "name": "resourceType", - "value": "dedicated" - } - ] - }, - "alternateResources": [] - } - ] - } - ] - }, - { - "resourceProvider": "Microsoft.Compute", - "locations": [ - { - "location": "Poland Central", - "resources": [ - { - "requestedResource": { - "resourceName": "standardDSv3Family", - "limits": 1115, - "providerSpecificProperties": [] - }, - "alternateResources": [ - { - "resourceName": "standardESv3Family", - "limits": 1115, - "providerSpecificProperties": [] - }, - { - "resourceName": "standardA4Family", - "limits": 2300, - "providerSpecificProperties": [] - } - ] - }, - { - "requestedResource": { - "resourceName": "standardFFamily", - "limits": 250, - "providerSpecificProperties": [] - }, - "alternateResources": [] - }, - { - "requestedResource": { - "resourceName": "lowPriorityCores", - "limits": 2500, - "providerSpecificProperties": [] - }, - "alternateResources": [] - }, - { - "requestedResource": { - "resourceName": "cores", - "limits": 2300, - "providerSpecificProperties": [] - }, - "alternateResources": [] - } - ] - } - ] - } - ], - "metadata": { - "serviceName": "AzureBackup" - } - } - }, - "responses": { - "202": { - "headers": { - "Retry-After": "30", - "Azure-AsyncOperation": "https://capacityorder-ppe.trafficmanaget.net/capacityOrder/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3" - }, - "body": { - "id": "capacityOrder/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "name": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "status": "Accepted" - } - }, - "400": { - "body": { - "error": { - "code": "BadRequest", - "target": "capacityOrder", - "message": "Required parameter needByDate missing." - } - } - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI.json deleted file mode 100644 index 194e7d59e916..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-BatchAI.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "parameters": { - "createQuotaRequest": { - "serviceTreeId": "fb10185a-465d-42cd-b339-7d0d9331c340", - "prerequsiteOrderIds": [], - "onBehalfOfCustomers": [], - "needByDate": "2022-10-15", - "requestorContactEmail": "backupops@microsoft.com", - "isHoBo": false, - "stage": "GA", - "state": "buildout", - "orders": [ - { - "resourceProvider": "Microsoft.MachineLearningServices", - "resources": [ - { - "location": "Poland Central", - "resourceDetails": [ - { - "requestedResource": { - "resourceName": "TotalLowPriorityCores", - "limits": 1115, - "providerSpecificProperties": [ - { - "name": "resourceType", - "value": "lowPriority" - } - ] - }, - "alternateResources": [] - }, - { - "requestedResource": { - "resourceName": "StandardDv2Family", - "limits": 250, - "providerSpecificProperties": [ - { - "name": "resourceType", - "value": "dedicated" - } - ] - }, - "alternateResources": [] - } - ] - } - ] - } - ], - "metadata": { - "serviceName": "AzureBackup" - } - } - }, - "responses": { - "202": { - "headers": { - "Retry-After": "30", - "Azure-AsyncOperation": "https://capacityorder-ppe.trafficmanaget.net/capacityOrder/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3" - }, - "body": { - "id": "capacityOrder/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "name": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "status": "Accepted" - } - }, - "400": { - "body": { - "error": { - "code": "BadRequest", - "target": "capacityOrder", - "message": "Required parameter needByDate missing." - } - } - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-Compute.json deleted file mode 100644 index eb99f8e047ae..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutCapacityOrder-Compute.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "parameters": { - "createQuotaRequest": { - "serviceTreeId": "fb10185a-465d-42cd-b339-7d0d9331c340", - "prerequsiteOrderIds": [], - "onBehalfOfCustomers": [], - "needByDate": "2022-10-15", - "requestorContactEmail": "backupops@microsoft.com", - "isHoBo": true, - "stage": "GA", - "state": "buildout", - "orders": [ - { - "resourceProvider": "Microsoft.Compute", - "resources": [ - { - "location": "Poland Central", - "resourceDetails": [ - { - "requestedResource": { - "resourceName": "standardDSv3Family", - "limits": 1115, - "providerSpecificProperties": [] - }, - "alternateResources": [ - { - "resourceName": "standardESv3Family", - "limits": 1115, - "providerSpecificProperties": [] - }, - { - "resourceName": "standardA4Family", - "limits": 2300, - "providerSpecificProperties": [] - } - ] - }, - { - "requestedResource": { - "resourceName": "standardFFamily", - "limits": 250, - "providerSpecificProperties": [] - }, - "alternateResources": [] - }, - { - "requestedResource": { - "resourceName": "lowPriorityCores", - "limits": 2500, - "providerSpecificProperties": [] - }, - "alternateResources": [] - }, - { - "requestedResource": { - "resourceName": "cores", - "limits": 2300, - "providerSpecificProperties": [] - }, - "alternateResources": [] - } - ] - } - ] - } - ], - "metadata": { - "serviceName": "AzureBackup" - } - } - }, - "responses": { - "202": { - "headers": { - "Retry-After": "30", - "Azure-AsyncOperation": "https://capacityorder-ppe.trafficmanaget.net/capacityOrder/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3" - }, - "body": { - "id": "capacityOrder/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "name": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "status": "Accepted" - } - }, - "400": { - "body": { - "error": { - "code": "BadRequest", - "target": "capacityOrder", - "message": "Required parameter needByDate missing." - } - } - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotaLimits-Compute.json deleted file mode 100644 index 6af2ce2494bc..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotaLimits-Compute.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "scope": "providers/Microsoft.Compute/locations/westus", - "sharedQuotaEntityName": "yourSQENameHere", - "resourceName": "cores", - "api-version": "2023-06-01-preview", - "body": { - "limit": 1000, - "name": {} - } - }, - "responses": { - "200": { - "body": {} - }, - "404": { - "body": {} - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotasSubscription.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotasSubscription.json deleted file mode 100644 index d7540a14f723..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutGroupQuotasSubscription.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "sharedQuotaEntityName": "yourSQENameHere", - "api-version": "2023-06-01-preview" - }, - "responses": { - "200": { - "body": {} - }, - "404": { - "body": {} - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-Batch.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-Batch.json deleted file mode 100644 index 282687db85cc..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-Batch.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "orderId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "provider": "Microsoft.MachineLearningServices", - "location": "eastus", - "resourceName": "standardA4Family", - "allocateQuotaRequest": { - "limits": 115, - "providerSpecificProperties": [ - { - "name": "accountName", - "value": "batch_Account_eus_1" - } - ], - "additionalFlags": "None" - } - }, - "responses": { - "202": { - "headers": { - "Retry-After": "30", - "Azure-AsyncOperation": "https://capacityorder-ppe.trafficmanaget.net/allocations/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3" - }, - "body": { - "id": "allocations/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "name": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "status": "Accepted" - } - }, - "400": { - "body": { - "error": { - "code": "BadRequest", - "target": "capacityOrder", - "message": "Required parameter needByDate missing." - } - } - }, - "404": { - "body": { - "error": { - "code": "NotFound", - "target": "capacityOrder", - "message": "Capacity order not found." - } - } - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-BatchAI.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-BatchAI.json deleted file mode 100644 index a81688710716..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-BatchAI.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "parameters": { - "orderId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "provider": "Microsoft.MachineLearningServices", - "location": "eastus", - "resourceName": "standardA4Family", - "allocateQuotaRequest": { - "limits": 1115, - "providerSpecificProperties": [ - { - "name": "resourceType", - "value": "dedicated" - } - ], - "additionalFlags": "None" - } - }, - "responses": { - "202": { - "headers": { - "Retry-After": "30", - "Azure-AsyncOperation": "https://capacityorder-ppe.trafficmanaget.net/allocations/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3" - }, - "body": { - "id": "allocations/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "name": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "status": "Accepted" - } - }, - "400": { - "body": { - "error": { - "code": "BadRequest", - "target": "capacityOrder", - "message": "Required parameter needByDate missing." - } - } - }, - "404": { - "body": { - "error": { - "code": "NotFound", - "target": "capacityOrder", - "message": "Capacity order not found." - } - } - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-Compute.json deleted file mode 100644 index 5d5baf9c7c76..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-Compute.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "orderId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "provider": "Microsoft.Compute", - "location": "eastus", - "resourceName": "standardA4Family", - "allocateQuotaRequest": { - "limits": 1115, - "providerSpecificProperties": [], - "additionalFlags": "Regional" - } - }, - "responses": { - "202": { - "headers": { - "Retry-After": "30", - "Azure-AsyncOperation": "https://capacityorder-ppe.trafficmanaget.net/allocations/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3" - }, - "body": { - "id": "allocations/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "name": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "status": "Accepted" - } - }, - "400": { - "body": { - "error": { - "code": "BadRequest", - "target": "capacityOrder", - "message": "Required parameter needByDate missing." - } - } - }, - "404": { - "body": { - "error": { - "code": "NotFound", - "target": "capacityOrder", - "message": "Capacity order not found." - } - } - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-CosmosDb.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-CosmosDb.json deleted file mode 100644 index 0f03dc97f593..000000000000 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/PutQuotaAllocation-CosmosDb.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "orderId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "provider": "Microsoft.CosmosDb", - "location": "global", - "resourceName": "databaseAccounts", - "allocateQuotaRequest": { - "limits": 5, - "providerSpecificProperties": [], - "additionalFlags": "None" - } - }, - "responses": { - "202": { - "headers": { - "Retry-After": "30", - "Azure-AsyncOperation": "https://capacityorder-ppe.trafficmanaget.net/allocations/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3" - }, - "body": { - "id": "allocations/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "name": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "status": "Accepted" - } - }, - "400": { - "body": { - "error": { - "code": "BadRequest", - "target": "capacityOrder", - "message": "Required parameter needByDate missing." - } - } - }, - "404": { - "body": { - "error": { - "code": "NotFound", - "target": "capacityOrder", - "message": "Capacity order not found." - } - } - } - } -} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_Get_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_Get_Request-Compute.json new file mode 100644 index 000000000000..bda9ffcc8cfa --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_Get_Request-Compute.json @@ -0,0 +1,24 @@ +{ + "operationId": "GroupQuotaSubscriptionQuotaAllocationRequests_Get", + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "resourceProviderScope": "providers/Microsoft.Compute/locations/westus", + "groupQuotaName": "groupquota1", + "allocationId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "id", + "type": "type", + "name": "name", + "properties": { + "provisioningState": "Accepted", + "limit": 75 + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_List_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_List_Request-Compute.json new file mode 100644 index 000000000000..695dd2a10143 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_List_Request-Compute.json @@ -0,0 +1,28 @@ +{ + "operationId": "GroupQuotaSubscriptionQuotaAllocationRequests_List", + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "resourceProviderScope": "providers/Microsoft.Compute/locations/westus", + "groupQuotaName": "groupquota1", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "id", + "type": "type", + "name": "name", + "properties": { + "provisioningState": "Accepted", + "limit": 75 + } + } + ], + "nextLink": "https://yourLinkHere.com" + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Get_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Get_Request-Compute.json new file mode 100644 index 000000000000..d8f2e45a0446 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Get_Request-Compute.json @@ -0,0 +1,30 @@ +{ + "operationId": "GroupQuotaSubscriptionQuotaAllocation_Get", + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "resourceProviderScope": "providers/Microsoft.Compute/locations/westus", + "groupQuotaName": "groupquota1", + "resourceName": "cores", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "id", + "type": "type", + "name": "name", + "properties": { + "limit": 100, + "nonShareableQuota": 25, + "provisioningState": "Accepted", + "quotaSources": [ + { + "groupquota1": 75 + } + ] + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_List_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_List_Request-Compute.json new file mode 100644 index 000000000000..0ea60573b538 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_List_Request-Compute.json @@ -0,0 +1,34 @@ +{ + "operationId": "GroupQuotaSubscriptionQuotaAllocation_List", + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "resourceProviderScope": "providers/Microsoft.Compute/locations/westus", + "groupQuotaName": "groupquota1", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "id", + "type": "type", + "name": "name", + "properties": { + "limit": 100, + "nonShareableQuota": 25, + "provisioningState": "Accepted", + "quotaSources": [ + { + "groupquota1": 75 + } + ] + } + } + ], + "nextLink": "https://yourLinkHere.com" + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json new file mode 100644 index 000000000000..ab40071e4de3 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json @@ -0,0 +1,62 @@ +{ + "operationId": "GroupQuotaSubscriptionQuotaAllocation_Update", + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "resourceProviderScope": "providers/Microsoft.Compute/locations/westus", + "groupQuotaName": "groupquota1", + "resourceName": "cores", + "api-version": "2023-06-01-preview", + "allocateQuotaRequest": { + "properties": { + "limit": 75 + } + } + }, + "responses": { + "200": { + "body": { + "id": "id", + "type": "type", + "name": "name", + "properties": { + "limit": 100, + "nonShareableQuota": 25, + "provisioningState": "Accepted", + "quotaSources": [ + { + "groupquota1": 75 + } + ] + } + } + }, + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "id", + "type": "type", + "name": "name", + "properties": { + "provisioningState": "Accepted" + }, + "error": { + "error": { + "code": "errorCode", + "message": "errorMesssage", + "target": "errorTarget", + "details": [], + "additionalInfo": [ + { + "type": "additionalInfoType", + "info": {} + } + ] + } + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json new file mode 100644 index 000000000000..f6b734d5ed2b --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json @@ -0,0 +1,62 @@ +{ + "operationId": "GroupQuotaSubscriptionQuotaAllocation_CreateOrUpdate", + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "resourceProviderScope": "providers/Microsoft.Compute/locations/westus", + "groupQuotaName": "groupquota1", + "resourceName": "cores", + "api-version": "2023-06-01-preview", + "allocateQuotaRequest": { + "properties": { + "limit": 75 + } + } + }, + "responses": { + "200": { + "body": { + "id": "id", + "type": "type", + "name": "name", + "properties": { + "limit": 100, + "nonShareableQuota": 25, + "provisioningState": "Accepted", + "quotaSources": [ + { + "groupquota1": 75 + } + ] + } + } + }, + "201": { + "headers": { + "location": "https://contoso.com/operationstatus" + }, + "body": { + "id": "id", + "type": "type", + "name": "name", + "properties": { + "provisioningState": "Accepted" + }, + "error": { + "error": { + "code": "errorCode", + "message": "errorMesssage", + "target": "errorTarget", + "details": [], + "additionalInfo": [ + { + "type": "additionalInfoType", + "info": {} + } + ] + } + } + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 1e4befa8f315..5acd647390ad 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -55,7 +55,7 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "name": "GroupQuota Put Request Body", + "name": "GroupQuotaPutRequestBody", "in": "body", "description": "The GroupQuota body details for creation or update of a GroupQuota entity.", "schema": { @@ -123,7 +123,7 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "name": " GroupQuotasPatchRequest", + "name": " GroupQuotasPatchRequestBody", "in": "body", "description": "The GroupQuotas Patch Request.", "schema": { @@ -288,10 +288,10 @@ ], "summary": "Adds subscription to the GroupQuotas.", "description": "Adds a subscription to GroupQuotas.", - "operationId": "GroupQuotasEntitiesSubscriptionsAdd_CreateOrUpdate", + "operationId": "GroupQuotaSubscriptions_CreateOrUpdate", "x-ms-examples": { - "GroupQuotaLimits_Put_Subscriptions": { - "$ref": "./examples/PutGroupQuotasSubscription.json" + "GroupQuotaSubscriptions_Put_Subscriptions": { + "$ref": "./examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json" } }, "parameters": [ @@ -352,8 +352,8 @@ "description": "Updates the GroupQuotas with the subscription to add to the subscriptions list.", "operationId": "GroupQuotaSubscriptions_Update", "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/PatchGroupQuotasSubscriptionAdd.json" + "GroupQuotaSubscriptions_Patch_Subscriptions": { + "$ref": "./examples/GroupQuotas-Subscriptions/PatchGroupQuotasSubscription.json" } }, "parameters": [ @@ -393,8 +393,8 @@ "description": "Removes the subscription from GroupQuotas.", "operationId": "GroupQuotaSubscriptions_Delete", "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/DeleteGroupQuotaSubscriptions.json" + "GroupQuotaSubscriptions_Delete_Subscriptions": { + "$ref": "./examples/GroupQuotas-Subscriptions/DeleteGroupQuotaSubscriptions.json" } }, "parameters": [ @@ -432,10 +432,10 @@ ], "summary": "Checks if the subscription is in GroupQuotas SubscriptionIdList.", "description": "Checks if the subscription is in GroupQuotas SubscriptionIdList.", - "operationId": "SGroupQuotaSubscription_Get", + "operationId": "GroupQuotaSubscription_Get", "x-ms-examples": { - "GroupQuotaLimits_Put_Subscription": { - "$ref": "./examples/DeleteGroupQuotaSubscriptions.json" + "GroupQuotaSubscriptions_Get_Subscriptions": { + "$ref": "./examples/GroupQuotas-Subscriptions/GetGroupQuotaSubscriptions.json" } }, "parameters": [ @@ -478,7 +478,7 @@ "operationId": "GroupQuotaLimits_CreateOrUpdate", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/PutGroupQuotaLimits-Compute.json" + "$ref": "./examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json" } }, "x-ms-long-running-operation": true, @@ -551,8 +551,8 @@ "description": "Creates/Updates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status will be updated periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed,then the URI will change to Get URI and full details can be checked.", "operationId": "GroupQuotaLimits_Update", "x-ms-examples": { - "GroupQuotaLimits_Put_Request_ForCompute": { - "$ref": "./examples/PatchGroupQuotaLimits-Compute.json" + "GroupQuotaLimits_Patch_Request_ForCompute": { + "$ref": "./examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json" } }, "x-ms-long-running-operation": true, @@ -626,7 +626,7 @@ "operationId": "GroupQuotaLimits_Get", "x-ms-examples": { "GroupQuotaLimits_Get_Request_ForCompute": { - "$ref": "./examples/GetGroupQuotaLimits-Compute.json" + "$ref": "./examples/GroupQuotaLimits/GetGroupQuotaLimits-Compute.json" } }, "parameters": [ @@ -671,8 +671,8 @@ "description": "Gets the List of resources groupQuotaLimits for the MGId, based on the scope. The scope can be - providers/Microsoft.Compute/locations/. The list elements will be same as the Get API - It will include the limits, availableLimits, assignedToSubscriptions: Quotas assigned to subscriptions from the groupQuota.", "operationId": "GroupQuotaLimits_List", "x-ms-examples": { - "GroupQuotaLimits_Get_Request_ForCompute": { - "$ref": "./examples/ListGroupQuotaLimits-Compute.json" + "GroupQuotaLimits_List_Request_ForCompute": { + "$ref": "./examples/GroupQuotaLimits/ListGroupQuotaLimits-Compute.json" } }, "parameters": [ @@ -712,10 +712,10 @@ ], "summary": "List the status of all GroupQuota requests.", "description": "List API to check the status of a GroupQuota requests by requestId. The groupQuotaRequest history is maintained for 1 year.", - "operationId": "GroupQuota-Requests_List", + "operationId": "GroupQuotaLimits-Requests_List", "x-ms-examples": { - "MG-GroupQuota-Order_Get_Response_ForCompute": { - "$ref": "./examples/GetCapacityOrder-Compute.json" + "GroupQuotaLimits-Requests_List": { + "$ref": "./examples/GroupQuotaLimits-Requests/GroupQuotaLimits-Requests_List.json" } }, "parameters": [ @@ -755,10 +755,10 @@ ], "summary": "Get the status of a single GroupQuota request by requestId.", "description": "Get API to check the status of a GroupQuota request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.", - "operationId": "GroupQuota-Requests_Get", + "operationId": "GroupQuotaLimits-Requests_Get", "x-ms-examples": { - "MG-GroupQuota-Order_Get_Response_ForCompute": { - "$ref": "./examples/GetCapacityOrder-Compute.json" + "GroupQuotaLimits-Requests_Get": { + "$ref": "./examples/GroupQuotaLimits-Requests/GroupQuotaLimits-Requests_Get.json" } }, "parameters": [ @@ -803,8 +803,8 @@ "description": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", "operationId": "GroupQuotaSubscriptionQuotaAllocation_List", "x-ms-examples": { - "GroupQuota_Get_Request_ForCompute": { - "$ref": "./examples/GetQuotaAllocation-Compute.json" + "SubscriptionQuota-Allocation_List_Request_ForCompute": { + "$ref": "./examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_List_Request-Compute.json" } }, "parameters": [ @@ -849,8 +849,8 @@ "description": "Request to assign a specific resource quota from group quota to a specific Subscription. The subscriptions can also reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, which means the maximum unused quota assigned back to MG groupQuota will be the groupQuota assigned to the subscriptions. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription.", "operationId": "GroupQuotaSubscriptionQuotaAllocation_CreateOrUpdate", "x-ms-examples": { - "ShareQuotaOrder_Subscription_Allocation_Put_ForCompute": { - "$ref": "./examples/PutQuotaAllocation-Compute.json" + "SubscriptionQuota-Allocation_Put_Request_ForCompute": { + "$ref": "./examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json" } }, "x-ms-long-running-operation": true, @@ -927,8 +927,8 @@ "description": "Request to assign quota from group quota to a specific Subscription. The subscriptions and reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, using this API. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription(s).", "operationId": "GroupQuotaSubscriptionQuotaAllocation_Update", "x-ms-examples": { - "GroupQuotas_Subscription_Allocation_Patch_ForCompute": { - "$ref": "./examples/PatchQuotaAllocation-Compute.json" + "SubscriptionQuota-Allocation_Patch_Request_ForCompute": { + "$ref": "./examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json" } }, "x-ms-long-running-operation": true, @@ -1005,8 +1005,8 @@ "description": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", "operationId": "GroupQuotaSubscriptionQuotaAllocation_Get", "x-ms-examples": { - "ShareQuotaOrder_Subscription_Allocation_Get_ForCompute": { - "$ref": "./examples/GetQuotaAllocation-Compute.json" + "SubscriptionQuota-Allocation_Get_Request_ForCompute": { + "$ref": "./examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Get_Request-Compute.json" } }, "parameters": [ @@ -1048,14 +1048,14 @@ "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests/{allocationId}": { "get": { "tags": [ - "Subscription-Quota-Allocation-Requests" + "SubscriptionQuota-Allocation-Requests" ], "operationId": "GroupQuotaSubscriptionQuotaAllocationRequests_Get", "summary": "Get the status of the quota allocation request for the subscriptionId.", "description": "Get the quota allocation request status for the subscriptionId by allocationId.", "x-ms-examples": { - "GroupQuotaAllocationRequest_Get_Request_ForCompute": { - "$ref": "./examples/GetQuotaAllocation-Compute.json" + "SubscriptionQuota-Allocation-Requests_Get_Request_ForCompute": { + "$ref": "./examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_Get_Request-Compute.json" } }, "parameters": [ @@ -1097,14 +1097,14 @@ "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests": { "get": { "tags": [ - "Subscription-Quota-Allocation-Requests" + "SubscriptionQuota-Allocation-Requests" ], - "operationId": "SubscriptionGroupQuotaAllocationRequest_List", + "operationId": "GroupQuotaSubscriptionQuotaAllocationRequests_List", "summary": "Lists all the quota allocation requests.to subscriptions", "description": "Lists all the allocation requests.", "x-ms-examples": { - "QuotaCapacityOrder_Put_Request_ForCompute": { - "$ref": "./examples/GetQuotaAllocation-Compute.json" + "SubscriptionQuota-Allocation-Requests_List_Request_ForCompute": { + "$ref": "./examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_List_Request-Compute.json" } }, "parameters": [ From e46eba05b96acb32259d400f3f0cc556b9bcf30a Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Wed, 28 Jun 2023 16:49:15 -0700 Subject: [PATCH 125/158] unmark GroupQuotasEntityBase as a resource --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 5acd647390ad..0ec27cad9a5b 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1591,7 +1591,6 @@ "GroupQuotasEntityBase": { "type": "object", "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", - "x-ms-azure-resource": true, "properties": { "displayName": { "description": "Display name of the GroupQuota entity.", From 7d1dd34d6b2db945ffc062b6b5949259ef3c0c76 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Thu, 29 Jun 2023 12:08:20 -0700 Subject: [PATCH 126/158] update error object and properties field --- .../PatchGroupQuotaLimits-Compute.json | 13 ++++--------- .../PutGroupQuotaLimits-Compute.json | 13 ++++--------- .../PutGroupQuotasSubscription.json | 13 ++++--------- .../examples/GroupQuotas/PatchGroupQuotas.json | 13 ++++--------- .../examples/GroupQuotas/PutGroupQuotas.json | 13 ++++--------- ...ptionQuota-Allocation_Get_Request-Compute.json | 2 +- ...tionQuota-Allocation_List_Request-Compute.json | 2 +- ...ionQuota-Allocation_Patch_Request-Compute.json | 15 +++++---------- ...ptionQuota-Allocation_Put_Request-Compute.json | 15 +++++---------- 9 files changed, 32 insertions(+), 67 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json index bb9d5876fe35..8038e67e7d0a 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json @@ -50,18 +50,13 @@ "provisioningState": "Accepted" }, "error": { - "error": { "code": "errorCode", "message": "errorMesssage", "target": "errorTarget", - "details": [], - "additionalInfo": [ - { - "type": "additionalInfoType", - "info": {} - } - ] - } + "innerError": { + "trace": [] + }, + "details": [] } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json index 77e24545ebca..855b998f2bd9 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json @@ -50,18 +50,13 @@ "provisioningState": "Accepted" }, "error": { - "error": { "code": "errorCode", "message": "errorMesssage", "target": "errorTarget", - "details": [], - "additionalInfo": [ - { - "type": "additionalInfoType", - "info": {} - } - ] - } + "innerError": { + "trace": [] + }, + "details": [] } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json index 812a8e989d8c..336ecab9bb6a 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json @@ -42,18 +42,13 @@ "provisioningState": "Accepted" }, "error": { - "error": { "code": "errorCode", "message": "errorMesssage", "target": "errorTarget", - "details": [], - "additionalInfo": [ - { - "type": "additionalInfoType", - "info": {} - } - ] - } + "innerError": { + "trace": [] + }, + "details": [] } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json index be465c4e4568..c440ced244d7 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json @@ -57,18 +57,13 @@ "provisioningState": "Accepted" }, "error": { - "error": { "code": "errorCode", "message": "errorMesssage", "target": "errorTarget", - "details": [], - "additionalInfo": [ - { - "type": "additionalInfoType", - "info": {} - } - ] - } + "innerError": { + "trace": [] + }, + "details": [] } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json index 814c2de80d8d..81fb94091737 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json @@ -58,18 +58,13 @@ "provisioningState": "Accepted" }, "error": { - "error": { "code": "errorCode", "message": "errorMesssage", "target": "errorTarget", - "details": [], - "additionalInfo": [ - { - "type": "additionalInfoType", - "info": {} - } - ] - } + "innerError": { + "trace": [] + }, + "details": [] } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Get_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Get_Request-Compute.json index d8f2e45a0446..fe4d30481573 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Get_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Get_Request-Compute.json @@ -14,7 +14,7 @@ "id": "id", "type": "type", "name": "name", - "properties": { + "additionalProperties": { "limit": 100, "nonShareableQuota": 25, "provisioningState": "Accepted", diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_List_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_List_Request-Compute.json index 0ea60573b538..73ab97af8818 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_List_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_List_Request-Compute.json @@ -15,7 +15,7 @@ "id": "id", "type": "type", "name": "name", - "properties": { + "additionalProperties": { "limit": 100, "nonShareableQuota": 25, "provisioningState": "Accepted", diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json index ab40071e4de3..29d6d8345371 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json @@ -19,7 +19,7 @@ "id": "id", "type": "type", "name": "name", - "properties": { + "additionalProperties": { "limit": 100, "nonShareableQuota": 25, "provisioningState": "Accepted", @@ -43,18 +43,13 @@ "provisioningState": "Accepted" }, "error": { - "error": { "code": "errorCode", "message": "errorMesssage", "target": "errorTarget", - "details": [], - "additionalInfo": [ - { - "type": "additionalInfoType", - "info": {} - } - ] - } + "innerError": { + "trace": [] + }, + "details": [] } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json index f6b734d5ed2b..fe2697613a0a 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json @@ -19,7 +19,7 @@ "id": "id", "type": "type", "name": "name", - "properties": { + "additionalProperties": { "limit": 100, "nonShareableQuota": 25, "provisioningState": "Accepted", @@ -43,18 +43,13 @@ "provisioningState": "Accepted" }, "error": { - "error": { "code": "errorCode", "message": "errorMesssage", "target": "errorTarget", - "details": [], - "additionalInfo": [ - { - "type": "additionalInfoType", - "info": {} - } - ] - } + "innerError": { + "trace": [] + }, + "details": [] } } } From afe1e6b2b04809eadf45f663f795ce1d327e8b73 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Thu, 29 Jun 2023 12:09:06 -0700 Subject: [PATCH 127/158] prettier --- .../PatchGroupQuotaLimits-Compute.json | 14 +++++++------- .../PutGroupQuotaLimits-Compute.json | 14 +++++++------- .../PutGroupQuotasSubscription.json | 14 +++++++------- .../examples/GroupQuotas/PatchGroupQuotas.json | 14 +++++++------- .../examples/GroupQuotas/PutGroupQuotas.json | 14 +++++++------- ...tionQuota-Allocation_Patch_Request-Compute.json | 14 +++++++------- ...iptionQuota-Allocation_Put_Request-Compute.json | 14 +++++++------- 7 files changed, 49 insertions(+), 49 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json index 8038e67e7d0a..de7afae9435e 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json @@ -50,13 +50,13 @@ "provisioningState": "Accepted" }, "error": { - "code": "errorCode", - "message": "errorMesssage", - "target": "errorTarget", - "innerError": { - "trace": [] - }, - "details": [] + "code": "errorCode", + "message": "errorMesssage", + "target": "errorTarget", + "innerError": { + "trace": [] + }, + "details": [] } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json index 855b998f2bd9..7d75ec0250c6 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json @@ -50,13 +50,13 @@ "provisioningState": "Accepted" }, "error": { - "code": "errorCode", - "message": "errorMesssage", - "target": "errorTarget", - "innerError": { - "trace": [] - }, - "details": [] + "code": "errorCode", + "message": "errorMesssage", + "target": "errorTarget", + "innerError": { + "trace": [] + }, + "details": [] } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json index 336ecab9bb6a..e87e1ebeedd0 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json @@ -42,13 +42,13 @@ "provisioningState": "Accepted" }, "error": { - "code": "errorCode", - "message": "errorMesssage", - "target": "errorTarget", - "innerError": { - "trace": [] - }, - "details": [] + "code": "errorCode", + "message": "errorMesssage", + "target": "errorTarget", + "innerError": { + "trace": [] + }, + "details": [] } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json index c440ced244d7..e84a1265ea40 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json @@ -57,13 +57,13 @@ "provisioningState": "Accepted" }, "error": { - "code": "errorCode", - "message": "errorMesssage", - "target": "errorTarget", - "innerError": { - "trace": [] - }, - "details": [] + "code": "errorCode", + "message": "errorMesssage", + "target": "errorTarget", + "innerError": { + "trace": [] + }, + "details": [] } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json index 81fb94091737..8fd7bbcdfac9 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json @@ -58,13 +58,13 @@ "provisioningState": "Accepted" }, "error": { - "code": "errorCode", - "message": "errorMesssage", - "target": "errorTarget", - "innerError": { - "trace": [] - }, - "details": [] + "code": "errorCode", + "message": "errorMesssage", + "target": "errorTarget", + "innerError": { + "trace": [] + }, + "details": [] } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json index 29d6d8345371..7bda9d929572 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json @@ -43,13 +43,13 @@ "provisioningState": "Accepted" }, "error": { - "code": "errorCode", - "message": "errorMesssage", - "target": "errorTarget", - "innerError": { - "trace": [] - }, - "details": [] + "code": "errorCode", + "message": "errorMesssage", + "target": "errorTarget", + "innerError": { + "trace": [] + }, + "details": [] } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json index fe2697613a0a..c77ac6cef49e 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json @@ -43,13 +43,13 @@ "provisioningState": "Accepted" }, "error": { - "code": "errorCode", - "message": "errorMesssage", - "target": "errorTarget", - "innerError": { - "trace": [] - }, - "details": [] + "code": "errorCode", + "message": "errorMesssage", + "target": "errorTarget", + "innerError": { + "trace": [] + }, + "details": [] } } } From 17972948b7eb39acafaa34e44a01cefaa00047d4 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Thu, 29 Jun 2023 12:53:13 -0700 Subject: [PATCH 128/158] change additionalProperties back to properties --- .../SubscriptionQuota-Allocation_Get_Request-Compute.json | 2 +- .../SubscriptionQuota-Allocation_List_Request-Compute.json | 2 +- .../SubscriptionQuota-Allocation_Patch_Request-Compute.json | 2 +- .../SubscriptionQuota-Allocation_Put_Request-Compute.json | 2 +- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Get_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Get_Request-Compute.json index fe4d30481573..d8f2e45a0446 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Get_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Get_Request-Compute.json @@ -14,7 +14,7 @@ "id": "id", "type": "type", "name": "name", - "additionalProperties": { + "properties": { "limit": 100, "nonShareableQuota": 25, "provisioningState": "Accepted", diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_List_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_List_Request-Compute.json index 73ab97af8818..0ea60573b538 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_List_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_List_Request-Compute.json @@ -15,7 +15,7 @@ "id": "id", "type": "type", "name": "name", - "additionalProperties": { + "properties": { "limit": 100, "nonShareableQuota": 25, "provisioningState": "Accepted", diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json index 7bda9d929572..a6a8a83f6e0a 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json @@ -19,7 +19,7 @@ "id": "id", "type": "type", "name": "name", - "additionalProperties": { + "properties": { "limit": 100, "nonShareableQuota": 25, "provisioningState": "Accepted", diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json index c77ac6cef49e..b20b9e525d85 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json @@ -19,7 +19,7 @@ "id": "id", "type": "type", "name": "name", - "additionalProperties": { + "properties": { "limit": 100, "nonShareableQuota": 25, "provisioningState": "Accepted", diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 3da2dfffc833..4cf8d4ca9245 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1480,7 +1480,7 @@ "type": "string", "readOnly": true }, - "additionalProperties": { + "properties": { "description": "Group Quota properties for the specified resource.", "$ref": "#/definitions/SubscriptionQuotaDetails" } From dd83a7945a9f98b83bc507af287d595bb976ef7f Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Thu, 20 Jul 2023 12:01:28 -0700 Subject: [PATCH 129/158] update operationId for documentation grouping --- .../preview/2023-06-01-preview/groupquota.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 4cf8d4ca9245..cea11ed1bafa 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -173,7 +173,7 @@ ], "summary": "Gets GroupQuotas for the name passed.", "description": "Gets the GroupQuotas for the name passed. It will return the GroupQuotas properties only. The details on groupQuota can be access from the groupQuota APIs.", - "operationId": " GroupQuotas_Get", + "operationId": "GroupQuotas_Get", "x-ms-examples": { "GroupQuotas_Get_Request_ForCompute": { "$ref": "./examples/GroupQuotas/GetGroupQuotas.json" @@ -432,7 +432,7 @@ ], "summary": "Checks if the subscription is in GroupQuotas SubscriptionIdList.", "description": "Checks if the subscription is in GroupQuotas SubscriptionIdList.", - "operationId": "GroupQuotaSubscription_Get", + "operationId": "GroupQuotaSubscriptions_Get", "x-ms-examples": { "GroupQuotaSubscriptions_Get_Subscriptions": { "$ref": "./examples/GroupQuotas-Subscriptions/GetGroupQuotaSubscriptions.json" From f0147555f407a081853a36a0ae97c33d52833f23 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Thu, 20 Jul 2023 14:16:53 -0700 Subject: [PATCH 130/158] more specific example fields --- .../GetGroupQuotaLimits-Compute.json | 8 ++++---- .../ListGroupQuotaLimits-Compute.json | 8 ++++---- .../PatchGroupQuotaLimits-Compute.json | 16 ++++++++-------- .../PutGroupQuotaLimits-Compute.json | 16 ++++++++-------- .../DeleteGroupQuotaSubscriptions.json | 2 +- .../GetGroupQuotaSubscriptions.json | 8 ++++---- .../PatchGroupQuotasSubscription.json | 8 ++++---- .../PutGroupQuotasSubscription.json | 14 +++++++------- .../examples/GroupQuotas/GetGroupQuotas.json | 6 +++--- .../examples/GroupQuotas/GetGroupQuotasList.json | 6 +++--- .../examples/GroupQuotas/PatchGroupQuotas.json | 12 ++++++------ .../examples/GroupQuotas/PutGroupQuotas.json | 8 ++++---- ...-Allocation-Requests_Get_Request-Compute.json | 10 +++++----- ...Allocation-Requests_List_Request-Compute.json | 8 ++++---- ...tionQuota-Allocation_Get_Request-Compute.json | 8 ++++---- ...ionQuota-Allocation_List_Request-Compute.json | 8 ++++---- ...onQuota-Allocation_Patch_Request-Compute.json | 14 +++++++------- ...tionQuota-Allocation_Put_Request-Compute.json | 14 +++++++------- 18 files changed, 87 insertions(+), 87 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/GetGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/GetGroupQuotaLimits-Compute.json index 4b33f2e7f1be..f5aa07b4bc25 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/GetGroupQuotaLimits-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/GetGroupQuotaLimits-Compute.json @@ -10,12 +10,12 @@ "responses": { "200": { "body": { - "id": "id", - "type": "type", - "name": "name", + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Compute/locations/westus/providers/Microsoft.Quota/groupQuotas/groupquota1/groupQuotaLimits/cores", + "type": "Microsoft.Quota/groupQuotaLimits", + "name": "cores", "properties": { "limit": 100, - "comment": "comment text", + "comment": "Contoso requires more quota.", "name": { "value": "cores", "localizedValue": "Total Regional vCPUs" diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/ListGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/ListGroupQuotaLimits-Compute.json index 9183be4ff633..fd9a681bae04 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/ListGroupQuotaLimits-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/ListGroupQuotaLimits-Compute.json @@ -11,12 +11,12 @@ "body": { "value": [ { - "id": "id", - "type": "type", - "name": "name", + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Compute/locations/westus/providers/Microsoft.Quota/groupQuotas/groupquota1/groupQuotaLimits/cores", + "type": "Microsoft.Quota/groupQuotaLimits", + "name": "cores", "properties": { "limit": 100, - "comment": "comment text", + "comment": "Contoso requires more quota.", "name": { "value": "cores", "localizedValue": "Total Regional vCPUs" diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json index de7afae9435e..d146f573190f 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json @@ -9,7 +9,7 @@ "groupQuotaRequest": { "properties": { "limit": 110, - "comment": "comment text", + "comment": "Contoso requires more quota.", "name": {} } } @@ -17,12 +17,12 @@ "responses": { "200": { "body": { - "id": "id", - "type": "type", - "name": "name", + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Compute/locations/westus/providers/Microsoft.Quota/groupQuotas/groupquota1/groupQuotaLimits/cores", + "type": "Microsoft.Quota/groupQuotaLimits", + "name": "cores", "properties": { "limit": 100, - "comment": "comment text", + "comment": "Contoso requires more quota.", "name": { "value": "cores", "localizedValue": "Total Regional vCPUs" @@ -43,9 +43,9 @@ "location": "https://contoso.com/operationstatus" }, "body": { - "id": "id", - "type": "type", - "name": "name", + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Compute/locations/westus/providers/Microsoft.Quota/groupQuotas/groupquota1/groupQuotaLimits/cores", + "type": "Microsoft.Quota/groupQuotaLimits", + "name": "cores", "properties": { "provisioningState": "Accepted" }, diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json index 7d75ec0250c6..b6edbad724da 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json @@ -9,7 +9,7 @@ "groupQuotaRequest": { "properties": { "limit": 110, - "comment": "comment text", + "comment": "Contoso requires more quota.", "name": {} } } @@ -17,12 +17,12 @@ "responses": { "200": { "body": { - "id": "id", - "type": "type", - "name": "name", + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Compute/locations/westus/providers/Microsoft.Quota/groupQuotas/groupquota1/groupQuotaLimits/cores", + "type": "Microsoft.Quota/groupQuotaLimits", + "name": "cores", "properties": { "limit": 100, - "comment": "comment text", + "comment": "Contoso requires more quota.", "name": { "value": "cores", "localizedValue": "Total Regional vCPUs" @@ -43,9 +43,9 @@ "location": "https://contoso.com/operationstatus" }, "body": { - "id": "id", - "type": "type", - "name": "name", + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Compute/locations/westus/providers/Microsoft.Quota/groupQuotas/groupquota1/groupQuotaLimits/cores", + "type": "Microsoft.Quota/groupQuotaLimits", + "name": "cores", "properties": { "provisioningState": "Accepted" }, diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/DeleteGroupQuotaSubscriptions.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/DeleteGroupQuotaSubscriptions.json index 73bac69e4ae8..1a6eaad7637b 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/DeleteGroupQuotaSubscriptions.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/DeleteGroupQuotaSubscriptions.json @@ -4,7 +4,7 @@ "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", "groupQuotaName": "groupquota1", "api-version": "2023-06-01-preview", - "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": {}, diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/GetGroupQuotaSubscriptions.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/GetGroupQuotaSubscriptions.json index cd5fe226766e..280e4e0393b2 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/GetGroupQuotaSubscriptions.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/GetGroupQuotaSubscriptions.json @@ -3,7 +3,7 @@ "parameters": { "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", "groupQuotaName": "groupquota1", - "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "subscriptionId": "00000000-0000-0000-0000-000000000000", "api-version": "2023-06-01-preview" }, "responses": { @@ -25,9 +25,9 @@ ], "provisioningState": "Accepted" }, - "id": "id", - "type": "type", - "name": "name" + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1/subscriptions/00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Quota/subscriptions", + "name": "00000000-0000-0000-0000-000000000000" } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PatchGroupQuotasSubscription.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PatchGroupQuotasSubscription.json index ba83807fa9a6..d226d53ea6e4 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PatchGroupQuotasSubscription.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PatchGroupQuotasSubscription.json @@ -4,7 +4,7 @@ "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", "groupQuotaName": "groupquota1", "api-version": "2023-06-01-preview", - "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -28,9 +28,9 @@ ], "provisioningState": "Accepted" }, - "id": "id", - "type": "type", - "name": "name" + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1/subscriptions/00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Quota/subscriptions", + "name": "00000000-0000-0000-0000-000000000000" } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json index e87e1ebeedd0..ede6031e723c 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json @@ -4,7 +4,7 @@ "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", "groupQuotaName": "groupquota1", "api-version": "2023-06-01-preview", - "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09" + "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { "200": { @@ -25,9 +25,9 @@ ], "provisioningState": "Accepted" }, - "id": "id", - "type": "type", - "name": "name" + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1/subscriptions/00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Quota/subscriptions", + "name": "00000000-0000-0000-0000-000000000000" } }, "201": { @@ -35,9 +35,9 @@ "location": "https://contoso.com/operationstatus" }, "body": { - "id": "id", - "type": "type", - "name": "name", + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1/subscriptions/00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Quota/subscriptions", + "name": "00000000-0000-0000-0000-000000000000", "properties": { "provisioningState": "Accepted" }, diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotas.json index dd56e24afe3d..b8a074bcf807 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotas.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotas.json @@ -24,9 +24,9 @@ ], "provisioningState": "Accepted" }, - "id": "id", - "type": "type", - "name": "name" + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1", + "type": "Microsoft.Quota/groupQuotas", + "name": "groupquota1" } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotasList.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotasList.json index 07ea36a31701..e914ec55586a 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotasList.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotasList.json @@ -25,9 +25,9 @@ ], "provisioningState": "Accepted" }, - "id": "id", - "type": "type", - "name": "name" + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1", + "type": "Microsoft.Quota/groupQuotas", + "name": "groupquota1" } ], "nextLink": "https://yourLinkHere.com" diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json index e84a1265ea40..d748bd0b0f6d 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json @@ -40,9 +40,9 @@ ], "provisioningState": "Accepted" }, - "id": "id", - "type": "type", - "name": "name" + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1", + "type": "Microsoft.Quota/groupQuotas", + "name": "groupquota1" } }, "202": { @@ -50,9 +50,9 @@ "location": "https://contoso.com/operationstatus" }, "body": { - "id": "id", - "type": "type", - "name": "name", + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1", + "type": "Microsoft.Quota/groupQuotas", + "name": "groupquota1", "properties": { "provisioningState": "Accepted" }, diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json index 8fd7bbcdfac9..0bb1294bb4db 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json @@ -42,7 +42,7 @@ "provisioningState": "Accepted" }, "id": "id", - "type": "type", + "type": "Microsoft.Quota/groupQuotas", "name": "name" } }, @@ -51,9 +51,9 @@ "location": "https://contoso.com/operationstatus" }, "body": { - "id": "id", - "type": "type", - "name": "name", + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1", + "type": "Microsoft.Quota/groupQuotas", + "name": "groupquota1", "properties": { "provisioningState": "Accepted" }, diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_Get_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_Get_Request-Compute.json index bda9ffcc8cfa..4e4776a3fc26 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_Get_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_Get_Request-Compute.json @@ -2,18 +2,18 @@ "operationId": "GroupQuotaSubscriptionQuotaAllocationRequests_Get", "parameters": { "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceProviderScope": "providers/Microsoft.Compute/locations/westus", "groupQuotaName": "groupquota1", - "allocationId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "allocationId": "11111111-1111-1111-1111-111111111111", "api-version": "2023-06-01-preview" }, "responses": { "200": { "body": { - "id": "id", - "type": "type", - "name": "name", + "id": "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/providers/Microsoft.Quota/groupQuotas/groupquota1/quotaAllocationRequests/11111111-1111-1111-1111-111111111111", + "type": "Microsoft.Quota/quotaAllocationRequests", + "name": "11111111-1111-1111-1111-111111111111", "properties": { "provisioningState": "Accepted", "limit": 75 diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_List_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_List_Request-Compute.json index 695dd2a10143..29bde9ed906d 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_List_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_List_Request-Compute.json @@ -2,7 +2,7 @@ "operationId": "GroupQuotaSubscriptionQuotaAllocationRequests_List", "parameters": { "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceProviderScope": "providers/Microsoft.Compute/locations/westus", "groupQuotaName": "groupquota1", "api-version": "2023-06-01-preview" @@ -12,9 +12,9 @@ "body": { "value": [ { - "id": "id", - "type": "type", - "name": "name", + "id": "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/providers/Microsoft.Quota/groupQuotas/groupquota1/quotaAllocationRequests/11111111-1111-1111-1111-111111111111", + "type": "Microsoft.Quota/quotaAllocationRequests", + "name": "11111111-1111-1111-1111-111111111111", "properties": { "provisioningState": "Accepted", "limit": 75 diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Get_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Get_Request-Compute.json index d8f2e45a0446..03d67f1a2a8a 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Get_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Get_Request-Compute.json @@ -2,7 +2,7 @@ "operationId": "GroupQuotaSubscriptionQuotaAllocation_Get", "parameters": { "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceProviderScope": "providers/Microsoft.Compute/locations/westus", "groupQuotaName": "groupquota1", "resourceName": "cores", @@ -11,9 +11,9 @@ "responses": { "200": { "body": { - "id": "id", - "type": "type", - "name": "name", + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/providers/Microsoft.Quota/groupQuotas/groupquota1/quotaAllocations/cores", + "type": "Microsoft.Quota/quotaAllocations", + "name": "cores", "properties": { "limit": 100, "nonShareableQuota": 25, diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_List_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_List_Request-Compute.json index 0ea60573b538..e61790c3bca8 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_List_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_List_Request-Compute.json @@ -2,7 +2,7 @@ "operationId": "GroupQuotaSubscriptionQuotaAllocation_List", "parameters": { "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceProviderScope": "providers/Microsoft.Compute/locations/westus", "groupQuotaName": "groupquota1", "api-version": "2023-06-01-preview" @@ -12,9 +12,9 @@ "body": { "value": [ { - "id": "id", - "type": "type", - "name": "name", + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/providers/Microsoft.Quota/groupQuotas/groupquota1/quotaAllocations/cores", + "type": "Microsoft.Quota/quotaAllocations", + "name": "cores", "properties": { "limit": 100, "nonShareableQuota": 25, diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json index a6a8a83f6e0a..51747bf333c4 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json @@ -2,7 +2,7 @@ "operationId": "GroupQuotaSubscriptionQuotaAllocation_Update", "parameters": { "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceProviderScope": "providers/Microsoft.Compute/locations/westus", "groupQuotaName": "groupquota1", "resourceName": "cores", @@ -16,9 +16,9 @@ "responses": { "200": { "body": { - "id": "id", - "type": "type", - "name": "name", + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/providers/Microsoft.Quota/groupQuotas/groupquota1/quotaAllocations/cores", + "type": "Microsoft.Quota/quotaAllocations", + "name": "cores", "properties": { "limit": 100, "nonShareableQuota": 25, @@ -36,9 +36,9 @@ "location": "https://contoso.com/operationstatus" }, "body": { - "id": "id", - "type": "type", - "name": "name", + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/providers/Microsoft.Quota/groupQuotas/groupquota1/quotaAllocations/cores", + "type": "Microsoft.Quota/quotaAllocations", + "name": "cores", "properties": { "provisioningState": "Accepted" }, diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json index b20b9e525d85..8c7a3c3931d8 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json @@ -2,7 +2,7 @@ "operationId": "GroupQuotaSubscriptionQuotaAllocation_CreateOrUpdate", "parameters": { "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", - "subscriptionId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceProviderScope": "providers/Microsoft.Compute/locations/westus", "groupQuotaName": "groupquota1", "resourceName": "cores", @@ -16,9 +16,9 @@ "responses": { "200": { "body": { - "id": "id", - "type": "type", - "name": "name", + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/providers/Microsoft.Quota/groupQuotas/groupquota1/quotaAllocations/cores", + "type": "Microsoft.Quota/quotaAllocations", + "name": "cores", "properties": { "limit": 100, "nonShareableQuota": 25, @@ -36,9 +36,9 @@ "location": "https://contoso.com/operationstatus" }, "body": { - "id": "id", - "type": "type", - "name": "name", + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/providers/Microsoft.Quota/groupQuotas/groupquota1/quotaAllocations/cores", + "type": "Microsoft.Quota/quotaAllocations", + "name": "cores", "properties": { "provisioningState": "Accepted" }, From 51228b3e450af27fb879d721b7b6d914c4f86079 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Wed, 26 Jul 2023 17:13:02 -0700 Subject: [PATCH 131/158] update put/patch request body to match 200 response schema --- ...criptionQuota-Allocation_Patch_Request-Compute.json | 6 +++++- ...bscriptionQuota-Allocation_Put_Request-Compute.json | 6 +++++- .../preview/2023-06-01-preview/groupquota.json | 10 ++++++---- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json index 51747bf333c4..1d5e56a63e31 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json @@ -9,7 +9,11 @@ "api-version": "2023-06-01-preview", "allocateQuotaRequest": { "properties": { - "limit": 75 + "quotaSources": [ + { + "groupquota1": 75 + } + ] } } }, diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json index 8c7a3c3931d8..7c219c1d0070 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json @@ -9,7 +9,11 @@ "api-version": "2023-06-01-preview", "allocateQuotaRequest": { "properties": { - "limit": 75 + "quotaSources": [ + { + "groupquota1": 75 + } + ] } } }, diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index cea11ed1bafa..8da212767cf2 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -879,7 +879,7 @@ "description": "Quota requests payload.", "required": true, "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + "$ref": "#/definitions/SubscriptionQuotaLimit" } } ], @@ -957,7 +957,7 @@ "description": "Quota requests payload.", "required": true, "schema": { - "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" + "$ref": "#/definitions/SubscriptionQuotaLimit" } } ], @@ -1493,12 +1493,14 @@ "limit": { "type": "integer", "format": "int64", - "description": "The total quota limit for the subscription." + "description": "The total quota limit for the subscription.", + "readOnly": true }, "nonShareableQuota": { "type": "integer", "format": "int64", - "description": "The non shareable quota for the subscription." + "description": "The non shareable quota for the subscription.", + "readOnly": true }, "provisioningState": { "$ref": "#/definitions/RequestState", From 2247e6ef1bddb6c3a3aaf079a57b6c59b6f1e294 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Mon, 31 Jul 2023 09:33:30 -0700 Subject: [PATCH 132/158] upgrade to v5 types --- .../2023-06-01-preview/groupquota.json | 104 +++++++++--------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 8da212767cf2..86b2e40bf986 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -52,7 +52,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "name": "GroupQuotaPutRequestBody", @@ -94,7 +94,7 @@ "default": { "description": "Error", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } @@ -120,7 +120,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "name": " GroupQuotasPatchRequestBody", @@ -162,7 +162,7 @@ "default": { "description": "Bad Request", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } @@ -187,7 +187,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -200,7 +200,7 @@ "default": { "description": "Error", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } @@ -225,7 +225,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -238,7 +238,7 @@ "default": { "description": "Error", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } @@ -262,7 +262,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -275,7 +275,7 @@ "default": { "description": "Error", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } @@ -302,10 +302,10 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -339,7 +339,7 @@ "default": { "description": "Error", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } @@ -364,10 +364,10 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -380,7 +380,7 @@ "default": { "description": "Bad Request", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } @@ -405,10 +405,10 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -421,7 +421,7 @@ "default": { "description": "Error", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } @@ -446,10 +446,10 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -462,7 +462,7 @@ "default": { "description": "Error", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } @@ -496,7 +496,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "name": "groupQuotaRequest", @@ -538,7 +538,7 @@ "default": { "description": "Error", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } @@ -570,7 +570,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "name": "groupQuotaRequest", @@ -612,7 +612,7 @@ "default": { "description": "Error", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } @@ -643,7 +643,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -656,7 +656,7 @@ "default": { "description": "Error", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } @@ -686,7 +686,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -699,7 +699,7 @@ "default": { "description": "Error", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } @@ -729,7 +729,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -742,7 +742,7 @@ "default": { "description": "Error", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } @@ -775,7 +775,7 @@ "$ref": "#/parameters/RequestIdInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -788,7 +788,7 @@ "default": { "description": "Error", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } @@ -812,7 +812,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "#/parameters/ScopeInParameters" @@ -821,7 +821,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -834,7 +834,7 @@ "default": { "description": "Error", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } @@ -859,7 +859,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "#/parameters/ScopeInParameters" @@ -871,7 +871,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "name": "allocateQuotaRequest", @@ -914,7 +914,7 @@ "default": { "description": "Error", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } @@ -937,7 +937,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "#/parameters/ScopeInParameters" @@ -949,7 +949,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "name": "allocateQuotaRequest", @@ -992,7 +992,7 @@ "default": { "description": "Error", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } @@ -1014,7 +1014,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "#/parameters/ScopeInParameters" @@ -1026,7 +1026,7 @@ "$ref": "#/parameters/ResourceInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1039,7 +1039,7 @@ "default": { "description": "Error", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } @@ -1063,7 +1063,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "#/parameters/ScopeInParameters" @@ -1075,7 +1075,7 @@ "$ref": "#/parameters/AllocationIdInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1088,7 +1088,7 @@ "default": { "description": "Error", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } @@ -1112,7 +1112,7 @@ "$ref": "#/parameters/MgIdInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "#/parameters/ScopeInParameters" @@ -1121,7 +1121,7 @@ "$ref": "#/parameters/GroupQuotaNameInParameters" }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1134,7 +1134,7 @@ "default": { "description": "Error", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } } From e350aff151b30260c94fc1b3d0728c004c9252fc Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Mon, 31 Jul 2023 10:01:37 -0700 Subject: [PATCH 133/158] update GroupQuotaLimits Put/Patch description --- .../preview/2023-06-01-preview/groupquota.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 86b2e40bf986..d2e8ec2893a4 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -473,8 +473,8 @@ "tags": [ "GroupQuotaLimits" ], - "summary": "Creates a new Group Quota request for a specific resources.", - "description": "Creates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", + "summary": "Updates the GroupQuotaLimits for the specific resource under a Management Group.", + "description": "Updates the GroupQuotaLimits for the specific resource under a Management Group. A groupQuotaLimitRequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.", "operationId": "GroupQuotaLimits_CreateOrUpdate", "x-ms-examples": { "GroupQuotaLimits_Put_Request_ForCompute": { @@ -547,8 +547,8 @@ "tags": [ "GroupQuotaLimits" ], - "summary": "Creates/Updates a new Group Quota request for a specific resources.", - "description": "Creates/Updates a new Group Quota request for a specific resources. A groupQuotaRequestId will be returned by the Service. The status will be updated periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed,then the URI will change to Get URI and full details can be checked.", + "summary": "Updates the GroupQuotaLimits for the specific resource under a Management Group.", + "description": "Updates the GroupQuotaLimits for the specific resource under a Management Group. A groupQuotaLimitRequestId will be returned by the Service. The status will be updated periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed,then the URI will change to Get URI and full details can be checked.", "operationId": "GroupQuotaLimits_Update", "x-ms-examples": { "GroupQuotaLimits_Patch_Request_ForCompute": { From b3ed67b169951b723ee896218f86fb0841caabab Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Mon, 31 Jul 2023 10:05:45 -0700 Subject: [PATCH 134/158] update GroupQuotaLimit Put/Patch body name/description --- .../preview/2023-06-01-preview/groupquota.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index d2e8ec2893a4..283566e91c76 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -499,9 +499,9 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "name": "groupQuotaRequest", + "name": "groupQuotaLimitRequest", "in": "body", - "description": "The GroupQuota Request.", + "description": "The GroupQuotaLimit Request.", "schema": { "$ref": "#/definitions/GroupQuotaLimit" } @@ -573,9 +573,9 @@ "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { - "name": "groupQuotaRequest", + "name": "groupQuotaLimitRequest", "in": "body", - "description": "The GroupQuota Request.", + "description": "The GroupQuotaLimit Request.", "schema": { "$ref": "#/definitions/GroupQuotaLimit" } From fb49b83dff53735f7144438f1231a5b01f9b1aab Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Mon, 31 Jul 2023 15:21:03 -0700 Subject: [PATCH 135/158] update naming/description for SubscriptionQuota-Allocation endpoint payloads --- .../2023-06-01-preview/groupquota.json | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 283566e91c76..d5ab9bac11bb 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -828,7 +828,7 @@ "200": { "description": "Success", "schema": { - "$ref": "#/definitions/SubscriptionQuotaDetailsList" + "$ref": "#/definitions/SubscriptionQuotaAllocationsList" } }, "default": { @@ -879,7 +879,7 @@ "description": "Quota requests payload.", "required": true, "schema": { - "$ref": "#/definitions/SubscriptionQuotaLimit" + "$ref": "#/definitions/SubscriptionQuotaAllocations" } } ], @@ -887,7 +887,7 @@ "200": { "description": "OK. , Create or Update", "schema": { - "$ref": "#/definitions/SubscriptionQuotaLimit" + "$ref": "#/definitions/SubscriptionQuotaAllocations" } }, "201": { @@ -957,7 +957,7 @@ "description": "Quota requests payload.", "required": true, "schema": { - "$ref": "#/definitions/SubscriptionQuotaLimit" + "$ref": "#/definitions/SubscriptionQuotaAllocations" } } ], @@ -965,7 +965,7 @@ "200": { "description": "Request status details.", "schema": { - "$ref": "#/definitions/SubscriptionQuotaLimit" + "$ref": "#/definitions/SubscriptionQuotaAllocations" } }, "202": { @@ -1033,7 +1033,7 @@ "200": { "description": "Success", "schema": { - "$ref": "#/definitions/SubscriptionQuotaLimit" + "$ref": "#/definitions/SubscriptionQuotaAllocations" } }, "default": { @@ -1460,9 +1460,9 @@ }, "x-ms-identifiers": [] }, - "SubscriptionQuotaLimit": { + "SubscriptionQuotaAllocations": { "type": "object", - "description": "Subscription Quota limit.", + "description": "Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", "x-ms-azure-resource": true, "properties": { "id": { @@ -1481,7 +1481,7 @@ "readOnly": true }, "properties": { - "description": "Group Quota properties for the specified resource.", + "description": "Quota properties for the specified resource.", "$ref": "#/definitions/SubscriptionQuotaDetails" } } @@ -1511,7 +1511,7 @@ } } }, - "SubscriptionQuotaDetailsList": { + "SubscriptionQuotaAllocationsList": { "type": "object", "description": "Subscription quota list.", "properties": { @@ -1519,7 +1519,7 @@ "type": "array", "description": "Subscription quota list.", "items": { - "$ref": "#/definitions/SubscriptionQuotaLimit" + "$ref": "#/definitions/SubscriptionQuotaAllocations" } }, "nextLink": { From d86467ee0aca6e1981ca1f38939bbc441395c17e Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Mon, 31 Jul 2023 15:35:33 -0700 Subject: [PATCH 136/158] remove unused error refs and use common type --- .../2023-06-01-preview/groupquota.json | 66 +------------------ 1 file changed, 1 insertion(+), 65 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index d5ab9bac11bb..d6868485f593 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1142,70 +1142,6 @@ } }, "definitions": { - "Error": { - "type": "object", - "description": "Standard error response as per MS guidelines. We may skip some fields.", - "properties": { - "code": { - "type": "string" - }, - "target": { - "type": "string" - }, - "message": { - "type": "string" - }, - "innerError": { - "$ref": "#/definitions/InnerError" - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ErrorDetails" - }, - "x-ms-identifiers": [] - } - } - }, - "ErrorContent": { - "type": "object", - "properties": { - "error": { - "$ref": "#/definitions/Error" - } - } - }, - "ErrorDetails": { - "type": "object", - "properties": { - "code": { - "type": "string" - }, - "target": { - "type": "string" - }, - "message": { - "type": "string" - } - } - }, - "InnerError": { - "type": "object", - "properties": { - "trace": { - "type": "array", - "items": { - "type": "string" - } - }, - "context": { - "type": "string" - }, - "type": { - "type": "string" - } - } - }, "RequestState": { "description": "Request status.", "enum": [ @@ -1252,7 +1188,7 @@ } }, "error": { - "$ref": "#/definitions/Error", + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse", "readOnly": true } } From 0ebd840b34a19de1ad7604d54d1f4d6f8b2bc508 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Tue, 1 Aug 2023 13:00:27 -0700 Subject: [PATCH 137/158] remove error field from operation status and unmark allocation requests as resource --- .../2023-06-01-preview/groupquota.json | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index d6868485f593..159b46f8f41e 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1186,10 +1186,6 @@ "readOnly": true } } - }, - "error": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse", - "readOnly": true } } }, @@ -1320,32 +1316,7 @@ "SubscriptionQuotaAllocationRequest": { "type": "object", "description": "The new quota limit for the subscription.", - "x-ms-azure-resource": true, "properties": { - "id": { - "description": "The operation status identifier. It should match what is used to GET the operation resource.", - "type": "string", - "readOnly": true, - "x-ms-mutability": [ - "read" - ] - }, - "name": { - "description": "It must match the last segment of the id field, and will typically be a GUID / system generated value.", - "type": "string", - "readOnly": true, - "x-ms-mutability": [ - "read" - ] - }, - "type": { - "description": "The type.", - "type": "string", - "readOnly": true, - "x-ms-mutability": [ - "read" - ] - }, "properties": { "type": "object", "properties": { From 15f3db1c1d6fdf385b441415f5556b702c081512 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Tue, 1 Aug 2023 13:02:04 -0700 Subject: [PATCH 138/158] update examples --- .../GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json | 9 --------- .../GroupQuotaLimits/PutGroupQuotaLimits-Compute.json | 9 --------- .../PutGroupQuotasSubscription.json | 9 --------- .../examples/GroupQuotas/PatchGroupQuotas.json | 9 --------- .../examples/GroupQuotas/PutGroupQuotas.json | 9 --------- ...bscriptionQuota-Allocation_Patch_Request-Compute.json | 9 --------- ...SubscriptionQuota-Allocation_Put_Request-Compute.json | 9 --------- 7 files changed, 63 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json index d146f573190f..bc8ac2acb8c6 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json @@ -48,15 +48,6 @@ "name": "cores", "properties": { "provisioningState": "Accepted" - }, - "error": { - "code": "errorCode", - "message": "errorMesssage", - "target": "errorTarget", - "innerError": { - "trace": [] - }, - "details": [] } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json index b6edbad724da..24040938bbd6 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json @@ -48,15 +48,6 @@ "name": "cores", "properties": { "provisioningState": "Accepted" - }, - "error": { - "code": "errorCode", - "message": "errorMesssage", - "target": "errorTarget", - "innerError": { - "trace": [] - }, - "details": [] } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json index ede6031e723c..97bf25e24ecc 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json @@ -40,15 +40,6 @@ "name": "00000000-0000-0000-0000-000000000000", "properties": { "provisioningState": "Accepted" - }, - "error": { - "code": "errorCode", - "message": "errorMesssage", - "target": "errorTarget", - "innerError": { - "trace": [] - }, - "details": [] } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json index d748bd0b0f6d..e7ad8e1b9831 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json @@ -55,15 +55,6 @@ "name": "groupquota1", "properties": { "provisioningState": "Accepted" - }, - "error": { - "code": "errorCode", - "message": "errorMesssage", - "target": "errorTarget", - "innerError": { - "trace": [] - }, - "details": [] } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json index 0bb1294bb4db..dcc55180ee42 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json @@ -56,15 +56,6 @@ "name": "groupquota1", "properties": { "provisioningState": "Accepted" - }, - "error": { - "code": "errorCode", - "message": "errorMesssage", - "target": "errorTarget", - "innerError": { - "trace": [] - }, - "details": [] } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json index 1d5e56a63e31..bd3d66f4a40f 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json @@ -45,15 +45,6 @@ "name": "cores", "properties": { "provisioningState": "Accepted" - }, - "error": { - "code": "errorCode", - "message": "errorMesssage", - "target": "errorTarget", - "innerError": { - "trace": [] - }, - "details": [] } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json index 7c219c1d0070..04c5cf93f7c4 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json @@ -45,15 +45,6 @@ "name": "cores", "properties": { "provisioningState": "Accepted" - }, - "error": { - "code": "errorCode", - "message": "errorMesssage", - "target": "errorTarget", - "innerError": { - "trace": [] - }, - "details": [] } } } From 63e388659f7190b71232619e6bf8d05d0abb2fb9 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Tue, 1 Aug 2023 13:11:08 -0700 Subject: [PATCH 139/158] test common ProxyResource type inheritance --- .../2023-06-01-preview/groupquota.json | 30 ++++--------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 159b46f8f41e..d68beea141d5 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1527,32 +1527,12 @@ "GroupQuotasEntity": { "type": "object", "description": "Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified.", - "x-ms-azure-resource": true, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], "properties": { - "id": { - "description": "Entity resource Id.", - "type": "string", - "readOnly": true, - "x-ms-mutability": [ - "read" - ] - }, - "type": { - "type": "string", - "description": "Type of the entity - Microsoft.Quota/GroupQuotas,", - "readOnly": true, - "x-ms-mutability": [ - "read" - ] - }, - "name": { - "type": "string", - "description": "The entity name. The entity name is provided in the request, so it is not needed in the request body. The response will include it.", - "readOnly": true, - "x-ms-mutability": [ - "read" - ] - }, "properties": { "title": "Properties", "type": "object", From dfdfd0c4b7630f2502005685e2f7e186a61dc483 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Tue, 1 Aug 2023 13:16:13 -0700 Subject: [PATCH 140/158] update examples and add array identifier field --- ...scriptionQuota-Allocation-Requests_Get_Request-Compute.json | 3 --- ...criptionQuota-Allocation-Requests_List_Request-Compute.json | 3 --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 3 ++- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_Get_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_Get_Request-Compute.json index 4e4776a3fc26..04320bfab26a 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_Get_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_Get_Request-Compute.json @@ -11,9 +11,6 @@ "responses": { "200": { "body": { - "id": "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/providers/Microsoft.Quota/groupQuotas/groupquota1/quotaAllocationRequests/11111111-1111-1111-1111-111111111111", - "type": "Microsoft.Quota/quotaAllocationRequests", - "name": "11111111-1111-1111-1111-111111111111", "properties": { "provisioningState": "Accepted", "limit": 75 diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_List_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_List_Request-Compute.json index 29bde9ed906d..2746b91f662e 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_List_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_List_Request-Compute.json @@ -12,9 +12,6 @@ "body": { "value": [ { - "id": "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/providers/Microsoft.Quota/groupQuotas/groupquota1/quotaAllocationRequests/11111111-1111-1111-1111-111111111111", - "type": "Microsoft.Quota/quotaAllocationRequests", - "name": "11111111-1111-1111-1111-111111111111", "properties": { "provisioningState": "Accepted", "limit": 75 diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index d68beea141d5..56e93886c828 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1341,7 +1341,8 @@ "description": "Assigned Group Quota to subscriptions.", "items": { "$ref": "#/definitions/SubscriptionQuotaAllocationRequest" - } + }, + "x-ms-identifiers": [] }, "nextLink": { "description": "The URL to use for getting the next set of results.", From 028efdc5e940fd7506a25ea79578e78b24eae8f2 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Tue, 1 Aug 2023 13:29:11 -0700 Subject: [PATCH 141/158] use common type for other resources --- .../2023-06-01-preview/groupquota.json | 51 ++++--------------- 1 file changed, 10 insertions(+), 41 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 56e93886c828..c992e5f0eb5e 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1210,32 +1210,12 @@ "GroupQuotaLimit": { "type": "object", "description": "Group Quota limit.", - "x-ms-azure-resource": true, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], "properties": { - "id": { - "description": "The resource ID.", - "type": "string", - "readOnly": true, - "x-ms-mutability": [ - "read" - ] - }, - "type": { - "description": "The type.", - "type": "string", - "readOnly": true, - "x-ms-mutability": [ - "read" - ] - }, - "name": { - "description": "The resource name.", - "type": "string", - "readOnly": true, - "x-ms-mutability": [ - "read" - ] - }, "properties": { "description": "Group Quota properties for the specified resource.", "$ref": "#/definitions/GroupQuotaDetails" @@ -1371,23 +1351,12 @@ "SubscriptionQuotaAllocations": { "type": "object", "description": "Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", - "x-ms-azure-resource": true, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], "properties": { - "id": { - "description": "The resource ID.", - "type": "string", - "readOnly": true - }, - "type": { - "description": "The type.", - "type": "string", - "readOnly": true - }, - "name": { - "description": "The resource name.", - "type": "string", - "readOnly": true - }, "properties": { "description": "Quota properties for the specified resource.", "$ref": "#/definitions/SubscriptionQuotaDetails" From b72cf66d69b41d45a55f8e76c4cd23f558abf73a Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Tue, 1 Aug 2023 13:34:35 -0700 Subject: [PATCH 142/158] update example --- .../examples/GroupQuotas/PutGroupQuotas.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json index dcc55180ee42..5f702c617cc8 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json @@ -41,9 +41,9 @@ ], "provisioningState": "Accepted" }, - "id": "id", + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1", "type": "Microsoft.Quota/groupQuotas", - "name": "name" + "name": "groupquota1" } }, "201": { From ed329083558886821096e0e65bb84cb57c4a3704 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Thu, 3 Aug 2023 11:53:04 -0700 Subject: [PATCH 143/158] resolve dupe schema --- .../2023-06-01-preview/groupquota.json | 32 ++++++++----------- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index c992e5f0eb5e..d33b39ee0709 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1222,22 +1222,6 @@ } } }, - "ResourceName": { - "type": "object", - "description": "Name of the resource provided by the resource Provider. This property is already included in the request URI, so it is a readonly property returned in the response.", - "properties": { - "value": { - "description": "Resource name.", - "type": "string", - "readOnly": true - }, - "localizedValue": { - "description": "Resource display name.", - "type": "string", - "readOnly": true - } - } - }, "GroupQuotaDetails": { "type": "object", "description": "Group Quota details.", @@ -1252,8 +1236,20 @@ "type": "string" }, "name": { - "$ref": "#/definitions/ResourceName", - "description": "The resource name, such as SKU name." + "type": "object", + "description": "Name of the resource provided by the resource Provider. This property is already included in the request URI, so it is a readonly property returned in the response.", + "properties": { + "value": { + "description": "Resource name.", + "type": "string", + "readOnly": true + }, + "localizedValue": { + "description": "Resource display name.", + "type": "string", + "readOnly": true + } + } }, "unit": { "description": " The usages units, such as Count and Bytes. When requesting quota, use the **unit** value returned in the GET response in the request body of your PUT operation.", From b89d311045702acd5e6d034675a748542956aa33 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Thu, 3 Aug 2023 13:57:34 -0700 Subject: [PATCH 144/158] remove GroupQuotas-Subscriptions endpoints --- .../2023-06-01-preview/groupquota.json | 187 ------------------ 1 file changed, 187 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index d33b39ee0709..092030a03e7a 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -281,193 +281,6 @@ } } }, - "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptions/{subscriptionId}": { - "put": { - "tags": [ - "GroupQuotas-Subscriptions" - ], - "summary": "Adds subscription to the GroupQuotas.", - "description": "Adds a subscription to GroupQuotas.", - "operationId": "GroupQuotaSubscriptions_CreateOrUpdate", - "x-ms-examples": { - "GroupQuotaSubscriptions_Put_Subscriptions": { - "$ref": "./examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/GroupQuotaNameInParameters" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK, Create or Update", - "schema": { - "$ref": "#/definitions/GroupQuotasEntity" - } - }, - "201": { - "description": "Request Accepted, Create or Update", - "headers": { - "Retry-After": { - "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", - "type": "integer", - "format": "int64" - }, - "Location": { - "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers. New guidelines - https://github.com/microsoft/api-guidelines/blob/vNext/Guidelines.md#131-resource-based-long-running-operations-relo", - "type": "string" - }, - "Azure-AsyncOperation": { - "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", - "type": "string" - } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - } - }, - "patch": { - "tags": [ - "GroupQuotas-Subscriptions" - ], - "summary": "Updates the GroupQuotas with the subscription to add to the subscriptions list.", - "description": "Updates the GroupQuotas with the subscription to add to the subscriptions list.", - "operationId": "GroupQuotaSubscriptions_Update", - "x-ms-examples": { - "GroupQuotaSubscriptions_Patch_Subscriptions": { - "$ref": "./examples/GroupQuotas-Subscriptions/PatchGroupQuotasSubscription.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/GroupQuotaNameInParameters" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK.", - "schema": { - "$ref": "#/definitions/GroupQuotasEntity" - } - }, - "default": { - "description": "Bad Request", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "tags": [ - "GroupQuotas-Subscriptions" - ], - "summary": "Removes the subscription from GroupQuotas.", - "description": "Removes the subscription from GroupQuotas.", - "operationId": "GroupQuotaSubscriptions_Delete", - "x-ms-examples": { - "GroupQuotaSubscriptions_Delete_Subscriptions": { - "$ref": "./examples/GroupQuotas-Subscriptions/DeleteGroupQuotaSubscriptions.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/GroupQuotaNameInParameters" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK." - }, - "204": { - "description": "No Content." - }, - "default": { - "description": "Error", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - } - }, - "get": { - "tags": [ - "GroupQuotas-Subscriptions" - ], - "summary": "Checks if the subscription is in GroupQuotas SubscriptionIdList.", - "description": "Checks if the subscription is in GroupQuotas SubscriptionIdList.", - "operationId": "GroupQuotaSubscriptions_Get", - "x-ms-examples": { - "GroupQuotaSubscriptions_Get_Subscriptions": { - "$ref": "./examples/GroupQuotas-Subscriptions/GetGroupQuotaSubscriptions.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/MgIdInParameters" - }, - { - "$ref": "#/parameters/GroupQuotaNameInParameters" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK.", - "schema": { - "$ref": "#/definitions/GroupQuotasEntity" - } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" - } - } - } - } - }, "/providers/Microsoft.Management/managementGroups/{mgId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaLimits/{resourceName}": { "put": { "tags": [ From b6c3eee141136f255195976305febe416ca0ddc0 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Thu, 3 Aug 2023 14:22:15 -0700 Subject: [PATCH 145/158] remove - in tags for sdk generation --- .../GroupQuotaLimitsRequests_Get.json} | 2 +- .../GroupQuotaLimitsRequests_List.json} | 2 +- ...nQuotaAllocation_Get_Request-Compute.json} | 0 ...QuotaAllocation_List_Request-Compute.json} | 0 ...uotaAllocation_Patch_Request-Compute.json} | 0 ...nQuotaAllocation_Put_Request-Compute.json} | 0 ...locationRequests_Get_Request-Compute.json} | 0 ...ocationRequests_List_Request-Compute.json} | 0 .../2023-06-01-preview/groupquota.json | 52 +++++++++---------- 9 files changed, 28 insertions(+), 28 deletions(-) rename specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/{GroupQuotaLimits-Requests/GroupQuotaLimits-Requests_Get.json => GroupQuotaLimitsRequests/GroupQuotaLimitsRequests_Get.json} (90%) rename specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/{GroupQuotaLimits-Requests/GroupQuotaLimits-Requests_List.json => GroupQuotaLimitsRequests/GroupQuotaLimitsRequests_List.json} (91%) rename specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/{SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Get_Request-Compute.json => SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Get_Request-Compute.json} (100%) rename specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/{SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_List_Request-Compute.json => SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_List_Request-Compute.json} (100%) rename specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/{SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json => SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Patch_Request-Compute.json} (100%) rename specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/{SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json => SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Put_Request-Compute.json} (100%) rename specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/{SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_Get_Request-Compute.json => SubscriptionQuotaAllocationRequests/SubscriptionQuotaAllocationRequests_Get_Request-Compute.json} (100%) rename specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/{SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_List_Request-Compute.json => SubscriptionQuotaAllocationRequests/SubscriptionQuotaAllocationRequests_List_Request-Compute.json} (100%) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits-Requests/GroupQuotaLimits-Requests_Get.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimitsRequests/GroupQuotaLimitsRequests_Get.json similarity index 90% rename from specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits-Requests/GroupQuotaLimits-Requests_Get.json rename to specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimitsRequests/GroupQuotaLimitsRequests_Get.json index 2e5e94bc9cc7..0a0335488ba5 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits-Requests/GroupQuotaLimits-Requests_Get.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimitsRequests/GroupQuotaLimitsRequests_Get.json @@ -1,5 +1,5 @@ { - "operationId": "GroupQuotaLimits-Requests_List", + "operationId": "GroupQuotaLimitsRequests_List", "parameters": { "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", "resourceProviderScope": "providers/Microsoft.Compute/locations/westus", diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits-Requests/GroupQuotaLimits-Requests_List.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimitsRequests/GroupQuotaLimitsRequests_List.json similarity index 91% rename from specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits-Requests/GroupQuotaLimits-Requests_List.json rename to specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimitsRequests/GroupQuotaLimitsRequests_List.json index 0f6509852bb7..496f4de41fb2 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits-Requests/GroupQuotaLimits-Requests_List.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimitsRequests/GroupQuotaLimitsRequests_List.json @@ -1,5 +1,5 @@ { - "operationId": "GroupQuotaLimits-Requests_List", + "operationId": "GroupQuotaLimitsRequests_List", "parameters": { "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", "resourceProviderScope": "providers/Microsoft.Compute/locations/westus", diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Get_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Get_Request-Compute.json similarity index 100% rename from specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Get_Request-Compute.json rename to specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Get_Request-Compute.json diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_List_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_List_Request-Compute.json similarity index 100% rename from specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_List_Request-Compute.json rename to specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_List_Request-Compute.json diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Patch_Request-Compute.json similarity index 100% rename from specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json rename to specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Patch_Request-Compute.json diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Put_Request-Compute.json similarity index 100% rename from specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json rename to specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Put_Request-Compute.json diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_Get_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocationRequests/SubscriptionQuotaAllocationRequests_Get_Request-Compute.json similarity index 100% rename from specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_Get_Request-Compute.json rename to specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocationRequests/SubscriptionQuotaAllocationRequests_Get_Request-Compute.json diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_List_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocationRequests/SubscriptionQuotaAllocationRequests_List_Request-Compute.json similarity index 100% rename from specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_List_Request-Compute.json rename to specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocationRequests/SubscriptionQuotaAllocationRequests_List_Request-Compute.json diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 092030a03e7a..148774c5cae7 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -521,14 +521,14 @@ "/providers/Microsoft.Management/managementGroups/{mgId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaRequests": { "get": { "tags": [ - "GroupQuotaLimits-Requests" + "GroupQuotaLimitsRequests" ], "summary": "List the status of all GroupQuota requests.", "description": "List API to check the status of a GroupQuota requests by requestId. The groupQuotaRequest history is maintained for 1 year.", - "operationId": "GroupQuotaLimits-Requests_List", + "operationId": "GroupQuotaLimitsRequests_List", "x-ms-examples": { - "GroupQuotaLimits-Requests_List": { - "$ref": "./examples/GroupQuotaLimits-Requests/GroupQuotaLimits-Requests_List.json" + "GroupQuotaLimitsRequests_List": { + "$ref": "./examples/GroupQuotaLimitsRequests/GroupQuotaLimitsRequests_List.json" } }, "parameters": [ @@ -564,14 +564,14 @@ "/providers/Microsoft.Management/managementGroups/{mgId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaRequests/{requestId}": { "get": { "tags": [ - "GroupQuotaLimits-Requests" + "GroupQuotaLimitsRequests" ], "summary": "Get the status of a single GroupQuota request by requestId.", "description": "Get API to check the status of a GroupQuota request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.", - "operationId": "GroupQuotaLimits-Requests_Get", + "operationId": "GroupQuotaLimitsRequests_Get", "x-ms-examples": { - "GroupQuotaLimits-Requests_Get": { - "$ref": "./examples/GroupQuotaLimits-Requests/GroupQuotaLimits-Requests_Get.json" + "GroupQuotaLimitsRequests_Get": { + "$ref": "./examples/GroupQuotaLimitsRequests/GroupQuotaLimitsRequests_Get.json" } }, "parameters": [ @@ -610,14 +610,14 @@ "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations": { "get": { "tags": [ - "SubscriptionQuota-Allocation" + "SubscriptionQuotaAllocation" ], "summary": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location.", "description": "Gets all the quota assigned to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", "operationId": "GroupQuotaSubscriptionQuotaAllocation_List", "x-ms-examples": { - "SubscriptionQuota-Allocation_List_Request_ForCompute": { - "$ref": "./examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_List_Request-Compute.json" + "SubscriptionQuotaAllocation_List_Request_ForCompute": { + "$ref": "./examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_List_Request-Compute.json" } }, "parameters": [ @@ -656,14 +656,14 @@ "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations/{resourceName}": { "put": { "tags": [ - "SubscriptionQuota-Allocation" + "SubscriptionQuotaAllocation" ], "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern to check the status using Async polling as standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations.", "description": "Request to assign a specific resource quota from group quota to a specific Subscription. The subscriptions can also reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, which means the maximum unused quota assigned back to MG groupQuota will be the groupQuota assigned to the subscriptions. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription.", "operationId": "GroupQuotaSubscriptionQuotaAllocation_CreateOrUpdate", "x-ms-examples": { - "SubscriptionQuota-Allocation_Put_Request_ForCompute": { - "$ref": "./examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Put_Request-Compute.json" + "SubscriptionQuotaAllocation_Put_Request_ForCompute": { + "$ref": "./examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Put_Request-Compute.json" } }, "x-ms-long-running-operation": true, @@ -734,14 +734,14 @@ }, "patch": { "tags": [ - "SubscriptionQuota-Allocation" + "SubscriptionQuotaAllocation" ], "summary": "Request to assign quota from group quota to a specific Subscription. This request will use Asynchronous pattern with 202 response and status polling API.", "description": "Request to assign quota from group quota to a specific Subscription. The subscriptions and reduce the quota assigned to subscription to give back the group back to MG. The quota assignment back to MG groupQuota is limited by the GroupQuota assigned to subscription, using this API. So, this API can used to assign Quota to subscriptions and assign back unused quota, which was previously assigned from MG groupQuota to subscription(s).", "operationId": "GroupQuotaSubscriptionQuotaAllocation_Update", "x-ms-examples": { - "SubscriptionQuota-Allocation_Patch_Request_ForCompute": { - "$ref": "./examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Patch_Request-Compute.json" + "SubscriptionQuotaAllocation_Patch_Request_ForCompute": { + "$ref": "./examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Patch_Request-Compute.json" } }, "x-ms-long-running-operation": true, @@ -812,14 +812,14 @@ }, "get": { "tags": [ - "SubscriptionQuota-Allocation" + "SubscriptionQuotaAllocation" ], "summary": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName.", "description": "Gets Quota assigned to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota assigned to the subscription. Only the Group quota assigned to the subscription can be assigned back to the MG Group Quota.", "operationId": "GroupQuotaSubscriptionQuotaAllocation_Get", "x-ms-examples": { - "SubscriptionQuota-Allocation_Get_Request_ForCompute": { - "$ref": "./examples/SubscriptionQuota-Allocation/SubscriptionQuota-Allocation_Get_Request-Compute.json" + "SubscriptionQuotaAllocation_Get_Request_ForCompute": { + "$ref": "./examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Get_Request-Compute.json" } }, "parameters": [ @@ -861,14 +861,14 @@ "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests/{allocationId}": { "get": { "tags": [ - "SubscriptionQuota-Allocation-Requests" + "SubscriptionQuotaAllocationRequests" ], "operationId": "GroupQuotaSubscriptionQuotaAllocationRequests_Get", "summary": "Get the status of the quota allocation request for the subscriptionId.", "description": "Get the quota allocation request status for the subscriptionId by allocationId.", "x-ms-examples": { - "SubscriptionQuota-Allocation-Requests_Get_Request_ForCompute": { - "$ref": "./examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_Get_Request-Compute.json" + "SubscriptionQuotaAllocationRequests_Get_Request_ForCompute": { + "$ref": "./examples/SubscriptionQuotaAllocationRequests/SubscriptionQuotaAllocationRequests_Get_Request-Compute.json" } }, "parameters": [ @@ -910,14 +910,14 @@ "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests": { "get": { "tags": [ - "SubscriptionQuota-Allocation-Requests" + "SubscriptionQuotaAllocationRequests" ], "operationId": "GroupQuotaSubscriptionQuotaAllocationRequests_List", "summary": "Lists all the quota allocation requests.to subscriptions", "description": "Lists all the allocation requests.", "x-ms-examples": { - "SubscriptionQuota-Allocation-Requests_List_Request_ForCompute": { - "$ref": "./examples/SubscriptionQuota-Allocation-Requests/SubscriptionQuota-Allocation-Requests_List_Request-Compute.json" + "SubscriptionQuotaAllocationRequests_List_Request_ForCompute": { + "$ref": "./examples/SubscriptionQuotaAllocationRequests/SubscriptionQuotaAllocationRequests_List_Request-Compute.json" } }, "parameters": [ From 0f72fef883a9c3e68973e8b359febeb623155505 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Thu, 3 Aug 2023 16:19:32 -0700 Subject: [PATCH 146/158] update 201 response for puts --- .../preview/2023-06-01-preview/groupquota.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 148774c5cae7..7105df54f29d 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -88,7 +88,7 @@ } }, "schema": { - "$ref": "#/definitions/OperationsStatus" + "$ref": "#/definitions/GroupQuotasEntity" } }, "default": { @@ -345,7 +345,7 @@ } }, "schema": { - "$ref": "#/definitions/OperationsStatus" + "$ref": "#/definitions/GroupQuotaLimit" } }, "default": { @@ -721,7 +721,7 @@ } }, "schema": { - "$ref": "#/definitions/OperationsStatus" + "$ref": "#/definitions/SubscriptionQuotaAllocations" } }, "default": { From 43e8c4f4acb479552f5e715f98053788b108e052 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Tue, 8 Aug 2023 13:58:22 -0700 Subject: [PATCH 147/158] add suppressions --- specification/quota/resource-manager/readme.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/specification/quota/resource-manager/readme.md b/specification/quota/resource-manager/readme.md index 12265f489919..af6a2a946f0e 100644 --- a/specification/quota/resource-manager/readme.md +++ b/specification/quota/resource-manager/readme.md @@ -68,6 +68,22 @@ directive: - R4018 # The 'OperationsApiResponseSchema' It will be added later, if needed. The current API provides in this format. ``` +``` yaml +suppressions: + - code: RPC-Put-V1-01 + from: Microsoft.Quota/preview/2023-06-01-preview/groupquota.json + reason: This API is a Management Group level API. + - code: RPC-Uri-V1-06 + from: Microsoft.Quota/preview/2023-06-01-preview/groupquota.json + reason: This API is a Management Group level API. + - code: RPC-Put-V1-02 + from: Microsoft.Quota/preview/2023-06-01-preview/groupquota.json + reason: This API is a Management Group level API. + - code: RPC-Get-V1-05 + from: Microsoft.Quota/preview/2023-06-01-preview/groupquota.json + reason: This API is a Management Group level API. +``` + --- --- From d366879a38536c3f02993e64144fea53ecba7e7a Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Tue, 8 Aug 2023 14:07:57 -0700 Subject: [PATCH 148/158] update suppressions --- specification/quota/resource-manager/readme.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/specification/quota/resource-manager/readme.md b/specification/quota/resource-manager/readme.md index af6a2a946f0e..f70485dd12ad 100644 --- a/specification/quota/resource-manager/readme.md +++ b/specification/quota/resource-manager/readme.md @@ -70,16 +70,13 @@ directive: ``` yaml suppressions: - - code: RPC-Put-V1-01 + - code: PathForPutOperation from: Microsoft.Quota/preview/2023-06-01-preview/groupquota.json reason: This API is a Management Group level API. - - code: RPC-Uri-V1-06 + - code: PathForNestedResource from: Microsoft.Quota/preview/2023-06-01-preview/groupquota.json reason: This API is a Management Group level API. - - code: RPC-Put-V1-02 - from: Microsoft.Quota/preview/2023-06-01-preview/groupquota.json - reason: This API is a Management Group level API. - - code: RPC-Get-V1-05 + - code: TopLevelResourcesListBySubscription from: Microsoft.Quota/preview/2023-06-01-preview/groupquota.json reason: This API is a Management Group level API. ``` From 80dfc62e38986c539f3db4348b843c37c258e1a6 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Tue, 8 Aug 2023 14:18:35 -0700 Subject: [PATCH 149/158] testing suppression format --- specification/quota/resource-manager/readme.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/specification/quota/resource-manager/readme.md b/specification/quota/resource-manager/readme.md index f70485dd12ad..2a930f1f2b6f 100644 --- a/specification/quota/resource-manager/readme.md +++ b/specification/quota/resource-manager/readme.md @@ -60,14 +60,6 @@ input-file: ### Supressions -``` yaml -directive: -- suppress: - - R3007 # The 'PutGetPatchResponseSchema' Both get and put/Patch is using same data model - CurrentQuotaLimitBase. - - R4009 # The 'RequiredReadOnlySystemData' It will be added later, if needed. - - R4018 # The 'OperationsApiResponseSchema' It will be added later, if needed. The current API provides in this format. -``` - ``` yaml suppressions: - code: PathForPutOperation From befaaba042938602bfc790e47317e55a227cf9dd Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Tue, 8 Aug 2023 14:28:26 -0700 Subject: [PATCH 150/158] update suppressions --- specification/quota/resource-manager/readme.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/specification/quota/resource-manager/readme.md b/specification/quota/resource-manager/readme.md index 2a930f1f2b6f..33619a074472 100644 --- a/specification/quota/resource-manager/readme.md +++ b/specification/quota/resource-manager/readme.md @@ -60,16 +60,21 @@ input-file: ### Supressions +``` yaml +directive: +- suppress: + - R3007 # The 'PutGetPatchResponseSchema' Both get and put/Patch is using same data model - CurrentQuotaLimitBase. + - R4009 # The 'RequiredReadOnlySystemData' It will be added later, if needed. + - R4018 # The 'OperationsApiResponseSchema' It will be added later, if needed. The current API provides in this format. +``` + ``` yaml suppressions: - code: PathForPutOperation - from: Microsoft.Quota/preview/2023-06-01-preview/groupquota.json reason: This API is a Management Group level API. - code: PathForNestedResource - from: Microsoft.Quota/preview/2023-06-01-preview/groupquota.json reason: This API is a Management Group level API. - code: TopLevelResourcesListBySubscription - from: Microsoft.Quota/preview/2023-06-01-preview/groupquota.json reason: This API is a Management Group level API. ``` From 951241a4dc4a0b6a41db525f66f37f0de87568c2 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Wed, 9 Aug 2023 11:55:09 -0700 Subject: [PATCH 151/158] make GroupQuotaSubscriptionIds as nested resource --- .../GetGroupQuotaSubscriptions.json | 14 +- .../ListGroupQuotaSubscriptions.json | 27 ++ .../PatchGroupQuotasSubscription.json | 14 +- .../PutGroupQuotasSubscription.json | 14 +- .../examples/GroupQuotas/GetGroupQuotas.json | 5 - .../GroupQuotas/GetGroupQuotasList.json | 5 - .../GroupQuotas/PatchGroupQuotas.json | 12 +- .../examples/GroupQuotas/PutGroupQuotas.json | 12 +- .../2023-06-01-preview/groupquota.json | 281 +++++++++++++++++- 9 files changed, 304 insertions(+), 80 deletions(-) create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/ListGroupQuotaSubscriptions.json diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/GetGroupQuotaSubscriptions.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/GetGroupQuotaSubscriptions.json index 280e4e0393b2..19f92abea6c4 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/GetGroupQuotaSubscriptions.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/GetGroupQuotaSubscriptions.json @@ -10,19 +10,7 @@ "200": { "body": { "properties": { - "displayName": "GroupQuota1", - "additionalAttributes": { - "groupId": { - "groupingIdType": "ServiceTreeId", - "value": "yourServiceTreeIdHere" - }, - "environment": "Production" - }, - "subscriptionIds": [ - "id1", - "id2", - "id3" - ], + "subscriptionId": "00000000-0000-0000-0000-000000000000", "provisioningState": "Accepted" }, "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1/subscriptions/00000000-0000-0000-0000-000000000000", diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/ListGroupQuotaSubscriptions.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/ListGroupQuotaSubscriptions.json new file mode 100644 index 000000000000..3373e6c3740e --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/ListGroupQuotaSubscriptions.json @@ -0,0 +1,27 @@ +{ + "operationId": "GroupQuotaSubscription_List", + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "groupQuotaName": "groupquota1", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "provisioningState": "Accepted" + }, + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1/subscriptions/00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Quota/subscriptions", + "name": "00000000-0000-0000-0000-000000000000" + } + ], + "nextLink": "https://yourLinkHere.com" + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PatchGroupQuotasSubscription.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PatchGroupQuotasSubscription.json index d226d53ea6e4..78e51c3126fb 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PatchGroupQuotasSubscription.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PatchGroupQuotasSubscription.json @@ -13,19 +13,7 @@ }, "body": { "properties": { - "displayName": "GroupQuota1", - "additionalAttributes": { - "groupId": { - "groupingIdType": "ServiceTreeId", - "value": "yourServiceTreeIdHere" - }, - "environment": "Production" - }, - "subscriptionIds": [ - "id1", - "id2", - "id3" - ], + "subscriptionId": "00000000-0000-0000-0000-000000000000", "provisioningState": "Accepted" }, "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1/subscriptions/00000000-0000-0000-0000-000000000000", diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json index 97bf25e24ecc..cc581332cf53 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json @@ -10,19 +10,7 @@ "200": { "body": { "properties": { - "displayName": "GroupQuota1", - "additionalAttributes": { - "groupId": { - "groupingIdType": "ServiceTreeId", - "value": "yourServiceTreeIdHere" - }, - "environment": "Production" - }, - "subscriptionIds": [ - "id1", - "id2", - "id3" - ], + "subscriptionId": "00000000-0000-0000-0000-000000000000", "provisioningState": "Accepted" }, "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1/subscriptions/00000000-0000-0000-0000-000000000000", diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotas.json index b8a074bcf807..91a4751b3572 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotas.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotas.json @@ -17,11 +17,6 @@ }, "environment": "Production" }, - "subscriptionIds": [ - "id1", - "id2", - "id3" - ], "provisioningState": "Accepted" }, "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1", diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotasList.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotasList.json index e914ec55586a..28e6251637a7 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotasList.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotasList.json @@ -18,11 +18,6 @@ }, "environment": "Production" }, - "subscriptionIds": [ - "id1", - "id2", - "id3" - ], "provisioningState": "Accepted" }, "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1", diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json index e7ad8e1b9831..b0ef0d534616 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json @@ -12,12 +12,7 @@ "value": "yourServiceTreeIdHere" }, "environment": "Production" - }, - "subscriptionIds": [ - "id1", - "id2", - "id3" - ] + } } } }, @@ -33,11 +28,6 @@ }, "environment": "Production" }, - "subscriptionIds": [ - "id1", - "id2", - "id3" - ], "provisioningState": "Accepted" }, "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1", diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json index 5f702c617cc8..b40c49851bc1 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json @@ -13,12 +13,7 @@ "value": "yourServiceTreeIdHere" }, "environment": "Production" - }, - "subscriptionIds": [ - "id1", - "id2", - "id3" - ] + } } } }, @@ -34,11 +29,6 @@ }, "environment": "Production" }, - "subscriptionIds": [ - "id1", - "id2", - "id3" - ], "provisioningState": "Accepted" }, "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1", diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 7105df54f29d..19a817f30ca5 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -281,6 +281,233 @@ } } }, + "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptions/{subscriptionId}": { + "put": { + "tags": [ + "GroupQuotas-Subscriptions" + ], + "summary": "Adds subscription to the GroupQuotas.", + "description": "Adds a subscription to GroupQuotas.", + "operationId": "GroupQuotaSubscriptions_CreateOrUpdate", + "x-ms-examples": { + "GroupQuotaSubscriptions_Put_Subscriptions": { + "$ref": "./examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/GroupQuotaNameInParameters" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK, Create or Update", + "schema": { + "$ref": "#/definitions/GroupQuotaSubscriptionId" + } + }, + "201": { + "description": "Request Accepted, Create or Update", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int64" + }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers. New guidelines - https://github.com/microsoft/api-guidelines/blob/vNext/Guidelines.md#131-resource-based-long-running-operations-relo", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "type": "string" + } + }, + "schema": { + "$ref": "#/definitions/OperationsStatus" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "GroupQuotas-Subscriptions" + ], + "summary": "Updates the GroupQuotas with the subscription to add to the subscriptions list.", + "description": "Updates the GroupQuotas with the subscription to add to the subscriptions list.", + "operationId": "GroupQuotaSubscriptions_Update", + "x-ms-examples": { + "GroupQuotaSubscriptions_Patch_Subscriptions": { + "$ref": "./examples/GroupQuotas-Subscriptions/PatchGroupQuotasSubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/GroupQuotaNameInParameters" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/GroupQuotaSubscriptionId" + } + }, + "default": { + "description": "Bad Request", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "GroupQuotas-Subscriptions" + ], + "summary": "Removes the subscription from GroupQuotas.", + "description": "Removes the subscription from GroupQuotas.", + "operationId": "GroupQuotaSubscriptions_Delete", + "x-ms-examples": { + "GroupQuotaSubscriptions_Delete_Subscriptions": { + "$ref": "./examples/GroupQuotas-Subscriptions/DeleteGroupQuotaSubscriptions.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/GroupQuotaNameInParameters" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK." + }, + "204": { + "description": "No Content." + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "GroupQuotas-Subscriptions" + ], + "summary": "Returns the subscriptionId along with its provisioning state for being associated with the GroupQuotasEntity.", + "description": "Returns the subscriptionId along with its provisioning state for being associated with the GroupQuotasEntity.", + "operationId": "GroupQuotaSubscriptions_Get", + "x-ms-examples": { + "GroupQuotaSubscriptions_Get_Subscriptions": { + "$ref": "./examples/GroupQuotas-Subscriptions/GetGroupQuotaSubscriptions.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/GroupQuotaNameInParameters" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/GroupQuotaSubscriptionId" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptions": { + "get": { + "tags": [ + "GroupQuotas-Subscriptions" + ], + "summary": "Returns a list of the subscriptionIds associated with the GroupQuotasEntity.", + "description": "Returns a list of the subscriptionIds associated with the GroupQuotasEntity.", + "operationId": "GroupQuotaSubscriptions_List", + "x-ms-examples": { + "GroupQuotaSubscriptions_List_Subscriptions": { + "$ref": "./examples/GroupQuotas-Subscriptions/ListGroupQuotaSubscriptions.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/GroupQuotaNameInParameters" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/GroupQuotaSubscriptionIdList" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + } + } + }, "/providers/Microsoft.Management/managementGroups/{mgId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaLimits/{resourceName}": { "put": { "tags": [ @@ -963,7 +1190,8 @@ "Invalid", "Succeeded", "Failed", - "InProgress" + "InProgress", + "Canceled" ], "readOnly": true, "type": "string", @@ -1102,6 +1330,49 @@ } } }, + "GroupQuotaSubscriptionId": { + "type": "object", + "description": "This represents a Azure subscriptionId that is associated with a GroupQuotaSEntity.", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "type": "object", + "properties": { + "subscriptionId": { + "description": "An Azure subscriptionId.", + "type": "string", + "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/RequestState", + "description": "Status of this subscriptionId being associated with the GroupQuotasEntity." + } + } + } + } + }, + "GroupQuotaSubscriptionIdList": { + "type": "object", + "description": "List of GroupQuotaSubscriptionIds", + "properties": { + "value": { + "type": "array", + "description": "List of GroupQuotaSubscriptionIds", + "items": { + "$ref": "#/definitions/GroupQuotaSubscriptionId" + } + }, + "nextLink": { + "description": "The URL to use for getting the next set of results.", + "type": "string", + "readOnly": true + } + } + }, "SubscriptionQuotaAllocationRequest": { "type": "object", "description": "The new quota limit for the subscription.", @@ -1288,14 +1559,6 @@ "description": "Additional attributes to allow subscription, which can be added to the subscriptionIds.", "$ref": "#/definitions/AdditionalAttributes" }, - "subscriptionIds": { - "description": "List of subscriptions included in the ShareQuotaEntity. It can be null at the time of creation or a list of subscriptions can be passed.", - "type": "array", - "items": { - "type": "string", - "description": "SubscriptionId." - } - }, "provisioningState": { "description": "Provisioning state of the operation.", "$ref": "#/definitions/RequestState", From 214511776ecbece30e5b59d689634b350caeee4b Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Wed, 9 Aug 2023 12:50:21 -0700 Subject: [PATCH 152/158] update subscription list example --- .../ListGroupQuotaSubscriptions.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/ListGroupQuotaSubscriptions.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/ListGroupQuotaSubscriptions.json index 3373e6c3740e..1711492f16cb 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/ListGroupQuotaSubscriptions.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/ListGroupQuotaSubscriptions.json @@ -3,7 +3,6 @@ "parameters": { "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", "groupQuotaName": "groupquota1", - "subscriptionId": "00000000-0000-0000-0000-000000000000", "api-version": "2023-06-01-preview" }, "responses": { @@ -18,6 +17,15 @@ "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1/subscriptions/00000000-0000-0000-0000-000000000000", "type": "Microsoft.Quota/subscriptions", "name": "00000000-0000-0000-0000-000000000000" + }, + { + "properties": { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "provisioningState": "Accepted" + }, + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1/subscriptions/11111111-1111-1111-1111-111111111111", + "type": "Microsoft.Quota/subscriptions", + "name": "11111111-1111-1111-1111-111111111111" } ], "nextLink": "https://yourLinkHere.com" From 5d7a9c8a02bd536ba9d85e74f3b651ccc0661131 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Thu, 10 Aug 2023 16:45:09 -0700 Subject: [PATCH 153/158] address comments, make subscription api long running --- .../GetGroupQuotaLimits-Compute.json | 3 +- .../ListGroupQuotaLimits-Compute.json | 3 +- .../PatchGroupQuotaLimits-Compute.json | 11 +- .../PutGroupQuotaLimits-Compute.json | 3 +- .../GroupQuotas/PatchGroupQuotas.json | 8 - .../DeleteGroupQuotaSubscriptions.json | 0 .../GetGroupQuotaSubscriptions.json | 0 .../ListGroupQuotaSubscriptions.json | 0 .../PatchGroupQuotasSubscription.json | 5 + .../PutGroupQuotasSubscription.json | 0 ...onQuotaAllocation_Get_Request-Compute.json | 3 +- ...nQuotaAllocation_List_Request-Compute.json | 3 +- ...QuotaAllocation_Patch_Request-Compute.json | 14 +- ...onQuotaAllocation_Put_Request-Compute.json | 6 +- .../SubscriptionRequests_Get.json | 22 ++ .../SubscriptionRequests_List.json | 26 +++ .../2023-06-01-preview/groupquota.json | 207 +++++++++++++----- 17 files changed, 224 insertions(+), 90 deletions(-) rename specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/{GroupQuotas-Subscriptions => GroupQuotasSubscriptions}/DeleteGroupQuotaSubscriptions.json (100%) rename specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/{GroupQuotas-Subscriptions => GroupQuotasSubscriptions}/GetGroupQuotaSubscriptions.json (100%) rename specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/{GroupQuotas-Subscriptions => GroupQuotasSubscriptions}/ListGroupQuotaSubscriptions.json (100%) rename specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/{GroupQuotas-Subscriptions => GroupQuotasSubscriptions}/PatchGroupQuotasSubscription.json (89%) rename specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/{GroupQuotas-Subscriptions => GroupQuotasSubscriptions}/PutGroupQuotasSubscription.json (100%) create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionRequests/SubscriptionRequests_Get.json create mode 100644 specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionRequests/SubscriptionRequests_List.json diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/GetGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/GetGroupQuotaLimits-Compute.json index f5aa07b4bc25..0596fbab97b1 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/GetGroupQuotaLimits-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/GetGroupQuotaLimits-Compute.json @@ -24,7 +24,8 @@ "availableLimit": 80, "assignedToSubscriptions": [ { - "subId1": 20 + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "quotaAllocated": 20 } ], "provisioningState": "Accepted" diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/ListGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/ListGroupQuotaLimits-Compute.json index fd9a681bae04..6b6879f25ec3 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/ListGroupQuotaLimits-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/ListGroupQuotaLimits-Compute.json @@ -25,7 +25,8 @@ "availableLimit": 80, "assignedToSubscriptions": [ { - "subId1": 20 + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "quotaAllocated": 20 } ], "provisioningState": "Accepted" diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json index bc8ac2acb8c6..76e7e7d01aaf 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PatchGroupQuotaLimits-Compute.json @@ -31,7 +31,8 @@ "availableLimit": 80, "assignedToSubscriptions": [ { - "subId1": 20 + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "quotaAllocated": 20 } ], "provisioningState": "Accepted" @@ -41,14 +42,6 @@ "202": { "headers": { "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Compute/locations/westus/providers/Microsoft.Quota/groupQuotas/groupquota1/groupQuotaLimits/cores", - "type": "Microsoft.Quota/groupQuotaLimits", - "name": "cores", - "properties": { - "provisioningState": "Accepted" - } } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json index 24040938bbd6..026c88afed6d 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimits/PutGroupQuotaLimits-Compute.json @@ -31,7 +31,8 @@ "availableLimit": 80, "assignedToSubscriptions": [ { - "subId1": 20 + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "quotaAllocated": 20 } ], "provisioningState": "Accepted" diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json index b0ef0d534616..019b890a8a4b 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json @@ -38,14 +38,6 @@ "202": { "headers": { "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1", - "type": "Microsoft.Quota/groupQuotas", - "name": "groupquota1", - "properties": { - "provisioningState": "Accepted" - } } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/DeleteGroupQuotaSubscriptions.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotasSubscriptions/DeleteGroupQuotaSubscriptions.json similarity index 100% rename from specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/DeleteGroupQuotaSubscriptions.json rename to specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotasSubscriptions/DeleteGroupQuotaSubscriptions.json diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/GetGroupQuotaSubscriptions.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotasSubscriptions/GetGroupQuotaSubscriptions.json similarity index 100% rename from specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/GetGroupQuotaSubscriptions.json rename to specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotasSubscriptions/GetGroupQuotaSubscriptions.json diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/ListGroupQuotaSubscriptions.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotasSubscriptions/ListGroupQuotaSubscriptions.json similarity index 100% rename from specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/ListGroupQuotaSubscriptions.json rename to specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotasSubscriptions/ListGroupQuotaSubscriptions.json diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PatchGroupQuotasSubscription.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotasSubscriptions/PatchGroupQuotasSubscription.json similarity index 89% rename from specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PatchGroupQuotasSubscription.json rename to specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotasSubscriptions/PatchGroupQuotasSubscription.json index 78e51c3126fb..3b11b55a1125 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PatchGroupQuotasSubscription.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotasSubscriptions/PatchGroupQuotasSubscription.json @@ -20,6 +20,11 @@ "type": "Microsoft.Quota/subscriptions", "name": "00000000-0000-0000-0000-000000000000" } + }, + "202": { + "headers": { + "location": "https://contoso.com/operationstatus" + } } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotasSubscriptions/PutGroupQuotasSubscription.json similarity index 100% rename from specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json rename to specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotasSubscriptions/PutGroupQuotasSubscription.json diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Get_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Get_Request-Compute.json index 03d67f1a2a8a..d6114d78c25d 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Get_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Get_Request-Compute.json @@ -20,7 +20,8 @@ "provisioningState": "Accepted", "quotaSources": [ { - "groupquota1": 75 + "managementGroupId": "00000000-0000-0000-0000-000000000000", + "quotaAllocated": 75 } ] } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_List_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_List_Request-Compute.json index e61790c3bca8..c2c6c98dd18e 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_List_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_List_Request-Compute.json @@ -21,7 +21,8 @@ "provisioningState": "Accepted", "quotaSources": [ { - "groupquota1": 75 + "managementGroupId": "00000000-0000-0000-0000-000000000000", + "quotaAllocated": 75 } ] } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Patch_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Patch_Request-Compute.json index bd3d66f4a40f..10cdf77de509 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Patch_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Patch_Request-Compute.json @@ -11,7 +11,8 @@ "properties": { "quotaSources": [ { - "groupquota1": 75 + "managementGroupId": "00000000-0000-0000-0000-000000000000", + "quotaAllocated": 75 } ] } @@ -29,7 +30,8 @@ "provisioningState": "Accepted", "quotaSources": [ { - "groupquota1": 75 + "managementGroupId": "00000000-0000-0000-0000-000000000000", + "quotaAllocated": 75 } ] } @@ -38,14 +40,6 @@ "202": { "headers": { "location": "https://contoso.com/operationstatus" - }, - "body": { - "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/providers/Microsoft.Quota/groupQuotas/groupquota1/quotaAllocations/cores", - "type": "Microsoft.Quota/quotaAllocations", - "name": "cores", - "properties": { - "provisioningState": "Accepted" - } } } } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Put_Request-Compute.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Put_Request-Compute.json index 04c5cf93f7c4..506c02ddfcff 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Put_Request-Compute.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_Put_Request-Compute.json @@ -11,7 +11,8 @@ "properties": { "quotaSources": [ { - "groupquota1": 75 + "managementGroupId": "00000000-0000-0000-0000-000000000000", + "quotaAllocated": 75 } ] } @@ -29,7 +30,8 @@ "provisioningState": "Accepted", "quotaSources": [ { - "groupquota1": 75 + "managementGroupId": "00000000-0000-0000-0000-000000000000", + "quotaAllocated": 75 } ] } diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionRequests/SubscriptionRequests_Get.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionRequests/SubscriptionRequests_Get.json new file mode 100644 index 000000000000..4e524cdf528d --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionRequests/SubscriptionRequests_Get.json @@ -0,0 +1,22 @@ +{ + "operationId": "SubscriptionRequests_Get", + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "groupQuotaName": "groupquota1", + "requestId": "00000000-0000-0000-0000-000000000000", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "provisioningState": "Accepted" + }, + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1/subscriptionRequests/00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Quota/subscriptionRequests", + "name": "00000000-0000-0000-0000-000000000000" + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionRequests/SubscriptionRequests_List.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionRequests/SubscriptionRequests_List.json new file mode 100644 index 000000000000..53dd6f9f571d --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionRequests/SubscriptionRequests_List.json @@ -0,0 +1,26 @@ +{ + "operationId": "SubscriptionRequests_List", + "parameters": { + "mgId": "E7EC67B3-7657-4966-BFFC-41EFD36BAA09", + "groupQuotaName": "groupquota1", + "api-version": "2023-06-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "subscriptionId": "11111111-1111-1111-1111-111111111111", + "provisioningState": "Accepted" + }, + "id": "/providers/Microsoft.Management/managementGroups/E7EC67B3-7657-4966-BFFC-41EFD36BAA09/providers/Microsoft.Quota/groupQuotas/groupquota1/subscriptionRequests/00000000-0000-0000-0000-000000000000", + "type": "Microsoft.Quota/subscriptionRequests", + "name": "00000000-0000-0000-0000-000000000000" + } + ], + "nextLink": "https://yourLinkHere.com" + } + } + } +} diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 19a817f30ca5..d7b19d39933f 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -154,9 +154,6 @@ "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", "type": "string" } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" } }, "default": { @@ -246,6 +243,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/groupQuotas": { "get": { + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, "tags": [ "GroupQuotas" ], @@ -284,16 +284,17 @@ "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptions/{subscriptionId}": { "put": { "tags": [ - "GroupQuotas-Subscriptions" + "GroupQuotasSubscriptions" ], "summary": "Adds subscription to the GroupQuotas.", "description": "Adds a subscription to GroupQuotas.", "operationId": "GroupQuotaSubscriptions_CreateOrUpdate", "x-ms-examples": { "GroupQuotaSubscriptions_Put_Subscriptions": { - "$ref": "./examples/GroupQuotas-Subscriptions/PutGroupQuotasSubscription.json" + "$ref": "./examples/GroupQuotasSubscriptions/PutGroupQuotasSubscription.json" } }, + "x-ms-long-running-operation": true, "parameters": [ { "$ref": "#/parameters/MgIdInParameters" @@ -333,7 +334,7 @@ } }, "schema": { - "$ref": "#/definitions/OperationsStatus" + "$ref": "#/definitions/GroupQuotaSubscriptionId" } }, "default": { @@ -346,16 +347,17 @@ }, "patch": { "tags": [ - "GroupQuotas-Subscriptions" + "GroupQuotasSubscriptions" ], "summary": "Updates the GroupQuotas with the subscription to add to the subscriptions list.", "description": "Updates the GroupQuotas with the subscription to add to the subscriptions list.", "operationId": "GroupQuotaSubscriptions_Update", "x-ms-examples": { "GroupQuotaSubscriptions_Patch_Subscriptions": { - "$ref": "./examples/GroupQuotas-Subscriptions/PatchGroupQuotasSubscription.json" + "$ref": "./examples/GroupQuotasSubscriptions/PatchGroupQuotasSubscription.json" } }, + "x-ms-long-running-operation": true, "parameters": [ { "$ref": "#/parameters/MgIdInParameters" @@ -377,6 +379,24 @@ "$ref": "#/definitions/GroupQuotaSubscriptionId" } }, + "202": { + "description": "Request Accepted", + "headers": { + "Retry-After": { + "description": "The recommended number of seconds to wait before calling the URI specified in Azure-AsyncOperation.", + "type": "integer", + "format": "int64" + }, + "Location": { + "description": "URL for determining when an operation has completed. Send a GET request to the URL in Location header.\nThe URI should return a 202 until the operation reaches a terminal state and 200 once it reaches a terminal state.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#202-accepted-and-location-headers", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", + "type": "string" + } + } + }, "default": { "description": "Bad Request", "schema": { @@ -387,14 +407,14 @@ }, "delete": { "tags": [ - "GroupQuotas-Subscriptions" + "GroupQuotasSubscriptions" ], "summary": "Removes the subscription from GroupQuotas.", "description": "Removes the subscription from GroupQuotas.", "operationId": "GroupQuotaSubscriptions_Delete", "x-ms-examples": { "GroupQuotaSubscriptions_Delete_Subscriptions": { - "$ref": "./examples/GroupQuotas-Subscriptions/DeleteGroupQuotaSubscriptions.json" + "$ref": "./examples/GroupQuotasSubscriptions/DeleteGroupQuotaSubscriptions.json" } }, "parameters": [ @@ -428,14 +448,14 @@ }, "get": { "tags": [ - "GroupQuotas-Subscriptions" + "GroupQuotasSubscriptions" ], "summary": "Returns the subscriptionId along with its provisioning state for being associated with the GroupQuotasEntity.", "description": "Returns the subscriptionId along with its provisioning state for being associated with the GroupQuotasEntity.", "operationId": "GroupQuotaSubscriptions_Get", "x-ms-examples": { "GroupQuotaSubscriptions_Get_Subscriptions": { - "$ref": "./examples/GroupQuotas-Subscriptions/GetGroupQuotaSubscriptions.json" + "$ref": "./examples/GroupQuotasSubscriptions/GetGroupQuotaSubscriptions.json" } }, "parameters": [ @@ -470,15 +490,18 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptions": { "get": { + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, "tags": [ - "GroupQuotas-Subscriptions" + "GroupQuotasSubscriptions" ], "summary": "Returns a list of the subscriptionIds associated with the GroupQuotasEntity.", "description": "Returns a list of the subscriptionIds associated with the GroupQuotasEntity.", "operationId": "GroupQuotaSubscriptions_List", "x-ms-examples": { "GroupQuotaSubscriptions_List_Subscriptions": { - "$ref": "./examples/GroupQuotas-Subscriptions/ListGroupQuotaSubscriptions.json" + "$ref": "./examples/GroupQuotasSubscriptions/ListGroupQuotaSubscriptions.json" } }, "parameters": [ @@ -508,6 +531,92 @@ } } }, + "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptionRequests": { + "get": { + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "tags": [ + "SubscriptionRequests" + ], + "summary": "List the status of all requests to add subscriptionIds to the GroupQuotasEntity.", + "description": "List API to check the status of a subscriptionId requests by requestId. Request history is maintained for 1 year.", + "operationId": "SubscriptionRequests_List", + "x-ms-examples": { + "SubscriptionRequests_List": { + "$ref": "./examples/SubscriptionRequests/SubscriptionRequests_List.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/GroupQuotaNameInParameters" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success, with the details of the subscriptionId request.", + "schema": { + "$ref": "#/definitions/GroupQuotaSubscriptionIdList" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{mgId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptionRequests/{requestId}": { + "get": { + "tags": [ + "SubscriptionRequests" + ], + "summary": "Get the status of a single subscriptionId request by requestId.", + "description": "Get API to check the status of a subscriptionIds request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.", + "operationId": "SubscriptionRequests_Get", + "x-ms-examples": { + "SubscriptionRequests_Get": { + "$ref": "./examples/SubscriptionRequests/SubscriptionRequests_Get.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/MgIdInParameters" + }, + { + "$ref": "#/parameters/GroupQuotaNameInParameters" + }, + { + "$ref": "#/parameters/RequestIdInParameters" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success, with the details of the subscriptionId request.", + "schema": { + "$ref": "#/definitions/GroupQuotaSubscriptionId" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + } + } + }, "/providers/Microsoft.Management/managementGroups/{mgId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaLimits/{resourceName}": { "put": { "tags": [ @@ -644,9 +753,6 @@ "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", "type": "string" } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" } }, "default": { @@ -704,6 +810,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaLimits": { "get": { + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, "tags": [ "GroupQuotaLimits" ], @@ -747,6 +856,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaRequests": { "get": { + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, "tags": [ "GroupQuotaLimitsRequests" ], @@ -836,6 +948,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations": { "get": { + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, "tags": [ "SubscriptionQuotaAllocation" ], @@ -1024,9 +1139,6 @@ "description": "URL for checking the ongoing status of the operation.\nTo get the status of the asynchronous operation, send a GET request to the URL in Azure-AsyncOperation header value.\n\nFor more info: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#asynchronous-operations", "type": "string" } - }, - "schema": { - "$ref": "#/definitions/OperationsStatus" } }, "default": { @@ -1136,6 +1248,9 @@ }, "/providers/Microsoft.Management/managementGroups/{mgId}/subscriptions/{subscriptionId}/{resourceProviderScope}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests": { "get": { + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, "tags": [ "SubscriptionQuotaAllocationRequests" ], @@ -1200,45 +1315,20 @@ "modelAsString": true } }, - "OperationsStatus": { - "description": "A long running process operation Status. Based on - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#202-accepted-and-location-headers", + "AssignedToSubscription": { "type": "object", + "description": "SubscriptionIds and quota allocated to subscriptions from the GroupQuota.", "properties": { - "id": { - "description": "The operation status identifier. It should match what is used to GET the operation resource.", - "type": "string", - "readOnly": true - }, - "name": { - "type": "string", - "readOnly": true, - "description": "It must match the last segment of the id field, and will typically be a GUID / system generated value." - }, - "type": { - "description": "The type.", + "subscriptionId": { "type": "string", - "readOnly": true + "description": "An Azure subscriptionId." }, - "properties": { - "type": "object", - "properties": { - "provisioningState": { - "$ref": "#/definitions/RequestState", - "readOnly": true - } - } + "quotaAllocated": { + "type": "integer", + "description": "The amount of quota allocated to this subscriptionId from the GroupQuotasEntity." } } }, - "AssignedToSubscription": { - "type": "object", - "description": "SubscriptionIds and quota allocated to subscriptions from the GroupQuota.", - "additionalProperties": { - "type": "integer", - "format": "int64", - "description": "Group Quota assigned to subscription." - } - }, "AssignedQuotaToSubscriptionList": { "type": "array", "readOnly": true, @@ -1414,10 +1504,15 @@ "SubscriptionGroupQuotaAssignment": { "type": "object", "description": "MGId the source of groupQuota.", - "additionalProperties": { - "type": "integer", - "format": "int64", - "description": "Group Quota assigned to subscription." + "properties": { + "managementGroupId": { + "type": "string", + "description": "The management group id of the quota source." + }, + "quotaAllocated": { + "type": "integer", + "description": "The amount of quota allocated to this subscriptionId from the quota source." + } } }, "SubscriptionGroupQuotaAssignmentList": { From 905c5a296b8b0e6b7ab1f6d728f964ba5af105c0 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Thu, 10 Aug 2023 16:50:57 -0700 Subject: [PATCH 154/158] add int format --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index d7b19d39933f..bda8b726663c 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1325,6 +1325,7 @@ }, "quotaAllocated": { "type": "integer", + "format": "int64", "description": "The amount of quota allocated to this subscriptionId from the GroupQuotasEntity." } } @@ -1511,6 +1512,7 @@ }, "quotaAllocated": { "type": "integer", + "format": "int64", "description": "The amount of quota allocated to this subscriptionId from the quota source." } } From 6b1b4dbc5b4a168d5f8528256eb3493d5283be69 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Fri, 11 Aug 2023 13:07:30 -0700 Subject: [PATCH 155/158] add description and remove unused definition --- .../preview/2023-06-01-preview/groupquota.json | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index bda8b726663c..925638005672 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1603,17 +1603,9 @@ } } }, - "ResourceRequest": { - "type": "object", - "properties": { - "requestedResource": { - "description": "Requested Resource.", - "$ref": "#/definitions/ResourceBaseRequest" - } - } - }, "SubmittedResourceRequestStatus": { "type": "object", + "description": "Ttatus of a single GroupQuota request.", "properties": { "requestedResource": { "description": "Requested Resource.", @@ -1681,6 +1673,7 @@ }, "BillingAccountId": { "type": "object", + "description": "A Billing Account Id.", "properties": { "id": { "type": "string" From 0e7b6bad760fe3ed9fa9f2c7004c4ae92dddebc3 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Mon, 14 Aug 2023 15:11:54 -0700 Subject: [PATCH 156/158] fix spellcheck --- .../preview/2023-06-01-preview/groupquota.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 925638005672..883d810e03d0 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1605,7 +1605,7 @@ }, "SubmittedResourceRequestStatus": { "type": "object", - "description": "Ttatus of a single GroupQuota request.", + "description": "Status of a single GroupQuota request.", "properties": { "requestedResource": { "description": "Requested Resource.", @@ -1813,4 +1813,4 @@ "x-ms-parameter-location": "method" } } -} +} \ No newline at end of file From 2edca090a990928c53bedebf0cca737b177d2107 Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Mon, 14 Aug 2023 15:18:39 -0700 Subject: [PATCH 157/158] prettier --- .../Microsoft.Quota/preview/2023-06-01-preview/groupquota.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 883d810e03d0..7241bf17fa9f 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1813,4 +1813,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} From 5755c0b658d10e0c372d52cfdee4ea511c85cffc Mon Sep 17 00:00:00 2001 From: vivole <67396382+vivole@users.noreply.github.com> Date: Wed, 16 Aug 2023 12:47:14 -0700 Subject: [PATCH 158/158] match title and update description --- .../preview/2023-06-01-preview/groupquota.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json index 7241bf17fa9f..e45cefe078a2 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/groupquota.json @@ -1,9 +1,9 @@ { "swagger": "2.0", "info": { - "title": "Azure MG Group Quota using GroupQuota Entity.", + "title": "Azure Quota Extension API", "version": "2023-06-01-preview", - "description": "Microsoft Azure Quota Resource Provider" + "description": "Microsoft Azure Quota Resource Provider. This Swagger is for Azure MG Group Quota using GroupQuota Entity." }, "consumes": [ "application/json"