From 7e5c142f54870bab9b523e2642548122797cf28a Mon Sep 17 00:00:00 2001 From: ajtms <154369796+ajtms@users.noreply.github.com> Date: Wed, 9 Oct 2024 18:51:30 -0700 Subject: [PATCH] Fixing virtualRouters and ipGroups 202 response examples (#30871) * Added location headers to 202 responses for ipGroups and virtualRouters. * Added location header to vr peering delete examples * Ran prettier on 2024-05-01 examples --- .../stable/2024-03-01/examples/IpGroupsDelete.json | 6 +++++- .../stable/2024-03-01/examples/VirtualRouterDelete.json | 6 +++++- .../2024-03-01/examples/VirtualRouterPeeringDelete.json | 6 +++++- .../stable/2024-05-01/examples/IpGroupsDelete.json | 7 +++++-- .../stable/2024-05-01/examples/VirtualRouterDelete.json | 7 +++++-- .../2024-05-01/examples/VirtualRouterPeeringDelete.json | 7 +++++-- 6 files changed, 30 insertions(+), 9 deletions(-) diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpGroupsDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpGroupsDelete.json index f3cf70378aea..e7ca7343e6c5 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpGroupsDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpGroupsDelete.json @@ -7,7 +7,11 @@ }, "responses": { "200": {}, - "202": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subId/resourceGroups/myResourceGroup/providers/Microsoft.Network/ipGroups/ipGroups1?api-version=2024-03-01" + } + }, "204": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterDelete.json index 6601696ade54..b6ed3b2011ce 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterDelete.json @@ -7,7 +7,11 @@ }, "responses": { "200": {}, - "202": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualRouters/virtualRouter?api-version=2024-03-01" + } + }, "204": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeeringDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeeringDelete.json index 9ad929fb889d..4d2fede9f5c9 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeeringDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeeringDelete.json @@ -8,7 +8,11 @@ }, "responses": { "200": {}, - "202": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualRouters/virtualRouter/peerings/peering1?api-version=2024-03-01" + } + }, "204": {} } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpGroupsDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpGroupsDelete.json index 47be2b60cf85..42822cc939ba 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpGroupsDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpGroupsDelete.json @@ -7,8 +7,11 @@ }, "responses": { "200": {}, - "202": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subId/resourceGroups/myResourceGroup/providers/Microsoft.Network/ipGroups/ipGroups1?api-version=2024-05-01" + } + }, "204": {} } } - diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterDelete.json index 223d6da030d9..de7b007ed7d0 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterDelete.json @@ -7,8 +7,11 @@ }, "responses": { "200": {}, - "202": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualRouters/virtualRouter?api-version=2024-05-01" + } + }, "204": {} } } - diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterPeeringDelete.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterPeeringDelete.json index 5a61788b99e0..1b21f68bfe8f 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterPeeringDelete.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterPeeringDelete.json @@ -8,8 +8,11 @@ }, "responses": { "200": {}, - "202": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualRouters/virtualRouter/peerings/peering1?api-version=2024-05-01" + } + }, "204": {} } } -