From 348665d474283df6a73d6a2ec6defef271251f13 Mon Sep 17 00:00:00 2001 From: sbudhi-msft <81762203+sbudhi-msft@users.noreply.github.com> Date: Mon, 25 Oct 2021 22:45:27 -0700 Subject: [PATCH] [QuotaRP] Fix LimitObject polymorphism (#16438) * 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> --- .../preview/2021-03-15-preview/quota.json | 26 ++++++------------- 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/quota.json b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/quota.json index f2c1233112d8..e409972797b6 100644 --- a/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/quota.json +++ b/specification/quota/resource-manager/Microsoft.Quota/preview/2021-03-15-preview/quota.json @@ -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" @@ -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" } @@ -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",