Skip to content

Commit

Permalink
[QuotaRP] Fix LimitObject polymorphism (Azure#16438)
Browse files Browse the repository at this point in the history
* Fix LimitObject polymorphism

* move properties out of allOf

* add type to LimitObject

* value is required

* Updating Operations Tag to QuotaOperations.

* Update quota.json

Updating Summary field for operations.

Co-authored-by: Rahul Singh <53578268+rahuls-microsoft@users.noreply.github.com>
  • Loading branch information
stephenbudhi-msft and rahuls-microsoft authored Oct 26, 2021
1 parent 7214d66 commit 348665d
Showing 1 changed file with 8 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,9 @@
},
"/providers/Microsoft.Quota/operations": {
"get": {
"summary": "GET operations.",
"summary": "GET quota operations.",
"description": "List all the operations supported by the Microsoft.Quota resource provider.",
"operationId": "Operation_List",
"operationId": "QuotaOperation_List",
"x-ms-examples": {
"GetOperations": {
"$ref": "./examples/GetOperations.json"
Expand Down Expand Up @@ -868,15 +868,18 @@
"LimitObject": {
"description": "The resource quota limit value.",
"type": "object",
"x-ms-discriminator-value": "LimitValue",
"allOf": [
{
"$ref": "#/definitions/LimitJsonObject"
}
],
"properties": {
"value": {
"type": "integer",
"format": "int32",
"description": "The quota/limit value"
},
"limitObjectType": {
"$ref": "#/definitions/LimitObjectTypes"
},
"limitType": {
"$ref": "#/definitions/LimitTypes"
}
Expand All @@ -885,19 +888,6 @@
"value"
]
},
"LimitValue": {
"x-ms-discriminator-value": "LimitValue",
"type": "object",
"description": "The resource quota limit.",
"allOf": [
{
"$ref": "#/definitions/LimitJsonObject"
},
{
"$ref": "#/definitions/LimitObject"
}
]
},
"QuotaRequestOneResourceSubmitResponse": {
"description": "Quota request response.",
"type": "object",
Expand Down

0 comments on commit 348665d

Please sign in to comment.