From 15e533d08788dc0ee45215649429762c996c7c92 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 3 Dec 2020 12:56:40 -0800 Subject: [PATCH 1/4] Capacity RP Quota APIs for GA --- .../examples/getComputeOneSkuUsages.json | 24 + .../2020-10-25/examples/getComputeUsages.json | 138 +++ .../getMachineLearningServicesUsages.json | 38 + .../examples/getQuotaRequestStatusById.json | 44 + .../examples/getQuotaRequestStatusFailed.json | 45 + .../getQuotaRequestStatusInProgress.json | 35 + .../examples/getQuotaRequestsHistory.json | 113 +++ .../examples/patchComputeQuotaRequest.json | 55 ++ .../putComputeOneSkuQuotaRequest.json | 55 ++ ...LearningServicesQuotaRequestDedicated.json | 57 ++ ...arningServicesQuotaRequestLowPriority.json | 57 ++ .../stable/2020-10-25/quota.json | 886 ++++++++++++++++++ .../readme.azureresourceschema.md | 12 + .../resource-manager/readme.go.md | 10 + .../reservations/resource-manager/readme.md | 12 +- 15 files changed, 1580 insertions(+), 1 deletion(-) create mode 100644 specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeOneSkuUsages.json create mode 100644 specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeUsages.json create mode 100644 specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMachineLearningServicesUsages.json create mode 100644 specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.json create mode 100644 specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json create mode 100644 specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json create mode 100644 specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestsHistory.json create mode 100644 specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/patchComputeQuotaRequest.json create mode 100644 specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putComputeOneSkuQuotaRequest.json create mode 100644 specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestDedicated.json create mode 100644 specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestLowPriority.json create mode 100644 specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/quota.json diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeOneSkuUsages.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeOneSkuUsages.json new file mode 100644 index 000000000000..ebff7547f730 --- /dev/null +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeOneSkuUsages.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "providerId": "Microsoft.Compute", + "location": "eastus", + "resourceName": "standardNDSFamily", + "api-version": "2020-10-25" + }, + "responses": { + "200": { + "body": { + "properties": { + "limit": 10, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardNDSFamily", + "localizedValue": "Standard NDS Family vCPUs" + } + } + } + } + } +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeUsages.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeUsages.json new file mode 100644 index 000000000000..390a8831fafb --- /dev/null +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeUsages.json @@ -0,0 +1,138 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "providerId": "Microsoft.Compute", + "location": "eastus", + "api-version": "2020-10-25" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "limit": 100, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardFSv2Family", + "localizedValue": "Standard FSv2 Family vCPUs" + } + } + }, + { + "properties": { + "limit": 0, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardNDSFamily", + "localizedValue": "Standard NDS Family vCPUs" + } + } + }, + { + "properties": { + "limit": 0, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardNCSv2Family", + "localizedValue": "Standard NCSv2 Family vCPUs" + } + } + }, + { + "properties": { + "limit": 0, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardNCSv3Family", + "localizedValue": "Standard NCSv3 Family vCPUs" + } + } + }, + { + "properties": { + "limit": 100, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardLSv2Family", + "localizedValue": "Standard LSv2 Family vCPUs" + } + } + }, + { + "properties": { + "limit": 6, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardPBSFamily", + "localizedValue": "Standard PBS Family vCPUs" + } + } + }, + { + "properties": { + "limit": 100, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardEIv3Family", + "localizedValue": "Standard EIv3 Family vCPUs" + } + } + }, + { + "properties": { + "limit": 100, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardEISv3Family", + "localizedValue": "Standard EISv3 Family vCPUs" + } + } + }, + { + "properties": { + "limit": 8, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardDCSFamily", + "localizedValue": "Standard DCS Family vCPUs" + } + } + }, + { + "properties": { + "limit": 0, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardNVSv2Family", + "localizedValue": "Standard NVSv2 Family vCPUs" + } + } + }, + { + "properties": { + "limit": 0, + "unit": "Count", + "currentValue": 0, + "name": { + "value": "standardMSv2Family", + "localizedValue": "Standard MSv2 Family vCPUs" + } + } + } + ], + "nextLink": "" + } + } + } +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMachineLearningServicesUsages.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMachineLearningServicesUsages.json new file mode 100644 index 000000000000..690c516420bc --- /dev/null +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMachineLearningServicesUsages.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "providerId": "Microsoft.MachineLearningServices", + "location": "eastus", + "api-version": "2020-10-25" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "currentValue": 15, + "limit": 20, + "name": { + "value": "standardDv2Family", + "localizedValue": "Standard Dv2 Family vCPUs" + }, + "resourceType": "dedicated" + } + }, + { + "properties": { + "currentValue": 49, + "limit": 600, + "name": { + "value": "totalLowPriorityCores", + "localizedValue": "Total Regional Low-priority vCPUs" + }, + "resourceType": "lowPriority" + } + } + ] + } + } + } +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.json new file mode 100644 index 000000000000..fec8c9c63482 --- /dev/null +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "providerId": "Microsoft.Compute", + "location": "eastus", + "id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "api-version": "2020-10-25" + }, + "responses": { + "200": { + "body": { + "id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "type": "Microsoft.Capacity/serviceLimitsRequests", + "name": "00000000-0000-0000-0000-000000000000/2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "properties": { + "requestSubmitTime": "2019-08-19T19:23:17.904Z", + "message": "Request completed", + "provisioningState": "Succeeded", + "value": [ + { + "limit": 200, + "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", + "name": { + "value": "standardHCSFamily", + "localizedValue": "Standard HCS Family vCPUs" + }, + "message": "Request completed", + "provisioningState": "Succeeded" + }, + { + "limit": 50, + "name": { + "value": "standardNCPromoFamily", + "localizedValue": "Standard NC Promo Family vCPUs" + }, + "message": "Request completed", + "provisioningState": "Succeeded" + } + ] + } + } + } + } +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json new file mode 100644 index 000000000000..8708ad729fc8 --- /dev/null +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "providerId": "Microsoft.Compute", + "location": "eastus", + "id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "api-version": "2020-10-25" + }, + "responses": { + "200": { + "body": { + "id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "type": "Microsoft.Capacity/serviceLimitsRequests", + "name": "00000000-0000-0000-0000-000000000000/2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "properties": { + "requestSubmitTime": "2019-08-19T19:23:17.904Z", + "message": "Request failed, please contatct support.", + "provisioningState": "Failed", + "value": [ + { + "limit": 200, + "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", + "name": { + "value": "standardHCSFamily", + "localizedValue": "Standard HCS Family vCPUs" + }, + "message": "Request completed", + "provisioningState": "Succeeded" + }, + { + "limit": 50, + "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", + "name": { + "value": "standardNCPromoFamily", + "localizedValue": "Standard NC Promo Family vCPUs" + }, + "message": "RRequest failed, please contatct support.", + "provisioningState": "Failed" + } + ] + } + } + } + } +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json new file mode 100644 index 000000000000..f9775dc4da8c --- /dev/null +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "providerId": "Microsoft.Compute", + "location": "eastus", + "id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "api-version": "2019-07-19-preview" + }, + "responses": { + "200": { + "body": { + "id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "type": "Microsoft.Capacity/serviceLimitsRequests", + "name": "00000000-0000-0000-0000-000000000000/2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "properties": { + "requestSubmitTime": "2019-08-19T19:23:17.904Z", + "message": "Request processing", + "provisioningState": "InProgress", + "value": [ + { + "limit": 50, + "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", + "name": { + "value": "standardNCPromoFamily", + "localizedValue": "Standard NC Promo Family vCPUs" + }, + "message": "Request processing", + "provisioningState": "InProgress" + } + ] + } + } + } + } +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestsHistory.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestsHistory.json new file mode 100644 index 000000000000..6453be3eb4d4 --- /dev/null +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestsHistory.json @@ -0,0 +1,113 @@ +{ + "parameters": { + "subscriptionId": "3f75fdf7-977e-44ad-990d-99f14f0f299f", + "providerId": "Microsoft.Compute", + "location": "eastus", + "api-version": "2020-10-25" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/3f75fdf7-977e-44ad-990d-99f14f0f299f/providers/microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests?api-version=2020-10-25&$top=3", + "value": [ + { + "id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "type": "Microsoft.Capacity/serviceLimitsRequests", + "name": "00000000-0000-0000-0000-000000000000/2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "properties": { + "requestSubmitTime": "2019-08-19T19:23:17.904Z", + "message": "Request completed", + "provisioningState": "Success", + "value": [ + { + "limit": 200, + "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", + "name": { + "value": "standardHCSFamily", + "localizedValue": "Standard HCS Family vCPUs" + }, + "message": "Request completed", + "provisioningState": "Success" + }, + { + "limit": 50, + "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", + "name": { + "value": "standardNCPromoFamily", + "localizedValue": "Standard NC Promo Family vCPUs" + }, + "message": "Request completed", + "provisioningState": "Success" + } + ] + } + }, + { + "id": "7E73A85C-83BB-4DE4-903F-076F1A2B91D6", + "type": "Microsoft.Capacity/serviceLimitsRequests", + "name": "00000000-0000-0000-0000-000000000000/7E73A85C-83BB-4DE4-903F-076F1A2B91D6", + "properties": { + "requestSubmitTime": "2019-08-18T19:23:17.904Z", + "message": "Request completed", + "provisioningState": "Succeeded", + "value": [ + { + "limit": 100, + "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", + "name": { + "value": "standardNVSv3Family", + "localizedValue": "Standard NVSv3 Family vCPUs" + }, + "message": "Request completed", + "provisioningState": "Success" + }, + { + "limit": 150, + "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", + "name": { + "value": "standardNVPromoFamily", + "localizedValue": "Standard NV Promo Family vCPUs" + }, + "message": "Request completed", + "provisioningState": "Succeeded" + } + ] + } + }, + { + "id": "5E460077-AB53-4802-8997-A6940E0B7649", + "type": "Microsoft.Capacity/serviceLimitsRequests", + "name": "00000000-0000-0000-0000-000000000000/5E460077-AB53-4802-8997-A6940E0B7649", + "properties": { + "requestSubmitTime": "2019-08-17T19:23:17.904Z", + "message": "Request completed", + "provisioningState": "Succeeded", + "value": [ + { + "limit": 70, + "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", + "name": { + "value": "standardNCPromoFamily", + "localizedValue": "Standard NC Promo Family vCPUs" + }, + "message": "Request completed", + "provisioningState": "Succeeded" + }, + { + "limit": 52, + "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", + "name": { + "value": "standardHBSFamily", + "localizedValue": "Standard HBS Family vCPUs" + }, + "message": "Request completed", + "provisioningState": "Succeeded" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/patchComputeQuotaRequest.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/patchComputeQuotaRequest.json new file mode 100644 index 000000000000..b884e097975a --- /dev/null +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/patchComputeQuotaRequest.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "providerId": "Microsoft.Compute", + "location": "eastus", + "resourceName": "standardFSv2Family", + "api-version": "2020-10-25", + "createQuotaRequest": { + "properties": { + "limit": 200, + "unit": "Count", + "name": { + "value": "standardFSv2Family" + } + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "type": "Microsoft.Capacity/ServiceLimits", + "properties": { + "provisioningState": "InProgress", + "message": "" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "type": "Microsoft.Capacity/serviceLimits", + "properties": { + "provisioningState": "Succeeded", + "message": "", + "properties": { + "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/stable/2020-10-25/examples/putComputeOneSkuQuotaRequest.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putComputeOneSkuQuotaRequest.json new file mode 100644 index 000000000000..7184e2231b8a --- /dev/null +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putComputeOneSkuQuotaRequest.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "providerId": "Microsoft.Compute", + "location": "eastus", + "resourceName": "standardFSv2Family", + "api-version": "2020-10-25", + "createQuotaRequest": { + "properties": { + "limit": 200, + "unit": "Count", + "name": { + "value": "standardFSv2Family" + } + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "type": "Microsoft.Capacity/ServiceLimits", + "properties": { + "provisioningState": "InProgress", + "message": "" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "type": "Microsoft.Capacity/serviceLimits", + "properties": { + "provisioningState": "Succeeded", + "message": "Request succeeded", + "properties": { + "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/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestDedicated.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestDedicated.json new file mode 100644 index 000000000000..280a446a7360 --- /dev/null +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestDedicated.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "subscriptionId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "providerId": "Microsoft.MachineLearningServices", + "location": "eastus", + "resourceName": "StandardDv2Family", + "api-version": "2020-10-25", + "createQuotaRequest": { + "properties": { + "limit": 200, + "unit": "Count", + "name": { + "value": "StandardDv2Family" + }, + "resourceType": "dedicated" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.MachineLearningServices/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "type": "Microsoft.Capacity/ServiceLimits", + "properties": { + "provisioningState": "InProgress", + "message": "" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.MachineLearningServices/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "type": "Microsoft.Capacity/serviceLimits", + "properties": { + "provisioningState": "Succeeded", + "message": "Request succeeded", + "properties": { + "properties": { + "limit": 200, + "unit": "Count", + "currentValue": 160, + "name": { + "value": "StandardDv2Family", + "localizedValue": "Standard Dv2 Family Cluster Dedicated vCPUs" + }, + "resourceType": "dedicated", + "quotaPeriod": "", + "properties": {} + } + } + } + } + } + } +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestLowPriority.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestLowPriority.json new file mode 100644 index 000000000000..d4f7b2bee919 --- /dev/null +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestLowPriority.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "subscriptionId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "providerId": "Microsoft.MachineLearningServices", + "location": "eastus", + "resourceName": "TotalLowPriorityCores", + "api-version": "2020-10-25", + "createQuotaRequest": { + "properties": { + "limit": 200, + "unit": "Count", + "name": { + "value": "TotalLowPriorityCores" + }, + "resourceType": "lowPriority" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.MachineLearningServices/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "type": "Microsoft.Capacity/ServiceLimits", + "properties": { + "provisioningState": "InProgress", + "message": "" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.MachineLearningServices/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", + "type": "Microsoft.Capacity/serviceLimits", + "properties": { + "provisioningState": "Succeeded", + "message": "Request succeeded", + "properties": { + "properties": { + "limit": 200, + "unit": "Count", + "currentValue": 160, + "name": { + "value": "TotalLowPriorityCores", + "localizedValue": "Total Cluster Low Priority Regional vCPUs" + }, + "resourceType": "lowPriority", + "quotaPeriod": "", + "properties": {} + } + } + } + } + } + } +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/quota.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/quota.json new file mode 100644 index 000000000000..52f8ba2754fe --- /dev/null +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/quota.json @@ -0,0 +1,886 @@ +{ + "swagger": "2.0", + "info": { + "version": "2020-10-25", + "title": "Azure Reservation API", + "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.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits/{resourceName}": { + "get": { + "tags": [ + "QuotaInformation" + ], + "description": "Get the current quotas (service limits) and usage of a resource. You can use the response from the GET operation to submit quota update requests.", + "operationId": "Quota_Get", + "x-ms-examples": { + "Quotas_Request_ForCompute": { + "$ref": "./examples/getComputeOneSkuUsages.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ProviderIdInParameters" + }, + { + "$ref": "#/parameters/LocationIdInParameters" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ResourceNameInParameters" + } + ], + "responses": { + "200": { + "description": "OK. Returns the paginated quota information.", + "schema": { + "$ref": "#/definitions/CurrentQuotaLimitBase" + }, + "headers": { + "ETag": { + "description": "Current entity state version. It should be treated as opaque and used to make conditional HTTP requests.", + "type": "string" + } + } + }, + "default": { + "description": "Error description in the response.", + "schema": { + "$ref": "#/definitions/ExceptionResponse" + } + } + } + }, + "put": { + "tags": [ + "QuotaInformation" + ], + "description": "Create or update the quotas (service limits) of a resource to the requested value.\n Steps:\n\r 1. Make the Get request to get the quota information for specific resource.\n\r 2. To increase the quota, update the limit field in the response from Get request to new value.\n\r 3. Submit the JSON to the quota request API to update the quota.\r\n The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.", + "operationId": "Quota_CreateOrUpdate", + "x-ms-examples": { + "Quotas_Request_ForCompute": { + "$ref": "./examples/putComputeOneSkuQuotaRequest.json" + }, + "Quotas_Request_ForMachineLearningServices_DedicatedResource": { + "$ref": "./examples/putMachineLearningServicesQuotaRequestDedicated.json" + }, + "Quotas_Request_ForMachineLearningServices_LowPriorityResource": { + "$ref": "./examples/putMachineLearningServicesQuotaRequestLowPriority.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ProviderIdInParameters" + }, + { + "$ref": "#/parameters/LocationIdInParameters" + }, + { + "$ref": "#/parameters/ResourceNameInParameters" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "createQuotaRequest", + "in": "body", + "description": "Quota requests payload.", + "required": true, + "schema": { + "$ref": "#/definitions/CurrentQuotaLimitBase" + } + } + ], + "responses": { + "200": { + "description": "OK. Returns details of the quota request.", + "schema": { + "$ref": "#/definitions/QuotaRequestOneResourceSubmitResponse" + } + }, + "201": { + "description": "The request is accepted and being processed. Use the requestId parameter to check the status of the request.", + "schema": { + "$ref": "#/definitions/QuotaRequestSubmitResponse201" + } + }, + "default": { + "description": "Error description in the response.", + "schema": { + "$ref": "#/definitions/ExceptionResponse" + } + } + } + }, + "patch": { + "tags": [ + "QuotaInformation" + ], + "description": "Update the quota (service limits) of this resource to the requested value.\n\r • To get the quota information for specific resource, send a GET request.\n\r • To increase the quota, update the limit field from the GET response to a new value.\n\r • To update the quota value, submit the JSON response to the quota request API to update the quota.\r\n • To update the quota. use the PATCH operation.", + "operationId": "Quota_Update", + "x-ms-examples": { + "Quotas_Request_PatchForCompute": { + "$ref": "./examples/patchComputeQuotaRequest.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ProviderIdInParameters" + }, + { + "$ref": "#/parameters/LocationIdInParameters" + }, + { + "$ref": "#/parameters/ResourceNameInParameters" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "createQuotaRequest", + "in": "body", + "description": "Payload for the quota request.", + "required": true, + "schema": { + "$ref": "#/definitions/CurrentQuotaLimitBase" + } + } + ], + "responses": { + "200": { + "description": "OK. Returns details of the quota request.", + "schema": { + "$ref": "#/definitions/QuotaRequestOneResourceSubmitResponse" + } + }, + "201": { + "description": "The request is accepted and is being processed. Use the requestId parameter to check the status.", + "schema": { + "$ref": "#/definitions/QuotaRequestSubmitResponse201" + } + }, + "default": { + "description": "Error description in the response.", + "schema": { + "$ref": "#/definitions/ExceptionResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits": { + "get": { + "tags": [ + "QuotaInformation" + ], + "description": "Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.", + "operationId": "Quota_List", + "x-ms-examples": { + "Quotas_listUsagesForCompute": { + "$ref": "./examples/getComputeUsages.json" + }, + "Quotas_listUsagesMachineLearningServices": { + "$ref": "./examples/getMachineLearningServicesUsages.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ProviderIdInParameters" + }, + { + "$ref": "#/parameters/LocationIdInParameters" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. Returns the paginated quota information.", + "schema": { + "$ref": "#/definitions/QuotaLimits" + }, + "headers": { + "ETag": { + "description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.", + "type": "string" + } + } + }, + "default": { + "description": "Error description in the response.", + "schema": { + "$ref": "#/definitions/ExceptionResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimitsRequests/{id}": { + "get": { + "tags": [ + "QuotaRequests" + ], + "x-ms-examples": { + "QuotaRequestStatus": { + "$ref": "./examples/getQuotaRequestStatusById.json" + }, + "QuotaRequestInProgress": { + "$ref": "./examples/getQuotaRequestStatusInProgress.json" + }, + "QuotaRequestFailed": { + "$ref": "./examples/getQuotaRequestStatusFailed.json" + } + }, + "description": "For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for service limits returns a response with the requestId parameter.", + "operationId": "QuotaRequestStatus_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ProviderIdInParameters" + }, + { + "$ref": "#/parameters/LocationIdInParameters" + }, + { + "$ref": "#/parameters/RequestIdInParameters" + } + ], + "responses": { + "200": { + "description": "Ok. Returns the status of the quota request.", + "schema": { + "$ref": "#/definitions/QuotaRequestDetails" + } + }, + "default": { + "description": "Error description in the response.", + "schema": { + "$ref": "#/definitions/ExceptionResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimitsRequests": { + "get": { + "tags": [ + "QuotaRequests" + ], + "x-ms-examples": { + "QuotaRequestHistory": { + "$ref": "./examples/getQuotaRequestsHistory.json" + } + }, + "description": "For the specified Azure region (location), subscription, and resource provider, get the history of the quota requests for the past year. To select specific quota requests, use the oData filter.", + "operationId": "QuotaRequestStatus_List", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ProviderIdInParameters" + }, + { + "$ref": "#/parameters/LocationIdInParameters" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "| Field | Supported operators \n|---------------------|------------------------\n\r\n|requestSubmitTime | ge, le, eq, gt, lt\n" + }, + { + "$ref": "#/parameters/TopQueryParameter" + }, + { + "$ref": "#/parameters/SkipTokenParameter" + } + ], + "responses": { + "200": { + "description": "Ok. Returns details and status of the quota request.", + "schema": { + "$ref": "#/definitions/QuotaRequestDetailsList" + } + }, + "default": { + "description": "Error description in the response.", + "schema": { + "$ref": "#/definitions/ExceptionResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "CurrentQuotaLimit": { + "type": "object", + "description": "Current quota limits.", + "x-ms-azure-resource": true, + "properties": { + "quotaInformation": { + "description": "Quota details.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/CurrentQuotaLimitBase" + }, + "properties": { + "description": "Additional properties for the quota status for the resource.", + "$ref": "#/definitions/QuotaRequestStatusDetails", + "x-ms-client-flatten": true + } + } + }, + "CurrentQuotaLimitBase": { + "type": "object", + "description": "Quota properties.", + "x-ms-azure-resource": true, + "properties": { + "properties": { + "description": "Quota properties for the resource.", + "$ref": "#/definitions/QuotaProperties" + } + } + }, + "QuotaProperties": { + "description": "Quota properties for the resource.", + "type": "object", + "properties": { + "limit": { + "description": "Quota properties.", + "type": "integer" + }, + "currentValue": { + "description": "Current usage value for the resource.", + "type": "integer", + "readOnly": true + }, + "unit": { + "description": " The limit units, such as **count** and **bytes**. Use the unit field provided in the response of the GET quota operation.", + "type": "string", + "readOnly": false + }, + "name": { + "description": "Name of the resource provide by the resource provider. Use this property for quotaRequests resource operations.", + "$ref": "#/definitions/ResourceName" + }, + "resourceType": { + "description": "The name of the resource type.", + "$ref": "#/definitions/ResourceTypesName", + "readOnly": false + }, + "quotaPeriod": { + "description": "The time period over which the quota usage values are summarized. For example, P1D (per one day), PT1M (per one minute), and PT1S (per one second). This parameter is optional because, for some resources such as compute, the time period is irrelevant.", + "type": "string", + "readOnly": true + }, + "properties": { + "description": "Additional properties for the specified resource provider.", + "type": "object" + } + } + }, + "ResourceName": { + "description": "Resource name provided by the resource provider. Use this property for quotaRequest parameter.", + "properties": { + "value": { + "description": "Resource name.", + "type": "string", + "readOnly": false + }, + "localizedValue": { + "description": "Resource display localized name.", + "type": "string", + "readOnly": true + } + } + }, + "QuotaLimits": { + "description": "Quota limits.", + "properties": { + "value": { + "description": "List of quotas (service limits).", + "type": "array", + "items": { + "$ref": "#/definitions/CurrentQuotaLimitBase" + } + }, + "nextLink": { + "description": "The URI for fetching the next page of quotas (service limits). When no more pages exist, the value is null.", + "type": "string" + } + } + }, + "QuotaLimitsResponse": { + "description": "Quotas (service limits) in the request response.", + "properties": { + "value": { + "description": "List of quotas with the quota request status.", + "type": "array", + "items": { + "$ref": "#/definitions/CurrentQuotaLimit" + } + }, + "nextLink": { + "description": "The URI for fetching the next page of quota limits. When no more pages exist, the value is null.", + "type": "string" + } + } + }, + "CreateGenericQuotaRequestParameters": { + "type": "object", + "description": "Quota change requests information.", + "properties": { + "value": { + "description": "Quota change requests.", + "type": "array", + "items": { + "$ref": "#/definitions/CurrentQuotaLimitBase" + } + } + } + }, + "SubRequest": { + "type": "object", + "description": "The sub-request submitted with the quota request.", + "properties": { + "limit": { + "description": "Quota (resource limit).", + "type": "integer", + "readOnly": true + }, + "name": { + "description": "The resource name.", + "$ref": "#/definitions/ResourceName" + }, + "resourceType": { + "description": "Resource type for which the quota check was made.", + "type": "string", + "readOnly": true + }, + "unit": { + "description": " The limit units, such as **count** and **bytes**. Use the unit field provided in the response of the GET quota operation.", + "type": "string" + }, + "provisioningState": { + "description": "The quota request status.", + "$ref": "#/definitions/QuotaRequestState" + }, + "message": { + "description": "User-friendly status message.", + "type": "string", + "readOnly": true + }, + "subRequestId": { + "description": "Sub request ID for individual request.", + "type": "string", + "readOnly": true + } + } + }, + "QuotaRequestOneResourceSubmitResponse": { + "description": "Response for the quota submission request.", + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "The quota request ID.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The name of the quota request.", + "type": "string", + "readOnly": true + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Type of resource. \"Microsoft.Capacity/ServiceLimits\"" + }, + "properties": { + "description": "The details for quota request.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/quotaRequestOneResourceProperties" + } + } + }, + "QuotaRequestSubmitResponse": { + "description": "Response for the quota submission request.", + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "The quota request ID.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The name of the quota request.", + "type": "string", + "readOnly": true + }, + "properties": { + "description": "The quota request details.", + "type": "object", + "$ref": "#/definitions/QuotaRequestProperties" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Type of resource. \"Microsoft.Capacity/serviceLimits\"" + } + } + }, + "QuotaRequestSubmitResponse201": { + "description": "Response with request ID that the quota request was accepted.", + "type": "object", + "properties": { + "id": { + "description": "The quota request ID. Use the requestId parameter to check the request status.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Operation ID", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Resource type", + "type": "string", + "readOnly": true + }, + "properties": { + "description": "Quota request status.", + "$ref": "#/definitions/QuotaRequestStatusDetails", + "x-ms-client-flatten": true + } + } + }, + "QuotaRequestStatusDetails": { + "description": "Quota request status details.", + "type": "object", + "properties": { + "provisioningState": { + "description": "The details of the quota request status.", + "$ref": "#/definitions/QuotaRequestState", + "readOnly": true + }, + "message": { + "description": "A user friendly message.", + "type": "string", + "readOnly": true + } + } + }, + "QuotaRequestDetails": { + "type": "object", + "description": "Quota request details.", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "Quota request ID.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Quota request name.", + "type": "string", + "readOnly": true + }, + "properties": { + "description": "Quota request details.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/QuotaRequestProperties" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource type" + } + } + }, + "QuotaRequestDetailsList": { + "description": "Quota request details.", + "type": "object", + "properties": { + "value": { + "description": "The quota requests.", + "type": "array", + "items": { + "$ref": "#/definitions/QuotaRequestDetails" + } + }, + "nextLink": { + "description": "The URI to fetch the next page of quota limits. When there are no more pages, this is null.", + "type": "string" + } + } + }, + "QuotaRequestProperties": { + "type": "object", + "description": "The details of quota request.", + "properties": { + "provisioningState": { + "description": "The quota request status.", + "$ref": "#/definitions/QuotaRequestState" + }, + "message": { + "description": "User friendly status message.", + "type": "string", + "readOnly": true + }, + "requestSubmitTime": { + "description": "The time when the quota request was submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.", + "type": "string", + "readOnly": true, + "format": "date-time" + }, + "value": { + "description": "The quotaRequests.", + "type": "array", + "items": { + "$ref": "#/definitions/SubRequest" + } + } + } + }, + "quotaRequestOneResourceProperties": { + "type": "object", + "description": "The details of quota request.", + "properties": { + "provisioningState": { + "description": "The quota request status.", + "readOnly": true, + "$ref": "#/definitions/QuotaRequestState" + }, + "message": { + "description": "User friendly status message.", + "type": "string", + "readOnly": true + }, + "requestSubmitTime": { + "description": "The time when the quota request was submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.", + "type": "string", + "readOnly": true, + "format": "date-time" + }, + "properties": { + "description": "The quota request addition properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/CurrentQuotaLimitBase" + } + } + }, + "QuotaRequestState": { + "description": "The quota request status.", + "enum": [ + "Accepted", + "Invalid", + "Succeeded", + "Failed", + "InProgress" + ], + "x-ms-enum": { + "name": "QuotaRequestState", + "modelAsString": true + } + }, + "ResourceTypesName": { + "description": "The resource types.", + "enum": [ + "standard", + "dedicated", + "lowPriority", + "shared", + "serviceSpecific" + ], + "x-ms-enum": { + "name": "ResourceType", + "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 text." + }, + "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." + } + } + } + }, + "parameters": { + "SubscriptionIdInParameters": { + "name": "subscriptionId", + "x-ms-parameter-location": "method", + "in": "path", + "required": true, + "type": "string", + "description": "Azure subscription ID." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "API version." + }, + "LocationIdInParameters": { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "Azure region.", + "x-ms-parameter-location": "method" + }, + "ProviderIdInParameters": { + "name": "providerId", + "in": "path", + "required": true, + "type": "string", + "description": "Azure resource provider ID.", + "x-ms-parameter-location": "method" + }, + "ResourceNameInParameters": { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices", + "x-ms-parameter-location": "method" + }, + "RequestIdInParameters": { + "name": "id", + "in": "path", + "required": true, + "type": "string", + "description": "Quota Request ID.", + "x-ms-parameter-location": "method" + }, + "TopQueryParameter": { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "Number of records to return.", + "minimum": 1, + "x-ms-parameter-location": "method" + }, + "SkipTokenParameter": { + "name": "$skiptoken", + "in": "query", + "type": "string", + "required": false, + "description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element includes a skiptoken parameter that specifies a starting point to use for subsequent calls.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/reservations/resource-manager/readme.azureresourceschema.md b/specification/reservations/resource-manager/readme.azureresourceschema.md index 8bdee0743c2a..de32653a4299 100644 --- a/specification/reservations/resource-manager/readme.azureresourceschema.md +++ b/specification/reservations/resource-manager/readme.azureresourceschema.md @@ -6,6 +6,7 @@ These settings apply only when `--azureresourceschema` is specified on the comma ``` yaml $(azureresourceschema) && $(multiapi) batch: + - tag: schema-capacity-2020-10-25 - tag: schema-capacity-2019-07-19 - tag: schema-capacity-2019-04-01 - tag: schema-capacity-2018-06-01 @@ -15,6 +16,17 @@ batch: Please also specify `--azureresourceschema-folder=`. +### Tag: schema-capacity-2020-10-25 and azureresourceschema + +``` yaml $(tag) == 'schema-capacity-2020-10-25' && $(azureresourceschema) +output-folder: $(azureresourceschema-folder)/schemas + +# all the input files in this apiVersion +input-file: + - Microsoft.Capacity/stable/2020-10-25/quota.json + +``` + ### Tag: schema-capacity-2019-07-19 and azureresourceschema ``` yaml $(tag) == 'schema-capacity-2019-07-19' && $(azureresourceschema) diff --git a/specification/reservations/resource-manager/readme.go.md b/specification/reservations/resource-manager/readme.go.md index 57640bc8c536..1c311700f507 100644 --- a/specification/reservations/resource-manager/readme.go.md +++ b/specification/reservations/resource-manager/readme.go.md @@ -13,12 +13,22 @@ go: ``` yaml $(go) && $(multiapi) batch: + - tag: package-2020-10-25 - tag: package-preview-2019-07-19 - tag: package-preview-2019-04 - tag: package-2018-06 - tag: package-2017-11 ``` +### Tag: package-2020-10-25 and go + +These settings apply only when `--tag=package-2020-10-25 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag)=='package-2020-10-25' && $(go) +output-folder: $(go-sdk-folder)/services/$(namespace)/mgmt/2020-10-25/$(namespace) +``` + ### Tag: package-preview-2019-07-19 and go These settings apply only when `--tag=package-preview-2019-07-19 --go` is specified on the command line. diff --git a/specification/reservations/resource-manager/readme.md b/specification/reservations/resource-manager/readme.md index cbbdc7ea762c..68a384aa9861 100644 --- a/specification/reservations/resource-manager/readme.md +++ b/specification/reservations/resource-manager/readme.md @@ -26,7 +26,17 @@ These are the global settings for the Reservations API. ``` yaml openapi-type: arm -tag: package-2020-11-preview +tag: package-2020-10-25 +``` + +### Tag: package-2020-10-25 + +These settings apply only when `--tag=package-2020-10-25` is specified on the command line. + +``` yaml $(tag) == 'package-2020-10-25' +input-file: + - Microsoft.Capacity/stable/2017-11-01/reservations.json + - Microsoft.Capacity/stable/2020-10-25/quota.json ``` ### Tag: package-2020-11-preview From 8f96e78f1f5adefa0ee915533a2877eb3fc93d16 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 10 Dec 2020 11:14:44 -0800 Subject: [PATCH 2/4] Adding preview version to stable dir as base files. --- .../examples/getComputeOneSkuUsages.json | 2 +- .../2020-10-25/examples/getComputeUsages.json | 2 +- .../getMachineLearningServicesUsages.json | 2 +- .../examples/getQuotaRequestStatusById.json | 2 +- .../examples/getQuotaRequestStatusFailed.json | 2 +- .../getQuotaRequestStatusInProgress.json | 10 + .../examples/getQuotaRequestsHistory.json | 4 +- .../examples/patchComputeQuotaRequest.json | 2 +- .../putComputeOneSkuQuotaRequest.json | 2 +- ...LearningServicesQuotaRequestDedicated.json | 2 +- ...arningServicesQuotaRequestLowPriority.json | 2 +- .../stable/2020-10-25/quota.json | 437 +++++++++++++++--- 12 files changed, 381 insertions(+), 88 deletions(-) diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeOneSkuUsages.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeOneSkuUsages.json index ebff7547f730..f5999b070097 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeOneSkuUsages.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeOneSkuUsages.json @@ -4,7 +4,7 @@ "providerId": "Microsoft.Compute", "location": "eastus", "resourceName": "standardNDSFamily", - "api-version": "2020-10-25" + "api-version": "2019-07-19-preview" }, "responses": { "200": { diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeUsages.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeUsages.json index 390a8831fafb..e973260d3e20 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeUsages.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeUsages.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "providerId": "Microsoft.Compute", "location": "eastus", - "api-version": "2020-10-25" + "api-version": "2019-07-19-preview" }, "responses": { "200": { diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMachineLearningServicesUsages.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMachineLearningServicesUsages.json index 690c516420bc..fcdb3c1e7182 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMachineLearningServicesUsages.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMachineLearningServicesUsages.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "providerId": "Microsoft.MachineLearningServices", "location": "eastus", - "api-version": "2020-10-25" + "api-version": "2019-07-19-preview" }, "responses": { "200": { diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.json index fec8c9c63482..3d4ff3c2aaa6 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.json @@ -4,7 +4,7 @@ "providerId": "Microsoft.Compute", "location": "eastus", "id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", - "api-version": "2020-10-25" + "api-version": "2019-07-19-preview" }, "responses": { "200": { diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json index 8708ad729fc8..bd23f32aba75 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json @@ -4,7 +4,7 @@ "providerId": "Microsoft.Compute", "location": "eastus", "id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", - "api-version": "2020-10-25" + "api-version": "2019-07-19-preview" }, "responses": { "200": { diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json index f9775dc4da8c..b876be1afb02 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json @@ -17,6 +17,16 @@ "message": "Request processing", "provisioningState": "InProgress", "value": [ + { + "limit": 200, + "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", + "name": { + "value": "standardHCSFamily", + "localizedValue": "Standard HCS Family vCPUs" + }, + "message": "Request completed", + "provisioningState": "Succeeded" + }, { "limit": 50, "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestsHistory.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestsHistory.json index 6453be3eb4d4..b75b60f0d9b6 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestsHistory.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestsHistory.json @@ -3,12 +3,12 @@ "subscriptionId": "3f75fdf7-977e-44ad-990d-99f14f0f299f", "providerId": "Microsoft.Compute", "location": "eastus", - "api-version": "2020-10-25" + "api-version": "2019-07-19-preview" }, "responses": { "200": { "body": { - "nextLink": "https://management.azure.com/subscriptions/3f75fdf7-977e-44ad-990d-99f14f0f299f/providers/microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests?api-version=2020-10-25&$top=3", + "nextLink": "https://management.azure.com/subscriptions/3f75fdf7-977e-44ad-990d-99f14f0f299f/providers/microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests?api-version=2019-07-19-preview&$top=3", "value": [ { "id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/patchComputeQuotaRequest.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/patchComputeQuotaRequest.json index b884e097975a..e119473eca89 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/patchComputeQuotaRequest.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/patchComputeQuotaRequest.json @@ -4,7 +4,7 @@ "providerId": "Microsoft.Compute", "location": "eastus", "resourceName": "standardFSv2Family", - "api-version": "2020-10-25", + "api-version": "2019-07-19-preview", "createQuotaRequest": { "properties": { "limit": 200, diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putComputeOneSkuQuotaRequest.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putComputeOneSkuQuotaRequest.json index 7184e2231b8a..e8328d5f6e28 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putComputeOneSkuQuotaRequest.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putComputeOneSkuQuotaRequest.json @@ -4,7 +4,7 @@ "providerId": "Microsoft.Compute", "location": "eastus", "resourceName": "standardFSv2Family", - "api-version": "2020-10-25", + "api-version": "2019-07-19-preview", "createQuotaRequest": { "properties": { "limit": 200, diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestDedicated.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestDedicated.json index 280a446a7360..43fdf27615f5 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestDedicated.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestDedicated.json @@ -4,7 +4,7 @@ "providerId": "Microsoft.MachineLearningServices", "location": "eastus", "resourceName": "StandardDv2Family", - "api-version": "2020-10-25", + "api-version": "2019-07-19-preview", "createQuotaRequest": { "properties": { "limit": 200, diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestLowPriority.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestLowPriority.json index d4f7b2bee919..8893da3a15ae 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestLowPriority.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestLowPriority.json @@ -4,7 +4,7 @@ "providerId": "Microsoft.MachineLearningServices", "location": "eastus", "resourceName": "TotalLowPriorityCores", - "api-version": "2020-10-25", + "api-version": "2019-07-19-preview", "createQuotaRequest": { "properties": { "limit": 200, diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/quota.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/quota.json index 52f8ba2754fe..a2f2557e130f 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/quota.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/quota.json @@ -1,9 +1,9 @@ { "swagger": "2.0", "info": { - "version": "2020-10-25", + "version": "2019-07-19-preview", "title": "Azure Reservation API", - "description": "Microsoft Azure Quota Resource Provider" + "description": "Microsoft Azure Quota Resource Provider." }, "host": "management.azure.com", "schemes": [ @@ -39,7 +39,7 @@ "tags": [ "QuotaInformation" ], - "description": "Get the current quotas (service limits) and usage of a resource. You can use the response from the GET operation to submit quota update requests.", + "description": "Gets the current service limits (quotas) and usage of a resource. The response from Get API can be leveraged to submit quota update requests.", "operationId": "Quota_Get", "x-ms-examples": { "Quotas_Request_ForCompute": { @@ -65,19 +65,19 @@ ], "responses": { "200": { - "description": "OK. Returns the paginated quota information.", + "description": "OK. Quota information will be returned as response with pagination.", "schema": { "$ref": "#/definitions/CurrentQuotaLimitBase" }, "headers": { "ETag": { - "description": "Current entity state version. It should be treated as opaque and used to make conditional HTTP requests.", + "description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.", "type": "string" } } }, "default": { - "description": "Error description in the response.", + "description": "Error response describing why the operation failed.", "schema": { "$ref": "#/definitions/ExceptionResponse" } @@ -88,7 +88,7 @@ "tags": [ "QuotaInformation" ], - "description": "Create or update the quotas (service limits) of a resource to the requested value.\n Steps:\n\r 1. Make the Get request to get the quota information for specific resource.\n\r 2. To increase the quota, update the limit field in the response from Get request to new value.\n\r 3. Submit the JSON to the quota request API to update the quota.\r\n The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.", + "description": "Create or update the service limits (quota) of a resource to requested value.\n Steps:\n\r 1. Make the Get request to get the quota information for specific resource.\n\r 2. To increase the quota, update the limit field in the response from Get request to new value.\n\r 3. Submit the JSON to the quota request API to update the quota.\r\n The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.", "operationId": "Quota_CreateOrUpdate", "x-ms-examples": { "Quotas_Request_ForCompute": { @@ -133,19 +133,19 @@ ], "responses": { "200": { - "description": "OK. Returns details of the quota request.", + "description": "OK. Returns Quota requests details.", "schema": { "$ref": "#/definitions/QuotaRequestOneResourceSubmitResponse" } }, "201": { - "description": "The request is accepted and being processed. Use the requestId parameter to check the status of the request.", + "description": "The request is accepted and is being processed. Please use requestId to check the status.", "schema": { "$ref": "#/definitions/QuotaRequestSubmitResponse201" } }, "default": { - "description": "Error description in the response.", + "description": "Error response describing why the operation failed.", "schema": { "$ref": "#/definitions/ExceptionResponse" } @@ -156,7 +156,7 @@ "tags": [ "QuotaInformation" ], - "description": "Update the quota (service limits) of this resource to the requested value.\n\r • To get the quota information for specific resource, send a GET request.\n\r • To increase the quota, update the limit field from the GET response to a new value.\n\r • To update the quota value, submit the JSON response to the quota request API to update the quota.\r\n • To update the quota. use the PATCH operation.", + "description": "Update the service limits (quota) of a resource to requested value.\n Steps:\n\r 1. Make the Get request to get the quota information for specific resource.\n\r 2. To increase the quota, update the limit field in the response from Get request to new value.\n\r 3. Submit the JSON to the quota request API to update the quota.\r\n The Update quota request may be constructed as follows. The PATCH operation can be used to update the quota.", "operationId": "Quota_Update", "x-ms-examples": { "Quotas_Request_PatchForCompute": { @@ -186,7 +186,7 @@ { "name": "createQuotaRequest", "in": "body", - "description": "Payload for the quota request.", + "description": "Quota requests payload.", "required": true, "schema": { "$ref": "#/definitions/CurrentQuotaLimitBase" @@ -195,19 +195,19 @@ ], "responses": { "200": { - "description": "OK. Returns details of the quota request.", + "description": "OK. Returns Quota requests details.", "schema": { "$ref": "#/definitions/QuotaRequestOneResourceSubmitResponse" } }, "201": { - "description": "The request is accepted and is being processed. Use the requestId parameter to check the status.", + "description": "The request is accepted and is being processed. Use requestId to check the status.", "schema": { "$ref": "#/definitions/QuotaRequestSubmitResponse201" } }, "default": { - "description": "Error description in the response.", + "description": "Error response describing why the operation failed.", "schema": { "$ref": "#/definitions/ExceptionResponse" } @@ -220,7 +220,7 @@ "tags": [ "QuotaInformation" ], - "description": "Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.", + "description": "Get a list of current service limits (quota) and usages of all the resources. The response from List API can be leveraged to submit quota update requests.", "operationId": "Quota_List", "x-ms-examples": { "Quotas_listUsagesForCompute": { @@ -228,6 +228,9 @@ }, "Quotas_listUsagesMachineLearningServices": { "$ref": "./examples/getMachineLearningServicesUsages.json" + }, + "Quotas_listUsagesForMsSql": { + "$ref": "./examples/getMsSqlUsages.json" } }, "parameters": [ @@ -246,7 +249,7 @@ ], "responses": { "200": { - "description": "OK. Returns the paginated quota information.", + "description": "OK. Quota information will be returned as response with pagination.", "schema": { "$ref": "#/definitions/QuotaLimits" }, @@ -258,7 +261,7 @@ } }, "default": { - "description": "Error description in the response.", + "description": "Error response describing why the operation failed.", "schema": { "$ref": "#/definitions/ExceptionResponse" } @@ -285,7 +288,7 @@ "$ref": "./examples/getQuotaRequestStatusFailed.json" } }, - "description": "For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for service limits returns a response with the requestId parameter.", + "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": "QuotaRequestStatus_Get", "parameters": [ { @@ -306,13 +309,13 @@ ], "responses": { "200": { - "description": "Ok. Returns the status of the quota request.", + "description": "Ok. Returning the status for the quota request .", "schema": { "$ref": "#/definitions/QuotaRequestDetails" } }, "default": { - "description": "Error description in the response.", + "description": "Error response describing why the operation failed.", "schema": { "$ref": "#/definitions/ExceptionResponse" } @@ -330,7 +333,7 @@ "$ref": "./examples/getQuotaRequestsHistory.json" } }, - "description": "For the specified Azure region (location), subscription, and resource provider, get the history of the quota requests for the past year. To select specific quota requests, use the oData filter.", + "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": "QuotaRequestStatus_List", "parameters": [ { @@ -361,13 +364,13 @@ ], "responses": { "200": { - "description": "Ok. Returns details and status of the quota request.", + "description": "Ok. Sending Quota request status and details", "schema": { "$ref": "#/definitions/QuotaRequestDetailsList" } }, "default": { - "description": "Error description in the response.", + "description": "Error response describing why the operation failed.", "schema": { "$ref": "#/definitions/ExceptionResponse" } @@ -377,21 +380,103 @@ "nextLinkName": "nextLink" } } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/autoQuotaIncrease": { + "get": { + "tags": [ + "AutoQuotaIncrease" + ], + "description": "Gets the Auto Quota Increase enrollment details for the specified subscription.", + "operationId": "AutoQuotaIncrease_GetProperties", + "x-ms-examples": { + "GetAutoQuotaIncreaseSettings": { + "$ref": "./examples/getAutoQuotaIncreaseStatus.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Ok. Returning the properties of auto quota increase .", + "schema": { + "$ref": "#/definitions/AutoQuotaIncreaseDetail" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ExceptionResponse" + } + } + } + }, + "put": { + "tags": [ + "AutoQuotaIncrease" + ], + "description": "Sets the Auto Quota Increase enrollment properties for the specified subscription.", + "operationId": "AutoQuotaIncrease_Create", + "x-ms-examples": { + "SetAutoQuotaIncreaseSettings": { + "$ref": "./examples/putAutoQuotaIncrease.json" + }, + "TurnOffAutoQuotaIncrease": { + "$ref": "./examples/putAutoQuotaIncreaseTurnOff.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdInParameters" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "autoQuotaIncreaseRequest", + "in": "body", + "description": "Auto Quota increase request payload.", + "required": true, + "schema": { + "$ref": "#/definitions/AutoQuotaIncreaseDetail" + } + } + ], + "responses": { + "200": { + "description": "Ok. Returning the updated status of auto quota increase request.", + "schema": { + "$ref": "#/definitions/AutoQuotaIncreaseDetail" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ExceptionResponse" + } + } + } + } } }, "definitions": { "CurrentQuotaLimit": { "type": "object", - "description": "Current quota limits.", + "description": "Quota limits.", "x-ms-azure-resource": true, "properties": { "quotaInformation": { - "description": "Quota details.", + "description": "Quota information detail.", "x-ms-client-flatten": true, "$ref": "#/definitions/CurrentQuotaLimitBase" }, "properties": { - "description": "Additional properties for the quota status for the resource.", + "description": "Addition properties for the quota request status for the resource.", "$ref": "#/definitions/QuotaRequestStatusDetails", "x-ms-client-flatten": true } @@ -399,7 +484,7 @@ }, "CurrentQuotaLimitBase": { "type": "object", - "description": "Quota properties.", + "description": "Quota limits.", "x-ms-azure-resource": true, "properties": { "properties": { @@ -413,41 +498,41 @@ "type": "object", "properties": { "limit": { - "description": "Quota properties.", + "description": "The quota limit.", "type": "integer" }, "currentValue": { - "description": "Current usage value for the resource.", + "description": "The current resource usages information.", "type": "integer", "readOnly": true }, "unit": { - "description": " The limit units, such as **count** and **bytes**. Use the unit field provided in the response of the GET quota operation.", + "description": " The units of the limit, such as - Count, Bytes, etc. Use the unit field provided in the Get quota response.", "type": "string", "readOnly": false }, "name": { - "description": "Name of the resource provide by the resource provider. Use this property for quotaRequests resource operations.", + "description": "Name of the resource provide by the resource Provider. Please use this name property for quotaRequests.", "$ref": "#/definitions/ResourceName" }, "resourceType": { - "description": "The name of the resource type.", + "description": "The Resource Type Name.", "$ref": "#/definitions/ResourceTypesName", "readOnly": false }, "quotaPeriod": { - "description": "The time period over which the quota usage values are summarized. For example, P1D (per one day), PT1M (per one minute), and PT1S (per one second). This parameter is optional because, for some resources such as compute, the time period is irrelevant.", + "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 }, "properties": { - "description": "Additional properties for the specified resource provider.", + "description": "Additional properties for the specific resource provider.", "type": "object" } } }, "ResourceName": { - "description": "Resource name provided by the resource provider. Use this property for quotaRequest parameter.", + "description": "Name of the resource provide by the resource Provider. Please use this name property for quotaRequests.", "properties": { "value": { "description": "Resource name.", @@ -455,7 +540,7 @@ "readOnly": false }, "localizedValue": { - "description": "Resource display localized name.", + "description": "Resource display name.", "type": "string", "readOnly": true } @@ -465,30 +550,30 @@ "description": "Quota limits.", "properties": { "value": { - "description": "List of quotas (service limits).", + "description": "List of Quota limits.", "type": "array", "items": { "$ref": "#/definitions/CurrentQuotaLimitBase" } }, "nextLink": { - "description": "The URI for fetching the next page of quotas (service limits). When no more pages exist, the value is null.", + "description": "The uri to fetch the next page of quota limits. When there are no more pages, this is null.", "type": "string" } } }, "QuotaLimitsResponse": { - "description": "Quotas (service limits) in the request response.", + "description": "Quota limits request response.", "properties": { "value": { - "description": "List of quotas with the quota request status.", + "description": "List of Quota limits with the quota request status.", "type": "array", "items": { "$ref": "#/definitions/CurrentQuotaLimit" } }, "nextLink": { - "description": "The URI for fetching the next page of quota limits. When no more pages exist, the value is null.", + "description": "The uri to fetch the next page of quota limits. When there are no more pages, this is null.", "type": "string" } } @@ -511,12 +596,12 @@ "description": "The sub-request submitted with the quota request.", "properties": { "limit": { - "description": "Quota (resource limit).", + "description": "The Resource limit.", "type": "integer", "readOnly": true }, "name": { - "description": "The resource name.", + "description": "The Resource name.", "$ref": "#/definitions/ResourceName" }, "resourceType": { @@ -525,7 +610,7 @@ "readOnly": true }, "unit": { - "description": " The limit units, such as **count** and **bytes**. Use the unit field provided in the response of the GET quota operation.", + "description": " The units of the limit, such as - Count, Bytes, etc. Use the unit field provided in the Get quota response.", "type": "string" }, "provisioningState": { @@ -533,24 +618,24 @@ "$ref": "#/definitions/QuotaRequestState" }, "message": { - "description": "User-friendly status message.", + "description": "User friendly status message.", "type": "string", "readOnly": true }, "subRequestId": { - "description": "Sub request ID for individual request.", + "description": "Sub request id for individual request.", "type": "string", "readOnly": true } } }, "QuotaRequestOneResourceSubmitResponse": { - "description": "Response for the quota submission request.", + "description": "Quota submit request response", "type": "object", "x-ms-azure-resource": true, "properties": { "id": { - "description": "The quota request ID.", + "description": "The quota request Id.", "type": "string", "readOnly": true }, @@ -565,19 +650,19 @@ "description": "Type of resource. \"Microsoft.Capacity/ServiceLimits\"" }, "properties": { - "description": "The details for quota request.", + "description": "The quota request details.", "x-ms-client-flatten": true, "$ref": "#/definitions/quotaRequestOneResourceProperties" } } }, "QuotaRequestSubmitResponse": { - "description": "Response for the quota submission request.", + "description": "Quota submit request response", "type": "object", "x-ms-azure-resource": true, "properties": { "id": { - "description": "The quota request ID.", + "description": "The quota request Id.", "type": "string", "readOnly": true }, @@ -599,37 +684,37 @@ } }, "QuotaRequestSubmitResponse201": { - "description": "Response with request ID that the quota request was accepted.", + "description": "The quota request submit response with request id.", "type": "object", "properties": { "id": { - "description": "The quota request ID. Use the requestId parameter to check the request status.", + "description": "The quota request id. Please use the requestId to check the request status.", "type": "string", "readOnly": true }, "name": { - "description": "Operation ID", + "description": "The operation Id", "type": "string", "readOnly": true }, "type": { - "description": "Resource type", + "description": "The resource type", "type": "string", "readOnly": true }, "properties": { - "description": "Quota request status.", + "description": "The quota request status.", "$ref": "#/definitions/QuotaRequestStatusDetails", "x-ms-client-flatten": true } } }, "QuotaRequestStatusDetails": { - "description": "Quota request status details.", + "description": "The quota request status details.", "type": "object", "properties": { "provisioningState": { - "description": "The details of the quota request status.", + "description": "The quota request status.", "$ref": "#/definitions/QuotaRequestState", "readOnly": true }, @@ -642,44 +727,44 @@ }, "QuotaRequestDetails": { "type": "object", - "description": "Quota request details.", + "description": "The details of the quota Request.", "x-ms-azure-resource": true, "properties": { "id": { - "description": "Quota request ID.", + "description": "The quota request Id.", "type": "string", "readOnly": true }, "name": { - "description": "Quota request name.", + "description": "The name of the quota request.", "type": "string", "readOnly": true }, "properties": { - "description": "Quota request details.", + "description": "The quota request details.", "x-ms-client-flatten": true, "$ref": "#/definitions/QuotaRequestProperties" }, "type": { "type": "string", "readOnly": true, - "description": "Resource type" + "description": "Type of resource. \"Microsoft.Capacity/ServiceLimits\"" } } }, "QuotaRequestDetailsList": { - "description": "Quota request details.", + "description": "Quota requests information.", "type": "object", "properties": { "value": { - "description": "The quota requests.", + "description": "The quota Requests.", "type": "array", "items": { "$ref": "#/definitions/QuotaRequestDetails" } }, "nextLink": { - "description": "The URI to fetch the next page of quota limits. When there are no more pages, this is null.", + "description": "The uri to fetch the next page of quota limits. When there are no more pages, this is null.", "type": "string" } } @@ -698,7 +783,7 @@ "readOnly": true }, "requestSubmitTime": { - "description": "The time when the quota request was submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.", + "description": "The quota request submit time. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.", "type": "string", "readOnly": true, "format": "date-time" @@ -727,7 +812,7 @@ "readOnly": true }, "requestSubmitTime": { - "description": "The time when the quota request was submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.", + "description": "The quota request submit time. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.", "type": "string", "readOnly": true, "format": "date-time" @@ -767,18 +852,216 @@ "modelAsString": true } }, + "AutoQuotaIncreaseDetail": { + "type": "object", + "description": "Auto Quota Increase settings.", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "The subscription Id.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The name of the auto quota increase.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The type of the resource", + "type": "string", + "readOnly": true + }, + "properties": { + "description": "Actions for auto quota increase.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/autoQuotaIncreaseSettings" + } + } + }, + "autoQuotaIncreaseSettings": { + "type": "object", + "description": "Actions for auto quota increase.", + "properties": { + "settings": { + "description": "Settings for automatic quota increase.", + "$ref": "#/definitions/aqiSettings" + }, + "onFailure": { + "description": "The on failure Actions.", + "$ref": "#/definitions/Actions" + }, + "onSuccess": { + "description": "The on success Actions.", + "$ref": "#/definitions/Actions" + }, + "supportTicketAction": { + "description": "The support ticket action.", + "$ref": "#/definitions/SupportRequestAction" + } + } + }, + "aqiSettings": { + "type": "object", + "description": "Settings for auto quota increase.", + "properties": { + "autoQuotaIncreaseState": { + "description": "If the subscription has enabled automatic quota increase.", + "$ref": "#/definitions/AqiState" + } + } + }, + "SupportContactTypes": { + "description": "The support contact types.", + "enum": [ + "email", + "phone", + "chat" + ], + "x-ms-enum": { + "name": "SupportContactType", + "modelAsString": true + } + }, + "SupportRequestAction": { + "description": "The SupportRequest action.", + "type": "object", + "properties": { + "severity": { + "description": "The support request severity.", + "$ref": "#/definitions/SeverityTypes" + }, + "firstName": { + "description": "The first name of the recipient.", + "type": "string" + }, + "lastName": { + "description": "The last name of the recipient.", + "type": "string" + }, + "country": { + "description": "The country of the recipient.", + "type": "string" + }, + "phoneNumber": { + "description": "The phone number of the recipient.", + "type": "string" + }, + "primaryEmailAddress": { + "description": "The primary email addresses of the recipients.", + "type": "string" + }, + "supportLanguage": { + "description": "The support language.", + "type": "string" + }, + "preferredContactMethod": { + "description": "The preferred communication channel.", + "$ref": "#/definitions/ContactMethod" + }, + "alternateEmailAddresses": { + "description": "The alternate email address of the recipient.", + "type": "array", + "items": { + "description": "The email recipients.", + "type": "string" + } + } + } + }, + "SeverityTypes": { + "description": "The Severity types.", + "enum": [ + "Critical", + "Moderate", + "Minimal" + ], + "x-ms-enum": { + "name": "SeverityType", + "modelAsString": true + } + }, + "ContactMethod": { + "description": "The contact method - Email: Contact using provided email, Phone: contact using provided phone number.", + "enum": [ + "Email", + "Phone" + ], + "x-ms-enum": { + "name": "ContactMethodType", + "modelAsString": true + } + }, + "AqiState": { + "description": "The Auto quota increase feature state - enabled: feature is enabled, disabled: feature is disabled.", + "enum": [ + "enabled", + "disabled" + ], + "x-ms-enum": { + "name": "AqiStateType", + "modelAsString": true + } + }, + "PhoneAction": { + "type": "object", + "description": "Phone Action.", + "properties": { + "phoneNumber": { + "description": "The phone number for the action.", + "type": "string" + }, + "preferredChannel": { + "description": "The preferred communication channel.", + "$ref": "#/definitions/ContactMethod" + } + } + }, + "EmailAction": { + "description": "Email Action.", + "type": "object", + "properties": { + "emailAddress": { + "description": "The email address for the action.", + "type": "string" + } + } + }, + "EmailActions": { + "description": "The email actions.", + "properties": { + "emailAddresses": { + "description": "The list of email actions.", + "type": "array", + "items": { + "description": "The email recipients.", + "$ref": "#/definitions/EmailAction" + } + } + } + }, + "Actions": { + "description": "The actions for auto quota increase.", + "type": "object", + "properties": { + "emailActions": { + "description": "The email actions for auto quota increase.", + "$ref": "#/definitions/EmailActions" + } + } + }, "ExceptionResponse": { "type": "object", "properties": { "error": { "$ref": "#/definitions/ServiceError", - "description": "The API error details." + "description": "The api error details." } }, - "description": "The API error." + "description": "The api error." }, "ServiceError": { - "description": "The API error details.", + "description": "The api error details.", "type": "object", "properties": { "code": { @@ -787,7 +1070,7 @@ }, "message": { "type": "string", - "description": "The error message text." + "description": "The error message." }, "details": { "type": "array", @@ -823,7 +1106,7 @@ "in": "path", "required": true, "type": "string", - "description": "Azure subscription ID." + "description": "Azure subscription id." }, "ApiVersionParameter": { "name": "api-version", @@ -845,7 +1128,7 @@ "in": "path", "required": true, "type": "string", - "description": "Azure resource provider ID.", + "description": "Azure resource provider id.", "x-ms-parameter-location": "method" }, "ResourceNameInParameters": { @@ -861,7 +1144,7 @@ "in": "path", "required": true, "type": "string", - "description": "Quota Request ID.", + "description": "Quota Request id.", "x-ms-parameter-location": "method" }, "TopQueryParameter": { @@ -879,7 +1162,7 @@ "in": "query", "type": "string", "required": false, - "description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element includes a skiptoken parameter that specifies a starting point to use for subsequent calls.", + "description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls", "x-ms-parameter-location": "method" } } From 8beb75c33c4ab539fca08b40be84143ec96c86d9 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 10 Dec 2020 11:16:31 -0800 Subject: [PATCH 3/4] Files from preview version, which will be removed. --- .../examples/getAutoQuotaIncreaseStatus.json | 58 ++++++++++ .../2020-10-25/examples/getMsSqlUsages.json | 49 +++++++++ .../examples/putAutoQuotaIncrease.json | 103 ++++++++++++++++++ .../examples/putAutoQuotaIncreaseTurnOff.json | 103 ++++++++++++++++++ 4 files changed, 313 insertions(+) create mode 100644 specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getAutoQuotaIncreaseStatus.json create mode 100644 specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMsSqlUsages.json create mode 100644 specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putAutoQuotaIncrease.json create mode 100644 specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putAutoQuotaIncreaseTurnOff.json diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getAutoQuotaIncreaseStatus.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getAutoQuotaIncreaseStatus.json new file mode 100644 index 000000000000..2c23549bb2dc --- /dev/null +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getAutoQuotaIncreaseStatus.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "api-version": "2019-07-19-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/autoQuotaIncrease", + "type": "Microsoft.Capacity/autoQuotaIncrease", + "name": "Automatic Quota Increase", + "properties": { + "settings": { + "autoQuotaIncreaseState": "enabled" + }, + "onSuccess": { + "emailActions": { + "emailAddresses": [ + { + "emailAddress": "itsupport@contoso.com" + }, + { + "emailAddress": "admin2@contoso.com" + } + ] + } + }, + "onFailure": { + "emailActions": { + "emailAddresses": [ + { + "emailAddress": "itsupport@contoso.com" + }, + { + "emailAddress": "admin2@contoso.com" + } + ] + } + }, + "supportTicketAction": { + "severity": "Minimal", + "firstName": "FN", + "lastName": "LN", + "country": "US", + "phoneNumber": "123-456-7890", + "supportLanguage": "en-US", + "primaryEmailAddress": "admin3@contoso.com", + "alternateEmailAddresses": [ + "admin@contoso.com", + "admin3@contoso.com" + ], + "preferredContactMethod": "Phone" + } + } + } + } + } +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMsSqlUsages.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMsSqlUsages.json new file mode 100644 index 000000000000..74b82ac10c9c --- /dev/null +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMsSqlUsages.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "providerId": "Microsoft.Sql", + "location": "westus", + "api-version": "2019-07-19-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "currentValue": 1, + "limit": 20, + "name": { + "localizedValue": "Regional Server Quota for West US", + "value": "ServerQuota" + }, + "unit": "Count" + } + }, + { + "properties": { + "currentValue": 0, + "limit": 1, + "name": { + "localizedValue": "Free Database Count per Subscription for West US", + "value": "SubscriptionFreeDatabaseCount" + }, + "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/stable/2020-10-25/examples/putAutoQuotaIncrease.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putAutoQuotaIncrease.json new file mode 100644 index 000000000000..d8dc24d500d2 --- /dev/null +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putAutoQuotaIncrease.json @@ -0,0 +1,103 @@ +{ + "parameters": { + "subscriptionId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "api-version": "2019-07-19-preview", + "autoQuotaIncreaseRequest": { + "properties": { + "settings": { + "autoQuotaIncreaseState": "enabled" + }, + "onSuccess": { + "emailActions": { + "emailAddresses": [ + { + "emailAddress": "itsupport@contoso.com" + }, + { + "emailAddress": "admin3@contoso.com" + } + ] + } + }, + "onFailure": { + "emailActions": { + "emailAddresses": [ + { + "emailAddress": "itsupport@contoso.com" + }, + { + "emailAddress": "admin2@contoso.com" + } + ] + } + }, + "supportTicketAction": { + "severity": "Minimal", + "firstName": "FN", + "lastName": "LN", + "country": "US", + "supportLanguage": "en-us", + "phoneNumber": "123-456-7890", + "primaryEmailAddress": "admin2@contoso.com", + "alternateEmailAddresses": [ + "admin@contoso.com", + "admin3@contoso.com" + ], + "preferredContactMethod": "Phone" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/autoQuotaIncrease", + "type": "Microsoft.Capacity/autoQuotaIncrease", + "name": "Automatic Quota Increase", + "properties": { + "settings": { + "autoQuotaIncreaseState": "enabled" + }, + "onSuccess": { + "emailActions": { + "emailAddresses": [ + { + "emailAddress": "itsupport@contoso.com" + }, + { + "emailAddress": "admin2@contoso.com" + } + ] + } + }, + "onFailure": { + "emailActions": { + "emailAddresses": [ + { + "emailAddress": "itsupport@contoso.com" + }, + { + "emailAddress": "admin2@contoso.com" + } + ] + } + }, + "supportTicketAction": { + "severity": "Minimal", + "firstName": "FN", + "lastName": "LN", + "country": "US", + "supportLanguage": "en-us", + "phoneNumber": "123-456-7890", + "primaryEmailAddress": "admin2@contoso.com", + "alternateEmailAddresses": [ + "admin@contoso.com", + "admin3@contoso.com" + ], + "preferredContactMethod": "Phone" + } + } + } + } + } +} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putAutoQuotaIncreaseTurnOff.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putAutoQuotaIncreaseTurnOff.json new file mode 100644 index 000000000000..1675b67ccf58 --- /dev/null +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putAutoQuotaIncreaseTurnOff.json @@ -0,0 +1,103 @@ +{ + "parameters": { + "subscriptionId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", + "api-version": "2019-07-19-preview", + "autoQuotaIncreaseRequest": { + "properties": { + "settings": { + "autoQuotaIncreaseState": "disabled" + }, + "onSuccess": { + "emailActions": { + "emailAddresses": [ + { + "emailAddress": "itsupport@contoso.com" + }, + { + "emailAddress": "admin2@contoso.com" + } + ] + } + }, + "onFailure": { + "emailActions": { + "emailAddresses": [ + { + "emailAddress": "itsupport@contoso.com" + }, + { + "emailAddress": "admin3@contoso.com" + } + ] + } + }, + "supportTicketAction": { + "severity": "Minimal", + "firstName": "FN", + "lastName": "LN", + "country": "US", + "supportLanguage": "en-us", + "phoneNumber": "123-456-7890", + "primaryEmailAddress": "admin3@contoso.com", + "alternateEmailAddresses": [ + "admin@contoso.com", + "admin3@contoso.com" + ], + "preferredContactMethod": "Phone" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/autoQuotaIncrease", + "type": "Microsoft.Capacity/autoQuotaIncrease", + "name": "Automatic Quota Increase", + "properties": { + "settings": { + "autoQuotaIncreaseState": "disabled" + }, + "onSuccess": { + "emailActions": { + "emailAddresses": [ + { + "emailAddress": "itsupport@contoso.com" + }, + { + "emailAddress": "admin2@contoso.com" + } + ] + } + }, + "onFailure": { + "emailActions": { + "emailAddresses": [ + { + "emailAddress": "itsupport@contoso.com" + }, + { + "emailAddress": "admin3@contoso.com" + } + ] + } + }, + "supportTicketAction": { + "severity": "Minimal", + "firstName": "FN", + "lastName": "LN", + "country": "US", + "supportLanguage": "en-us", + "phoneNumber": "123-456-7890", + "primaryEmailAddress": "admin3@contoso.com", + "alternateEmailAddresses": [ + "admin@contoso.com", + "admin3@contoso.com" + ], + "preferredContactMethod": "Phone" + } + } + } + } + } +} From b034d7f015609d46a6fec622581b54ef588f6418 Mon Sep 17 00:00:00 2001 From: Rahul Singh Date: Thu, 10 Dec 2020 11:18:48 -0800 Subject: [PATCH 4/4] Updating to GA Version. --- .../examples/getAutoQuotaIncreaseStatus.json | 58 --- .../examples/getComputeOneSkuUsages.json | 2 +- .../2020-10-25/examples/getComputeUsages.json | 2 +- .../getMachineLearningServicesUsages.json | 2 +- .../2020-10-25/examples/getMsSqlUsages.json | 49 -- .../examples/getQuotaRequestStatusById.json | 2 +- .../examples/getQuotaRequestStatusFailed.json | 2 +- .../getQuotaRequestStatusInProgress.json | 10 - .../examples/getQuotaRequestsHistory.json | 4 +- .../examples/patchComputeQuotaRequest.json | 2 +- .../examples/putAutoQuotaIncrease.json | 103 ----- .../examples/putAutoQuotaIncreaseTurnOff.json | 103 ----- .../putComputeOneSkuQuotaRequest.json | 2 +- ...LearningServicesQuotaRequestDedicated.json | 2 +- ...arningServicesQuotaRequestLowPriority.json | 2 +- .../stable/2020-10-25/quota.json | 437 +++--------------- 16 files changed, 88 insertions(+), 694 deletions(-) delete mode 100644 specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getAutoQuotaIncreaseStatus.json delete mode 100644 specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMsSqlUsages.json delete mode 100644 specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putAutoQuotaIncrease.json delete mode 100644 specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putAutoQuotaIncreaseTurnOff.json diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getAutoQuotaIncreaseStatus.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getAutoQuotaIncreaseStatus.json deleted file mode 100644 index 2c23549bb2dc..000000000000 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getAutoQuotaIncreaseStatus.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "parameters": { - "subscriptionId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "api-version": "2019-07-19-preview" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/autoQuotaIncrease", - "type": "Microsoft.Capacity/autoQuotaIncrease", - "name": "Automatic Quota Increase", - "properties": { - "settings": { - "autoQuotaIncreaseState": "enabled" - }, - "onSuccess": { - "emailActions": { - "emailAddresses": [ - { - "emailAddress": "itsupport@contoso.com" - }, - { - "emailAddress": "admin2@contoso.com" - } - ] - } - }, - "onFailure": { - "emailActions": { - "emailAddresses": [ - { - "emailAddress": "itsupport@contoso.com" - }, - { - "emailAddress": "admin2@contoso.com" - } - ] - } - }, - "supportTicketAction": { - "severity": "Minimal", - "firstName": "FN", - "lastName": "LN", - "country": "US", - "phoneNumber": "123-456-7890", - "supportLanguage": "en-US", - "primaryEmailAddress": "admin3@contoso.com", - "alternateEmailAddresses": [ - "admin@contoso.com", - "admin3@contoso.com" - ], - "preferredContactMethod": "Phone" - } - } - } - } - } -} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeOneSkuUsages.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeOneSkuUsages.json index f5999b070097..ebff7547f730 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeOneSkuUsages.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeOneSkuUsages.json @@ -4,7 +4,7 @@ "providerId": "Microsoft.Compute", "location": "eastus", "resourceName": "standardNDSFamily", - "api-version": "2019-07-19-preview" + "api-version": "2020-10-25" }, "responses": { "200": { diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeUsages.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeUsages.json index e973260d3e20..390a8831fafb 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeUsages.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeUsages.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "providerId": "Microsoft.Compute", "location": "eastus", - "api-version": "2019-07-19-preview" + "api-version": "2020-10-25" }, "responses": { "200": { diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMachineLearningServicesUsages.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMachineLearningServicesUsages.json index fcdb3c1e7182..690c516420bc 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMachineLearningServicesUsages.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMachineLearningServicesUsages.json @@ -3,7 +3,7 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "providerId": "Microsoft.MachineLearningServices", "location": "eastus", - "api-version": "2019-07-19-preview" + "api-version": "2020-10-25" }, "responses": { "200": { diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMsSqlUsages.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMsSqlUsages.json deleted file mode 100644 index 74b82ac10c9c..000000000000 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMsSqlUsages.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "providerId": "Microsoft.Sql", - "location": "westus", - "api-version": "2019-07-19-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "currentValue": 1, - "limit": 20, - "name": { - "localizedValue": "Regional Server Quota for West US", - "value": "ServerQuota" - }, - "unit": "Count" - } - }, - { - "properties": { - "currentValue": 0, - "limit": 1, - "name": { - "localizedValue": "Free Database Count per Subscription for West US", - "value": "SubscriptionFreeDatabaseCount" - }, - "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/stable/2020-10-25/examples/getQuotaRequestStatusById.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.json index 3d4ff3c2aaa6..fec8c9c63482 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.json @@ -4,7 +4,7 @@ "providerId": "Microsoft.Compute", "location": "eastus", "id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", - "api-version": "2019-07-19-preview" + "api-version": "2020-10-25" }, "responses": { "200": { diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json index bd23f32aba75..8708ad729fc8 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json @@ -4,7 +4,7 @@ "providerId": "Microsoft.Compute", "location": "eastus", "id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", - "api-version": "2019-07-19-preview" + "api-version": "2020-10-25" }, "responses": { "200": { diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json index b876be1afb02..f9775dc4da8c 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json @@ -17,16 +17,6 @@ "message": "Request processing", "provisioningState": "InProgress", "value": [ - { - "limit": 200, - "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", - "name": { - "value": "standardHCSFamily", - "localizedValue": "Standard HCS Family vCPUs" - }, - "message": "Request completed", - "provisioningState": "Succeeded" - }, { "limit": 50, "subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C", diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestsHistory.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestsHistory.json index b75b60f0d9b6..6453be3eb4d4 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestsHistory.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestsHistory.json @@ -3,12 +3,12 @@ "subscriptionId": "3f75fdf7-977e-44ad-990d-99f14f0f299f", "providerId": "Microsoft.Compute", "location": "eastus", - "api-version": "2019-07-19-preview" + "api-version": "2020-10-25" }, "responses": { "200": { "body": { - "nextLink": "https://management.azure.com/subscriptions/3f75fdf7-977e-44ad-990d-99f14f0f299f/providers/microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests?api-version=2019-07-19-preview&$top=3", + "nextLink": "https://management.azure.com/subscriptions/3f75fdf7-977e-44ad-990d-99f14f0f299f/providers/microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests?api-version=2020-10-25&$top=3", "value": [ { "id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605", diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/patchComputeQuotaRequest.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/patchComputeQuotaRequest.json index e119473eca89..b884e097975a 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/patchComputeQuotaRequest.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/patchComputeQuotaRequest.json @@ -4,7 +4,7 @@ "providerId": "Microsoft.Compute", "location": "eastus", "resourceName": "standardFSv2Family", - "api-version": "2019-07-19-preview", + "api-version": "2020-10-25", "createQuotaRequest": { "properties": { "limit": 200, diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putAutoQuotaIncrease.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putAutoQuotaIncrease.json deleted file mode 100644 index d8dc24d500d2..000000000000 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putAutoQuotaIncrease.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "parameters": { - "subscriptionId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "api-version": "2019-07-19-preview", - "autoQuotaIncreaseRequest": { - "properties": { - "settings": { - "autoQuotaIncreaseState": "enabled" - }, - "onSuccess": { - "emailActions": { - "emailAddresses": [ - { - "emailAddress": "itsupport@contoso.com" - }, - { - "emailAddress": "admin3@contoso.com" - } - ] - } - }, - "onFailure": { - "emailActions": { - "emailAddresses": [ - { - "emailAddress": "itsupport@contoso.com" - }, - { - "emailAddress": "admin2@contoso.com" - } - ] - } - }, - "supportTicketAction": { - "severity": "Minimal", - "firstName": "FN", - "lastName": "LN", - "country": "US", - "supportLanguage": "en-us", - "phoneNumber": "123-456-7890", - "primaryEmailAddress": "admin2@contoso.com", - "alternateEmailAddresses": [ - "admin@contoso.com", - "admin3@contoso.com" - ], - "preferredContactMethod": "Phone" - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/autoQuotaIncrease", - "type": "Microsoft.Capacity/autoQuotaIncrease", - "name": "Automatic Quota Increase", - "properties": { - "settings": { - "autoQuotaIncreaseState": "enabled" - }, - "onSuccess": { - "emailActions": { - "emailAddresses": [ - { - "emailAddress": "itsupport@contoso.com" - }, - { - "emailAddress": "admin2@contoso.com" - } - ] - } - }, - "onFailure": { - "emailActions": { - "emailAddresses": [ - { - "emailAddress": "itsupport@contoso.com" - }, - { - "emailAddress": "admin2@contoso.com" - } - ] - } - }, - "supportTicketAction": { - "severity": "Minimal", - "firstName": "FN", - "lastName": "LN", - "country": "US", - "supportLanguage": "en-us", - "phoneNumber": "123-456-7890", - "primaryEmailAddress": "admin2@contoso.com", - "alternateEmailAddresses": [ - "admin@contoso.com", - "admin3@contoso.com" - ], - "preferredContactMethod": "Phone" - } - } - } - } - } -} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putAutoQuotaIncreaseTurnOff.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putAutoQuotaIncreaseTurnOff.json deleted file mode 100644 index 1675b67ccf58..000000000000 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putAutoQuotaIncreaseTurnOff.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "parameters": { - "subscriptionId": "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3", - "api-version": "2019-07-19-preview", - "autoQuotaIncreaseRequest": { - "properties": { - "settings": { - "autoQuotaIncreaseState": "disabled" - }, - "onSuccess": { - "emailActions": { - "emailAddresses": [ - { - "emailAddress": "itsupport@contoso.com" - }, - { - "emailAddress": "admin2@contoso.com" - } - ] - } - }, - "onFailure": { - "emailActions": { - "emailAddresses": [ - { - "emailAddress": "itsupport@contoso.com" - }, - { - "emailAddress": "admin3@contoso.com" - } - ] - } - }, - "supportTicketAction": { - "severity": "Minimal", - "firstName": "FN", - "lastName": "LN", - "country": "US", - "supportLanguage": "en-us", - "phoneNumber": "123-456-7890", - "primaryEmailAddress": "admin3@contoso.com", - "alternateEmailAddresses": [ - "admin@contoso.com", - "admin3@contoso.com" - ], - "preferredContactMethod": "Phone" - } - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/autoQuotaIncrease", - "type": "Microsoft.Capacity/autoQuotaIncrease", - "name": "Automatic Quota Increase", - "properties": { - "settings": { - "autoQuotaIncreaseState": "disabled" - }, - "onSuccess": { - "emailActions": { - "emailAddresses": [ - { - "emailAddress": "itsupport@contoso.com" - }, - { - "emailAddress": "admin2@contoso.com" - } - ] - } - }, - "onFailure": { - "emailActions": { - "emailAddresses": [ - { - "emailAddress": "itsupport@contoso.com" - }, - { - "emailAddress": "admin3@contoso.com" - } - ] - } - }, - "supportTicketAction": { - "severity": "Minimal", - "firstName": "FN", - "lastName": "LN", - "country": "US", - "supportLanguage": "en-us", - "phoneNumber": "123-456-7890", - "primaryEmailAddress": "admin3@contoso.com", - "alternateEmailAddresses": [ - "admin@contoso.com", - "admin3@contoso.com" - ], - "preferredContactMethod": "Phone" - } - } - } - } - } -} diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putComputeOneSkuQuotaRequest.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putComputeOneSkuQuotaRequest.json index e8328d5f6e28..7184e2231b8a 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putComputeOneSkuQuotaRequest.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putComputeOneSkuQuotaRequest.json @@ -4,7 +4,7 @@ "providerId": "Microsoft.Compute", "location": "eastus", "resourceName": "standardFSv2Family", - "api-version": "2019-07-19-preview", + "api-version": "2020-10-25", "createQuotaRequest": { "properties": { "limit": 200, diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestDedicated.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestDedicated.json index 43fdf27615f5..280a446a7360 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestDedicated.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestDedicated.json @@ -4,7 +4,7 @@ "providerId": "Microsoft.MachineLearningServices", "location": "eastus", "resourceName": "StandardDv2Family", - "api-version": "2019-07-19-preview", + "api-version": "2020-10-25", "createQuotaRequest": { "properties": { "limit": 200, diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestLowPriority.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestLowPriority.json index 8893da3a15ae..d4f7b2bee919 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestLowPriority.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestLowPriority.json @@ -4,7 +4,7 @@ "providerId": "Microsoft.MachineLearningServices", "location": "eastus", "resourceName": "TotalLowPriorityCores", - "api-version": "2019-07-19-preview", + "api-version": "2020-10-25", "createQuotaRequest": { "properties": { "limit": 200, diff --git a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/quota.json b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/quota.json index a2f2557e130f..52f8ba2754fe 100644 --- a/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/quota.json +++ b/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/quota.json @@ -1,9 +1,9 @@ { "swagger": "2.0", "info": { - "version": "2019-07-19-preview", + "version": "2020-10-25", "title": "Azure Reservation API", - "description": "Microsoft Azure Quota Resource Provider." + "description": "Microsoft Azure Quota Resource Provider" }, "host": "management.azure.com", "schemes": [ @@ -39,7 +39,7 @@ "tags": [ "QuotaInformation" ], - "description": "Gets the current service limits (quotas) and usage of a resource. The response from Get API can be leveraged to submit quota update requests.", + "description": "Get the current quotas (service limits) and usage of a resource. You can use the response from the GET operation to submit quota update requests.", "operationId": "Quota_Get", "x-ms-examples": { "Quotas_Request_ForCompute": { @@ -65,19 +65,19 @@ ], "responses": { "200": { - "description": "OK. Quota information will be returned as response with pagination.", + "description": "OK. Returns the paginated quota information.", "schema": { "$ref": "#/definitions/CurrentQuotaLimitBase" }, "headers": { "ETag": { - "description": "Current entity state version. Should be treated as opaque and used to make conditional HTTP requests.", + "description": "Current entity state version. It should be treated as opaque and used to make conditional HTTP requests.", "type": "string" } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error description in the response.", "schema": { "$ref": "#/definitions/ExceptionResponse" } @@ -88,7 +88,7 @@ "tags": [ "QuotaInformation" ], - "description": "Create or update the service limits (quota) of a resource to requested value.\n Steps:\n\r 1. Make the Get request to get the quota information for specific resource.\n\r 2. To increase the quota, update the limit field in the response from Get request to new value.\n\r 3. Submit the JSON to the quota request API to update the quota.\r\n The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.", + "description": "Create or update the quotas (service limits) of a resource to the requested value.\n Steps:\n\r 1. Make the Get request to get the quota information for specific resource.\n\r 2. To increase the quota, update the limit field in the response from Get request to new value.\n\r 3. Submit the JSON to the quota request API to update the quota.\r\n The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.", "operationId": "Quota_CreateOrUpdate", "x-ms-examples": { "Quotas_Request_ForCompute": { @@ -133,19 +133,19 @@ ], "responses": { "200": { - "description": "OK. Returns Quota requests details.", + "description": "OK. Returns details of the quota request.", "schema": { "$ref": "#/definitions/QuotaRequestOneResourceSubmitResponse" } }, "201": { - "description": "The request is accepted and is being processed. Please use requestId to check the status.", + "description": "The request is accepted and being processed. Use the requestId parameter to check the status of the request.", "schema": { "$ref": "#/definitions/QuotaRequestSubmitResponse201" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error description in the response.", "schema": { "$ref": "#/definitions/ExceptionResponse" } @@ -156,7 +156,7 @@ "tags": [ "QuotaInformation" ], - "description": "Update the service limits (quota) of a resource to requested value.\n Steps:\n\r 1. Make the Get request to get the quota information for specific resource.\n\r 2. To increase the quota, update the limit field in the response from Get request to new value.\n\r 3. Submit the JSON to the quota request API to update the quota.\r\n The Update quota request may be constructed as follows. The PATCH operation can be used to update the quota.", + "description": "Update the quota (service limits) of this resource to the requested value.\n\r • To get the quota information for specific resource, send a GET request.\n\r • To increase the quota, update the limit field from the GET response to a new value.\n\r • To update the quota value, submit the JSON response to the quota request API to update the quota.\r\n • To update the quota. use the PATCH operation.", "operationId": "Quota_Update", "x-ms-examples": { "Quotas_Request_PatchForCompute": { @@ -186,7 +186,7 @@ { "name": "createQuotaRequest", "in": "body", - "description": "Quota requests payload.", + "description": "Payload for the quota request.", "required": true, "schema": { "$ref": "#/definitions/CurrentQuotaLimitBase" @@ -195,19 +195,19 @@ ], "responses": { "200": { - "description": "OK. Returns Quota requests details.", + "description": "OK. Returns details of the quota request.", "schema": { "$ref": "#/definitions/QuotaRequestOneResourceSubmitResponse" } }, "201": { - "description": "The request is accepted and is being processed. Use requestId to check the status.", + "description": "The request is accepted and is being processed. Use the requestId parameter to check the status.", "schema": { "$ref": "#/definitions/QuotaRequestSubmitResponse201" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error description in the response.", "schema": { "$ref": "#/definitions/ExceptionResponse" } @@ -220,7 +220,7 @@ "tags": [ "QuotaInformation" ], - "description": "Get a list of current service limits (quota) and usages of all the resources. The response from List API can be leveraged to submit quota update requests.", + "description": "Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.", "operationId": "Quota_List", "x-ms-examples": { "Quotas_listUsagesForCompute": { @@ -228,9 +228,6 @@ }, "Quotas_listUsagesMachineLearningServices": { "$ref": "./examples/getMachineLearningServicesUsages.json" - }, - "Quotas_listUsagesForMsSql": { - "$ref": "./examples/getMsSqlUsages.json" } }, "parameters": [ @@ -249,7 +246,7 @@ ], "responses": { "200": { - "description": "OK. Quota information will be returned as response with pagination.", + "description": "OK. Returns the paginated quota information.", "schema": { "$ref": "#/definitions/QuotaLimits" }, @@ -261,7 +258,7 @@ } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error description in the response.", "schema": { "$ref": "#/definitions/ExceptionResponse" } @@ -288,7 +285,7 @@ "$ref": "./examples/getQuotaRequestStatusFailed.json" } }, - "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.", + "description": "For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for service limits returns a response with the requestId parameter.", "operationId": "QuotaRequestStatus_Get", "parameters": [ { @@ -309,13 +306,13 @@ ], "responses": { "200": { - "description": "Ok. Returning the status for the quota request .", + "description": "Ok. Returns the status of the quota request.", "schema": { "$ref": "#/definitions/QuotaRequestDetails" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error description in the response.", "schema": { "$ref": "#/definitions/ExceptionResponse" } @@ -333,7 +330,7 @@ "$ref": "./examples/getQuotaRequestsHistory.json" } }, - "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.", + "description": "For the specified Azure region (location), subscription, and resource provider, get the history of the quota requests for the past year. To select specific quota requests, use the oData filter.", "operationId": "QuotaRequestStatus_List", "parameters": [ { @@ -364,13 +361,13 @@ ], "responses": { "200": { - "description": "Ok. Sending Quota request status and details", + "description": "Ok. Returns details and status of the quota request.", "schema": { "$ref": "#/definitions/QuotaRequestDetailsList" } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Error description in the response.", "schema": { "$ref": "#/definitions/ExceptionResponse" } @@ -380,103 +377,21 @@ "nextLinkName": "nextLink" } } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/autoQuotaIncrease": { - "get": { - "tags": [ - "AutoQuotaIncrease" - ], - "description": "Gets the Auto Quota Increase enrollment details for the specified subscription.", - "operationId": "AutoQuotaIncrease_GetProperties", - "x-ms-examples": { - "GetAutoQuotaIncreaseSettings": { - "$ref": "./examples/getAutoQuotaIncreaseStatus.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdInParameters" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Ok. Returning the properties of auto quota increase .", - "schema": { - "$ref": "#/definitions/AutoQuotaIncreaseDetail" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ExceptionResponse" - } - } - } - }, - "put": { - "tags": [ - "AutoQuotaIncrease" - ], - "description": "Sets the Auto Quota Increase enrollment properties for the specified subscription.", - "operationId": "AutoQuotaIncrease_Create", - "x-ms-examples": { - "SetAutoQuotaIncreaseSettings": { - "$ref": "./examples/putAutoQuotaIncrease.json" - }, - "TurnOffAutoQuotaIncrease": { - "$ref": "./examples/putAutoQuotaIncreaseTurnOff.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdInParameters" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "autoQuotaIncreaseRequest", - "in": "body", - "description": "Auto Quota increase request payload.", - "required": true, - "schema": { - "$ref": "#/definitions/AutoQuotaIncreaseDetail" - } - } - ], - "responses": { - "200": { - "description": "Ok. Returning the updated status of auto quota increase request.", - "schema": { - "$ref": "#/definitions/AutoQuotaIncreaseDetail" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ExceptionResponse" - } - } - } - } } }, "definitions": { "CurrentQuotaLimit": { "type": "object", - "description": "Quota limits.", + "description": "Current quota limits.", "x-ms-azure-resource": true, "properties": { "quotaInformation": { - "description": "Quota information detail.", + "description": "Quota details.", "x-ms-client-flatten": true, "$ref": "#/definitions/CurrentQuotaLimitBase" }, "properties": { - "description": "Addition properties for the quota request status for the resource.", + "description": "Additional properties for the quota status for the resource.", "$ref": "#/definitions/QuotaRequestStatusDetails", "x-ms-client-flatten": true } @@ -484,7 +399,7 @@ }, "CurrentQuotaLimitBase": { "type": "object", - "description": "Quota limits.", + "description": "Quota properties.", "x-ms-azure-resource": true, "properties": { "properties": { @@ -498,41 +413,41 @@ "type": "object", "properties": { "limit": { - "description": "The quota limit.", + "description": "Quota properties.", "type": "integer" }, "currentValue": { - "description": "The current resource usages information.", + "description": "Current usage value for the resource.", "type": "integer", "readOnly": true }, "unit": { - "description": " The units of the limit, such as - Count, Bytes, etc. Use the unit field provided in the Get quota response.", + "description": " The limit units, such as **count** and **bytes**. Use the unit field provided in the response of the GET quota operation.", "type": "string", "readOnly": false }, "name": { - "description": "Name of the resource provide by the resource Provider. Please use this name property for quotaRequests.", + "description": "Name of the resource provide by the resource provider. Use this property for quotaRequests resource operations.", "$ref": "#/definitions/ResourceName" }, "resourceType": { - "description": "The Resource Type Name.", + "description": "The name of the resource type.", "$ref": "#/definitions/ResourceTypesName", "readOnly": false }, "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.", + "description": "The time period over which the quota usage values are summarized. For example, P1D (per one day), PT1M (per one minute), and PT1S (per one second). This parameter is optional because, for some resources such as compute, the time period is irrelevant.", "type": "string", "readOnly": true }, "properties": { - "description": "Additional properties for the specific resource provider.", + "description": "Additional properties for the specified resource provider.", "type": "object" } } }, "ResourceName": { - "description": "Name of the resource provide by the resource Provider. Please use this name property for quotaRequests.", + "description": "Resource name provided by the resource provider. Use this property for quotaRequest parameter.", "properties": { "value": { "description": "Resource name.", @@ -540,7 +455,7 @@ "readOnly": false }, "localizedValue": { - "description": "Resource display name.", + "description": "Resource display localized name.", "type": "string", "readOnly": true } @@ -550,30 +465,30 @@ "description": "Quota limits.", "properties": { "value": { - "description": "List of Quota limits.", + "description": "List of quotas (service limits).", "type": "array", "items": { "$ref": "#/definitions/CurrentQuotaLimitBase" } }, "nextLink": { - "description": "The uri to fetch the next page of quota limits. When there are no more pages, this is null.", + "description": "The URI for fetching the next page of quotas (service limits). When no more pages exist, the value is null.", "type": "string" } } }, "QuotaLimitsResponse": { - "description": "Quota limits request response.", + "description": "Quotas (service limits) in the request response.", "properties": { "value": { - "description": "List of Quota limits with the quota request status.", + "description": "List of quotas with the quota request status.", "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.", + "description": "The URI for fetching the next page of quota limits. When no more pages exist, the value is null.", "type": "string" } } @@ -596,12 +511,12 @@ "description": "The sub-request submitted with the quota request.", "properties": { "limit": { - "description": "The Resource limit.", + "description": "Quota (resource limit).", "type": "integer", "readOnly": true }, "name": { - "description": "The Resource name.", + "description": "The resource name.", "$ref": "#/definitions/ResourceName" }, "resourceType": { @@ -610,7 +525,7 @@ "readOnly": true }, "unit": { - "description": " The units of the limit, such as - Count, Bytes, etc. Use the unit field provided in the Get quota response.", + "description": " The limit units, such as **count** and **bytes**. Use the unit field provided in the response of the GET quota operation.", "type": "string" }, "provisioningState": { @@ -618,24 +533,24 @@ "$ref": "#/definitions/QuotaRequestState" }, "message": { - "description": "User friendly status message.", + "description": "User-friendly status message.", "type": "string", "readOnly": true }, "subRequestId": { - "description": "Sub request id for individual request.", + "description": "Sub request ID for individual request.", "type": "string", "readOnly": true } } }, "QuotaRequestOneResourceSubmitResponse": { - "description": "Quota submit request response", + "description": "Response for the quota submission request.", "type": "object", "x-ms-azure-resource": true, "properties": { "id": { - "description": "The quota request Id.", + "description": "The quota request ID.", "type": "string", "readOnly": true }, @@ -650,19 +565,19 @@ "description": "Type of resource. \"Microsoft.Capacity/ServiceLimits\"" }, "properties": { - "description": "The quota request details.", + "description": "The details for quota request.", "x-ms-client-flatten": true, "$ref": "#/definitions/quotaRequestOneResourceProperties" } } }, "QuotaRequestSubmitResponse": { - "description": "Quota submit request response", + "description": "Response for the quota submission request.", "type": "object", "x-ms-azure-resource": true, "properties": { "id": { - "description": "The quota request Id.", + "description": "The quota request ID.", "type": "string", "readOnly": true }, @@ -684,37 +599,37 @@ } }, "QuotaRequestSubmitResponse201": { - "description": "The quota request submit response with request id.", + "description": "Response with request ID that the quota request was accepted.", "type": "object", "properties": { "id": { - "description": "The quota request id. Please use the requestId to check the request status.", + "description": "The quota request ID. Use the requestId parameter to check the request status.", "type": "string", "readOnly": true }, "name": { - "description": "The operation Id", + "description": "Operation ID", "type": "string", "readOnly": true }, "type": { - "description": "The resource type", + "description": "Resource type", "type": "string", "readOnly": true }, "properties": { - "description": "The quota request status.", + "description": "Quota request status.", "$ref": "#/definitions/QuotaRequestStatusDetails", "x-ms-client-flatten": true } } }, "QuotaRequestStatusDetails": { - "description": "The quota request status details.", + "description": "Quota request status details.", "type": "object", "properties": { "provisioningState": { - "description": "The quota request status.", + "description": "The details of the quota request status.", "$ref": "#/definitions/QuotaRequestState", "readOnly": true }, @@ -727,44 +642,44 @@ }, "QuotaRequestDetails": { "type": "object", - "description": "The details of the quota Request.", + "description": "Quota request details.", "x-ms-azure-resource": true, "properties": { "id": { - "description": "The quota request Id.", + "description": "Quota request ID.", "type": "string", "readOnly": true }, "name": { - "description": "The name of the quota request.", + "description": "Quota request name.", "type": "string", "readOnly": true }, "properties": { - "description": "The quota request details.", + "description": "Quota request details.", "x-ms-client-flatten": true, "$ref": "#/definitions/QuotaRequestProperties" }, "type": { "type": "string", "readOnly": true, - "description": "Type of resource. \"Microsoft.Capacity/ServiceLimits\"" + "description": "Resource type" } } }, "QuotaRequestDetailsList": { - "description": "Quota requests information.", + "description": "Quota request details.", "type": "object", "properties": { "value": { - "description": "The quota Requests.", + "description": "The quota requests.", "type": "array", "items": { "$ref": "#/definitions/QuotaRequestDetails" } }, "nextLink": { - "description": "The uri to fetch the next page of quota limits. When there are no more pages, this is null.", + "description": "The URI to fetch the next page of quota limits. When there are no more pages, this is null.", "type": "string" } } @@ -783,7 +698,7 @@ "readOnly": true }, "requestSubmitTime": { - "description": "The quota request submit time. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.", + "description": "The time when the quota request was submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.", "type": "string", "readOnly": true, "format": "date-time" @@ -812,7 +727,7 @@ "readOnly": true }, "requestSubmitTime": { - "description": "The quota request submit time. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.", + "description": "The time when the quota request was submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.", "type": "string", "readOnly": true, "format": "date-time" @@ -852,216 +767,18 @@ "modelAsString": true } }, - "AutoQuotaIncreaseDetail": { - "type": "object", - "description": "Auto Quota Increase settings.", - "x-ms-azure-resource": true, - "properties": { - "id": { - "description": "The subscription Id.", - "type": "string", - "readOnly": true - }, - "name": { - "description": "The name of the auto quota increase.", - "type": "string", - "readOnly": true - }, - "type": { - "description": "The type of the resource", - "type": "string", - "readOnly": true - }, - "properties": { - "description": "Actions for auto quota increase.", - "x-ms-client-flatten": true, - "$ref": "#/definitions/autoQuotaIncreaseSettings" - } - } - }, - "autoQuotaIncreaseSettings": { - "type": "object", - "description": "Actions for auto quota increase.", - "properties": { - "settings": { - "description": "Settings for automatic quota increase.", - "$ref": "#/definitions/aqiSettings" - }, - "onFailure": { - "description": "The on failure Actions.", - "$ref": "#/definitions/Actions" - }, - "onSuccess": { - "description": "The on success Actions.", - "$ref": "#/definitions/Actions" - }, - "supportTicketAction": { - "description": "The support ticket action.", - "$ref": "#/definitions/SupportRequestAction" - } - } - }, - "aqiSettings": { - "type": "object", - "description": "Settings for auto quota increase.", - "properties": { - "autoQuotaIncreaseState": { - "description": "If the subscription has enabled automatic quota increase.", - "$ref": "#/definitions/AqiState" - } - } - }, - "SupportContactTypes": { - "description": "The support contact types.", - "enum": [ - "email", - "phone", - "chat" - ], - "x-ms-enum": { - "name": "SupportContactType", - "modelAsString": true - } - }, - "SupportRequestAction": { - "description": "The SupportRequest action.", - "type": "object", - "properties": { - "severity": { - "description": "The support request severity.", - "$ref": "#/definitions/SeverityTypes" - }, - "firstName": { - "description": "The first name of the recipient.", - "type": "string" - }, - "lastName": { - "description": "The last name of the recipient.", - "type": "string" - }, - "country": { - "description": "The country of the recipient.", - "type": "string" - }, - "phoneNumber": { - "description": "The phone number of the recipient.", - "type": "string" - }, - "primaryEmailAddress": { - "description": "The primary email addresses of the recipients.", - "type": "string" - }, - "supportLanguage": { - "description": "The support language.", - "type": "string" - }, - "preferredContactMethod": { - "description": "The preferred communication channel.", - "$ref": "#/definitions/ContactMethod" - }, - "alternateEmailAddresses": { - "description": "The alternate email address of the recipient.", - "type": "array", - "items": { - "description": "The email recipients.", - "type": "string" - } - } - } - }, - "SeverityTypes": { - "description": "The Severity types.", - "enum": [ - "Critical", - "Moderate", - "Minimal" - ], - "x-ms-enum": { - "name": "SeverityType", - "modelAsString": true - } - }, - "ContactMethod": { - "description": "The contact method - Email: Contact using provided email, Phone: contact using provided phone number.", - "enum": [ - "Email", - "Phone" - ], - "x-ms-enum": { - "name": "ContactMethodType", - "modelAsString": true - } - }, - "AqiState": { - "description": "The Auto quota increase feature state - enabled: feature is enabled, disabled: feature is disabled.", - "enum": [ - "enabled", - "disabled" - ], - "x-ms-enum": { - "name": "AqiStateType", - "modelAsString": true - } - }, - "PhoneAction": { - "type": "object", - "description": "Phone Action.", - "properties": { - "phoneNumber": { - "description": "The phone number for the action.", - "type": "string" - }, - "preferredChannel": { - "description": "The preferred communication channel.", - "$ref": "#/definitions/ContactMethod" - } - } - }, - "EmailAction": { - "description": "Email Action.", - "type": "object", - "properties": { - "emailAddress": { - "description": "The email address for the action.", - "type": "string" - } - } - }, - "EmailActions": { - "description": "The email actions.", - "properties": { - "emailAddresses": { - "description": "The list of email actions.", - "type": "array", - "items": { - "description": "The email recipients.", - "$ref": "#/definitions/EmailAction" - } - } - } - }, - "Actions": { - "description": "The actions for auto quota increase.", - "type": "object", - "properties": { - "emailActions": { - "description": "The email actions for auto quota increase.", - "$ref": "#/definitions/EmailActions" - } - } - }, "ExceptionResponse": { "type": "object", "properties": { "error": { "$ref": "#/definitions/ServiceError", - "description": "The api error details." + "description": "The API error details." } }, - "description": "The api error." + "description": "The API error." }, "ServiceError": { - "description": "The api error details.", + "description": "The API error details.", "type": "object", "properties": { "code": { @@ -1070,7 +787,7 @@ }, "message": { "type": "string", - "description": "The error message." + "description": "The error message text." }, "details": { "type": "array", @@ -1106,7 +823,7 @@ "in": "path", "required": true, "type": "string", - "description": "Azure subscription id." + "description": "Azure subscription ID." }, "ApiVersionParameter": { "name": "api-version", @@ -1128,7 +845,7 @@ "in": "path", "required": true, "type": "string", - "description": "Azure resource provider id.", + "description": "Azure resource provider ID.", "x-ms-parameter-location": "method" }, "ResourceNameInParameters": { @@ -1144,7 +861,7 @@ "in": "path", "required": true, "type": "string", - "description": "Quota Request id.", + "description": "Quota Request ID.", "x-ms-parameter-location": "method" }, "TopQueryParameter": { @@ -1162,7 +879,7 @@ "in": "query", "type": "string", "required": false, - "description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls", + "description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element includes a skiptoken parameter that specifies a starting point to use for subsequent calls.", "x-ms-parameter-location": "method" } }