Skip to content

Commit b7f18ee

Browse files
[CapacityRP] [S360] Fix R3007 Linter Error in Microsoft.Capacity (#17711)
* change 200 response for PUT/PATCH * add integer type and remove extra fields to pass model check * add id, name, type to GET/PUT/PATCH 200 response * run prettier * change x-ms-long-running-operation-options
1 parent caced2b commit b7f18ee

File tree

5 files changed

+61
-67
lines changed

5 files changed

+61
-67
lines changed

specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/patchComputeQuotaRequest.json

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,15 @@
3333
"name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
3434
"type": "Microsoft.Capacity/serviceLimits",
3535
"properties": {
36-
"provisioningState": "Succeeded",
37-
"message": "",
38-
"properties": {
39-
"properties": {
40-
"limit": 200,
41-
"unit": "Count",
42-
"currentValue": 160,
43-
"name": {
44-
"value": "standardFSv2Family",
45-
"localizedValue": "Standard FSv2 Family vCPUs"
46-
},
47-
"quotaPeriod": "",
48-
"properties": {}
49-
}
50-
}
36+
"limit": 200,
37+
"unit": "Count",
38+
"currentValue": 160,
39+
"name": {
40+
"value": "standardFSv2Family",
41+
"localizedValue": "Standard FSv2 Family vCPUs"
42+
},
43+
"quotaPeriod": "",
44+
"properties": {}
5145
}
5246
}
5347
}

specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putComputeOneSkuQuotaRequest.json

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,15 @@
3333
"name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
3434
"type": "Microsoft.Capacity/serviceLimits",
3535
"properties": {
36-
"provisioningState": "Succeeded",
37-
"message": "Request succeeded",
38-
"properties": {
39-
"properties": {
40-
"limit": 200,
41-
"unit": "Count",
42-
"currentValue": 160,
43-
"name": {
44-
"value": "standardFSv2Family",
45-
"localizedValue": "Standard FSv2 Family vCPUs"
46-
},
47-
"quotaPeriod": "",
48-
"properties": {}
49-
}
50-
}
36+
"limit": 200,
37+
"unit": "Count",
38+
"currentValue": 160,
39+
"name": {
40+
"value": "standardFSv2Family",
41+
"localizedValue": "Standard FSv2 Family vCPUs"
42+
},
43+
"quotaPeriod": "",
44+
"properties": {}
5145
}
5246
}
5347
}

specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestDedicated.json

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,16 @@
3434
"name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
3535
"type": "Microsoft.Capacity/serviceLimits",
3636
"properties": {
37-
"provisioningState": "Succeeded",
38-
"message": "Request succeeded",
39-
"properties": {
40-
"properties": {
41-
"limit": 200,
42-
"unit": "Count",
43-
"currentValue": 160,
44-
"name": {
45-
"value": "StandardDv2Family",
46-
"localizedValue": "Standard Dv2 Family Cluster Dedicated vCPUs"
47-
},
48-
"resourceType": "dedicated",
49-
"quotaPeriod": "",
50-
"properties": {}
51-
}
52-
}
37+
"limit": 200,
38+
"unit": "Count",
39+
"currentValue": 160,
40+
"name": {
41+
"value": "StandardDv2Family",
42+
"localizedValue": "Standard Dv2 Family Cluster Dedicated vCPUs"
43+
},
44+
"resourceType": "dedicated",
45+
"quotaPeriod": "",
46+
"properties": {}
5347
}
5448
}
5549
}

specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestLowPriority.json

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,16 @@
3434
"name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
3535
"type": "Microsoft.Capacity/serviceLimits",
3636
"properties": {
37-
"provisioningState": "Succeeded",
38-
"message": "Request succeeded",
39-
"properties": {
40-
"properties": {
41-
"limit": 200,
42-
"unit": "Count",
43-
"currentValue": 160,
44-
"name": {
45-
"value": "TotalLowPriorityCores",
46-
"localizedValue": "Total Cluster Low Priority Regional vCPUs"
47-
},
48-
"resourceType": "lowPriority",
49-
"quotaPeriod": "",
50-
"properties": {}
51-
}
52-
}
37+
"limit": 200,
38+
"unit": "Count",
39+
"currentValue": 160,
40+
"name": {
41+
"value": "TotalLowPriorityCores",
42+
"localizedValue": "Total Cluster Low Priority Regional vCPUs"
43+
},
44+
"resourceType": "lowPriority",
45+
"quotaPeriod": "",
46+
"properties": {}
5347
}
5448
}
5549
}

specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/quota.json

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
},
104104
"x-ms-long-running-operation": true,
105105
"x-ms-long-running-operation-options": {
106-
"final-state-via": "location"
106+
"final-state-via": "original-uri"
107107
},
108108
"parameters": [
109109
{
@@ -135,7 +135,7 @@
135135
"200": {
136136
"description": "OK. Returns details of the quota request.",
137137
"schema": {
138-
"$ref": "#/definitions/QuotaRequestOneResourceSubmitResponse"
138+
"$ref": "#/definitions/CurrentQuotaLimitBase"
139139
}
140140
},
141141
"201": {
@@ -165,7 +165,7 @@
165165
},
166166
"x-ms-long-running-operation": true,
167167
"x-ms-long-running-operation-options": {
168-
"final-state-via": "location"
168+
"final-state-via": "original-uri"
169169
},
170170
"parameters": [
171171
{
@@ -197,7 +197,7 @@
197197
"200": {
198198
"description": "OK. Returns details of the quota request.",
199199
"schema": {
200-
"$ref": "#/definitions/QuotaRequestOneResourceSubmitResponse"
200+
"$ref": "#/definitions/CurrentQuotaLimitBase"
201201
}
202202
},
203203
"201": {
@@ -402,6 +402,21 @@
402402
"description": "Quota properties.",
403403
"x-ms-azure-resource": true,
404404
"properties": {
405+
"id": {
406+
"description": "The quota request ID.",
407+
"type": "string",
408+
"readOnly": true
409+
},
410+
"name": {
411+
"description": "The name of the quota request.",
412+
"type": "string",
413+
"readOnly": true
414+
},
415+
"type": {
416+
"type": "string",
417+
"readOnly": true,
418+
"description": "Type of resource. \"Microsoft.Capacity/ServiceLimits\""
419+
},
405420
"properties": {
406421
"description": "Quota properties for the resource.",
407422
"$ref": "#/definitions/QuotaProperties"
@@ -414,11 +429,13 @@
414429
"properties": {
415430
"limit": {
416431
"description": "Quota properties.",
417-
"type": "integer"
432+
"type": "integer",
433+
"format": "int32"
418434
},
419435
"currentValue": {
420436
"description": "Current usage value for the resource.",
421437
"type": "integer",
438+
"format": "int32",
422439
"readOnly": true
423440
},
424441
"unit": {
@@ -513,6 +530,7 @@
513530
"limit": {
514531
"description": "Quota (resource limit).",
515532
"type": "integer",
533+
"format": "int32",
516534
"readOnly": true
517535
},
518536
"name": {

0 commit comments

Comments
 (0)