Skip to content

Commit 15a94c2

Browse files
peter-li-msFredericHeem
authored andcommitted
Update the label property of request body of find target resource api (Azure#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
1 parent aab0dc6 commit 15a94c2

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

specification/extendedlocation/resource-manager/Microsoft.ExtendedLocation/preview/2021-08-31-preview/customlocations.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -421,13 +421,13 @@
421421
"$ref": "#/parameters/ResourceNameParameter"
422422
},
423423
{
424-
"name": "labels",
424+
"name": "parameters",
425425
"in": "body",
426426
"required": true,
427427
"schema": {
428428
"$ref": "#/definitions/customLocationFindTargetResourceGroupProperties"
429429
},
430-
"description": "Labels supplied to match with Resource Sync Rule. This is a map of {key,value} pairs."
430+
"description": "Parameters of the find target resource group request."
431431
}
432432
],
433433
"responses": {
@@ -878,10 +878,16 @@
878878
]
879879
},
880880
"customLocationFindTargetResourceGroupProperties": {
881-
"description": "Labels of the custom resource, this is a map of {key,value} pairs.",
881+
"description": "The Find Target Resource Group operation request.",
882882
"type": "object",
883-
"additionalProperties": {
884-
"type": "string"
883+
"properties": {
884+
"labels": {
885+
"description": "Labels of the custom resource, this is a map of {key,value} pairs.",
886+
"type": "object",
887+
"additionalProperties": {
888+
"type": "string"
889+
}
890+
}
885891
}
886892
},
887893
"customLocationFindTargetResourceGroupResult": {

specification/extendedlocation/resource-manager/Microsoft.ExtendedLocation/preview/2021-08-31-preview/examples/CustomLocationsFindTargetResourceGroup.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
"subscriptionId": "11111111-2222-3333-4444-555555555555",
55
"resourceGroupName": "testresourcegroup",
66
"resourceName": "customLocation01",
7-
"labels": {
8-
"key1": "value1",
9-
"key2": "value2"
7+
"parameters": {
8+
"labels": {
9+
"key1": "value1",
10+
"key2": "value2"
11+
}
1012
}
1113
},
1214
"responses": {

0 commit comments

Comments
 (0)