From 545ef05ffee8af354e534dd1c3919d1226ee8378 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Thu, 13 Jun 2019 01:03:39 -0400 Subject: [PATCH] chore: jsonfmt cost-management Ran `jsonfmt -w "specification/cost-management/**/*.json" --- .../ExternalBillingAccountForecast.json | 2 +- .../examples/ShowbackRuleGet.json | 4 +- .../examples/ShowbackRulePut.json | 8 ++- .../examples/ShowbackRulesList.json | 4 +- .../2019-04-01-preview/costmanagement.json | 61 ++++++++++++----- .../2019-04-01-preview/examples/Budget.json | 22 +++++-- .../examples/BudgetsList.json | 44 ++++++++++--- .../examples/CreateOrUpdateBudget.json | 66 ++++++++++++++----- .../examples/DeleteBudget.json | 8 +-- .../examples/PrivateView.json | 4 +- .../examples/PrivateViewCreateOrUpdate.json | 6 +- .../examples/PrivateViewDelete.json | 8 +-- .../examples/PrivateViewList.json | 2 +- .../examples/ViewByResourceGroup.json | 4 +- .../ViewCreateOrUpdateByResourceGroup.json | 6 +- .../examples/ViewDeleteByResourceGroup.json | 8 +-- .../examples/ViewListByResourceGroup.json | 2 +- 17 files changed, 182 insertions(+), 77 deletions(-) diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-03-01-preview/examples/ExternalBillingAccountForecast.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-03-01-preview/examples/ExternalBillingAccountForecast.json index 1d863cba74b1..6de290d23a14 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-03-01-preview/examples/ExternalBillingAccountForecast.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-03-01-preview/examples/ExternalBillingAccountForecast.json @@ -125,4 +125,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-03-01-preview/examples/ShowbackRuleGet.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-03-01-preview/examples/ShowbackRuleGet.json index f843a9ed4cd8..c5b6f5444c38 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-03-01-preview/examples/ShowbackRuleGet.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-03-01-preview/examples/ShowbackRuleGet.json @@ -21,7 +21,9 @@ "scopes": null, "details": { "pricesheet": "Pay-As-You-Go (0003P)", - "benefits": ["None"], + "benefits": [ + "None" + ], "markups": null } } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-03-01-preview/examples/ShowbackRulePut.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-03-01-preview/examples/ShowbackRulePut.json index f2dacd00423c..010f490e8cea 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-03-01-preview/examples/ShowbackRulePut.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-03-01-preview/examples/ShowbackRulePut.json @@ -18,7 +18,9 @@ ], "details": { "pricesheet": "Pay-As-You-Go (0003P)", - "benefits": ["None"], + "benefits": [ + "None" + ], "markups": [ { "percentage": "1.1" @@ -45,7 +47,9 @@ "scopes": null, "details": { "pricesheet": "Pay-As-You-Go (0003P)", - "benefits": ["None"], + "benefits": [ + "None" + ], "markups": [ { "percentage": "1.1" diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-03-01-preview/examples/ShowbackRulesList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-03-01-preview/examples/ShowbackRulesList.json index 1e5451776912..96e0fdf81b92 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-03-01-preview/examples/ShowbackRulesList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-03-01-preview/examples/ShowbackRulesList.json @@ -22,7 +22,9 @@ "scopes": null, "details": { "pricesheet": "Pay-As-You-Go (0003P)", - "benefits": ["None"], + "benefits": [ + "None" + ], "markups": null } } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/costmanagement.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/costmanagement.json index 397b890a02ae..6ee1ded63ee5 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/costmanagement.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/costmanagement.json @@ -32,7 +32,7 @@ } } }, - "paths": { + "paths": { "/providers/Microsoft.CostManagement/views": { "get": { "tags": [ @@ -378,10 +378,12 @@ } } } - }, + }, "/{scope}/providers/Microsoft.CostManagement/budgets": { "get": { - "tags": ["Budgets"], + "tags": [ + "Budgets" + ], "operationId": "Budgets_List", "description": "Lists all budgets for the defined scope.", "externalDocs": { @@ -421,7 +423,9 @@ }, "/{scope}/providers/Microsoft.CostManagement/budgets/{budgetName}": { "get": { - "tags": ["Budgets"], + "tags": [ + "Budgets" + ], "operationId": "Budget_Get", "description": "Gets the budget for the scope by budget name.", "externalDocs": { @@ -459,7 +463,9 @@ } }, "put": { - "tags": ["Budgets"], + "tags": [ + "Budgets" + ], "operationId": "Budget_CreateOrUpdate", "description": "The operation to create or update a budget. Update operation requires latest eTag to be set in the request mandatorily. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.", "externalDocs": { @@ -512,7 +518,9 @@ } }, "delete": { - "tags": ["Budgets"], + "tags": [ + "Budgets" + ], "operationId": "Budget_Delete", "description": "The operation to delete a budget.", "externalDocs": { @@ -1136,14 +1144,14 @@ "type": "array", "items": { "$ref": "#/definitions/KpiProperties" - } + } }, "pivots": { "description": "Configuration of 3 sub-views in the Cost Analysis UI.", "type": "array", "items": { "$ref": "#/definitions/PivotProperties" - } + } } } }, @@ -1234,7 +1242,10 @@ "category": { "description": "The category of the budget, whether the budget tracks cost or usage.", "type": "string", - "enum": ["Cost", "Usage"], + "enum": [ + "Cost", + "Usage" + ], "x-ms-enum": { "name": "CategoryType", "modelAsString": true @@ -1248,7 +1259,11 @@ "timeGrain": { "description": "The time covered by a budget. Tracking of the amount will be reset based on the time grain.", "type": "string", - "enum": ["Monthly", "Quarterly", "Annually"], + "enum": [ + "Monthly", + "Quarterly", + "Annually" + ], "x-ms-enum": { "name": "TimeGrainType", "modelAsString": true @@ -1278,7 +1293,12 @@ "maxItems": 5 } }, - "required": ["category", "amount", "timeGrain", "timePeriod"] + "required": [ + "category", + "amount", + "timeGrain", + "timePeriod" + ] }, "BudgetTimePeriod": { "description": "The start and end date for a budget.", @@ -1294,7 +1314,9 @@ "format": "date-time" } }, - "required": ["startDate"] + "required": [ + "startDate" + ] }, "CurrentSpend": { "description": "The current amount of cost which is being tracked for a budget.", @@ -1322,7 +1344,11 @@ "operator": { "description": "The comparison operator.", "type": "string", - "enum": ["EqualTo", "GreaterThan", "GreaterThanOrEqualTo"], + "enum": [ + "EqualTo", + "GreaterThan", + "GreaterThanOrEqualTo" + ], "x-ms-enum": { "name": "NotificationOperatorType", "modelAsString": true @@ -1359,7 +1385,12 @@ "maxItems": 50 } }, - "required": ["enabled", "operator", "threshold", "contactEmails"] + "required": [ + "enabled", + "operator", + "threshold", + "contactEmails" + ] } }, "parameters": { @@ -1451,4 +1482,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/Budget.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/Budget.json index c50ca3a07656..fd2bacba9ef7 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/Budget.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/Budget.json @@ -27,7 +27,9 @@ "dimension": { "name": "ResourceGroupName", "operator": "In", - "values": ["MYDEVTESTRG"] + "values": [ + "MYDEVTESTRG" + ] } }, { @@ -44,14 +46,18 @@ "dimension": { "name": "Meter", "operator": "In", - "values": ["00000000-0000-0000-0000-000000000000"] + "values": [ + "00000000-0000-0000-0000-000000000000" + ] } }, { "tag": { "name": "Dev", "operator": "In", - "values": ["engineering"] + "values": [ + "engineering" + ] } } ] @@ -65,8 +71,14 @@ "enabled": true, "operator": "GreaterThan", "threshold": 80, - "contactEmails": ["johndoe@contoso.com", "janesmith@contoso.com"], - "contactRoles": ["Contributor", "Reader"], + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], "contactGroups": [ "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" ] diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/BudgetsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/BudgetsList.json index b7f50ea34103..805e150c0edf 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/BudgetsList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/BudgetsList.json @@ -28,7 +28,9 @@ "dimension": { "name": "ResourceGroupName", "operator": "In", - "values": ["MYDEVTESTRG"] + "values": [ + "MYDEVTESTRG" + ] } }, { @@ -45,14 +47,18 @@ "dimension": { "name": "Meter", "operator": "In", - "values": ["00000000-0000-0000-0000-000000000000"] + "values": [ + "00000000-0000-0000-0000-000000000000" + ] } }, { "tag": { "name": "Dev", "operator": "In", - "values": ["engineering"] + "values": [ + "engineering" + ] } } ] @@ -70,7 +76,10 @@ "johndoe@contoso.com", "janesmith@contoso.com" ], - "contactRoles": ["Contributor", "Reader"] + "contactRoles": [ + "Contributor", + "Reader" + ] }, "Actual_GreaterThanOrEqualTo_90_Percent": { "enabled": true, @@ -80,7 +89,10 @@ "johndoe@contoso.com", "janesmith@contoso.com" ], - "contactRoles": ["Contributor", "Reader"], + "contactRoles": [ + "Contributor", + "Reader" + ], "contactGroups": [ "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" ] @@ -107,7 +119,9 @@ "dimension": { "name": "ResourceGroupName", "operator": "In", - "values": ["MYDEVTESTRG"] + "values": [ + "MYDEVTESTRG" + ] } }, { @@ -124,14 +138,18 @@ "dimension": { "name": "Meter", "operator": "In", - "values": ["00000000-0000-0000-0000-000000000000"] + "values": [ + "00000000-0000-0000-0000-000000000000" + ] } }, { "tag": { "name": "Dev", "operator": "In", - "values": ["engineering"] + "values": [ + "engineering" + ] } } ] @@ -149,7 +167,10 @@ "johndoe@contoso.com", "janesmith@contoso.com" ], - "contactRoles": ["Contributor", "Reader"] + "contactRoles": [ + "Contributor", + "Reader" + ] }, "Actual_GreaterThanOrEqualTo_60_Percent": { "enabled": true, @@ -159,7 +180,10 @@ "johndoe@contoso.com", "janesmith@contoso.com" ], - "contactRoles": ["Contributor", "Reader"], + "contactRoles": [ + "Contributor", + "Reader" + ], "contactGroups": [ "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" ] diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/CreateOrUpdateBudget.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/CreateOrUpdateBudget.json index 0b7f288364e0..e71edf730de5 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/CreateOrUpdateBudget.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/CreateOrUpdateBudget.json @@ -21,7 +21,9 @@ "dimension": { "name": "ResourceGroupName", "operator": "In", - "values": ["MYDEVTESTRG"] + "values": [ + "MYDEVTESTRG" + ] } }, { @@ -38,14 +40,18 @@ "dimension": { "name": "Meter", "operator": "In", - "values": ["00000000-0000-0000-0000-000000000000"] + "values": [ + "00000000-0000-0000-0000-000000000000" + ] } }, { "tag": { "name": "Dev", "operator": "In", - "values": ["engineering"] + "values": [ + "engineering" + ] } } ] @@ -55,8 +61,14 @@ "enabled": true, "operator": "GreaterThan", "threshold": 80, - "contactEmails": ["johndoe@contoso.com", "janesmith@contoso.com"], - "contactRoles": ["Contributor", "Reader"], + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], "contactGroups": [ "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" ] @@ -86,7 +98,9 @@ "dimension": { "name": "ResourceGroupName", "operator": "In", - "values": ["MYDEVTESTRG"] + "values": [ + "MYDEVTESTRG" + ] } }, { @@ -103,14 +117,18 @@ "dimension": { "name": "Meter", "operator": "In", - "values": ["00000000-0000-0000-0000-000000000000"] + "values": [ + "00000000-0000-0000-0000-000000000000" + ] } }, { "tag": { "name": "Dev", "operator": "In", - "values": ["engineering"] + "values": [ + "engineering" + ] } } ] @@ -124,8 +142,14 @@ "enabled": true, "operator": "GreaterThan", "threshold": 80, - "contactEmails": ["johndoe@contoso.com", "janesmith@contoso.com"], - "contactRoles": ["Contributor", "Reader"], + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], "contactGroups": [ "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" ] @@ -154,7 +178,9 @@ "dimension": { "name": "ResourceGroupName", "operator": "In", - "values": ["MYDEVTESTRG"] + "values": [ + "MYDEVTESTRG" + ] } }, { @@ -171,14 +197,18 @@ "dimension": { "name": "Meter", "operator": "In", - "values": ["00000000-0000-0000-0000-000000000000"] + "values": [ + "00000000-0000-0000-0000-000000000000" + ] } }, { "tag": { "name": "Dev", "operator": "In", - "values": ["engineering"] + "values": [ + "engineering" + ] } } ] @@ -192,8 +222,14 @@ "enabled": true, "operator": "GreaterThan", "threshold": 80, - "contactEmails": ["johndoe@contoso.com", "janesmith@contoso.com"], - "contactRoles": ["Contributor", "Reader"], + "contactEmails": [ + "johndoe@contoso.com", + "janesmith@contoso.com" + ], + "contactRoles": [ + "Contributor", + "Reader" + ], "contactGroups": [ "/subscriptions/{subscription-id}/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup" ] diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/DeleteBudget.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/DeleteBudget.json index 7eb6ba84133e..53d0c16c522f 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/DeleteBudget.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/DeleteBudget.json @@ -7,9 +7,7 @@ "scope": "subscriptions/00000000-0000-0000-0000-000000000000" }, "responses": { - "200": { - }, - "204": { - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/PrivateView.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/PrivateView.json index e0ac14277f1f..e96ebb9fdf7c 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/PrivateView.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/PrivateView.json @@ -62,8 +62,8 @@ "name": "swaggerTagKey" } ] - } + } } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/PrivateViewCreateOrUpdate.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/PrivateViewCreateOrUpdate.json index d75cd493745e..85d18a6d302d 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/PrivateViewCreateOrUpdate.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/PrivateViewCreateOrUpdate.json @@ -117,7 +117,7 @@ "name": "swaggerTagKey" } ] - } + } } }, "200": { @@ -178,8 +178,8 @@ "name": "swaggerTagKey" } ] - } + } } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/PrivateViewDelete.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/PrivateViewDelete.json index 6098335e58e9..12a0239b9dc5 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/PrivateViewDelete.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/PrivateViewDelete.json @@ -4,9 +4,7 @@ "viewName": "TestView" }, "responses": { - "200": { - }, - "204": { - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/PrivateViewList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/PrivateViewList.json index 1657fec91760..86eb6ee3b68b 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/PrivateViewList.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/PrivateViewList.json @@ -128,4 +128,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/ViewByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/ViewByResourceGroup.json index 3bac24905b23..4a76a9b898a0 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/ViewByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/ViewByResourceGroup.json @@ -63,8 +63,8 @@ "name": "swaggerTagKey" } ] - } + } } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/ViewCreateOrUpdateByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/ViewCreateOrUpdateByResourceGroup.json index 7956c8df6773..1edc69822cad 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/ViewCreateOrUpdateByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/ViewCreateOrUpdateByResourceGroup.json @@ -118,7 +118,7 @@ "name": "swaggerTagKey" } ] - } + } } }, "200": { @@ -179,8 +179,8 @@ "name": "swaggerTagKey" } ] - } + } } } } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/ViewDeleteByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/ViewDeleteByResourceGroup.json index be29fdb7591c..3a9f210abf3e 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/ViewDeleteByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/ViewDeleteByResourceGroup.json @@ -5,9 +5,7 @@ "viewName": "TestView" }, "responses": { - "200": { - }, - "204": { - } + "200": {}, + "204": {} } -} \ No newline at end of file +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/ViewListByResourceGroup.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/ViewListByResourceGroup.json index 736a3a074cdb..39edbdffbdea 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/ViewListByResourceGroup.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/preview/2019-04-01-preview/examples/ViewListByResourceGroup.json @@ -129,4 +129,4 @@ } } } -} \ No newline at end of file +}