Skip to content

Commit 3fc3992

Browse files
authored
[Hub Generated] Review request for Microsoft.CostManagement to add version stable/2019-11-01 (#13788)
* Fixed Swagger Validation Errors * Fixed Type * Fixed Type * Fixed Setting Properties * Fixed Punctuation * Removed Item * Added Items Properties * Fixed Required Property
1 parent e564455 commit 3fc3992

File tree

5 files changed

+124
-14
lines changed

5 files changed

+124
-14
lines changed

cSpell.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"words": [
55
"Creds",
66
"partiallycompleted",
7+
"subchannel",
78
"umls"
89
],
910
"dictionaryDefinitions": [
@@ -813,4 +814,4 @@
813814
]
814815
}
815816
]
816-
}
817+
}

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

Lines changed: 63 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,7 +1730,7 @@
17301730
}
17311731
},
17321732
"Setting": {
1733-
"description": "State of Setting",
1733+
"description": "State of the myscope setting.",
17341734
"type": "object",
17351735
"allOf": [
17361736
{
@@ -1785,9 +1785,66 @@
17851785
"description": "The properties of the setting.",
17861786
"properties": {
17871787
"scope": {
1788-
"description": "For the myscope setting, sets the default scope the current user will see when they sign into Azure Cost Management in the Azure portal.",
1788+
"description": "Sets the default scope the current user will see when they sign into Azure Cost Management in the Azure portal.",
17891789
"type": "string"
1790+
},
1791+
"startOn": {
1792+
"description": "Indicates what scope Cost Management in the Azure portal should default to. Allowed values: LastUsed.",
1793+
"type": "string",
1794+
"enum": [
1795+
"LastUsed",
1796+
"ScopePicker",
1797+
"SpecificScope"
1798+
],
1799+
"x-nullable": true
1800+
},
1801+
"cache": {
1802+
"$ref": "#/definitions/Cache"
17901803
}
1804+
},
1805+
"required": [
1806+
"scope"
1807+
]
1808+
},
1809+
"Cache": {
1810+
"type": "array",
1811+
"description": "Array of scopes with additional details used by Cost Management in the Azure portal.",
1812+
"items": {
1813+
"type": "object",
1814+
"properties": {
1815+
"id": {
1816+
"description": "Resource ID used by Resource Manager to uniquely identify the scope.",
1817+
"type": "string"
1818+
},
1819+
"name": {
1820+
"description": "Display name for the scope.",
1821+
"type": "string"
1822+
},
1823+
"channel": {
1824+
"description": "Indicates the account type. Allowed values include: EA, PAYG, Modern, Internal, Unknown.",
1825+
"type": "string"
1826+
},
1827+
"subchannel": {
1828+
"description": "Indicates the type of modern account. Allowed values include: Individual, Enterprise, Partner, Indirect, NotApplicable",
1829+
"type": "string"
1830+
},
1831+
"parent": {
1832+
"description": "Resource ID of the parent scope. For instance, subscription's resource ID for a resource group or a management group resource ID for a subscription.",
1833+
"type": "string",
1834+
"x-nullable": true
1835+
},
1836+
"status": {
1837+
"description": "Indicates the status of the scope. Status only applies to subscriptions and billing accounts.",
1838+
"type": "string",
1839+
"x-nullable": true
1840+
}
1841+
},
1842+
"required": [
1843+
"id",
1844+
"name",
1845+
"channel",
1846+
"subchannel"
1847+
]
17911848
}
17921849
},
17931850
"ViewProperties": {
@@ -1994,23 +2051,23 @@
19942051
"id": {
19952052
"readOnly": true,
19962053
"type": "string",
1997-
"description": "Resource Id"
2054+
"description": "Resource Id."
19982055
},
19992056
"name": {
20002057
"readOnly": true,
20012058
"type": "string",
2002-
"description": "Resource name"
2059+
"description": "Resource name."
20032060
},
20042061
"kind": {
20052062
"readOnly": true,
20062063
"type": "string",
2007-
"description": "Resource kind",
2064+
"description": "Resource kind.",
20082065
"maxLength": 10
20092066
},
20102067
"type": {
20112068
"readOnly": true,
20122069
"type": "string",
2013-
"description": "Resource type"
2070+
"description": "Resource type."
20142071
}
20152072
},
20162073
"x-ms-azure-resource": true

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

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,20 @@
99
"id": "/providers/Microsoft.CostManagement/settings/myscope",
1010
"name": "myscope",
1111
"kind": "user",
12-
"type": "Microsoft.CostManagement/settings",
12+
"type": "Microsoft.CostManagement/Settings",
1313
"properties": {
14-
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000"
14+
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000",
15+
"startOn": "LastUsed",
16+
"cache": [
17+
{
18+
"id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47",
19+
"name": "72f988bf-86f1-41af-91ab-2d7cd011db47",
20+
"channel": "Modern",
21+
"subchannel": "NotApplicable",
22+
"parent": "/providers/Microsoft.Management/managementGroups/acm",
23+
"status": "enabled"
24+
}
25+
]
1526
}
1627
}
1728
}

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

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,18 @@
44
"settingName": "myscope",
55
"parameters": {
66
"properties": {
7-
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000"
7+
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000",
8+
"startOn": "LastUsed",
9+
"cache": [
10+
{
11+
"id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47",
12+
"name": "72f988bf-86f1-41af-91ab-2d7cd011db47",
13+
"channel": "Modern",
14+
"subchannel": "NotApplicable",
15+
"parent": "/providers/Microsoft.Management/managementGroups/acm",
16+
"status": "enabled"
17+
}
18+
]
819
}
920
}
1021
},
@@ -14,9 +25,20 @@
1425
"id": "/providers/Microsoft.CostManagement/settings/myscope",
1526
"name": "myscope",
1627
"kind": "user",
17-
"type": "Microsoft.CostManagement/settings",
28+
"type": "Microsoft.CostManagement/Settings",
1829
"properties": {
19-
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000"
30+
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000",
31+
"startOn": "LastUsed",
32+
"cache": [
33+
{
34+
"id": "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47",
35+
"name": "72f988bf-86f1-41af-91ab-2d7cd011db47",
36+
"channel": "Modern",
37+
"subchannel": "NotApplicable",
38+
"parent": "/providers/Microsoft.Management/managementGroups/acm",
39+
"status": "enabled"
40+
}
41+
]
2042
}
2143
}
2244
}

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

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,28 @@
1010
"id": "/providers/Microsoft.CostManagement/settings/myscope",
1111
"name": "myscope",
1212
"kind": "user",
13-
"type": "Microsoft.CostManagement/settings",
13+
"type": "Microsoft.CostManagement/Settings",
1414
"properties": {
15-
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000"
15+
"scope": "/subscriptions/00000000-0000-0000-0000-000000000000",
16+
"startOn": "LastUsed",
17+
"cache": [
18+
{
19+
"id": "/subscriptions/ec9de2f7-b65b-408d-ac59-da71ceb340bc",
20+
"name": "Azure Cost Management",
21+
"channel": "Modern",
22+
"subchannel": "Individual",
23+
"parent": "/providers/Microsoft.Management/managementGroups/b8f458df-48b6-4215-b307-e71221f1fb79",
24+
"status": "enabled"
25+
},
26+
{
27+
"id": "/providers/Microsoft.Management/managementGroups/b8f458df-48b6-4215-b307-e71221f1fb79",
28+
"name": "Cloudyn",
29+
"channel": "Modern",
30+
"subchannel": "Individual",
31+
"parent": "/providers/Microsoft.Management/managementGroups/acm",
32+
"status": "enabled"
33+
}
34+
]
1635
}
1736
}
1837
]

0 commit comments

Comments
 (0)