Skip to content

Commit

Permalink
Dev cost management microsoft.cost management 2023 04 01 preview (#23334
Browse files Browse the repository at this point in the history
)

* 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
  • Loading branch information
alprosms authored May 4, 2023
1 parent d838cd1 commit c2103f6
Show file tree
Hide file tree
Showing 194 changed files with 21,298 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
{
"swagger": "2.0",
"info": {
"version": "2023-04-01-preview",
"title": "CostManagementClient"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow.",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/providers/Microsoft.CostManagement/operations": {
"get": {
"tags": [
"Operations"
],
"operationId": "Operations_List",
"description": "Lists all of the available cost management REST API operations.",
"x-ms-examples": {
"OperationList": {
"$ref": "./examples/OperationList.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/OperationListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
}
},
"definitions": {
"ErrorResponse": {
"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.",
"type": "object",
"properties": {
"error": {
"description": "The details of the error.",
"$ref": "#/definitions/ErrorDetails"
}
}
},
"ErrorDetails": {
"description": "The details of the error.",
"type": "object",
"properties": {
"code": {
"description": "Error code.",
"type": "integer",
"format": "int32",
"readOnly": true
},
"message": {
"description": "Error message indicating why the operation failed.",
"type": "string",
"readOnly": true
}
}
},
"ErrorDetailsWithNestedDetails": {
"description": "The details of the error.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/ErrorDetails"
}
],
"properties": {
"details": {
"type": "array",
"readOnly": true,
"description": "The additional details of the error.",
"items": {
"$ref": "#/definitions/ErrorDetailsWithNestedDetails"
},
"x-ms-identifiers": []
}
}
},
"ErrorResponseWithNestedDetails": {
"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.",
"type": "object",
"properties": {
"error": {
"description": "The details of the error.",
"$ref": "#/definitions/ErrorDetailsWithNestedDetails"
}
}
},
"CostManagementOperation": {
"description": "A Cost management REST API operation.",
"type": "object",
"properties": {
"id": {
"description": "Operation id: {provider}/{resource}/{operation}.",
"type": "string",
"readOnly": true
}
},
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Operation"
}
]
},
"OperationListResult": {
"description": "Result of listing cost management operations. It contains a list of operations and a URL link to get the next set of results.",
"type": "object",
"properties": {
"value": {
"description": "List of cost management operations supported by the Microsoft.CostManagement resource provider.",
"type": "array",
"readOnly": true,
"items": {
"$ref": "#/definitions/CostManagementOperation"
}
},
"nextLink": {
"description": "URL to get the next set of operation list results if there are any.",
"type": "string",
"readOnly": true
}
}
},
"CostManagementProxyResource": {
"description": "The Resource model definition.",
"type": "object",
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource"
}
],
"properties": {
"eTag": {
"type": "string",
"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."
}
},
"x-ms-azure-resource": true
},
"DownloadURL": {
"description": "The URL to download the generated report.",
"type": "object",
"properties": {
"expiryTime": {
"description": "The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z.",
"type": "string",
"format": "date-time",
"readOnly": true
},
"validTill": {
"description": "The time at which report URL becomes invalid/expires in UTC e.g. 2020-12-08T05:55:59.4394737Z.",
"type": "string",
"format": "date-time"
},
"downloadUrl": {
"description": "The URL to download the generated report.",
"type": "string"
}
}
}
},
"parameters": {
"billingAccountIdParameter": {
"description": "Billing account ID",
"in": "path",
"name": "billingAccountId",
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
},
"billingProfileIdParameter": {
"description": "Billing profile ID.",
"in": "path",
"name": "billingProfileId",
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
}
}
}
Loading

0 comments on commit c2103f6

Please sign in to comment.