From 7699465e17d10560d74f8f1eb52ab7f90a397238 Mon Sep 17 00:00:00 2001 From: "Arsheen Khatib (from Dev Box)" Date: Thu, 9 May 2024 11:04:05 -0700 Subject: [PATCH] Adding the new response code to the 2024-01-01 version release of swagger to match the bugfix in 2023-11-01 --- .../NetworkVirtualApplianceEmptyRestart.json | 8 ++++++++ ...NetworkVirtualApplianceSpecificRestart.json | 11 +++++++++++ .../2024-01-01/networkVirtualAppliance.json | 18 +++++++++++++++++- 3 files changed, 36 insertions(+), 1 deletion(-) diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-01-01/examples/NetworkVirtualApplianceEmptyRestart.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-01-01/examples/NetworkVirtualApplianceEmptyRestart.json index 62d14315355c..e312a6c6f6cc 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-01-01/examples/NetworkVirtualApplianceEmptyRestart.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-01-01/examples/NetworkVirtualApplianceEmptyRestart.json @@ -7,6 +7,14 @@ }, "responses": { "200": { + "headers": { + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/00000000-0000-0000-0000-000000000000?api-version=2023-11-01" + }, + "body": { + "instanceIds": [] + } + }, + "202": { "headers": { "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/00000000-0000-0000-0000-000000000000?api-version=2024-01-01" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-01-01/examples/NetworkVirtualApplianceSpecificRestart.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-01-01/examples/NetworkVirtualApplianceSpecificRestart.json index 07eabe990e77..0458d2259516 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-01-01/examples/NetworkVirtualApplianceSpecificRestart.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-01-01/examples/NetworkVirtualApplianceSpecificRestart.json @@ -11,6 +11,17 @@ }, "responses": { "200": { + "headers": { + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/00000000-0000-0000-0000-000000000000?api-version=2023-11-01" + }, + "body": { + "instanceIds": [ + "0", + "1" + ] + } + }, + "202": { "headers": { "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/nfvOperations/00000000-0000-0000-0000-000000000000?api-version=2024-01-01" } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2024-01-01/networkVirtualAppliance.json b/specification/network/resource-manager/Microsoft.Network/stable/2024-01-01/networkVirtualAppliance.json index d7fb3493dfa1..d4dbe68071b0 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2024-01-01/networkVirtualAppliance.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2024-01-01/networkVirtualAppliance.json @@ -325,7 +325,19 @@ ], "responses": { "200": { - "description": "Request successful. The operation restarts one or more Network Virtual Appliance VM resources." + "description": "Request successful. The operation restarts one or more Network Virtual Appliance VM resources.", + "schema": { + "$ref": "#/definitions/NetworkVirtualApplianceInstanceIds" + } + }, + "202": { + "description": "Request accepted. The operation restarts one or more Network Virtual Appliance VM resources.", + "headers": { + "Location": { + "description": "The URL of the resource used to check the status of the asynchronous operation.", + "type": "string" + } + } }, "default": { "description": "Error response describing why the operation failed.", @@ -341,6 +353,10 @@ "Restart Specific NetworkVirtualAppliance VMs in VM Scale Set": { "$ref": "./examples/NetworkVirtualApplianceSpecificRestart.json" } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" } } },