Skip to content

Commit

Permalink
Quota API extension model for Quota RP (New RP providing Capacity RP'…
Browse files Browse the repository at this point in the history
…s quota APIs as ARM extension) (Azure#13623)

* 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 Quota Extension Model APIs and examples.

* Updating Batch Example.

* Updatng Quota Dimensions model.

* Model Updates.

* Updated examples and backup.

* Updating examples to flat file structure.

* Updating data model for quotaMetaData.

* Removing backup files.

* Updating quota,json.

* Fixing examples.

* Fixing enum definition.

* Addind systemData to response.

* Updated atch example.

* Remove blank line.

* Fixing path for types.json

* Running prettier

* Removing systemData.

* Updating readonly falg.

* Changing API version to preview-2021-03-15 to address INCONSISTENT_API_VERSION.

* Updating RP name to Quota

* Updating API version to 2021-03-15-preview

* Adding other SDKs build configuration

* Updating name to Quota.

* Updating API version - 2021-03-15-preview to 2021-03-15.
To address INCONSISTENT_API_VERSION

* Updating and adding version to stable and preview.

* Updates to config.

* Adding Ruby to config.

* Config Updates.

* Update

* Update.

* Adding supression.
Fix it later as needed.

* Updating for warnings.

* Prettier check fix.

* Updating build settings.

* Temp fix for permission issue. Pointing to existing reservations dir.
Change it back to -
  output-folder: $(csharp-sdks-folder)/quota/Microsoft.Azure.Management.Quota/src/Generated

* fixing readme.md.

* Removing conflict with reservation.

* setting -preview to default.

* remove -preview tag.

* Spliting variable path APIs and fixed path APIS.

* Spliting the extension and non extension APIs.

* Prettier fix.

* Fixing examples.

* Running prettier.

* Adding definion to duplicate file.

* Adding definitios.

* Reference to new file.

* pdating to stable version.

* Removing preview version files.

* Removing Preview version from readme.md.

* Removing preview version.

* Removing Preview version.

* Updating Batch Sample.

* Adding rescourceQuery and resourceQueryUri to quota dimensions.

* Removing resourceQueryUri.

* Remove quotaMetadata API and examples.

* Add update for metadata API and preview version.

* Adding Preview version API.

* Preview version.

* Updating preview version.

* Updating Preview version.

* Adding resourceUsagesApiTemplate to get resource usages.

* Adding resourceUsagesApiTemplate.

* run Prettier.

* Adding resourceUsagesApiTemplate to stable version.

* Updating example.

* Moving resourceUsagesApiTemplate at resourceType level.

* Prettier check.

* Updating examples.

* Adding Preview version config.

* Copying from master

* Move ResourceQuery at ResourceType level.

* Updating documentation.

* Updating field name to - isQuotaRequestPermitted.
Updating examples to include field - isQuotaRequestPermitted.
Updating build version and directives.

* Changing field name to isQuotaApplicable

* Removing .vscode files.

* Adding isOptional Field for resourceUsagesQuery

* Fixing formatting.

* Adding "resourceUsagesQuery" optional field to example.

* Fixing formatting.

* Ficing formatting.

* Adding new fields for resource query and making it extendable.

* Removing "isOptional": field.

* Updating stable schema.

* Updating examples.

* Fixing examples.

* Updating examples.

* Updating examples to include full resource path in id field.

* Running prettier to fix the formatting.

* Fixing readme files.

* Updating readme.md files.

* Undo changes for Package-lock.json.

* Undo changes to Package.json.

* Documentation update for Quota APIs.

* Removing mdash&;. It didn't like that tag in docs.

* 1. Using common types for ApiVersionParameter.
2. Removing "resourceUsagesApiTemplate" field.
3. Updating examples with full url.

* Removing ref - ApiVersionParameter, as it causing build error.

* Using {scope} to define path.

* Adding scope parameter definition.

* Update API definitions to include {scope} in put and patch.
Updated RP metadata example.

* Updating examples with Azure resource graph query.

* Fixing {scope} path.

* Adding - "x-ms-parameter-location": "method" for scope parameter.

* Adding missing subscriptions/ element to examples.

* Fixing CLI readme.md

* ReadMe.cli.md update.

* Adding Id field in quotaLimits.

* Updating name to match SKU name.

* changed serviceLimitsRequests to quotaLimitsRequests to match the operations.

* Update put/patch responses to 202.

* Updating response code to 202.

* Removing the nested Properties from the put response.

* Apply nested properties, as Model validation failed.

* Revert "Apply nested properties, as Model validation failed."

This reverts commit 88e6f87.

* Revert "Removing the nested Properties from the put response."

This reverts commit c54a20b.

* Updating the Model and patch sample to validate the suggested changes.

* Updating example responses for put and patch

* Running prettier

* Adding "type" : "object" to the schema

* Adding headers for Async operation.

* Fix the location uri.

* Updating Put and Patch APIs examples with async headers.

* Updating Put response to 201 and updating examples.

* 1. Adding type to the Get responses.
2. Include the original request body in response.

* 1. Return Put/Patch response same as the original request body .
2. Updated schema and examples.

* Removing readonly property unit.

* 1. Put id, name, type with all other properties.

* Fxing examples.

* Fixing ML example

* Moving id, name, type to top level. Fixing examples.

* Fixing - Top level properties should be one of name, type, id.

* Fixing Get API examples.

* Updating operations api response.

* Updating the examples and model.

* Fixing id values in put,patch examples.

* Fixing Azure CLI md file.

* Adding top level name property.
Fixing examples.
Removing unused models.

* Removing  "x-ms-azure-resource": true

* Adding top level name property to put and patch examples.

* Fixinf Put response to 202.

* Removing test-scenario from reame.cli.md

* Fixing GO build settings.

Co-authored-by: Arcturus Zhang <dapzhang@microsoft.com>
  • Loading branch information
2 people authored and mkarmark committed Jul 20, 2021
1 parent 8a64766 commit d77752d
Show file tree
Hide file tree
Showing 38 changed files with 4,753 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"parameters": {
"api-version": "2021-03-15-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.Quota/quotaLimits/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"
}
},
{
"name": "Microsoft.Quota/quotaLimits/write",
"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"
}
},
{
"name": "Microsoft.Quota/quotaLimitProviders/read",
"display": {
"provider": "Microsoft Quota",
"resource": "Quota limits provider metadata",
"operation": "Get quota limit providers metadata",
"description": "Get quota limit resource providers metadata"
}
},
{
"name": "Microsoft.Quota/quotaLimitsRequests/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"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"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/quotaLimits/standardNDSFamily",
"type": "Microsoft.Quota/quotaLimits",
"name": "standardNDSFamily",
"properties": {
"limit": 10,
"unit": "Count",
"name": {
"value": "standardNDSFamily",
"localizedValue": "Standard NDS Family vCPUs"
},
"isQuotaApplicable": true
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
{
"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/quotaLimits/standardFSv2Family",
"type": "Microsoft.Quota/quotaLimits",
"name": "standardFSv2Family",
"properties": {
"limit": 100,
"unit": "Count",
"currentValue": 0,
"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/quotaLimits/standardNDSFamily",
"type": "Microsoft.Quota/quotaLimits",
"name": "standardNDSFamily",
"properties": {
"limit": 0,
"unit": "Count",
"currentValue": 0,
"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/quotaLimits/standardNCSv2Family",
"type": "Microsoft.Quota/quotaLimits",
"name": "standardNCSv2Family",
"properties": {
"limit": 0,
"unit": "Count",
"currentValue": 0,
"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/quotaLimits/standardNCSv3Family",
"type": "Microsoft.Quota/quotaLimits",
"name": "standardNCSv3Family",
"properties": {
"limit": 0,
"unit": "Count",
"currentValue": 0,
"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/quotaLimits/standardLSv2Family",
"type": "Microsoft.Quota/quotaLimits",
"name": "standardLSv2Family",
"properties": {
"limit": 100,
"unit": "Count",
"currentValue": 0,
"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/quotaLimits/standardPBSFamily",
"type": "Microsoft.Quota/quotaLimits",
"name": "standardPBSFamily",
"properties": {
"limit": 6,
"unit": "Count",
"currentValue": 0,
"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/quotaLimits/standardEIv3Family",
"type": "Microsoft.Quota/quotaLimits",
"name": "standardEIv3Family",
"properties": {
"limit": 100,
"unit": "Count",
"currentValue": 0,
"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/quotaLimits/standardEISv3Family",
"type": "Microsoft.Quota/quotaLimits",
"name": "standardEISv3Family",
"properties": {
"limit": 100,
"unit": "Count",
"currentValue": 0,
"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/quotaLimits/standardDCSFamily",
"type": "Microsoft.Quota/quotaLimits",
"name": "standardDCSFamily",
"properties": {
"limit": 8,
"unit": "Count",
"currentValue": 0,
"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/quotaLimits/standardNVSv2Family",
"type": "Microsoft.Quota/quotaLimits",
"name": "standardNVSv2Family",
"properties": {
"limit": 0,
"unit": "Count",
"currentValue": 0,
"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/quotaLimits/standardMSv2Family",
"type": "Microsoft.Quota/quotaLimits",
"name": "standardMSv2Family",
"properties": {
"limit": 0,
"unit": "Count",
"currentValue": 0,
"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/quotaLimits/availabilitySets",
"type": "Microsoft.Quota/quotaLimits",
"name": "availabilitySets",
"properties": {
"limit": 0,
"unit": "Count",
"currentValue": 0,
"isQuotaApplicable": false,
"name": {
"value": "availabilitySets",
"localizedValue": "Availability Sets"
}
}
}
],
"nextLink": ""
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningServices/locations/eastus",
"api-version": "2021-03-15-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningServices/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardDv2Family",
"type": "Microsoft.Quota/quotaLimits",
"name": "standardDv2Family",
"properties": {
"currentValue": 15,
"limit": 20,
"name": {
"value": "standardDv2Family",
"localizedValue": "Standard Dv2 Family vCPUs"
},
"resourceType": "dedicated"
}
},
{
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningServices/locations/eastus/providers/Microsoft.Quota/quotaLimits/totalLowPriorityCores",
"type": "Microsoft.Quota/quotaLimits",
"name": "totalLowPriorityCores",
"properties": {
"currentValue": 49,
"limit": 600,
"name": {
"value": "totalLowPriorityCores",
"localizedValue": "Total Regional Low-priority vCPUs"
},
"resourceType": "lowPriority"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"scope": "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus",
"id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"api-version": "2021-03-15-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"type": "Microsoft.Quota/serviceLimitsRequests",
"name": "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"
}
]
}
}
}
}
}
Loading

0 comments on commit d77752d

Please sign in to comment.