From a4b0758eda423da00a05ec4809bc8a8c78d6ef4a Mon Sep 17 00:00:00 2001 From: Charan MVS Date: Wed, 4 May 2022 11:32:59 +0530 Subject: [PATCH 1/6] manual swagger fix --- .../stable/2022-03-01/dataprotection.json | 3 +-- .../stable/2022-02-01/bms.json | 9 +++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-03-01/dataprotection.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-03-01/dataprotection.json index 84095476a92b..2ac45ff11927 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-03-01/dataprotection.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-03-01/dataprotection.json @@ -6338,8 +6338,7 @@ "type": "array", "items": { "type": "string" - }, - "readOnly": true + } }, "description": { "description": "Description about the pre-req steps to perform all the critical operations.", diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-02-01/bms.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-02-01/bms.json index 2f50fff69ca1..d285c9478243 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-02-01/bms.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-02-01/bms.json @@ -4386,6 +4386,15 @@ "in": "path", "required": true, "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "Request body for operation", + "required": true, + "schema": { + "$ref": "#/definitions/ResourceGuardProxyBaseResource" + } } ], "responses": { From d2bdfd9c28467f860dc24ec3ad85c72816c2b85d Mon Sep 17 00:00:00 2001 From: Charan MVS Date: Wed, 4 May 2022 16:08:04 +0530 Subject: [PATCH 2/6] adding change to newer version --- .../stable/2022-03-01/dataprotection.json | 3 ++- .../stable/2022-04-01/dataprotection.json | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-03-01/dataprotection.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-03-01/dataprotection.json index 2ac45ff11927..84095476a92b 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-03-01/dataprotection.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-03-01/dataprotection.json @@ -6338,7 +6338,8 @@ "type": "array", "items": { "type": "string" - } + }, + "readOnly": true }, "description": { "description": "Description about the pre-req steps to perform all the critical operations.", diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/dataprotection.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/dataprotection.json index 53ac1fa82171..b39fdb1dcf82 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/dataprotection.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-04-01/dataprotection.json @@ -6382,8 +6382,7 @@ "type": "array", "items": { "type": "string" - }, - "readOnly": true + } }, "description": { "description": "Description about the pre-req steps to perform all the critical operations.", From 65cc20c855cbe5da3076676a49b7d12fbe8e6ed9 Mon Sep 17 00:00:00 2001 From: Charan MVS Date: Mon, 9 May 2022 11:15:26 +0530 Subject: [PATCH 3/6] swagger fix --- .../examples/ResourceGuardProxyCRUD/PutResourceGuardProxy.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-02-01/examples/ResourceGuardProxyCRUD/PutResourceGuardProxy.json b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-02-01/examples/ResourceGuardProxyCRUD/PutResourceGuardProxy.json index b6e253b75800..e96ae4857b24 100644 --- a/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-02-01/examples/ResourceGuardProxyCRUD/PutResourceGuardProxy.json +++ b/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2022-02-01/examples/ResourceGuardProxyCRUD/PutResourceGuardProxy.json @@ -6,8 +6,6 @@ "resourceGuardProxyName": "swaggerExample", "api-version": "2022-02-01", "parameters": { - "id": "/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.RecoveryServicesBVTD2/vaults/sampleVault/backupResourceGuardProxies/swaggerExample", - "type": "Microsoft.RecoveryServices/vaults/backupResourceGuardProxies", "properties": { "resourceGuardResourceId": "/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/resourceGuards/VaultGuardTestNew" } From 2783869ac274ab2774ee5c781cedd6b02d9fa112 Mon Sep 17 00:00:00 2001 From: Charan MVS Date: Tue, 10 May 2022 12:05:57 +0530 Subject: [PATCH 4/6] Empty-Commit From bc369f132f6042056e199468714fdad3b702632a Mon Sep 17 00:00:00 2001 From: Srinivas Charan Madu Date: Tue, 30 Aug 2022 14:28:31 +0530 Subject: [PATCH 5/6] adding isVaultProtectedByResourceGuard in backupVault --- .../stable/2022-05-01/dataprotection.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-05-01/dataprotection.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-05-01/dataprotection.json index d5c9924352e1..43acdc362e09 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-05-01/dataprotection.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-05-01/dataprotection.json @@ -4320,6 +4320,10 @@ }, "x-ms-identifiers": [], "type": "array" + }, + "isVaultProtectedByResourceGuard": { + "description": "Is vault protected by resource guard", + "type": "boolean" } }, "required": [ From b977c7652e9baca12a74d296604aa99f428df4dd Mon Sep 17 00:00:00 2001 From: Srinivas Charan Madu Date: Fri, 30 Sep 2022 16:00:53 +0530 Subject: [PATCH 6/6] swagger fix --- .../preview/2022-09-01-preview/dataprotection.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-09-01-preview/dataprotection.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-09-01-preview/dataprotection.json index 91d0ac501322..f33e4da19265 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-09-01-preview/dataprotection.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-09-01-preview/dataprotection.json @@ -3554,7 +3554,7 @@ "tags": [ "DppResourceGuardProxies" ], - "operationId": "DppResourceGuardProxy-List", + "operationId": "DppResourceGuardProxy_List", "produces": [ "application/json" ], @@ -3601,7 +3601,7 @@ "tags": [ "DppResourceGuardProxies" ], - "operationId": "DppResourceGuardProxy-Get", + "operationId": "DppResourceGuardProxy_Get", "produces": [ "application/json" ], @@ -3649,7 +3649,7 @@ "tags": [ "DppResourceGuardProxies" ], - "operationId": "DppResourceGuardProxy-Put", + "operationId": "DppResourceGuardProxy_Put", "produces": [ "application/json" ], @@ -3706,7 +3706,7 @@ "tags": [ "DppResourceGuardProxies" ], - "operationId": "DppResourceGuardProxy-Delete", + "operationId": "DppResourceGuardProxy_Delete", "produces": [ "application/json" ], @@ -3756,7 +3756,7 @@ "tags": [ "DppResourceGuardProxies" ], - "operationId": "DppResourceGuardProxy-UnlockDelete", + "operationId": "DppResourceGuardProxy_UnlockDelete", "produces": [ "application/json" ],