From 15a94c2b04490fe6f388afee7bf82d8a31339110 Mon Sep 17 00:00:00 2001 From: Lei Li <77429849+peter-li-ms@users.noreply.github.com> Date: Wed, 23 Feb 2022 19:51:43 -0800 Subject: [PATCH] Update the label property of request body of find target resource api (#17917) * Update the label property of request body of find target resource api It should be a map with the key of "label". Right now the request body is defined as: { "key":"value" } But it should be changed to: { "labels":{ "key":"value" } } * Update a description * Fix validation check of example json file for find target resource group api --- .../2021-08-31-preview/customlocations.json | 16 +++++++++++----- .../CustomLocationsFindTargetResourceGroup.json | 8 +++++--- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/specification/extendedlocation/resource-manager/Microsoft.ExtendedLocation/preview/2021-08-31-preview/customlocations.json b/specification/extendedlocation/resource-manager/Microsoft.ExtendedLocation/preview/2021-08-31-preview/customlocations.json index ef0dc0c8fb84..346b0ef3365b 100644 --- a/specification/extendedlocation/resource-manager/Microsoft.ExtendedLocation/preview/2021-08-31-preview/customlocations.json +++ b/specification/extendedlocation/resource-manager/Microsoft.ExtendedLocation/preview/2021-08-31-preview/customlocations.json @@ -421,13 +421,13 @@ "$ref": "#/parameters/ResourceNameParameter" }, { - "name": "labels", + "name": "parameters", "in": "body", "required": true, "schema": { "$ref": "#/definitions/customLocationFindTargetResourceGroupProperties" }, - "description": "Labels supplied to match with Resource Sync Rule. This is a map of {key,value} pairs." + "description": "Parameters of the find target resource group request." } ], "responses": { @@ -878,10 +878,16 @@ ] }, "customLocationFindTargetResourceGroupProperties": { - "description": "Labels of the custom resource, this is a map of {key,value} pairs.", + "description": "The Find Target Resource Group operation request.", "type": "object", - "additionalProperties": { - "type": "string" + "properties": { + "labels": { + "description": "Labels of the custom resource, this is a map of {key,value} pairs.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } } }, "customLocationFindTargetResourceGroupResult": { diff --git a/specification/extendedlocation/resource-manager/Microsoft.ExtendedLocation/preview/2021-08-31-preview/examples/CustomLocationsFindTargetResourceGroup.json b/specification/extendedlocation/resource-manager/Microsoft.ExtendedLocation/preview/2021-08-31-preview/examples/CustomLocationsFindTargetResourceGroup.json index 4382c4a1ca92..ff246f118a71 100644 --- a/specification/extendedlocation/resource-manager/Microsoft.ExtendedLocation/preview/2021-08-31-preview/examples/CustomLocationsFindTargetResourceGroup.json +++ b/specification/extendedlocation/resource-manager/Microsoft.ExtendedLocation/preview/2021-08-31-preview/examples/CustomLocationsFindTargetResourceGroup.json @@ -4,9 +4,11 @@ "subscriptionId": "11111111-2222-3333-4444-555555555555", "resourceGroupName": "testresourcegroup", "resourceName": "customLocation01", - "labels": { - "key1": "value1", - "key2": "value2" + "parameters": { + "labels": { + "key1": "value1", + "key2": "value2" + } } }, "responses": {