From a4b0758eda423da00a05ec4809bc8a8c78d6ef4a Mon Sep 17 00:00:00 2001 From: Charan MVS Date: Wed, 4 May 2022 11:32:59 +0530 Subject: [PATCH 1/8] 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/8] 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/8] 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/8] 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/8] 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/8] 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" ], From b4a3ff4b1d9a3091575c1d1e1a9bb7fdf6ac3fdf Mon Sep 17 00:00:00 2001 From: Srinivas Charan Madu Date: Mon, 7 Nov 2022 15:00:27 +0530 Subject: [PATCH 7/8] adding readOnly flag for IsVaultProtectedByResourceGuard property --- .../preview/2022-10-01-preview/dataprotection.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-10-01-preview/dataprotection.json b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-10-01-preview/dataprotection.json index 51c5548a8ec3..8d80f7ffff76 100644 --- a/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-10-01-preview/dataprotection.json +++ b/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-10-01-preview/dataprotection.json @@ -4841,7 +4841,8 @@ }, "isVaultProtectedByResourceGuard": { "description": "Is vault protected by resource guard", - "type": "boolean" + "type": "boolean", + "readOnly": true } }, "required": [ From fe8518a30954942a6f94747f0a2ef7a9b9f58338 Mon Sep 17 00:00:00 2001 From: Srinivas Charan Madu Date: Wed, 9 Nov 2022 13:48:00 +0530 Subject: [PATCH 8/8] adding the fix for 2022-05-01 --- .../stable/2022-05-01/dataprotection.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 986fc296d0bd..93f081237793 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 @@ -4323,7 +4323,8 @@ }, "isVaultProtectedByResourceGuard": { "description": "Is vault protected by resource guard", - "type": "boolean" + "type": "boolean", + "readOnly": true } }, "required": [