From f862372181b14291ea56a9dd9a8fef4a8a0a132e Mon Sep 17 00:00:00 2001 From: tengpanpt <68668066+tengpanpt@users.noreply.github.com> Date: Mon, 1 Feb 2021 17:59:38 -0800 Subject: [PATCH] [Hub Generated] Review request for Microsoft.DocumentDB to add version preview/2020-06-01-preview (#12622) * init * fix name * fix property * array format * fix lsit * fix response * name * discription * modify description * revert new api Co-authored-by: Teng Pan --- .../preview/2020-06-01-preview/cosmos-db.json | 18 ++++++++++++++++++ .../CosmosDBDatabaseAccountCreateMax.json | 6 ++++-- .../CosmosDBDatabaseAccountCreateMin.json | 3 ++- .../examples/CosmosDBDatabaseAccountGet.json | 3 ++- .../examples/CosmosDBDatabaseAccountList.json | 3 ++- ...osDBDatabaseAccountListByResourceGroup.json | 3 ++- .../examples/CosmosDBDatabaseAccountPatch.json | 6 ++++-- 7 files changed, 34 insertions(+), 8 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/cosmos-db.json index 5c326dbdf557..0d59d5111acc 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/cosmos-db.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/cosmos-db.json @@ -7787,6 +7787,11 @@ "format": "int32", "minimum": 0, "description": "An integer representing the time (in hours) that each backup is retained" + }, + "backupStorageRedundancy": { + "description": "Enum to indicate type of backup residency", + "type": "string", + "$ref": "#/definitions/BackupStorageRedundancy" } } }, @@ -7898,6 +7903,19 @@ "description": "The time at which the regional restorable database account has been deleted (ISO-8601 format)." } } + }, + "BackupStorageRedundancy": { + "description": "Enum to indicate type of backup storage redundancy.", + "type": "string", + "enum": [ + "Geo", + "Local", + "Zone" + ], + "x-ms-enum": { + "name": "BackupStorageRedundancy", + "modelAsString": true + } } }, "parameters": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMax.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMax.json index c36777803418..0c81dc6d8289 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMax.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMax.json @@ -59,7 +59,8 @@ "type": "Periodic", "periodicModeProperties": { "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 720 + "backupRetentionIntervalInHours": 720, + "backupStorageRedundancy": "Geo" } }, "cors": [ @@ -176,7 +177,8 @@ "type": "Periodic", "periodicModeProperties": { "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 720 + "backupRetentionIntervalInHours": 720, + "backupStorageRedundancy": "Geo" } }, "cors": [ diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMin.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMin.json index 6219541b7ca4..782e84fa83ed 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMin.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMin.json @@ -82,7 +82,8 @@ "type": "Periodic", "periodicModeProperties": { "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 720 + "backupRetentionIntervalInHours": 720, + "backupStorageRedundancy": "Geo" } } }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountGet.json index 6161ef424776..a0fff0cd016a 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountGet.json @@ -85,7 +85,8 @@ "type": "Periodic", "periodicModeProperties": { "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 720 + "backupRetentionIntervalInHours": 720, + "backupStorageRedundancy": "Geo" } } }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountList.json index 2e78845c0e93..5ae52663c801 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountList.json @@ -83,7 +83,8 @@ "type": "Periodic", "periodicModeProperties": { "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 720 + "backupRetentionIntervalInHours": 720, + "backupStorageRedundancy": "Geo" } } }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json index 9a8d7e081c13..aa5fd4fe367a 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json @@ -68,7 +68,8 @@ "type": "Periodic", "periodicModeProperties": { "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 720 + "backupRetentionIntervalInHours": 720, + "backupStorageRedundancy": "Geo" } } }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountPatch.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountPatch.json index 5c0c861f1146..0014ef66b0a7 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountPatch.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountPatch.json @@ -42,7 +42,8 @@ "type": "Periodic", "periodicModeProperties": { "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 720 + "backupRetentionIntervalInHours": 720, + "backupStorageRedundancy": "Geo" } } } @@ -151,7 +152,8 @@ "type": "Periodic", "periodicModeProperties": { "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 720 + "backupRetentionIntervalInHours": 720, + "backupStorageRedundancy": "Geo" } } },