Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.CostManagement to add ve…
Browse files Browse the repository at this point in the history
…rsion stable/2022-05-01 (#19143)

* Adds base for updating Microsoft.CostManagement from version stable/2021-10-01 to version 2022-05-01

* Updates readme

* Updates API version in new specs and examples

* Add the new Cost Details Api

* fix model

* Update operation name and fix description

* Fix based on linter check

* Fix lint diff errors

* Fix Swagger SemanticValidation

* Fix prettier

* Fix based on comments

* Change API name from CostDetails to GenerateCostDetailsReport

* Add missing space

* Add description

* Add description to API

* Chnage 200 response

* Add 200 response
  • Loading branch information
absyed authored Jul 12, 2022
1 parent 432872f commit fbb4e2c
Show file tree
Hide file tree
Showing 11 changed files with 880 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"swagger": "2.0",
"info": {
"version": "2022-05-01",
"title": "Cost Management common types"
},
"paths": {},
"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": "string",
"readOnly": true
},
"message": {
"description": "Error message indicating why the operation failed.",
"type": "string",
"readOnly": true
}
}
},
"ProxyResource": {
"description": "The Resource model definition.",
"type": "object",
"properties": {
"id": {
"readOnly": true,
"type": "string",
"description": "Resource Id."
},
"name": {
"readOnly": true,
"type": "string",
"description": "Resource name."
},
"type": {
"readOnly": true,
"type": "string",
"description": "Resource type."
},
"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
}
},
"parameters": {
"apiVersionParameter": {
"name": "api-version",
"in": "query",
"required": true,
"type": "string",
"description": "Version of the API to be used with the client request."
}
}
}
Loading

0 comments on commit fbb4e2c

Please sign in to comment.