Skip to content

Commit 21ffb64

Browse files
rahuls-microsoftArcturusZhangpilara-ms
authored
[QuotaRP] Split QuotaLimits API to - Usages and Quotas API (#15416)
* 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>
1 parent 5768df1 commit 21ffb64

24 files changed

+2100
-707
lines changed

specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/GetOperations.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,39 @@
77
"body": {
88
"value": [
99
{
10-
"name": "Microsoft.Quota/quotaLimits/read",
10+
"name": "Microsoft.Quota/usages/read",
1111
"display": {
1212
"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"
13+
"resource": "Resource current usages",
14+
"operation": "Get resource usages",
15+
"description": "Get the current usages of the specified resource and location"
1616
}
1717
},
1818
{
19-
"name": "Microsoft.Quota/quotaLimits/write",
19+
"name": "Microsoft.Quota/quotas/read",
2020
"display": {
2121
"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"
22+
"resource": "Resource quota limit",
23+
"operation": "Get resource quota limit",
24+
"description": "Get the current service limit or quota of the specified resource and location"
2525
}
2626
},
2727
{
28-
"name": "Microsoft.Quota/quotaLimitProviders/read",
28+
"name": "Microsoft.Quota/quotas/write",
2929
"display": {
3030
"provider": "Microsoft Quota",
31-
"resource": "Quota limits provider metadata",
32-
"operation": "Get quota limit providers metadata",
33-
"description": "Get quota limit resource providers metadata"
31+
"resource": "Resource quota limit",
32+
"operation": "Create resource quota limit",
33+
"description": "Create service limit or quota for the specified resource and location"
3434
}
3535
},
3636
{
37-
"name": "Microsoft.Quota/quotaLimitsRequests/read",
37+
"name": "Microsoft.Quota/quotaRequests/read",
3838
"display": {
3939
"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"
40+
"resource": "Resource quota request",
41+
"operation": "Get quota request",
42+
"description": "Get any quota request for the specified resource and location"
4343
}
4444
}
4545
]
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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/Quotas/standardNDSFamily",
11+
"type": "Microsoft.Quota/Quotas",
12+
"name": "standardNDSFamily",
13+
"properties": {
14+
"limit": {
15+
"limitObjectType": "LimitValue",
16+
"value": 100,
17+
"limitType": "Independent"
18+
},
19+
"unit": "Count",
20+
"name": {
21+
"value": "standardNDSFamily",
22+
"localizedValue": "Standard NDS Family vCPUs"
23+
},
24+
"isQuotaApplicable": true
25+
}
26+
}
27+
}
28+
}
29+
}

specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/examples/getComputeOneSkuUsages.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@
77
"responses": {
88
"200": {
99
"body": {
10-
"id": "subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/quotaLimits/standardNDSFamily",
11-
"type": "Microsoft.Quota/quotaLimits",
10+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Usages/standardNDSFamily",
11+
"type": "Microsoft.Quota/Usages",
1212
"name": "standardNDSFamily",
1313
"properties": {
14-
"limit": 10,
14+
"usages": {
15+
"usagesType": "Individual",
16+
"value": 10
17+
},
1518
"unit": "Count",
1619
"name": {
1720
"value": "standardNDSFamily",
Lines changed: 219 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,219 @@
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/Quotas/standardFSv2Family",
12+
"type": "Microsoft.Quota/Quotas",
13+
"name": "standardFSv2Family",
14+
"properties": {
15+
"limit": {
16+
"limitObjectType": "LimitValue",
17+
"value": 10
18+
},
19+
"unit": "Count",
20+
"isQuotaApplicable": true,
21+
"name": {
22+
"value": "standardFSv2Family",
23+
"localizedValue": "Standard FSv2 Family vCPUs"
24+
}
25+
}
26+
},
27+
{
28+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardNDSFamily",
29+
"type": "Microsoft.Quota/Quotas",
30+
"name": "standardNDSFamily",
31+
"properties": {
32+
"limit": {
33+
"limitObjectType": "LimitValue",
34+
"value": 10
35+
},
36+
"unit": "Count",
37+
"isQuotaApplicable": true,
38+
"name": {
39+
"value": "standardNDSFamily",
40+
"localizedValue": "Standard NDS Family vCPUs"
41+
}
42+
}
43+
},
44+
{
45+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardNCSv2Family",
46+
"type": "Microsoft.Quota/Quotas",
47+
"name": "standardNCSv2Family",
48+
"properties": {
49+
"limit": {
50+
"limitObjectType": "LimitValue",
51+
"value": 10
52+
},
53+
"unit": "Count",
54+
"isQuotaApplicable": true,
55+
"name": {
56+
"value": "standardNCSv2Family",
57+
"localizedValue": "Standard NCSv2 Family vCPUs"
58+
}
59+
}
60+
},
61+
{
62+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardNCSv3Family",
63+
"type": "Microsoft.Quota/Quotas",
64+
"name": "standardNCSv3Family",
65+
"properties": {
66+
"limit": {
67+
"limitObjectType": "LimitValue",
68+
"value": 10
69+
},
70+
"unit": "Count",
71+
"isQuotaApplicable": true,
72+
"name": {
73+
"value": "standardNCSv3Family",
74+
"localizedValue": "Standard NCSv3 Family vCPUs"
75+
}
76+
}
77+
},
78+
{
79+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardLSv2Family",
80+
"type": "Microsoft.Quota/Quotas",
81+
"name": "standardLSv2Family",
82+
"properties": {
83+
"limit": {
84+
"limitObjectType": "LimitValue",
85+
"value": 10
86+
},
87+
"unit": "Count",
88+
"isQuotaApplicable": true,
89+
"name": {
90+
"value": "standardLSv2Family",
91+
"localizedValue": "Standard LSv2 Family vCPUs"
92+
}
93+
}
94+
},
95+
{
96+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardPBSFamily",
97+
"type": "Microsoft.Quota/Quotas",
98+
"name": "standardPBSFamily",
99+
"properties": {
100+
"limit": {
101+
"limitObjectType": "LimitValue",
102+
"value": 10
103+
},
104+
"unit": "Count",
105+
"isQuotaApplicable": true,
106+
"name": {
107+
"value": "standardPBSFamily",
108+
"localizedValue": "Standard PBS Family vCPUs"
109+
}
110+
}
111+
},
112+
{
113+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardEIv3Family",
114+
"type": "Microsoft.Quota/Quotas",
115+
"name": "standardEIv3Family",
116+
"properties": {
117+
"limit": {
118+
"limitObjectType": "LimitValue",
119+
"value": 10
120+
},
121+
"unit": "Count",
122+
"isQuotaApplicable": true,
123+
"name": {
124+
"value": "standardEIv3Family",
125+
"localizedValue": "Standard EIv3 Family vCPUs"
126+
}
127+
}
128+
},
129+
{
130+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardEISv3Family",
131+
"type": "Microsoft.Quota/Quotas",
132+
"name": "standardEISv3Family",
133+
"properties": {
134+
"limit": {
135+
"limitObjectType": "LimitValue",
136+
"value": 10
137+
},
138+
"unit": "Count",
139+
"isQuotaApplicable": true,
140+
"name": {
141+
"value": "standardEISv3Family",
142+
"localizedValue": "Standard EISv3 Family vCPUs"
143+
}
144+
}
145+
},
146+
{
147+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardDCSFamily",
148+
"type": "Microsoft.Quota/Quotas",
149+
"name": "standardDCSFamily",
150+
"properties": {
151+
"limit": {
152+
"limitObjectType": "LimitValue",
153+
"value": 10
154+
},
155+
"unit": "Count",
156+
"isQuotaApplicable": true,
157+
"name": {
158+
"value": "standardDCSFamily",
159+
"localizedValue": "Standard DCS Family vCPUs"
160+
}
161+
}
162+
},
163+
{
164+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardNVSv2Family",
165+
"type": "Microsoft.Quota/Quotas",
166+
"name": "standardNVSv2Family",
167+
"properties": {
168+
"limit": {
169+
"limitObjectType": "LimitValue",
170+
"value": 10
171+
},
172+
"unit": "Count",
173+
"isQuotaApplicable": true,
174+
"name": {
175+
"value": "standardNVSv2Family",
176+
"localizedValue": "Standard NVSv2 Family vCPUs"
177+
}
178+
}
179+
},
180+
{
181+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/standardMSv2Family",
182+
"type": "Microsoft.Quota/Quotas",
183+
"name": "standardMSv2Family",
184+
"properties": {
185+
"limit": {
186+
"limitObjectType": "LimitValue",
187+
"value": 10
188+
},
189+
"unit": "Count",
190+
"isQuotaApplicable": true,
191+
"name": {
192+
"value": "standardMSv2Family",
193+
"localizedValue": "Standard MSv2 Family vCPUs"
194+
}
195+
}
196+
},
197+
{
198+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/providers/Microsoft.Quota/Quotas/availabilitySets",
199+
"type": "Microsoft.Quota/Quotas",
200+
"name": "availabilitySets",
201+
"properties": {
202+
"limit": {
203+
"limitObjectType": "LimitValue",
204+
"value": 10
205+
},
206+
"unit": "Count",
207+
"isQuotaApplicable": false,
208+
"name": {
209+
"value": "availabilitySets",
210+
"localizedValue": "Availability Sets"
211+
}
212+
}
213+
}
214+
],
215+
"nextLink": ""
216+
}
217+
}
218+
}
219+
}

0 commit comments

Comments
 (0)