From ed8a109adf883861e4a2cccd6ccc5b08100ad33d Mon Sep 17 00:00:00 2001 From: KeYu <1160746208@qq.com> Date: Mon, 15 Nov 2021 15:58:47 +0800 Subject: [PATCH 1/8] fix LRO_RESPONSE_HEADER error in "keyvault" --- .../preview/2021-06-01-preview/examples/ManagedHsm_Update.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-06-01-preview/examples/ManagedHsm_Update.json b/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-06-01-preview/examples/ManagedHsm_Update.json index 0d672d316c09..8efe883a494d 100644 --- a/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-06-01-preview/examples/ManagedHsm_Update.json +++ b/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-06-01-preview/examples/ManagedHsm_Update.json @@ -43,6 +43,9 @@ } }, "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hsm-group/providers/Microsoft.KeyVault/managedHSMs/hsm1?api-version=2021-06-01-preview" + }, "body": { "properties": { "tenantId": "00000000-0000-0000-0000-000000000000", From 43244dcb5fdd99100d4fd6906e790958e720f2bd Mon Sep 17 00:00:00 2001 From: KeYu <1160746208@qq.com> Date: Mon, 15 Nov 2021 16:45:57 +0800 Subject: [PATCH 2/8] fix LRO_RESPONSE_HEADER error in "managementgroups" --- .../stable/2021-04-01/examples/DeleteManagementGroup.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/examples/DeleteManagementGroup.json b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/examples/DeleteManagementGroup.json index 94bb28c71f43..0f32df28ed5d 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/examples/DeleteManagementGroup.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/examples/DeleteManagementGroup.json @@ -6,6 +6,9 @@ }, "responses": { "202": { + "headers": { + "Location": "https://management.azure.com/providers/Microsoft.Management/managementGroups/GroupToDelete?api-version=2021-04-01" + }, "body": { "id": "/providers/Microsoft.Management/managementGroups/GroupToDelete", "type": "Microsoft.Management/managementGroups", From dd57c4a690adbe1f089377e21942b5ab0306c662 Mon Sep 17 00:00:00 2001 From: KeYu <1160746208@qq.com> Date: Mon, 15 Nov 2021 16:51:12 +0800 Subject: [PATCH 3/8] fix XMS_EXAMPLE_NOTFOUND_ERROR error in "managementgroups" --- .../stable/2021-04-01/examples/ListOperations.json | 10 ++++++++++ .../stable/2021-04-01/management.json | 5 +++++ 2 files changed, 15 insertions(+) create mode 100644 specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/examples/ListOperations.json diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/examples/ListOperations.json b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/examples/ListOperations.json new file mode 100644 index 000000000000..6412a453bac6 --- /dev/null +++ b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/examples/ListOperations.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "api-version": "2021-04-01" + }, + "responses": { + "200": { + "body": {} + } + } +} \ No newline at end of file diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/management.json b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/management.json index dac391a711a6..bc6ed0b42164 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/management.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/management.json @@ -718,6 +718,11 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Operations": { + "$ref": "./examples/ListOperations.json" + } } } }, From fb1ebaa514cc47f85303aadba7d4b76dfa092873 Mon Sep 17 00:00:00 2001 From: KeYu <1160746208@qq.com> Date: Mon, 15 Nov 2021 17:04:19 +0800 Subject: [PATCH 4/8] fix RESPONSE_BODY_NOT_IN_EXAMPLE error in "relay" --- .../NameSpaces/RelayNameSpaceCreate.json | 21 ++++++++++++++++++- .../NameSpaces/RelayNameSpaceUpdate.json | 19 ++++++++++++++++- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/NameSpaces/RelayNameSpaceCreate.json b/specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/NameSpaces/RelayNameSpaceCreate.json index 2b93acd5642e..17277a76b212 100644 --- a/specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/NameSpaces/RelayNameSpaceCreate.json +++ b/specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/NameSpaces/RelayNameSpaceCreate.json @@ -37,6 +37,25 @@ } } }, - "201": {} + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/resourcegroup/providers/Microsoft.Relay/namespaces/example-RelayNamespace-01", + "name": "example-RelayNamespace-01", + "type": "Microsoft.Relay/Namespaces", + "location": "West US", + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Unknown", + "metricId": "ffffffff-ffff-ffff-ffff-ffffffffffff:example-Relaynamespace-01" + } + } + } } } diff --git a/specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/NameSpaces/RelayNameSpaceUpdate.json b/specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/NameSpaces/RelayNameSpaceUpdate.json index 58e275dba5d5..4f6ddf4cf74f 100644 --- a/specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/NameSpaces/RelayNameSpaceUpdate.json +++ b/specification/relay/resource-manager/Microsoft.Relay/stable/2017-04-01/examples/NameSpaces/RelayNameSpaceUpdate.json @@ -32,6 +32,23 @@ } } }, - "201": {} + "201": { + "body": { + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/resourcegroup/providers/Microsoft.Relay/namespaces/example-RelayNamespace-01", + "name": "example-RelayNamespace-01", + "type": "Microsoft.Relay/Namespaces", + "location": "West US", + "tags": { + "tag3": "value3", + "tag4": "value4", + "tag5": "value5", + "tag6": "value6" + }, + "properties": { + "provisioningState": "Succeeded", + "metricId": "ffffffff-ffff-ffff-ffff-ffffffffffff:example-Relaynamespace-01" + } + } + } } } From f09d958f7f4da1c2e2b90069957fba33dd6c497e Mon Sep 17 00:00:00 2001 From: KeYu <1160746208@qq.com> Date: Mon, 15 Nov 2021 17:09:31 +0800 Subject: [PATCH 5/8] fix XMS_EXAMPLE_NOTFOUND_ERROR error in "servicefabric" --- .../stable/2021-06-01/cluster.json | 5 +++++ .../stable/2021-06-01/examples/ListOperations.json | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ListOperations.json diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/cluster.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/cluster.json index 7f1b23b655c0..d94c5efae642 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/cluster.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/cluster.json @@ -574,6 +574,11 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ListOperations": { + "$ref": "./examples/ListOperations.json" + } } } } diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ListOperations.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ListOperations.json new file mode 100644 index 000000000000..116d0abd730f --- /dev/null +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ListOperations.json @@ -0,0 +1,10 @@ +{ + "parameters": { + "api-version": "2021-06-01" + }, + "responses": { + "200": { + "body": {} + } + } +} \ No newline at end of file From 209af17b588eee7985fd5ae59321134b94484a66 Mon Sep 17 00:00:00 2001 From: KeYu <1160746208@qq.com> Date: Mon, 15 Nov 2021 17:16:19 +0800 Subject: [PATCH 6/8] fix LRO_RESPONSE_HEADER error in "storage" --- .../stable/2021-06-01/examples/BlobRangesRestore.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2021-06-01/examples/BlobRangesRestore.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2021-06-01/examples/BlobRangesRestore.json index f0734ba8bffe..be7e353ae6d0 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2021-06-01/examples/BlobRangesRestore.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2021-06-01/examples/BlobRangesRestore.json @@ -39,6 +39,9 @@ } }, "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/res9101/providers/Microsoft.Storage/storageAccounts/sto4445/restoreBlobRanges?api-version=2020-08-01-preview" + }, "body": { "status": "InProgress", "restoreId": "{restore_id}", From 02539a4f2ce778c6366f320f21bd155150199a05 Mon Sep 17 00:00:00 2001 From: KeYu <1160746208@qq.com> Date: Tue, 16 Nov 2021 11:32:27 +0800 Subject: [PATCH 7/8] update api version to 2021-06-01 --- .../stable/2021-06-01/examples/BlobRangesRestore.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/storage/resource-manager/Microsoft.Storage/stable/2021-06-01/examples/BlobRangesRestore.json b/specification/storage/resource-manager/Microsoft.Storage/stable/2021-06-01/examples/BlobRangesRestore.json index be7e353ae6d0..31f1c0745b97 100644 --- a/specification/storage/resource-manager/Microsoft.Storage/stable/2021-06-01/examples/BlobRangesRestore.json +++ b/specification/storage/resource-manager/Microsoft.Storage/stable/2021-06-01/examples/BlobRangesRestore.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "res9101", "accountName": "sto4445", - "api-version": "2020-08-01-preview", + "api-version": "2021-06-01", "parameters": { "timeToRestore": "2019-04-20T15:30:00.0000000Z", "blobRanges": [ @@ -40,7 +40,7 @@ }, "202": { "headers": { - "Location": "https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/res9101/providers/Microsoft.Storage/storageAccounts/sto4445/restoreBlobRanges?api-version=2020-08-01-preview" + "Location": "https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/res9101/providers/Microsoft.Storage/storageAccounts/sto4445/restoreBlobRanges?api-version=2021-06-01" }, "body": { "status": "InProgress", From 1de86290055518109e3cf73a0ecb5e1a9e5e6c76 Mon Sep 17 00:00:00 2001 From: KeYu <1160746208@qq.com> Date: Tue, 16 Nov 2021 11:38:08 +0800 Subject: [PATCH 8/8] fix code style issues --- .../2021-04-01/examples/ListOperations.json | 17 ++++++++++++++-- .../2021-06-01/examples/ListOperations.json | 20 +++++++++++++++++-- 2 files changed, 33 insertions(+), 4 deletions(-) diff --git a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/examples/ListOperations.json b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/examples/ListOperations.json index 6412a453bac6..f852371b28f0 100644 --- a/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/examples/ListOperations.json +++ b/specification/managementgroups/resource-manager/Microsoft.Management/stable/2021-04-01/examples/ListOperations.json @@ -4,7 +4,20 @@ }, "responses": { "200": { - "body": {} + "body": { + "value": [ + { + "name": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "display": { + "provider": "aaaaaaaaaaaaaaaaaaaaa", + "resource": "aaaaaaaaaaaaa", + "operation": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "description": "aaaaaaaaaaaaaaaaaaaaaa" + } + } + ], + "nextLink": "aaaaaaaaaaaaaaaaaaa" + } } } -} \ No newline at end of file +} diff --git a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ListOperations.json b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ListOperations.json index 116d0abd730f..5336e833082d 100644 --- a/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ListOperations.json +++ b/specification/servicefabric/resource-manager/Microsoft.ServiceFabric/stable/2021-06-01/examples/ListOperations.json @@ -4,7 +4,23 @@ }, "responses": { "200": { - "body": {} + "body": { + "value": [ + { + "name": "aaaaaaaaaaaaaaaaaaaaaaaaa", + "isDataAction": true, + "display": { + "provider": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "resource": "aaaaaaaaaaaaaaaaaa", + "operation": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "description": "aaaaaaaaaaaaaaa" + }, + "origin": "aaaaaaaaaaaaaa", + "nextLink": "aaaaaaaaaaaaaaaaaaaaa" + } + ], + "nextLink": "aaaaaa" + } } } -} \ No newline at end of file +}