Skip to content

Commit 5f67075

Browse files
rahuls-microsoftArcturusZhang
authored andcommitted
Quota API extension model for Quota RP (New RP providing Capacity RP'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>
1 parent 2b91477 commit 5f67075

38 files changed

+4753
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-03-15-preview"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"name": "Microsoft.Quota/quotaLimits/read",
11+
"display": {
12+
"provider": "Microsoft Quota",
13+
"resource": "Resource service limit",
14+
"operation": "Get resource service limit",
15+
"description": "Get the current service limit or quota of the specified resource and location"
16+
}
17+
},
18+
{
19+
"name": "Microsoft.Quota/quotaLimits/write",
20+
"display": {
21+
"provider": "Microsoft Quota",
22+
"resource": "Resource service limit",
23+
"operation": "Create resource service limit",
24+
"description": "Create service limit or quota for the specified resource and location"
25+
}
26+
},
27+
{
28+
"name": "Microsoft.Quota/quotaLimitProviders/read",
29+
"display": {
30+
"provider": "Microsoft Quota",
31+
"resource": "Quota limits provider metadata",
32+
"operation": "Get quota limit providers metadata",
33+
"description": "Get quota limit resource providers metadata"
34+
}
35+
},
36+
{
37+
"name": "Microsoft.Quota/quotaLimitsRequests/read",
38+
"display": {
39+
"provider": "Microsoft Quota",
40+
"resource": "Resource service limit request",
41+
"operation": "Get service limit request",
42+
"description": "Get any service limit request for the specified resource and location"
43+
}
44+
}
45+
]
46+
}
47+
}
48+
}
49+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus",
4+
"resourceName": "standardNDSFamily",
5+
"api-version": "2021-03-15-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardNDSFamily",
11+
"type": "Microsoft.Quota/quotaLimits",
12+
"name": "standardNDSFamily",
13+
"properties": {
14+
"limit": 10,
15+
"unit": "Count",
16+
"name": {
17+
"value": "standardNDSFamily",
18+
"localizedValue": "Standard NDS Family vCPUs"
19+
},
20+
"isQuotaApplicable": true
21+
}
22+
}
23+
}
24+
}
25+
}
Lines changed: 195 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,195 @@
1+
{
2+
"parameters": {
3+
"scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus",
4+
"api-version": "2021-03-15-preview"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardFSv2Family",
12+
"type": "Microsoft.Quota/quotaLimits",
13+
"name": "standardFSv2Family",
14+
"properties": {
15+
"limit": 100,
16+
"unit": "Count",
17+
"currentValue": 0,
18+
"isQuotaApplicable": true,
19+
"name": {
20+
"value": "standardFSv2Family",
21+
"localizedValue": "Standard FSv2 Family vCPUs"
22+
}
23+
}
24+
},
25+
{
26+
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardNDSFamily",
27+
"type": "Microsoft.Quota/quotaLimits",
28+
"name": "standardNDSFamily",
29+
"properties": {
30+
"limit": 0,
31+
"unit": "Count",
32+
"currentValue": 0,
33+
"isQuotaApplicable": true,
34+
"name": {
35+
"value": "standardNDSFamily",
36+
"localizedValue": "Standard NDS Family vCPUs"
37+
}
38+
}
39+
},
40+
{
41+
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardNCSv2Family",
42+
"type": "Microsoft.Quota/quotaLimits",
43+
"name": "standardNCSv2Family",
44+
"properties": {
45+
"limit": 0,
46+
"unit": "Count",
47+
"currentValue": 0,
48+
"isQuotaApplicable": true,
49+
"name": {
50+
"value": "standardNCSv2Family",
51+
"localizedValue": "Standard NCSv2 Family vCPUs"
52+
}
53+
}
54+
},
55+
{
56+
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardNCSv3Family",
57+
"type": "Microsoft.Quota/quotaLimits",
58+
"name": "standardNCSv3Family",
59+
"properties": {
60+
"limit": 0,
61+
"unit": "Count",
62+
"currentValue": 0,
63+
"isQuotaApplicable": true,
64+
"name": {
65+
"value": "standardNCSv3Family",
66+
"localizedValue": "Standard NCSv3 Family vCPUs"
67+
}
68+
}
69+
},
70+
{
71+
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardLSv2Family",
72+
"type": "Microsoft.Quota/quotaLimits",
73+
"name": "standardLSv2Family",
74+
"properties": {
75+
"limit": 100,
76+
"unit": "Count",
77+
"currentValue": 0,
78+
"isQuotaApplicable": true,
79+
"name": {
80+
"value": "standardLSv2Family",
81+
"localizedValue": "Standard LSv2 Family vCPUs"
82+
}
83+
}
84+
},
85+
{
86+
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardPBSFamily",
87+
"type": "Microsoft.Quota/quotaLimits",
88+
"name": "standardPBSFamily",
89+
"properties": {
90+
"limit": 6,
91+
"unit": "Count",
92+
"currentValue": 0,
93+
"isQuotaApplicable": true,
94+
"name": {
95+
"value": "standardPBSFamily",
96+
"localizedValue": "Standard PBS Family vCPUs"
97+
}
98+
}
99+
},
100+
{
101+
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardEIv3Family",
102+
"type": "Microsoft.Quota/quotaLimits",
103+
"name": "standardEIv3Family",
104+
"properties": {
105+
"limit": 100,
106+
"unit": "Count",
107+
"currentValue": 0,
108+
"isQuotaApplicable": true,
109+
"name": {
110+
"value": "standardEIv3Family",
111+
"localizedValue": "Standard EIv3 Family vCPUs"
112+
}
113+
}
114+
},
115+
{
116+
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardEISv3Family",
117+
"type": "Microsoft.Quota/quotaLimits",
118+
"name": "standardEISv3Family",
119+
"properties": {
120+
"limit": 100,
121+
"unit": "Count",
122+
"currentValue": 0,
123+
"isQuotaApplicable": true,
124+
"name": {
125+
"value": "standardEISv3Family",
126+
"localizedValue": "Standard EISv3 Family vCPUs"
127+
}
128+
}
129+
},
130+
{
131+
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardDCSFamily",
132+
"type": "Microsoft.Quota/quotaLimits",
133+
"name": "standardDCSFamily",
134+
"properties": {
135+
"limit": 8,
136+
"unit": "Count",
137+
"currentValue": 0,
138+
"isQuotaApplicable": true,
139+
"name": {
140+
"value": "standardDCSFamily",
141+
"localizedValue": "Standard DCS Family vCPUs"
142+
}
143+
}
144+
},
145+
{
146+
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardNVSv2Family",
147+
"type": "Microsoft.Quota/quotaLimits",
148+
"name": "standardNVSv2Family",
149+
"properties": {
150+
"limit": 0,
151+
"unit": "Count",
152+
"currentValue": 0,
153+
"isQuotaApplicable": true,
154+
"name": {
155+
"value": "standardNVSv2Family",
156+
"localizedValue": "Standard NVSv2 Family vCPUs"
157+
}
158+
}
159+
},
160+
{
161+
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardMSv2Family",
162+
"type": "Microsoft.Quota/quotaLimits",
163+
"name": "standardMSv2Family",
164+
"properties": {
165+
"limit": 0,
166+
"unit": "Count",
167+
"currentValue": 0,
168+
"isQuotaApplicable": true,
169+
"name": {
170+
"value": "standardMSv2Family",
171+
"localizedValue": "Standard MSv2 Family vCPUs"
172+
}
173+
}
174+
},
175+
{
176+
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/availabilitySets",
177+
"type": "Microsoft.Quota/quotaLimits",
178+
"name": "availabilitySets",
179+
"properties": {
180+
"limit": 0,
181+
"unit": "Count",
182+
"currentValue": 0,
183+
"isQuotaApplicable": false,
184+
"name": {
185+
"value": "availabilitySets",
186+
"localizedValue": "Availability Sets"
187+
}
188+
}
189+
}
190+
],
191+
"nextLink": ""
192+
}
193+
}
194+
}
195+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"parameters": {
3+
"scope": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningServices/locations/eastus",
4+
"api-version": "2021-03-15-preview"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningServices/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardDv2Family",
12+
"type": "Microsoft.Quota/quotaLimits",
13+
"name": "standardDv2Family",
14+
"properties": {
15+
"currentValue": 15,
16+
"limit": 20,
17+
"name": {
18+
"value": "standardDv2Family",
19+
"localizedValue": "Standard Dv2 Family vCPUs"
20+
},
21+
"resourceType": "dedicated"
22+
}
23+
},
24+
{
25+
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningServices/locations/eastus/providers/Microsoft.Quota/quotaLimits/totalLowPriorityCores",
26+
"type": "Microsoft.Quota/quotaLimits",
27+
"name": "totalLowPriorityCores",
28+
"properties": {
29+
"currentValue": 49,
30+
"limit": 600,
31+
"name": {
32+
"value": "totalLowPriorityCores",
33+
"localizedValue": "Total Regional Low-priority vCPUs"
34+
},
35+
"resourceType": "lowPriority"
36+
}
37+
}
38+
]
39+
}
40+
}
41+
}
42+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"parameters": {
3+
"scope": "subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus",
4+
"id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
5+
"api-version": "2021-03-15-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
11+
"type": "Microsoft.Quota/serviceLimitsRequests",
12+
"name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
13+
"properties": {
14+
"requestSubmitTime": "2019-08-19T19:23:17.904Z",
15+
"message": "Request completed",
16+
"provisioningState": "Succeeded",
17+
"value": [
18+
{
19+
"limit": 200,
20+
"subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C",
21+
"name": {
22+
"value": "standardHCSFamily",
23+
"localizedValue": "Standard HCS Family vCPUs"
24+
},
25+
"message": "Request completed",
26+
"provisioningState": "Succeeded"
27+
},
28+
{
29+
"limit": 50,
30+
"name": {
31+
"value": "standardNCPromoFamily",
32+
"localizedValue": "Standard NC Promo Family vCPUs"
33+
},
34+
"message": "Request completed",
35+
"provisioningState": "Succeeded"
36+
}
37+
]
38+
}
39+
}
40+
}
41+
}
42+
}

0 commit comments

Comments
 (0)