Skip to content

Commit 091b44a

Browse files
authored
[Hub Generated] Review request for Microsoft.CostManagement to add version stable/2019-11-01 (#11657)
* Created Separate Swagger for Exports * add exports swagger to readme.md * Exports swagger correctness * Exports swagger correctness * dataSet in examples * fix dataSet in examples * add dataSet to exportList and exportExecutionList examples * Update ExportCreateOrUpdateByManagementGroup.json * dataSet property of QueryDefinition costmanagement.json * undo changes to costmanagement.json * use ExportDefinition instead of QueryDefinition * prettier fix
1 parent 4517a01 commit 091b44a

25 files changed

+77
-52
lines changed

specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/costmanagement.exports.json

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,32 @@
433433
},
434434
"x-ms-azure-resource": true
435435
},
436-
"QueryDefinition": {
436+
"ProxyResource": {
437+
"description": "The Resource model definition.",
438+
"properties": {
439+
"id": {
440+
"readOnly": true,
441+
"type": "string",
442+
"description": "Resource Id."
443+
},
444+
"name": {
445+
"readOnly": true,
446+
"type": "string",
447+
"description": "Resource name."
448+
},
449+
"type": {
450+
"readOnly": true,
451+
"type": "string",
452+
"description": "Resource type."
453+
},
454+
"eTag": {
455+
"type": "string",
456+
"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."
457+
}
458+
},
459+
"x-ms-azure-resource": true
460+
},
461+
"ExportDefinition": {
437462
"description": "The definition of a query.",
438463
"properties": {
439464
"type": {
@@ -469,7 +494,7 @@
469494
"description": "Has time period for pulling data for the query.",
470495
"$ref": "#/definitions/QueryTimePeriod"
471496
},
472-
"dataset": {
497+
"dataSet": {
473498
"description": "Has definition for data in this query.",
474499
"$ref": "#/definitions/QueryDataset"
475500
}
@@ -689,7 +714,7 @@
689714
"type": "object",
690715
"allOf": [
691716
{
692-
"$ref": "#/definitions/Resource"
717+
"$ref": "#/definitions/ProxyResource"
693718
}
694719
],
695720
"properties": {
@@ -735,7 +760,7 @@
735760
},
736761
"definition": {
737762
"description": "Has definition for the export.",
738-
"$ref": "#/definitions/QueryDefinition"
763+
"$ref": "#/definitions/ExportDefinition"
739764
}
740765
},
741766
"required": [

specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ExportByBillingAccount.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"from": "2018-06-01T00:00:00Z",
2828
"to": "2018-10-31T00:00:00Z"
2929
},
30-
"dataset": {
30+
"dataSet": {
3131
"granularity": "Daily",
3232
"configuration": {
3333
"columns": [

specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ExportByDepartment.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"from": "2018-06-01T00:00:00Z",
2929
"to": "2018-10-31T00:00:00Z"
3030
},
31-
"dataset": {
31+
"dataSet": {
3232
"granularity": "Daily",
3333
"configuration": {
3434
"columns": [

specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ExportByEnrollmentAccount.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"from": "2018-06-01T00:00:00Z",
2929
"to": "2018-10-31T00:00:00Z"
3030
},
31-
"dataset": {
31+
"dataSet": {
3232
"granularity": "Daily",
3333
"configuration": {
3434
"columns": [

specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ExportByManagementGroup.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"from": "2018-06-01T00:00:00Z",
2828
"to": "2018-10-31T00:00:00Z"
2929
},
30-
"dataset": {
30+
"dataSet": {
3131
"granularity": "Daily",
3232
"configuration": {
3333
"columns": [

specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ExportByResourceGroup.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"from": "2018-06-01T00:00:00Z",
2929
"to": "2018-10-31T00:00:00Z"
3030
},
31-
"dataset": {
31+
"dataSet": {
3232
"granularity": "Daily",
3333
"configuration": {
3434
"columns": [

specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ExportBySubscription.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"from": "2018-06-01T00:00:00Z",
2828
"to": "2018-10-31T00:00:00Z"
2929
},
30-
"dataset": {
30+
"dataSet": {
3131
"granularity": "Daily",
3232
"configuration": {
3333
"columns": [

specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ExportCreateOrUpdateByBillingAccount.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"definition": {
2626
"type": "Usage",
2727
"timeframe": "MonthToDate",
28-
"dataset": {
28+
"dataSet": {
2929
"granularity": "Daily",
3030
"configuration": {
3131
"columns": [
@@ -120,7 +120,7 @@
120120
"definition": {
121121
"type": "Usage",
122122
"timeframe": "MonthToDate",
123-
"dataset": {
123+
"dataSet": {
124124
"granularity": "Daily",
125125
"configuration": {
126126
"columns": [
@@ -214,7 +214,7 @@
214214
"definition": {
215215
"type": "Usage",
216216
"timeframe": "MonthToDate",
217-
"dataset": {
217+
"dataSet": {
218218
"granularity": "Daily",
219219
"configuration": {
220220
"columns": [

specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ExportCreateOrUpdateByDepartment.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"definition": {
2727
"type": "Usage",
2828
"timeframe": "MonthToDate",
29-
"dataset": {
29+
"dataSet": {
3030
"granularity": "Daily",
3131
"configuration": {
3232
"columns": [
@@ -121,7 +121,7 @@
121121
"definition": {
122122
"type": "Usage",
123123
"timeframe": "MonthToDate",
124-
"dataset": {
124+
"dataSet": {
125125
"granularity": "Daily",
126126
"configuration": {
127127
"columns": [
@@ -215,7 +215,7 @@
215215
"definition": {
216216
"type": "Usage",
217217
"timeframe": "MonthToDate",
218-
"dataset": {
218+
"dataSet": {
219219
"granularity": "Daily",
220220
"configuration": {
221221
"columns": [

specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2019-11-01/examples/ExportCreateOrUpdateByEnrollmentAccount.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"definition": {
2727
"type": "Usage",
2828
"timeframe": "MonthToDate",
29-
"dataset": {
29+
"dataSet": {
3030
"granularity": "Daily",
3131
"configuration": {
3232
"columns": [
@@ -121,7 +121,7 @@
121121
"definition": {
122122
"type": "Usage",
123123
"timeframe": "MonthToDate",
124-
"dataset": {
124+
"dataSet": {
125125
"granularity": "Daily",
126126
"configuration": {
127127
"columns": [
@@ -215,7 +215,7 @@
215215
"definition": {
216216
"type": "Usage",
217217
"timeframe": "MonthToDate",
218-
"dataset": {
218+
"dataSet": {
219219
"granularity": "Daily",
220220
"configuration": {
221221
"columns": [

0 commit comments

Comments
 (0)