Skip to content

Commit c2103f6

Browse files
authored
Dev cost management microsoft.cost management 2023 04 01 preview (#23334)
* Adds base for updating Microsoft.CostManagement from version stable/2022-10-01 to version 2023-04-01-preview * Updates readme * Updates API version in new specs and examples * Adding Budgets API translated from 2022-10-01 stable version of Micro… (#22866) * Adding Budgets API translated from 2022-10-01 stable version of Microsoft.Consumption/budgets * Updating api-version in examples to 2023-04-01-preview * Adding costmanagement.budgets.json to readme * Addressing Swagger LintDiff errors * Updating budget name pattern * Adding suppression for R4011 * Adding budget name pattern regex for only alphanumeric, underscore, or hyphen characters * fixing readme.go.md for budgets * removing "object" type from notifications dictionary keys * removing tags * removing mismatching enum values * updating notifications key type * Revert "updating notifications key type" This reverts commit eeb504b. * Revert "removing mismatching enum values" This reverts commit cba0132. * updates to enum name * Removing incorrect/outdated description info * fixing BudgetsList example * Updating example Ids to use Microsoft.CostManagement RP * updating min & max length of budget name per conversations with PMs * Adding suppressions for DeleteOperationResponses, TopLevelResourcesListBySubscription, and NoDuplicatePathsForScopeParameter * fixing indentation in readme * fixing formatting of suppressions in readme * Adding paging back in, specifying as null for future use * Adding support for RU Alerts in new Budgets API version (#23140) * Updating budgets swagger definition to include modifications from RU Alert category * Adding new examples for all scenarios of RU Alerts, added new examples for all scopes for Cost Budgets * Spelling & lintdiff fixes * prettier-fix * Added more descriptions, and some light markdown to larger descripitons * Addressing comments * prettier-fix * Updating description for amount property * addressing Shravan's offline comments * spell check * removing aws scopes from scope description * Addressing comments from internal review, removed legacy tags for EA * Alexprosak microsoft.cost management 2023 04 01 preview (#23362) * Updating readme default tag * specifiying the word "update" in 200 response for budget createorupdate * updating tags to package-preview-2023-04-01 * readme test * Revert "readme test" This reverts commit 566e2e6. * Revert "updating tags to package-preview-2023-04-01" This reverts commit f9cf3fe. * Updating readme with previous apis not included and updated to current version * Revert "Updating readme with previous apis not included and updated to current version" This reverts commit bb87946. * Alexprosak cost management microsoft.cost management 2023 04 01 preview (#23770) * changing azure-sdk-for-net to azure-sdk-for-net-track2 per ask from comment on main branch PR * Adding in descriptions + examples for RU Alerts support at the customer scope * fixing json formatting * fixing example references * Updating costmanagementproxyresource to reference ARM common proxy resource. Minor formatting change on scope parameter * Updating common-types with updates to common-types from 2022-10-01 version * prettier-fix * Alprosms cost management microsoft.cost management 2023 04 01 preview (#23795) * updating costdetailreport swaggers from recent changes to 2022-10-01 version * suppressing invalid LintDiff errors
1 parent d838cd1 commit c2103f6

File tree

194 files changed

+21298
-3
lines changed

Some content is hidden

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

194 files changed

+21298
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,222 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2023-04-01-preview",
5+
"title": "CostManagementClient"
6+
},
7+
"host": "management.azure.com",
8+
"schemes": [
9+
"https"
10+
],
11+
"consumes": [
12+
"application/json"
13+
],
14+
"produces": [
15+
"application/json"
16+
],
17+
"security": [
18+
{
19+
"azure_auth": [
20+
"user_impersonation"
21+
]
22+
}
23+
],
24+
"securityDefinitions": {
25+
"azure_auth": {
26+
"type": "oauth2",
27+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
28+
"flow": "implicit",
29+
"description": "Azure Active Directory OAuth2 Flow.",
30+
"scopes": {
31+
"user_impersonation": "impersonate your user account"
32+
}
33+
}
34+
},
35+
"paths": {
36+
"/providers/Microsoft.CostManagement/operations": {
37+
"get": {
38+
"tags": [
39+
"Operations"
40+
],
41+
"operationId": "Operations_List",
42+
"description": "Lists all of the available cost management REST API operations.",
43+
"x-ms-examples": {
44+
"OperationList": {
45+
"$ref": "./examples/OperationList.json"
46+
}
47+
},
48+
"parameters": [
49+
{
50+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
51+
}
52+
],
53+
"responses": {
54+
"200": {
55+
"description": "OK. The request has succeeded.",
56+
"schema": {
57+
"$ref": "#/definitions/OperationListResult"
58+
}
59+
},
60+
"default": {
61+
"description": "Error response describing why the operation failed.",
62+
"schema": {
63+
"$ref": "#/definitions/ErrorResponse"
64+
}
65+
}
66+
},
67+
"x-ms-pageable": {
68+
"nextLinkName": "nextLink"
69+
}
70+
}
71+
}
72+
},
73+
"definitions": {
74+
"ErrorResponse": {
75+
"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.",
76+
"type": "object",
77+
"properties": {
78+
"error": {
79+
"description": "The details of the error.",
80+
"$ref": "#/definitions/ErrorDetails"
81+
}
82+
}
83+
},
84+
"ErrorDetails": {
85+
"description": "The details of the error.",
86+
"type": "object",
87+
"properties": {
88+
"code": {
89+
"description": "Error code.",
90+
"type": "integer",
91+
"format": "int32",
92+
"readOnly": true
93+
},
94+
"message": {
95+
"description": "Error message indicating why the operation failed.",
96+
"type": "string",
97+
"readOnly": true
98+
}
99+
}
100+
},
101+
"ErrorDetailsWithNestedDetails": {
102+
"description": "The details of the error.",
103+
"type": "object",
104+
"allOf": [
105+
{
106+
"$ref": "#/definitions/ErrorDetails"
107+
}
108+
],
109+
"properties": {
110+
"details": {
111+
"type": "array",
112+
"readOnly": true,
113+
"description": "The additional details of the error.",
114+
"items": {
115+
"$ref": "#/definitions/ErrorDetailsWithNestedDetails"
116+
},
117+
"x-ms-identifiers": []
118+
}
119+
}
120+
},
121+
"ErrorResponseWithNestedDetails": {
122+
"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.",
123+
"type": "object",
124+
"properties": {
125+
"error": {
126+
"description": "The details of the error.",
127+
"$ref": "#/definitions/ErrorDetailsWithNestedDetails"
128+
}
129+
}
130+
},
131+
"CostManagementOperation": {
132+
"description": "A Cost management REST API operation.",
133+
"type": "object",
134+
"properties": {
135+
"id": {
136+
"description": "Operation id: {provider}/{resource}/{operation}.",
137+
"type": "string",
138+
"readOnly": true
139+
}
140+
},
141+
"allOf": [
142+
{
143+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Operation"
144+
}
145+
]
146+
},
147+
"OperationListResult": {
148+
"description": "Result of listing cost management operations. It contains a list of operations and a URL link to get the next set of results.",
149+
"type": "object",
150+
"properties": {
151+
"value": {
152+
"description": "List of cost management operations supported by the Microsoft.CostManagement resource provider.",
153+
"type": "array",
154+
"readOnly": true,
155+
"items": {
156+
"$ref": "#/definitions/CostManagementOperation"
157+
}
158+
},
159+
"nextLink": {
160+
"description": "URL to get the next set of operation list results if there are any.",
161+
"type": "string",
162+
"readOnly": true
163+
}
164+
}
165+
},
166+
"CostManagementProxyResource": {
167+
"description": "The Resource model definition.",
168+
"type": "object",
169+
"allOf": [
170+
{
171+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource"
172+
}
173+
],
174+
"properties": {
175+
"eTag": {
176+
"type": "string",
177+
"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."
178+
}
179+
},
180+
"x-ms-azure-resource": true
181+
},
182+
"DownloadURL": {
183+
"description": "The URL to download the generated report.",
184+
"type": "object",
185+
"properties": {
186+
"expiryTime": {
187+
"description": "The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z.",
188+
"type": "string",
189+
"format": "date-time",
190+
"readOnly": true
191+
},
192+
"validTill": {
193+
"description": "The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z.",
194+
"type": "string",
195+
"format": "date-time"
196+
},
197+
"downloadUrl": {
198+
"description": "The URL to download the generated report.",
199+
"type": "string"
200+
}
201+
}
202+
}
203+
},
204+
"parameters": {
205+
"billingAccountIdParameter": {
206+
"description": "Billing account ID",
207+
"in": "path",
208+
"name": "billingAccountId",
209+
"required": true,
210+
"type": "string",
211+
"x-ms-parameter-location": "method"
212+
},
213+
"billingProfileIdParameter": {
214+
"description": "Billing profile ID.",
215+
"in": "path",
216+
"name": "billingProfileId",
217+
"required": true,
218+
"type": "string",
219+
"x-ms-parameter-location": "method"
220+
}
221+
}
222+
}

0 commit comments

Comments
 (0)