From 83a5a73797b5fb31c0e46a551fd318a1fdbfe1be Mon Sep 17 00:00:00 2001 From: Abhishek Goyal Date: Thu, 14 Oct 2021 14:05:11 +0530 Subject: [PATCH 1/2] Added long running operation tag to async API --- .../Microsoft.RecoveryServices/stable/2021-10-01/bms.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2021-10-01/bms.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2021-10-01/bms.json index 7a5d2d44f1fa..f24401986b90 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2021-10-01/bms.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2021-10-01/bms.json @@ -2625,6 +2625,7 @@ } } }, + "x-ms-long-running-operation": true, "x-ms-examples": { "Trigger Validate Operation": { "$ref": "./examples/AzureIaasVm/TriggerValidateOperation_RestoreDisk.json" From c400a5651aee5320f44fb507e61aa4c4f320cbfe Mon Sep 17 00:00:00 2001 From: Abhishek Goyal Date: Thu, 14 Oct 2021 14:17:54 +0530 Subject: [PATCH 2/2] Updated examples with renamed tracking API --- .../AzureIaasVm/TriggerValidateOperation_RestoreDisk.json | 2 +- .../examples/AzureIaasVm/ValidateOperationResults.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2021-10-01/examples/AzureIaasVm/TriggerValidateOperation_RestoreDisk.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2021-10-01/examples/AzureIaasVm/TriggerValidateOperation_RestoreDisk.json index ec79d8b3fa9e..ff2dcf03ca40 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2021-10-01/examples/AzureIaasVm/TriggerValidateOperation_RestoreDisk.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2021-10-01/examples/AzureIaasVm/TriggerValidateOperation_RestoreDisk.json @@ -33,7 +33,7 @@ "202": { "headers": { "Location": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.RecoveryServices/vaults/testVault/backupValidateOperationResults/00000000-0000-0000-0000-000000000000?api-version=2021-10-01", - "Azure-AsyncOperation": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.RecoveryServices/vaults/testVault/backupValidateOperationsStatus/00000000-0000-0000-0000-000000000000?api-version=2021-10-01", + "Azure-AsyncOperation": "https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.RecoveryServices/vaults/testVault/backupValidateOperationsStatuses/00000000-0000-0000-0000-000000000000?api-version=2021-10-01", "Retry-After": 10 } } diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2021-10-01/examples/AzureIaasVm/ValidateOperationResults.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2021-10-01/examples/AzureIaasVm/ValidateOperationResults.json index af5d6162d04e..aa964dd0681f 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2021-10-01/examples/AzureIaasVm/ValidateOperationResults.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2021-10-01/examples/AzureIaasVm/ValidateOperationResults.json @@ -10,7 +10,7 @@ "202": { "headers": { "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupValidateOperationResults/00000000-0000-0000-0000-000000000000?api-version=2021-10-01", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupValidateOperationsStatus/00000000-0000-0000-0000-000000000000?api-version=2021-10-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupValidateOperationsStatuses/00000000-0000-0000-0000-000000000000?api-version=2021-10-01", "Retry-After": 10 } },