Skip to content

Commit e17fc3c

Browse files
sri-FredericHeem
authored andcommitted
[Hub Generated] Review request for Microsoft.CostManagement to add version stable/2021-10-01 (Azure#18676)
* Adding common-types u u u * Adding common-types u u u u:x * Fixing common-types ref in exports.json * Fixing references and remove Resource definition * Reverting changes to pricesheets * Adding Operations_List example * Adding example * Reverting breaking change * Reverting a breaking change and using ApiVersionParameter from types.json * Reverting api-version parameter change since that flagged as a breaking change
1 parent d6e88f9 commit e17fc3c

File tree

5 files changed

+255
-247
lines changed

5 files changed

+255
-247
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2021-10-01",
5+
"title": "Cost Management common types"
6+
},
7+
"paths": {},
8+
"definitions": {
9+
"ErrorResponse": {
10+
"description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. \n\nSome Error responses: \n\n * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the \"x-ms-ratelimit-microsoft.consumption-retry-after\" header. \n\n * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the \"Retry-After\" header.",
11+
"type": "object",
12+
"properties": {
13+
"error": {
14+
"description": "The details of the error.",
15+
"$ref": "#/definitions/ErrorDetails"
16+
}
17+
}
18+
},
19+
"ErrorDetails": {
20+
"description": "The details of the error.",
21+
"type": "object",
22+
"properties": {
23+
"code": {
24+
"description": "Error code.",
25+
"type": "string",
26+
"readOnly": true
27+
},
28+
"message": {
29+
"description": "Error message indicating why the operation failed.",
30+
"type": "string",
31+
"readOnly": true
32+
}
33+
}
34+
},
35+
"ProxyResource": {
36+
"description": "The Resource model definition.",
37+
"type": "object",
38+
"properties": {
39+
"id": {
40+
"readOnly": true,
41+
"type": "string",
42+
"description": "Resource Id."
43+
},
44+
"name": {
45+
"readOnly": true,
46+
"type": "string",
47+
"description": "Resource name."
48+
},
49+
"type": {
50+
"readOnly": true,
51+
"type": "string",
52+
"description": "Resource type."
53+
},
54+
"eTag": {
55+
"type": "string",
56+
"description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not."
57+
}
58+
},
59+
"x-ms-azure-resource": true
60+
}
61+
},
62+
"parameters": {
63+
"apiVersionParameter": {
64+
"name": "api-version",
65+
"in": "query",
66+
"required": true,
67+
"type": "string",
68+
"description": "Version of the API to be used with the client request."
69+
}
70+
}
71+
}

specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2021-10-01/costmanagement.exports.json

