diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2019-07-19-preview/quota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2019-07-19-preview/quota.json new file mode 100644 index 000000000000..c291dea3c559 --- /dev/null +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2019-07-19-preview/quota.json @@ -0,0 +1,595 @@ +{ + "swagger": "2.0", + "info": { + "version": "2019-06-11-preview", + "title": "Microsoft.Quota", + "description": "Microsoft Azure Quota Resource Provider." + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "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 OAuth2 Flow" + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Quota/providers/{providerId}/locations/{locationId}/usages": { + "get": { + "tags": [ + "QuotaInformation" + ], + "summary": "Gets the current quota limit and usages for the resources provider for the specified location.", + "description": "Gets the current quota limit and usages for the resources provider for the specified location.", + "operationId": "Quotas_Check", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ProviderIdParameter" + }, + { + "$ref": "#/parameters/LocationIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. Quota information will be returned as response with pagination.", + "schema": { + "$ref": "#/definitions/CurrentQuotaLimits" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ExceptionResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Quota/providers/{providerId}/locations/{locationId}/quotaRequests/{requestName}": { + "put": { + "tags": [ + "QuotaRequests" + ], + "summary": "Submits a Quota Request for a resource provider at the specified location.", + "description": "Submits Quota change request for a resource provider for the specified location. To use, first make a request to the /usages API to get quota information. This information consists of a list of resources and information regarding those resources. For all the resources in that list which require an update to their quotas, update their limit fields in the response from the /usages to their new values. Then, submit this updated JSON object to this quota request API. This will update the quotas to the values specified.", + "operationId": "QuotaRequests_Create", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ProviderIdParameter" + }, + { + "$ref": "#/parameters/LocationIdParameter" + }, + { + "$ref": "#/parameters/QuotaRequestNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "createQuotaRequests", + "in": "body", + "description": "Quota requests payload.", + "required": true, + "schema": { + "$ref": "#/definitions/CreateGenericQuotaRequestParameters" + } + } + ], + "responses": { + "202": { + "description": "Accepted. Quota requests will be created asynchronously. A request id for each changed resource is returned in the same order as the order in which they were provided.", + "schema": { + "$ref": "#/definitions/QuotaRequestResponseStatus" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ExceptionResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "QuotaRequests" + ], + "summary": "For the specified location, gets the Quota request status by request name provided during the quota request creation for the specific resources under the subscription.", + "description": "Gets the QuotaRequest details and status by the quota Request Name for the resources for the resource provider at a specific location.", + "operationId": "QuotaRequests_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ProviderIdParameter" + }, + { + "$ref": "#/parameters/LocationIdParameter" + }, + { + "$ref": "#/parameters/QuotaRequestNameParameter" + } + ], + "responses": { + "200": { + "description": "Ok. Returning the status for all relevant quota requests .", + "schema": { + "$ref": "#/definitions/QuotaRequestDetail" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ExceptionResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + }, + "delete": { + "tags": [ + "QuotaRequests" + ], + "summary": "Deletes the QuotaRequest by name for the resources for the resource provider at a specific location.", + "description": "For the specified location, deletes the quota request by request name for resources under the subscription. Delete will not cancel the Quota Request in progress. It will only delete the completed requests, whican be rejected or succeeded quota requests.", + "operationId": "QuotaRequests_Delete", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ProviderIdParameter" + }, + { + "$ref": "#/parameters/LocationIdParameter" + }, + { + "$ref": "#/parameters/QuotaRequestNameParameter" + } + ], + "responses": { + "200": { + "description": "Ok. Quota Request deleted." + }, + "404": { + "description": "Error: Not found. Quota request for provided quotaRequest name not found" + }, + "409": { + "description": "Error: Conflict. Quota request for provided quotaRequest is in processing state. Request cannot be deleted." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ExceptionResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Quota/providers/{providerId}/locations/{locationId}/quotaRequests": { + "get": { + "tags": [ + "QuotaRequests" + ], + "summary": "For the specified location and resource Provider, gets the current quota requests under the subscription over the time\n period of one year ago from now to one year back.", + "description": "For the specified location and Resource provider gets the current quota requests under the subscription over the time period of one year ago from now to one year back. oData filter can be used to select quota requests.", + "operationId": "QuotaRequest_status", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ProviderIdParameter" + }, + { + "$ref": "#/parameters/LocationIdParameter" + } + ], + "responses": { + "200": { + "description": "Ok. Sending Quota request status and details", + "schema": { + "$ref": "#/definitions/QuotaRequestDetailsByNameList" + } + }, + "404": { + "description": "Error: Not found. Quota requests for provided quotaRequestId not found" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ExceptionResponse" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextpage" + } + } + } + } + }, + "definitions": { + "CreateGenericQuotaRequestParameter": { + "description": "Generic Quota change request information for a resource Provider.", + "properties": { + "limit": { + "description": "The requested limit.", + "type": "integer" + }, + "name": { + "properties": { + "localizedValue": { + "type": "string", + "description": "Resource display name.", + "readOnly": true + }, + "value": { + "type": "string", + "description": "Resource name.", + "readOnly": true + } + } + }, + "resourceType": { + "description": "The resource type for the specific resource provider. For example, BatchAI has a resource type of ‘dedicated lowPriority cluster’. Call the /usages API and use the resource type and resource name from that API. This is an optional field because some resources, like compute, do not have a resource type.", + "type": "string" + }, + "unit": { + "description": "The units of the limit, such as - Count, Bytes, etc. Use the unit field provided in the Get quota response.", + "type": "string" + }, + "quotaPeriod": { + "description": "The quota period over which the usage values are summarized, such as - P1D (Per one day), PT1M (Per one minute), PT1S (Per one second). This parameter is optional because, for some resources like compute, the period doesn’t matter.", + "type": "string" + } + } + }, + "CreateGenericQuotaRequestParameters": { + "description": "Quota change requests information.", + "properties": { + "quotaRequests": { + "type": "array", + "items": { + "$ref": "#/definitions/CreateGenericQuotaRequestParameter" + } + } + } + }, + "CurrentQuotaLimit": { + "description": "Current Quota limits.", + "properties": { + "id": { + "description": "The full resource path.", + "type": "string", + "readOnly": true + }, + "limit": { + "description": "The quota limit.", + "type": "integer", + "readOnly": false + }, + "currentValue": { + "description": "The current resource usages information.", + "type": "integer", + "readOnly": true + }, + "name": { + "properties": { + "localizedValue": { + "description": "Resource display name.", + "type": "string", + "readOnly": true + }, + "value": { + "description": "Resource name.", + "type": "string", + "readOnly": true + } + } + }, + "resourceType": { + "description": "The resource type for the specific resource provider. For example, BatchAI has a resource type of ‘dedicated lowPriority cluster’. Call the /usages API and use the resource type and resource name from that API. This is an optional field because some resources, like compute, do not have a resource type.", + "type": "string" + }, + "unit": { + "description": " The units of the limit, such as - Count, Bytes, etc. Use the unit field provided in the Get quota response.", + "type": "string" + }, + "quotaPeriod": { + "description": "The quota period over which the usage values are summarized, such as - P1D (Per one day), PT1M (Per one minute), PT1S (Per one second). This parameter is optional because, for some resources like compute, the period doesn’t matter.", + "type": "string", + "readOnly": true + } + } + }, + "CurrentQuotaLimits": { + "description": "Current Quota limits.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/CurrentQuotaLimit" + } + }, + "nextLink": { + "description": "The uri to fetch the next page of quota limits. When there are no more pages, this is null.", + "type": "string" + } + } + }, + "SubRequest": { + "description": "The sub-request submitted with the quota request.", + "properties": { + "limit": { + "description": "The Resource limit.", + "type": "integer", + "readOnly": true + }, + "currentValue": { + "description": "The current Resource usages.", + "type": "integer", + "readOnly": true + }, + "name": { + "description": "Resource display name.", + "type": "string", + "readOnly": true + }, + "resourceType": { + "description": "Resource type for which the quota check was made.", + "type": "string", + "readOnly": true + }, + "requestStatus": { + "$ref": "#/definitions/QuotaRequestState" + } + } + }, + "QuotaRequestDetail": { + "description": "The details of the quota Request.", + "properties": { + "requestId": { + "description": "The quota requestId.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "User friendly status message.", + "type": "string", + "readOnly": true + }, + "requestStatus": { + "$ref": "#/definitions/QuotaRequestState" + }, + "subRequests": { + "$ref": "#/definitions/SubRequests" + } + } + }, + "SubRequests": { + "description": "Sub-Requests submitted in the Quota request.", + "properties": { + "quotaRequests": { + "type": "array", + "items": { + "$ref": "#/definitions/SubRequest" + } + } + } + }, + "QuotaRequestDetailsByName": { + "description": "The details of the quota Request.", + "properties": { + "requestName": { + "description": "The quota request Name.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "User friendly status message.", + "type": "string", + "readOnly": true + }, + "requestStatus": { + "$ref": "#/definitions/QuotaRequestState" + }, + "subRequests": { + "$ref": "#/definitions/SubRequests" + } + } + }, + "QuotaRequestDetailsByNameList": { + "description": "Quota requests information.", + "properties": { + "quotaRequests": { + "type": "array", + "items": { + "$ref": "#/definitions/QuotaRequestDetailsByName" + } + }, + "nextLink": { + "description": "The uri to fetch the next page of quota limits. When there are no more pages, this is null.", + "type": "string" + } + } + }, + "QuotaRequestResponseStatus": { + "description": "The quota request submit response.", + "properties": { + "id": { + "description": "System generated Id for the quota request.", + "type": "string", + "readOnly": true + }, + "status": { + "$ref": "#/definitions/QuotaRequestState" + } + } + }, + "QuotaRequestState": { + "description": "The quota request status.", + "enum": [ + "Accepted", + "Invalid", + "Success", + "Failed", + "InProgress" + ], + "x-ms-enum": { + "name": "QuotaRequestState", + "modelAsString": true + } + }, + "ExceptionResponse": { + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/ServiceError", + "description": "The api error details." + } + }, + "description": "The api error." + }, + "ServiceError": { + "description": "The api error details.", + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "The error code." + }, + "message": { + "type": "string", + "description": "The error message." + }, + "target": { + "type": "string", + "description": "The target of the error." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceErrorDetail" + }, + "description": "The list of error details.", + "readOnly": true + } + } + }, + "ServiceErrorDetail": { + "description": "The error details.", + "type": "object", + "properties": { + "code": { + "type": "string", + "readOnly": true, + "description": "The error code." + }, + "message": { + "type": "string", + "readOnly": true, + "description": "The error message." + }, + "target": { + "type": "string", + "readOnly": true, + "description": "The target of the error." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Azure subscription id." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Api version." + }, + "LocationIdParameter": { + "name": "locationId", + "in": "path", + "required": true, + "type": "string", + "description": "Azure data center location id." + }, + "ProviderIdParameter": { + "name": "providerId", + "in": "path", + "required": true, + "type": "string", + "description": "Azure resource Provider id." + }, + "QuotaRequestIdParameter": { + "name": "id", + "in": "path", + "required": true, + "type": "string", + "description": "The QuotaRequestId." + }, + "QuotaRequestNameParameter": { + "name": "requestName", + "in": "path", + "required": true, + "type": "string", + "description": "The QuotaRequest Name." + } + } +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getBatchAIUsages.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getBatchAIUsages.json index c0347a14861b..24d476be36d0 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getBatchAIUsages.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getBatchAIUsages.json @@ -10,49 +10,59 @@ "body": { "value": [ { - "currentValue": 15, - "limit": 20, - "name": { - "localizedValue": "Clusters", - "value": "Clusters" - }, - "unit": "Count" + "properties": { + "currentValue": 15, + "limit": 20, + "name": { + "localizedValue": "Clusters", + "value": "Clusters" + }, + "unit": "Count" + } }, { - "currentValue": 49, - "limit": 600, - "name": { - "localizedValue": "Total Cluster Dedicated Regional vCPUs", - "value": "Total Cluster Dedicated Regional vCPUs" - }, - "unit": "Count" + "properties": { + "currentValue": 49, + "limit": 600, + "name": { + "localizedValue": "Total Cluster Dedicated Regional vCPUs", + "value": "Total Cluster Dedicated Regional vCPUs" + }, + "unit": "Count" + } }, { - "currentValue": 1, - "limit": 600, - "name": { - "localizedValue": "Standard D Family Cluster Dedicated vCPUs", - "value": "Standard D Family Cluster Dedicated vCPUs" - }, - "unit": "Count" + "properties": { + "currentValue": 1, + "limit": 600, + "name": { + "localizedValue": "Standard D Family Cluster Dedicated vCPUs", + "value": "Standard D Family Cluster Dedicated vCPUs" + }, + "unit": "Count" + } }, { - "currentValue": 0, - "limit": 0, - "name": { - "localizedValue": "Standard ND Family Cluster Low Priority vCPUs", - "value": "Standard ND Family Cluster LowPriority vCPUs" - }, - "unit": "Count" + "properties": { + "currentValue": 0, + "limit": 0, + "name": { + "localizedValue": "Standard ND Family Cluster Low Priority vCPUs", + "value": "Standard ND Family Cluster LowPriority vCPUs" + }, + "unit": "Count" + } }, { - "currentValue": 0, - "limit": 150, - "name": { - "localizedValue": "Standard NV Family Cluster Low Priority vCPUs", - "value": "Standard NV Family Cluster LowPriority vCPUs" - }, - "unit": "Count" + "properties": { + "currentValue": 0, + "limit": 150, + "name": { + "localizedValue": "Standard NV Family Cluster Low Priority vCPUs", + "value": "Standard NV Family Cluster LowPriority vCPUs" + }, + "unit": "Count" + } } ] } diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getComputeOneSkuUsages.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getComputeOneSkuUsages.json index ac96e4112c56..f5999b070097 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getComputeOneSkuUsages.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getComputeOneSkuUsages.json @@ -9,12 +9,14 @@ "responses": { "200": { "body": { - "limit": 0, - "unit": "Count", - "currentValue": 0, - "name": { - "value": "standardNDSFamily", - "localizedValue": "Standard NDS Family vCPUs" + "properties": { + "limit": 10, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardNDSFamily", + "localizedValue": "Standard NDS Family vCPUs" + } } } } diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getComputeUsages.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getComputeUsages.json index b9bd076a58a3..e973260d3e20 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getComputeUsages.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getComputeUsages.json @@ -10,102 +10,124 @@ "body": { "value": [ { - "limit": 100, - "unit": "Count", - "currentValue": 0, - "name": { - "value": "standardFSv2Family", - "localizedValue": "Standard FSv2 Family vCPUs" + "properties": { + "limit": 100, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardFSv2Family", + "localizedValue": "Standard FSv2 Family vCPUs" + } } }, { - "limit": 0, - "unit": "Count", - "currentValue": 0, - "name": { - "value": "standardNDSFamily", - "localizedValue": "Standard NDS Family vCPUs" + "properties": { + "limit": 0, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardNDSFamily", + "localizedValue": "Standard NDS Family vCPUs" + } } }, { - "limit": 0, - "unit": "Count", - "currentValue": 0, - "name": { - "value": "standardNCSv2Family", - "localizedValue": "Standard NCSv2 Family vCPUs" + "properties": { + "limit": 0, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardNCSv2Family", + "localizedValue": "Standard NCSv2 Family vCPUs" + } } }, { - "limit": 0, - "unit": "Count", - "currentValue": 0, - "name": { - "value": "standardNCSv3Family", - "localizedValue": "Standard NCSv3 Family vCPUs" + "properties": { + "limit": 0, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardNCSv3Family", + "localizedValue": "Standard NCSv3 Family vCPUs" + } } }, { - "limit": 100, - "unit": "Count", - "currentValue": 0, - "name": { - "value": "standardLSv2Family", - "localizedValue": "Standard LSv2 Family vCPUs" + "properties": { + "limit": 100, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardLSv2Family", + "localizedValue": "Standard LSv2 Family vCPUs" + } } }, { - "limit": 6, - "unit": "Count", - "currentValue": 0, - "name": { - "value": "standardPBSFamily", - "localizedValue": "Standard PBS Family vCPUs" + "properties": { + "limit": 6, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardPBSFamily", + "localizedValue": "Standard PBS Family vCPUs" + } } }, { - "limit": 100, - "unit": "Count", - "currentValue": 0, - "name": { - "value": "standardEIv3Family", - "localizedValue": "Standard EIv3 Family vCPUs" + "properties": { + "limit": 100, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardEIv3Family", + "localizedValue": "Standard EIv3 Family vCPUs" + } } }, { - "limit": 100, - "unit": "Count", - "currentValue": 0, - "name": { - "value": "standardEISv3Family", - "localizedValue": "Standard EISv3 Family vCPUs" + "properties": { + "limit": 100, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardEISv3Family", + "localizedValue": "Standard EISv3 Family vCPUs" + } } }, { - "limit": 8, - "unit": "Count", - "currentValue": 0, - "name": { - "value": "standardDCSFamily", - "localizedValue": "Standard DCS Family vCPUs" + "properties": { + "limit": 8, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardDCSFamily", + "localizedValue": "Standard DCS Family vCPUs" + } } }, { - "limit": 0, - "unit": "Count", - "currentValue": 0, - "name": { - "value": "standardNVSv2Family", - "localizedValue": "Standard NVSv2 Family vCPUs" + "properties": { + "limit": 0, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardNVSv2Family", + "localizedValue": "Standard NVSv2 Family vCPUs" + } } }, { - "limit": 0, - "unit": "Count", - "currentValue": 0, - "name": { - "value": "standardMSv2Family", - "localizedValue": "Standard MSv2 Family vCPUs" + "properties": { + "limit": 0, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardMSv2Family", + "localizedValue": "Standard MSv2 Family vCPUs" + } } } ], diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getMsSqlUsages.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getMsSqlUsages.json index b0f9dea62988..74b82ac10c9c 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getMsSqlUsages.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/getMsSqlUsages.json @@ -10,31 +10,37 @@ "body": { "value": [ { - "currentValue": 1, - "limit": 20, - "name": { - "localizedValue": "Regional Server Quota for West US", - "value": "ServerQuota" - }, - "unit": "Count" + "properties": { + "currentValue": 1, + "limit": 20, + "name": { + "localizedValue": "Regional Server Quota for West US", + "value": "ServerQuota" + }, + "unit": "Count" + } }, { - "currentValue": 0, - "limit": 1, - "name": { - "localizedValue": "Free Database Count per Subscription for West US", - "value": "SubscriptionFreeDatabaseCount" - }, - "unit": "Count" + "properties": { + "currentValue": 0, + "limit": 1, + "name": { + "localizedValue": "Free Database Count per Subscription for West US", + "value": "SubscriptionFreeDatabaseCount" + }, + "unit": "Count" + } }, { - "currentValue": 365, - "limit": 365, - "name": { - "localizedValue": "Free to Basic Database Upgrade count-down in West US", - "value": "SubscriptionFreeDatabaseDaysLeft" - }, - "unit": "Count" + "properties": { + "currentValue": 365, + "limit": 365, + "name": { + "localizedValue": "Free to Basic Database Upgrade count-down in West US", + "value": "SubscriptionFreeDatabaseDaysLeft" + }, + "unit": "Count" + } } ] } diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/patchComputeQuotaRequest.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/patchComputeQuotaRequest.json index 1092cc425bea..aec6096cdbc1 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/patchComputeQuotaRequest.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/patchComputeQuotaRequest.json @@ -7,10 +7,12 @@ "api-version": "2019-07-19-preview", "If-Match": "F2E0FB94-7F6B-4852-8EE8-67A04BBA6520", "createQuotaRequest": { - "limit": 200, - "unit": "Count", - "name": { - "value": "standardFSv2Family" + "properties": { + "limit": 200, + "unit": "Count", + "name": { + "value": "standardFSv2Family" + } } } }, @@ -35,12 +37,16 @@ "provisioningState": "Succeeded", "message": "", "properties": { - "limit": 200, - "unit": "Count", - "currentValue": 80, - "name": { - "value": "standardFSv2Family", - "localizedValue": "Standard FSv2 Family vCPUs" + "properties": { + "limit": 200, + "unit": "Count", + "currentValue": 160, + "name": { + "value": "standardFSv2Family", + "localizedValue": "Standard FSv2 Family vCPUs" + }, + "quotaPeriod": "", + "properties": {} } } } diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putComputeOneSkuQuotaRequest.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putComputeOneSkuQuotaRequest.json index e106b9262465..29dc58a1e447 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putComputeOneSkuQuotaRequest.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/examples/putComputeOneSkuQuotaRequest.json @@ -7,10 +7,12 @@ "api-version": "2019-07-19-preview", "If-Match": "*", "createQuotaRequest": { - "limit": 200, - "unit": "Count", - "name": { - "value": "standardFSv2Family" + "properties": { + "limit": 200, + "unit": "Count", + "name": { + "value": "standardFSv2Family" + } } } }, @@ -33,14 +35,18 @@ "type": "Microsoft.Capacity/serviceLimits", "properties": { "provisioningState": "Succeeded", - "message": "", + "message": "Request succeeded", "properties": { - "limit": 200, - "unit": "Count", - "currentValue": 160, - "name": { - "value": "standardFSv2Family", - "localizedValue": "Standard FSv2 Family vCPUs" + "properties": { + "limit": 200, + "unit": "Count", + "currentValue": 160, + "name": { + "value": "standardFSv2Family", + "localizedValue": "Standard FSv2 Family vCPUs" + }, + "quotaPeriod": "", + "properties": {} } } } diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/quota.json b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/quota.json index fa6935b5cdda..66dc47323378 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/quota.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/preview/2019-07-19/quota.json @@ -90,7 +90,7 @@ "QuotaRequests" ], "summary": "Submits a Quota Request for a resource provider at the specified location for the specific resource in the parameter.", - "description": "Submits Quota change request for a resource provider for the specified location for the specific resource in the parameter. To use, first make a Get request to get quota information. This information consists of a list of resources and information regarding those resources. For all the resources in that list which require an update to their quotas, update their limit fields in the response from the Get request to their new values. Then, submit this updated JSON object to this quota request API. This will update the quota to the values specified. The location header in the response will be used to track the status of the quota request. Please check the provisioningState field in the response.", + "description": "Submits Quota change request for a resource provider for the specified location for the specific resource in the parameter. To use, first make a Get request to get quota information for the specific resource. This information consists of information regarding that specific resources. For the specific resource, if it requires an update to the quota, update the limit field in the response from the Get request to the new value of quota. Then, submit this updated JSON object to this quota request API. This will update the quota to the value specified. The location header in the response will be used to track the status of the quota request. Please check the provisioningState field in the response.", "operationId": "QuotaRequest_Create", "x-ms-examples": { "Quotas_Request_listForCompute": { @@ -156,7 +156,7 @@ "QuotaRequests" ], "summary": "Submits a Quota Request for a resource provider at the specified location for the specific resource in the parameter.", - "description": "Submits Quota change request for a resource provider for the specified location for the specific resource in the parameter. To use, first make a Get request to get quota information. This information consists of a list of resources and information regarding those resources. For all the resources in that list which require an update to their quotas, update their limit fields in the response from the Get request to their new values. Then, submit this updated JSON object to this quota request API. This will update the quota to the values specified. The location header in the response will be used to track the status of the quota request. Please check the provisioningState field in the response.", + "description": "Submits Quota change request for a resource provider for the specified location for the specific resource in the parameter. To use, first make a Get request to get quota information for the specific resource. This information consists of information regarding that specific resources. For the specific resource, if it requires an update to the quota, update the limit field in the response from the Get request to the new value of quota. Then, submit this updated JSON object to this quota request API. This will update the quota to the value specified. The location header in the response will be used to track the status of the quota request. Please check the provisioningState field in the response.", "operationId": "QuotaRequest_Update", "x-ms-examples": { "Quotas_Request_PatchForCompute": { @@ -293,7 +293,7 @@ } }, "summary": "Gets the Quota request status by requestId, for the specified resource provider at specified location.", - "description": "Gets the QuotaRequest details and status by the quota requestId for the resources for the resource provider at a specific location. The requestId is returned as response to the Put requests for serviceLimits.", + "description": "Gets the QuotaRequest details and status by the quota request Id for the resources for the resource provider at a specific location. The requestId is returned as response to the Put requests for serviceLimits.", "operationId": "QuotaRequests_GetStatus", "parameters": [ { @@ -368,9 +368,6 @@ "$ref": "#/parameters/SkipTokenParameter" } ], - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, "responses": { "200": { "description": "Ok. Sending Quota request status and details", @@ -384,6 +381,9 @@ "$ref": "#/definitions/ExceptionResponse" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, @@ -494,6 +494,16 @@ "type": "object", "description": "Quota limits.", "x-ms-azure-resource": true, + "properties": { + "properties": { + "description": "Quota properties for the resource.", + "$ref": "#/definitions/QuotaProperties" + } + } + }, + "QuotaProperties": { + "description": "Resource quota properties.", + "type": "object", "properties": { "limit": { "description": "The quota limit.", @@ -511,18 +521,7 @@ }, "name": { "description": "Name of the resource provide by the resource Provider. Please use this name property for quotaRequests.", - "properties": { - "value": { - "description": "Resource name.", - "type": "string", - "readOnly": false - }, - "localizedValue": { - "description": "Resource display name.", - "type": "string", - "readOnly": true - } - } + "$ref": "#/definitions/ResourceName" }, "resourceType": { "description": "The Resource Type Name.", @@ -540,6 +539,21 @@ } } }, + "ResourceName": { + "description": "Name of the resource provide by the resource Provider. Please use this name property for quotaRequests.", + "properties": { + "value": { + "description": "Resource name.", + "type": "string", + "readOnly": false + }, + "localizedValue": { + "description": "Resource display name.", + "type": "string", + "readOnly": true + } + } + }, "QuotaLimits": { "description": "Quota limits.", "properties": { @@ -596,18 +610,7 @@ }, "name": { "description": "The Resource name.", - "properties": { - "localizedValue": { - "description": "Resource display name.", - "type": "string", - "readOnly": true - }, - "value": { - "description": "Resource name.", - "type": "string", - "readOnly": true - } - } + "$ref": "#/definitions/ResourceName" }, "resourceType": { "description": "Resource type for which the quota check was made.", @@ -931,7 +934,7 @@ "description": "The email actions.", "properties": { "value": { - "description": "The list of actions based on the success or failure of automatic quota increase action.", + "description": "The list of email actions based on the success or failure of automatic quota increase action.", "type": "array", "items": { "description": "The email recipients for the specific action types.",