From 9e7dd80016defc75c21568e5602d0443807285bc Mon Sep 17 00:00:00 2001 From: Ran Wang Date: Fri, 17 Jul 2020 05:18:52 +0000 Subject: [PATCH] Refinement: added x-ms-enum for tags patch operation (#9828) * Bug fixes: skip url encoding for ScopeParameter; add client name for userAssignedIdentities. * Pretty check fix. * Move added client name into additionalProperties of userAssignedIdentities. * Added x-ms-enum property for tag patch operation. * Set modelAsString to true for TagsPatch Enum operations. --- .../stable/2019-10-01/resources.json | 20 ++++++++++++++++++- .../stable/2020-06-01/resources.json | 20 ++++++++++++++++++- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-10-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-10-01/resources.json index 1ba31b5ac962..64763dca9c3a 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2019-10-01/resources.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2019-10-01/resources.json @@ -5928,7 +5928,25 @@ "Replace", "Merge", "Delete" - ] + ], + "x-ms-enum": { + "name": "operation", + "modelAsString": true, + "values": [ + { + "value": "Replace", + "description": "The 'replace' option replaces the entire set of existing tags with a new set." + }, + { + "value": "Merge", + "description": "The 'merge' option allows adding tags with new names and updating the values of tags with existing names." + }, + { + "value": "Delete", + "description": "The 'delete' option allows selectively deleting tags based on given names or name/value pairs." + } + ] + } }, "properties": { "$ref": "#/definitions/Tags", diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json index 345aa0c0b8b1..46af7f8d08fc 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json @@ -5959,7 +5959,25 @@ "Replace", "Merge", "Delete" - ] + ], + "x-ms-enum": { + "name": "operation", + "modelAsString": true, + "values": [ + { + "value": "Replace", + "description": "The 'replace' option replaces the entire set of existing tags with a new set." + }, + { + "value": "Merge", + "description": "The 'merge' option allows adding tags with new names and updating the values of tags with existing names." + }, + { + "value": "Delete", + "description": "The 'delete' option allows selectively deleting tags based on given names or name/value pairs." + } + ] + } }, "properties": { "$ref": "#/definitions/Tags",