Skip to content

Commit

Permalink
[QuotaRP] Split QuotaLimits API to - Usages and Quotas API (#15416)
Browse files Browse the repository at this point in the history
* 1.Breaking Change - Removing duplicate autoQuotaIncreaseState from supportTicketAction.
2. Removing state=enabledForPreview.
3. Updating Example.

* Updating Provider name in example.

* Capacity RP Quota APIs for GA

* Adding preview version to stable dir as base files.

* Files from preview version, which will be removed.

* Updating to GA Version.

* 1. Updated reservation version tag to - Microsoft.Capacity/preview/2020-10-01-preview/reservations.json, which matches the previous SDK release.
2. Documentation changes.

* Documentation updates for put and patch request, which includes only ONE quota request, so changing quotas to quota.

* Update documenation for put.

* Doc update.

* Adding -preview tag for GO sdk.

* Updating Go settings for output folder to be -preview.

* Adding preview subdir for GO package.

* Adding preview subdir to Go sdk path.

* Removing tag - tag: package-2020-10-25-preview

* introduce a new tag to keep the go sdk package unchanged

* Revert "introduce a new tag to keep the go sdk package unchanged"

This reverts commit 8f58d34.

* Adding Azure CLI readme configuration.

* Updating the ReadMe configurations.

* Updating readme.md

* Removing duplicate cli: tag.

* Fixing build issues.

* Removing Parameter alias.

* cli config changes.

* Updating the package name to reservation.

* Updates - removin .az.md.

* Updating Example names to be unique for Get PUT

* Adding operations and python-sdk-output-folder.

* Updates.

* Removing unused file.

* Revert "Removing unused file."

This reverts commit 4f763bd.

* Revert "Revert "Removing unused file.""

This reverts commit 60c520e.

* Add reference to python readme.md file.

* Adding python readme file.

* Adding Operations for test-scenario

* Adding split

* Disabling few operation, which is not needed.

* Removing split for Operation

* Disabling the reservation Operations.

* Disable reservation operations.

* Revert "Disable reservation operations."

This reverts commit d98cbcb.

* Adding client-subscription-bound: false

* Adding Network RP examples and references.

* Updating Network Put and Patch requests.

* Updating GetQuotaRequests example.

* Fixing formatting.

* Updating examples.

* Adding error details for the quota request status.

* Updating examples

* Fixing formatting

* Fixing model definition.

* Revert "Fixing model definition."

This reverts commit cef9f52.

* Updating example.

* Making ResoureType as String, as it will change with different RPs and all possible values cannot be added in advance.

* Adding Location header to Put and Path calls 200 response.

* Adding example for Network StandardSkuPublicIpAddresses

* Fixing spelling

* Adding error code to Failed requests and updating examples.

* Updating error message and code.

* Updating example for Network - StandardSkuPublicIpAddresses

* Adding oneOf construct. If supported, then I will update the examples.

* Adding discriminator for Limit.

* Adding discriminator to limit.

* Updating network UsagesValue example for discriminator

* Adding limitType definition.

* Adding type to the Limit objects.

* Updating type and example for discriminator

* Updating type for discriminator

* fixinf type definition for discriminator

* Updating schema for discriminator and example.

* Update network example.

* Fixing network example.

* Fixing schema.

* Fixing network example.

* Fix example.

* Updating schema.

* Updating schema and example.

* Update example.

* Examples update.

* Update

* Updated schema for discriminator

* Adding value as required.

* Schema Update.

* Replace Limt with LimitObject to fix reference.

* Updates.

* Updates.

* Updating Put/Ptach examples.

* Updating erxamples.

* Schema updated for requestStatus.

* Schema Update.

* Updates to QuotaRequestStatus example.
Change api to quota. Add usages API and update examples reference.

* 1. Split quotas and usages apis.
2. Add and update examples for quotas and usages.

* Updating example filename references

* Update Put example and operations id.

* Updating limiType field to limitObjectType

* Updating "limitType" to "limitObjectType"

* Updating Get Examples.
Adding extra property to quotas/limit object.

* 1. Updating tags for usages.
2. Rename LimitObjectType to LimitObjectTypes.

* Adding  "limitType": "Independent"

* Updating Operations Tag.

* Updating subscription ids.

* Updating Operations Name.

* Updating the documentations and examples.

* Updates.

* Updates.

* Updating Quota reference to base object type.

* Updating examples and restoring the api name to quotaLimitsProviders.

* Updating usages model and examples.

* Update quotaLimitProviders to remove resourceQuery.

* Revert "Update quotaLimitProviders to remove resourceQuery."

This reverts commit 301092d.

* Updating Operation API example for quotaLimitProviders rename.

* Removing quotaLimitProviders API, as it's not needed by the azure portal.
There wasn't a use case for the end user, that's why our team decided to remove it from public API.

* 1. Removing unused models for quotaLimitProviders.
2. Update operations example.

* Remove allof from usages.

* 1. Updating 202 response schema.
2. Adding location header as per - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#updating-using-patch

* Updating Patch 202 response model type.

* Updating description of put and API api to check location header for detailed status.

* Updates to description.

* Update quota.json

* Update quota.json

Text scrub up to line 256

* Update quota.json

Scrubbed all text strings.

* Running prettier.

* Updating Network examples to include resourceType.

* Updating Networking Examples.

* Remove 202 response body for Put and Patch.

* preRemove example - putMachineLearningServicesQuotaRequestDedicated.json

* Remove example - putMachineLearningServicesQuotaRequestDedicated.json

Co-authored-by: Arcturus Zhang <dapzhang@microsoft.com>
Co-authored-by: Pilar Ackerman <v-piacke@microsoft.com>
  • Loading branch information
3 people authored Aug 31, 2021
1 parent 5768df1 commit 21ffb64
Show file tree
Hide file tree
Showing 24 changed files with 2,100 additions and 707 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,39 +7,39 @@
"body": {
"value": [
{
"name": "Microsoft.Quota/quotaLimits/read",
"name": "Microsoft.Quota/usages/read",
"display": {
"provider": "Microsoft Quota",
"resource": "Resource service limit",
"operation": "Get resource service limit",
"description": "Get the current service limit or quota of the specified resource and location"
"resource": "Resource current usages",
"operation": "Get resource usages",
"description": "Get the current usages of the specified resource and location"
}
},
{
"name": "Microsoft.Quota/quotaLimits/write",
"name": "Microsoft.Quota/quotas/read",
"display": {
"provider": "Microsoft Quota",
"resource": "Resource service limit",
"operation": "Create resource service limit",
"description": "Create service limit or quota for the specified resource and location"
"resource": "Resource quota limit",
"operation": "Get resource quota limit",
"description": "Get the current service limit or quota of the specified resource and location"
}
},
{
"name": "Microsoft.Quota/quotaLimitProviders/read",
"name": "Microsoft.Quota/quotas/write",
"display": {
"provider": "Microsoft Quota",
"resource": "Quota limits provider metadata",
"operation": "Get quota limit providers metadata",
"description": "Get quota limit resource providers metadata"
"resource": "Resource quota limit",
"operation": "Create resource quota limit",
"description": "Create service limit or quota for the specified resource and location"
}
},
{
"name": "Microsoft.Quota/quotaLimitsRequests/read",
"name": "Microsoft.Quota/quotaRequests/read",
"display": {
"provider": "Microsoft Quota",
"resource": "Resource service limit request",
"operation": "Get service limit request",
"description": "Get any service limit request for the specified resource and location"
"resource": "Resource quota request",
"operation": "Get quota request",
"description": "Get any quota request for the specified resource and location"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"parameters": {
"scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus",
"resourceName": "standardNDSFamily",
"api-version": "2021-03-15-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardNDSFamily",
"type": "Microsoft.Quota/Quotas",
"name": "standardNDSFamily",
"properties": {
"limit": {
"limitObjectType": "LimitValue",
"value": 100,
"limitType": "Independent"
},
"unit": "Count",
"name": {
"value": "standardNDSFamily",
"localizedValue": "Standard NDS Family vCPUs"
},
"isQuotaApplicable": true
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@
"responses": {
"200": {
"body": {
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardNDSFamily",
"type": "Microsoft.Quota/quotaLimits",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Usages/standardNDSFamily",
"type": "Microsoft.Quota/Usages",
"name": "standardNDSFamily",
"properties": {
"limit": 10,
"usages": {
"usagesType": "Individual",
"value": 10
},
"unit": "Count",
"name": {
"value": "standardNDSFamily",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
{
"parameters": {
"scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus",
"api-version": "2021-03-15-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardFSv2Family",
"type": "Microsoft.Quota/Quotas",
"name": "standardFSv2Family",
"properties": {
"limit": {
"limitObjectType": "LimitValue",
"value": 10
},
"unit": "Count",
"isQuotaApplicable": true,
"name": {
"value": "standardFSv2Family",
"localizedValue": "Standard FSv2 Family vCPUs"
}
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardNDSFamily",
"type": "Microsoft.Quota/Quotas",
"name": "standardNDSFamily",
"properties": {
"limit": {
"limitObjectType": "LimitValue",
"value": 10
},
"unit": "Count",
"isQuotaApplicable": true,
"name": {
"value": "standardNDSFamily",
"localizedValue": "Standard NDS Family vCPUs"
}
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardNCSv2Family",
"type": "Microsoft.Quota/Quotas",
"name": "standardNCSv2Family",
"properties": {
"limit": {
"limitObjectType": "LimitValue",
"value": 10
},
"unit": "Count",
"isQuotaApplicable": true,
"name": {
"value": "standardNCSv2Family",
"localizedValue": "Standard NCSv2 Family vCPUs"
}
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardNCSv3Family",
"type": "Microsoft.Quota/Quotas",
"name": "standardNCSv3Family",
"properties": {
"limit": {
"limitObjectType": "LimitValue",
"value": 10
},
"unit": "Count",
"isQuotaApplicable": true,
"name": {
"value": "standardNCSv3Family",
"localizedValue": "Standard NCSv3 Family vCPUs"
}
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardLSv2Family",
"type": "Microsoft.Quota/Quotas",
"name": "standardLSv2Family",
"properties": {
"limit": {
"limitObjectType": "LimitValue",
"value": 10
},
"unit": "Count",
"isQuotaApplicable": true,
"name": {
"value": "standardLSv2Family",
"localizedValue": "Standard LSv2 Family vCPUs"
}
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardPBSFamily",
"type": "Microsoft.Quota/Quotas",
"name": "standardPBSFamily",
"properties": {
"limit": {
"limitObjectType": "LimitValue",
"value": 10
},
"unit": "Count",
"isQuotaApplicable": true,
"name": {
"value": "standardPBSFamily",
"localizedValue": "Standard PBS Family vCPUs"
}
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardEIv3Family",
"type": "Microsoft.Quota/Quotas",
"name": "standardEIv3Family",
"properties": {
"limit": {
"limitObjectType": "LimitValue",
"value": 10
},
"unit": "Count",
"isQuotaApplicable": true,
"name": {
"value": "standardEIv3Family",
"localizedValue": "Standard EIv3 Family vCPUs"
}
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardEISv3Family",
"type": "Microsoft.Quota/Quotas",
"name": "standardEISv3Family",
"properties": {
"limit": {
"limitObjectType": "LimitValue",
"value": 10
},
"unit": "Count",
"isQuotaApplicable": true,
"name": {
"value": "standardEISv3Family",
"localizedValue": "Standard EISv3 Family vCPUs"
}
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardDCSFamily",
"type": "Microsoft.Quota/Quotas",
"name": "standardDCSFamily",
"properties": {
"limit": {
"limitObjectType": "LimitValue",
"value": 10
},
"unit": "Count",
"isQuotaApplicable": true,
"name": {
"value": "standardDCSFamily",
"localizedValue": "Standard DCS Family vCPUs"
}
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardNVSv2Family",
"type": "Microsoft.Quota/Quotas",
"name": "standardNVSv2Family",
"properties": {
"limit": {
"limitObjectType": "LimitValue",
"value": 10
},
"unit": "Count",
"isQuotaApplicable": true,
"name": {
"value": "standardNVSv2Family",
"localizedValue": "Standard NVSv2 Family vCPUs"
}
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardMSv2Family",
"type": "Microsoft.Quota/Quotas",
"name": "standardMSv2Family",
"properties": {
"limit": {
"limitObjectType": "LimitValue",
"value": 10
},
"unit": "Count",
"isQuotaApplicable": true,
"name": {
"value": "standardMSv2Family",
"localizedValue": "Standard MSv2 Family vCPUs"
}
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/availabilitySets",
"type": "Microsoft.Quota/Quotas",
"name": "availabilitySets",
"properties": {
"limit": {
"limitObjectType": "LimitValue",
"value": 10
},
"unit": "Count",
"isQuotaApplicable": false,
"name": {
"value": "availabilitySets",
"localizedValue": "Availability Sets"
}
}
}
],
"nextLink": ""
}
}
}
}
Loading

0 comments on commit 21ffb64

Please sign in to comment.