Lines changed: 15 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"$ref": "#/parameters/scopeExportParameter"
6969
},
7070
{
71-
"$ref": "#/parameters/apiVersionParameter"
71+
"$ref": "common-types.json#/parameters/apiVersionParameter"
7272
},
7373
{
7474
"name": "$expand",
@@ -88,7 +88,7 @@
8888
"default": {
8989
"description": "Error response describing why the operation failed.",
9090
"schema": {
91-
"$ref": "#/definitions/ErrorResponse"
91+
"$ref": "common-types.json#/definitions/ErrorResponse"
9292
}
9393
}
9494
}
@@ -129,7 +129,7 @@
129129
"$ref": "#/parameters/scopeExportParameter"
130130
},
131131
{
132-
"$ref": "#/parameters/apiVersionParameter"
132+
"$ref": "common-types.json#/parameters/apiVersionParameter"
133133
},
134134
{
135135
"$ref": "#/parameters/exportNameParameter"
@@ -152,7 +152,7 @@
152152
"default": {
153153
"description": "Error response describing why the operation failed.",
154154
"schema": {
155-
"$ref": "#/definitions/ErrorResponse"
155+
"$ref": "common-types.json#/definitions/ErrorResponse"
156156
}
157157
}
158158
}
@@ -191,7 +191,7 @@
191191
"$ref": "#/parameters/scopeExportParameter"
192192
},
193193
{
194-
"$ref": "#/parameters/apiVersionParameter"
194+
"$ref": "common-types.json#/parameters/apiVersionParameter"
195195
},
196196
{
197197
"$ref": "#/parameters/exportNameParameter"
@@ -222,7 +222,7 @@
222222
"default": {
223223
"description": "Error response describing why the operation failed.",
224224
"schema": {
225-
"$ref": "#/definitions/ErrorResponse"
225+
"$ref": "common-types.json#/definitions/ErrorResponse"
226226
}
227227
}
228228
}
@@ -261,7 +261,7 @@
261261
"$ref": "#/parameters/scopeExportParameter"
262262
},
263263
{
264-
"$ref": "#/parameters/apiVersionParameter"
264+
"$ref": "common-types.json#/parameters/apiVersionParameter"
265265
},
266266
{
267267
"$ref": "#/parameters/exportNameParameter"
@@ -274,7 +274,7 @@
274274
"default": {
275275
"description": "Error response describing why the operation failed.",
276276
"schema": {
277-
"$ref": "#/definitions/ErrorResponse"
277+
"$ref": "common-types.json#/definitions/ErrorResponse"
278278
}
279279
}
280280
}
@@ -315,7 +315,7 @@
315315
"$ref": "#/parameters/scopeExportParameter"
316316
},
317317
{
318-
"$ref": "#/parameters/apiVersionParameter"
318+
"$ref": "common-types.json#/parameters/apiVersionParameter"
319319
},
320320
{
321321
"$ref": "#/parameters/exportNameParameter"
@@ -328,7 +328,7 @@
328328
"default": {
329329
"description": "Error response describing why the operation failed.",
330330
"schema": {
331-
"$ref": "#/definitions/ErrorResponse"
331+
"$ref": "common-types.json#/definitions/ErrorResponse"
332332
}
333333
}
334334
}
@@ -369,7 +369,7 @@
369369
"$ref": "#/parameters/scopeExportParameter"
370370
},
371371
{
372-
"$ref": "#/parameters/apiVersionParameter"
372+
"$ref": "common-types.json#/parameters/apiVersionParameter"
373373
},
374374
{
375375
"$ref": "#/parameters/exportNameParameter"
@@ -385,96 +385,14 @@
385385
"default": {
386386
"description": "Error response describing why the operation failed.",
387387
"schema": {
388-
"$ref": "#/definitions/ErrorResponse"
388+
"$ref": "common-types.json#/definitions/ErrorResponse"
389389
}
390390
}
391391
}
392392
}
393393
}
394394
},
395395
"definitions": {
396-
"ErrorResponse": {
397-
"description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. \n\nSome Error responses: \n\n * 429 TooManyRequests - Request is throttled. Retry after waiting for the time specified in the \"x-ms-ratelimit-microsoft.consumption-retry-after\" header. \n\n * 503 ServiceUnavailable - Service is temporarily unavailable. Retry after waiting for the time specified in the \"Retry-After\" header.",
398-
"type": "object",
399-
"properties": {
400-
"error": {
401-
"description": "The details of the error.",
402-
"$ref": "#/definitions/ErrorDetails"
403-
}
404-
}
405-
},
406-
"ErrorDetails": {
407-
"description": "The details of the error.",
408-
"type": "object",
409-
"properties": {
410-
"code": {
411-
"description": "Error code.",
412-
"type": "string",
413-
"readOnly": true
414-
},
415-
"message": {
416-
"description": "Error message indicating why the operation failed.",
417-
"type": "string",
418-
"readOnly": true
419-
}
420-
}
421-
},
422-
"Resource": {
423-
"description": "The Resource model definition.",
424-
"type": "object",
425-
"properties": {
426-
"id": {
427-
"readOnly": true,
428-
"type": "string",
429-
"description": "Resource Id."
430-
},
431-
"name": {
432-
"readOnly": true,
433-
"type": "string",
434-
"description": "Resource name."
435-
},
436-
"type": {
437-
"readOnly": true,
438-
"type": "string",
439-
"description": "Resource type."
440-
},
441-
"tags": {
442-
"readOnly": true,
443-
"type": "object",
444-
"additionalProperties": {
445-
"type": "string"
446-
},
447-
"description": "Resource tags."
448-
}
449-
},
450-
"x-ms-azure-resource": true
451-
},
452-
"ProxyResource": {
453-
"description": "The Resource model definition.",
454-
"type": "object",
455-
"properties": {
456-
"id": {
457-
"readOnly": true,
458-
"type": "string",
459-
"description": "Resource Id."
460-
},
461-
"name": {
462-
"readOnly": true,
463-
"type": "string",
464-
"description": "Resource name."
465-
},
466-
"type": {
467-
"readOnly": true,
468-
"type": "string",
469-
"description": "Resource type."
470-
},
471-
"eTag": {
472-
"type": "string",
473-
"description": "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not."
474-
}
475-
},
476-
"x-ms-azure-resource": true
477-
},
478396
"ExportListResult": {
479397
"description": "Result of listing exports. It contains a list of available exports in the scope provided.",
480398
"type": "object",
@@ -494,7 +412,7 @@
494412
"type": "object",
495413
"allOf": [
496414
{
497-
"$ref": "#/definitions/ProxyResource"
415+
"$ref": "common-types.json#/definitions/ProxyResource"
498416
}
499417
],
500418
"properties": {
@@ -781,7 +699,7 @@
781699
"type": "object",
782700
"allOf": [
783701
{
784-
"$ref": "#/definitions/ProxyResource"
702+
"$ref": "common-types.json#/definitions/ProxyResource"
785703
}
786704
],
787705
"properties": {
@@ -854,19 +772,12 @@
854772
},
855773
"error": {
856774
"description": "The details of any error.",
857-
"$ref": "#/definitions/ErrorDetails"
775+
"$ref": "common-types.json#/definitions/ErrorDetails"
858776
}
859777
}
860778
}
861779
},
862780
"parameters": {
863-
"apiVersionParameter": {
864-
"name": "api-version",
865-
"in": "query",
866-
"required": true,
867-
"type": "string",
868-
"description": "Version of the API to be used with the client request."
869-
},
870781
"scopeExportParameter": {
871782
"name": "scope",
872783
"in": "path",

0 commit comments

Comments
 (0)