Skip to content

Commit 2bdaef6

Browse files
pednekarprajsri-jayati-tehritadelesh
authored andcommitted
Release cost management microsoft.cost management 2022 10 01 (Azure#21380)
* Adds base for updating Microsoft.CostManagement from version stable/2022-05-01 to version 2022-10-01 * Updates readme * Updates API version in new specs and examples * Upgrading Scheduled Actions API to GA (Azure#20964) * Upgrading Scheduled Actions API to GA * First commit:- upgrading existing API to GA version * Upgraded api-version * Adding Operations API in common-types * upgrading api-version in Operations example * referencing common operation def * removing reference to common Operation as it caused multiple validation errors * renaming Operation to CostManagementOperation and referencing Operation from V3 types * fixing csv * SavingsPlan GA changes (Azure#20776) * SavingsPlan GA changes Fix validation errors Rebase with shared branch Correct version in the common-types file Review comments Review comments Refer grain enum in parameter Correct enum type Review comments More improvements * Fix duplicated model lint diff error * Use common types v2 * Move to v2 types.json * Corrected examples * Sri/release cost management microsoft.cost management 2022 10 01 (Azure#21036) * First commit - copying cost management and exports API from 2021-10-01 * Upgrading version * Adding costmanagement.generatedetailedcostreport.json * fixing validation errors * fixing validation errors * fixing validation errors * reverting parameter order update * Reverting CostManagementProxyResource and CostManagementResource changes after breaking changes office hours discussion * ddressing review comments * Resolving code review comments * Qualifying Resource and ProxyResource with CostManagement prefix Please enter the commit message for your changes. Lines starting * Addressing review comments * fixing example file names * fixing linter error * updated operationResults description * Reverting breaking changes in exports API * fixing validation error * Rebasing with latest * fixing billingAccountIdParameter definition conflict * fixing billing profile id parameter conflict * Addressing code review comment * fixing model validation errors * Jatehr/cost management pricesheets (Azure#20958) * Create costmanagement.pricesheets.json * Create PricesheetDownload.json * Create PricesheetDownloadByBillingProfile.json * Create OperationList.json * Update readme.md * Update readme.md * Update costmanagement.pricesheets.json * Update costmanagement.pricesheets.json * Update costmanagement.pricesheets.json * Update costmanagement.pricesheets.json * Update PricesheetDownload.json * Update PricesheetDownloadByBillingProfile.json * Update costmanagement.pricesheets.json * Update costmanagement.pricesheets.json * Update costmanagement.pricesheets.json * Update costmanagement.pricesheets.json * Update costmanagement.pricesheets.json * Delete OperationList.json * Update costmanagement.pricesheets.json * Update costmanagement.pricesheets.json * Update PricesheetDownload.json * Update PricesheetDownloadByBillingProfile.json * Update PricesheetDownload.json * Update PricesheetDownloadByBillingProfile.json * Update PricesheetDownloadByBillingProfile.json * Update costmanagement.pricesheets.json * Update costmanagement.pricesheets.json * Update costmanagement.pricesheets.json * resolve Go SDK stuttering issue * Update costmanagement.pricesheets.json * Update readme.md * Update costmanagement.pricesheets.json * Update costmanagement.pricesheets.json * Update costmanagement.pricesheets.json * Update PricesheetDownload.json * Update PricesheetDownloadByBillingProfile.json * Delete BenefitRecommendationsByRecommendationId.json * Update costmanagement.benefits.json * Update costmanagement.pricesheets.json * Update costmanagement.pricesheets.json * Update common-types.json * Update costmanagement.pricesheets.json * Update costmanagement.generatedetailedcostreport.json * Update common-types.json * Update common-types.json * Update common-types.json * Update common-types.json * Update common-types.json * resolve Go SDK naming collision Co-authored-by: Chenjie Shi <[email protected]> * Update descriptions (Azure#21364) * Update descriptions * Fix lint errors Co-authored-by: srilatha inavolu <[email protected]> Co-authored-by: Jayati Tehri <[email protected]> Co-authored-by: Chenjie Shi <[email protected]>
1 parent b27760f commit 2bdaef6

File tree

166 files changed

+17497
-2
lines changed

Some content is hidden

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

166 files changed

+17497
-2
lines changed
Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2022-10-01",
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": "string",
91+
"readOnly": true
92+
},
93+
"message": {
94+
"description": "Error message indicating why the operation failed.",
95+
"type": "string",
96+
"readOnly": true
97+
}
98+
}
99+
},
100+
"CostManagementOperation": {
101+
"description": "A Cost management REST API operation.",
102+
"type": "object",
103+
"properties": {
104+
"id": {
105+
"description": "Operation id: {provider}/{resource}/{operation}.",
106+
"type": "string",
107+
"readOnly": true
108+
}
109+
},
110+
"allOf": [
111+
{
112+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Operation"
113+
}
114+
]
115+
},
116+
"OperationListResult": {
117+
"description": "Result of listing cost management operations. It contains a list of operations and a URL link to get the next set of results.",
118+
"type": "object",
119+
"properties": {
120+
"value": {
121+
"description": "List of cost management operations supported by the Microsoft.CostManagement resource provider.",
122+
"type": "array",
123+
"readOnly": true,
124+
"items": {
125+
"$ref": "#/definitions/CostManagementOperation"
126+
}
127+
},
128+
"nextLink": {
129+
"description": "URL to get the next set of operation list results if there are any.",
130+
"type": "string",
131+
"readOnly": true
132+
}
133+
}
134+
},
135+
"CostManagementProxyResource": {
136+
"description": "The Resource model definition.",
137+
"type": "object",
138+
"properties": {
139+
"id": {
140+
"readOnly": true,
141+
"type": "string",
142+
"description": "Resource Id."
143+
},
144+
"name": {
145+
"readOnly": true,
146+
"type": "string",
147+
"description": "Resource name."
148+
},
149+
"type": {
150+
"readOnly": true,
151+
"type": "string",
152+
"description": "Resource type."
153+
},
154+
"eTag": {
155+
"type": "string",
156+
"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."
157+
}
158+
},
159+
"x-ms-azure-resource": true
160+
},
161+
"DownloadURL": {
162+
"description": "The URL to download the generated report.",
163+
"type": "object",
164+
"properties": {
165+
"expiryTime": {
166+
"description": "The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z.",
167+
"type": "string",
168+
"format": "date-time",
169+
"readOnly": true
170+
},
171+
"validTill": {
172+
"description": "The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z.",
173+
"type": "string",
174+
"format": "date-time"
175+
},
176+
"downloadUrl": {
177+
"description": "The URL to download the generated report.",
178+
"type": "string"
179+
}
180+
}
181+
}
182+
},
183+
"parameters": {
184+
"billingAccountIdParameter": {
185+
"description": "Billing account ID",
186+
"in": "path",
187+
"name": "billingAccountId",
188+
"required": true,
189+
"type": "string",
190+
"x-ms-parameter-location": "method"
191+
},
192+
"billingProfileIdParameter": {
193+
"description": "Billing profile ID.",
194+
"in": "path",
195+
"name": "billingProfileId",
196+
"required": true,
197+
"type": "string",
198+
"x-ms-parameter-location": "method"
199+
}
200+
}
201+
}

0 commit comments

Comments
 (0)