From b6293afe4fbbafee4d3bc152c931cdcdfe215219 Mon Sep 17 00:00:00 2001 From: Peter Li Date: Sat, 19 Feb 2022 19:12:27 -0800 Subject: [PATCH 1/3] 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" } } --- .../preview/2021-08-31-preview/customlocations.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 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..e6a9c458b5b6 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 @@ -880,8 +880,14 @@ "customLocationFindTargetResourceGroupProperties": { "description": "Labels of the custom resource, this is a map of {key,value} pairs.", "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": { From bde11964e583c786d0811eda5b5df98fb570da5a Mon Sep 17 00:00:00 2001 From: Peter Li Date: Sat, 19 Feb 2022 19:16:10 -0800 Subject: [PATCH 2/3] Update a description --- .../preview/2021-08-31-preview/customlocations.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e6a9c458b5b6..b7cdd45c42b0 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 @@ -878,7 +878,7 @@ ] }, "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", "properties": { "labels": { From e139b9b0c6281e6e702018beb796b6d4fd934c97 Mon Sep 17 00:00:00 2001 From: Peter Li Date: Sat, 19 Feb 2022 19:57:32 -0800 Subject: [PATCH 3/3] Fix validation check of example json file for find target resource group api --- .../preview/2021-08-31-preview/customlocations.json | 4 ++-- .../examples/CustomLocationsFindTargetResourceGroup.json | 8 +++++--- 2 files changed, 7 insertions(+), 5 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 b7cdd45c42b0..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": { 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": {