Skip to content

Commit 6161229

Browse files
icodetolivejhendrixMSFT
authored andcommitted
[Hub Generated] Review request for Microsoft.CostManagement to add version stable/2019-01-01 (#5612)
* Remove management group scope for exports as we do not support it * Add scope parameter * syntax error fix * updated examples with scope param and fixed syntax error * fix scope param by removing '/' slash * fix sorting params * remove the direction param * fix direction param name and add missing example
1 parent 47618f6 commit 6161229

File tree

51 files changed

+117
-44
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+117
-44
lines changed

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

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@
161161
},
162162
"ResourceGroupQuery": {
163163
"$ref": "./examples/ResourceGroupQuery.json"
164+
},
165+
"ResourceGroupQueryGrouping": {
166+
"$ref": "./examples/ResourceGroupQueryGrouping.json"
164167
},
165168
"BillingAccountQuery": {
166169
"$ref": "./examples/BillingAccountQuery.json"
@@ -252,7 +255,7 @@
252255
},
253256
"parameters": [
254257
{
255-
"$ref": "#/parameters/scopeQueryParameter"
258+
"$ref": "#/parameters/scopeExportsParameter"
256259
},
257260
{
258261
"$ref": "#/parameters/apiVersionParameter"
@@ -300,7 +303,7 @@
300303
},
301304
"parameters": [
302305
{
303-
"$ref": "#/parameters/scopeQueryParameter"
306+
"$ref": "#/parameters/scopeExportsParameter"
304307
},
305308
{
306309
"$ref": "#/parameters/apiVersionParameter"
@@ -352,7 +355,7 @@
352355
},
353356
"parameters": [
354357
{
355-
"$ref": "#/parameters/scopeQueryParameter"
358+
"$ref": "#/parameters/scopeExportsParameter"
356359
},
357360
{
358361
"$ref": "#/parameters/apiVersionParameter"
@@ -419,7 +422,7 @@
419422
},
420423
"parameters": [
421424
{
422-
"$ref": "#/parameters/scopeQueryParameter"
425+
"$ref": "#/parameters/scopeExportsParameter"
423426
},
424427
{
425428
"$ref": "#/parameters/apiVersionParameter"
@@ -470,7 +473,7 @@
470473
},
471474
"parameters": [
472475
{
473-
"$ref": "#/parameters/scopeQueryParameter"
476+
"$ref": "#/parameters/scopeExportsParameter"
474477
},
475478
{
476479
"$ref": "#/parameters/apiVersionParameter"
@@ -521,7 +524,7 @@
521524
},
522525
"parameters": [
523526
{
524-
"$ref": "#/parameters/scopeQueryParameter"
527+
"$ref": "#/parameters/scopeExportsParameter"
525528
},
526529
{
527530
"$ref": "#/parameters/apiVersionParameter"
@@ -1344,7 +1347,16 @@
13441347
"in": "path",
13451348
"required": true,
13461349
"type": "string",
1347-
"description": "The scope associated with query and export operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope and '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope..",
1350+
"description": "The scope associated with query operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope and '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope..",
1351+
"x-ms-parameter-location": "method",
1352+
"x-ms-skip-url-encoding": true
1353+
},
1354+
"scopeExportsParameter": {
1355+
"name": "scope",
1356+
"in": "path",
1357+
"required": true,
1358+
"type": "string",
1359+
"description": "The scope associated with export operations. This includes '/subscriptions/{subscriptionId}' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope.",
13481360
"x-ms-parameter-location": "method",
13491361
"x-ms-skip-url-encoding": true
13501362
},

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"parameters": {
33
"api-version": "2019-01-01",
4-
"billingAccountId": "100"
4+
"billingAccountId": "100",
5+
"scope": "providers/Microsoft.Billing/billingAccounts/100"
56
},
67
"responses": {
78
"200": {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"api-version": "2019-01-01",
44
"billingAccountId": "100",
55
"$expand": "properties/data",
6-
"$top": 5
6+
"$top": 5,
7+
"scope": "providers/Microsoft.Billing/billingAccounts/100"
78
},
89
"responses": {
910
"200": {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"billingAccountId": "100",
55
"$expand": "properties/data",
66
"$top": 5,
7-
"$filter": "properties/category eq 'resourceId'"
7+
"$filter": "properties/category eq 'resourceId'",
8+
"scope": "providers/Microsoft.Billing/billingAccounts/100"
89
},
910
"responses": {
1011
"200": {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"parameters": {
33
"api-version": "2019-01-01",
44
"billingAccountId": "70664866",
5+
"scope": "providers/Microsoft.Billing/billingAccounts/70664866",
56
"parameters":{
67
"type": "Usage",
78
"timeframe": "MonthToDate",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"parameters": {
33
"api-version": "2019-01-01",
44
"billingAccountId": "70664866",
5+
"scope": "providers/Microsoft.Billing/billingAccounts/70664866",
56
"parameters":{
67
"type": "Usage",
78
"timeframe": "TheLastMonth",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"parameters": {
33
"api-version": "2019-01-01",
44
"billingAccountId": "100",
5-
"departmentId": "123"
5+
"departmentId": "123",
6+
"scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123"
67
},
78
"responses": {
89
"200": {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"billingAccountId": "100",
55
"departmentId": "123",
66
"$expand": "properties/data",
7-
"$top": 5
7+
"$top": 5,
8+
"scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123"
89
},
910
"responses": {
1011
"200": {

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"departmentId": "123",
66
"$expand": "properties/data",
77
"$top": 5,
8-
"$filter": "properties/category eq 'resourceId'"
8+
"$filter": "properties/category eq 'resourceId'",
9+
"scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123"
910
},
1011
"responses": {
1112
"200": {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"api-version": "2019-01-01",
44
"billingAccountId": "70664866",
55
"departmentId": "123",
6+
"scope": "providers/Microsoft.Billing/billingAccounts/100/departments/123",
67
"parameters":{
78
"type": "Usage",
89
"timeframe": "MonthToDate",

0 commit comments

Comments
 (0)