From dff84209b7a4895780ad80b5d9a76c9f26bf97f0 Mon Sep 17 00:00:00 2001 From: Teng Pan Date: Fri, 22 Jan 2021 10:16:27 -0800 Subject: [PATCH 01/10] init --- .../preview/2020-06-01-preview/cosmos-db.json | 74 +++++++++++++++++++ ...CosmosDBBackupStorageRedundanciesList.json | 24 ++++++ .../CosmosDBDatabaseAccountCreateMax.json | 6 +- .../CosmosDBDatabaseAccountCreateMin.json | 3 +- .../examples/CosmosDBDatabaseAccountGet.json | 3 +- .../examples/CosmosDBDatabaseAccountList.json | 3 +- ...sDBDatabaseAccountListByResourceGroup.json | 3 +- .../CosmosDBDatabaseAccountPatch.json | 6 +- 8 files changed, 114 insertions(+), 8 deletions(-) create mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBBackupStorageRedundanciesList.json 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..841e169d279c 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 @@ -4298,6 +4298,45 @@ } } } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/backupStorageRedundancies": { + "get": { + "operationId": "BackupStorageRedundancies_ListByLocation", + "x-ms-examples": { + "CosmosDBDatabaseAccountList": { + "$ref": "./examples/CosmosDBBackupStorageRedundanciesList.json" + } + }, + "description": "Lists all the available backup redundancies in a region.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/locationParameter" + } + ], + "responses": { + "200": { + "description": "The operation completed successfully.", + "schema": { + "$ref": "#/definitions/BackupStorageRedundanciesResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } } }, "definitions": { @@ -7787,6 +7826,11 @@ "format": "int32", "minimum": 0, "description": "An integer representing the time (in hours) that each backup is retained" + }, + "backupStorageRedundancy": { + "description": "Enum to indicate backup residency", + "type": "string", + "$ref": "#/definitions/BackupStorageRedundancy" } } }, @@ -7898,6 +7942,36 @@ "description": "The time at which the regional restorable database account has been deleted (ISO-8601 format)." } } + }, + "BackupStorageRedundanciesResult": { + "description": "Available backup storage redundancies in selected region.", + "type": "object", + "properties": { + "properties": { + "type": "object", + "x-ms-client-flatten": true, + "description": "The properties of a available backup storage redundancies", + "$ref": "#/definitions/BackupStorageRedundancy" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ARMResourceProperties" + } + ] + }, + "BackupStorageRedundancy": { + "description": "Enum to indicate the available backup storage redundancies", + "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/CosmosDBBackupStorageRedundanciesList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBBackupStorageRedundanciesList.json new file mode 100644 index 000000000000..010d84fe7e5a --- /dev/null +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBBackupStorageRedundanciesList.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2020-06-01-preview", + "subscriptionId": "subid", + "location": "West US" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "West US", + "properties": { + "backupStorageRedundancies": [ + "Local", + "Geo" + ] + } + } + ] + } + } + } +} 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" } } }, From 2a40a4b99949fa24a99c0f69b8bc4db4b0bfa8bb Mon Sep 17 00:00:00 2001 From: Teng Pan Date: Fri, 22 Jan 2021 10:58:47 -0800 Subject: [PATCH 02/10] fix name --- .../preview/2020-06-01-preview/cosmos-db.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 841e169d279c..d6b7703677fb 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 @@ -7947,7 +7947,7 @@ "description": "Available backup storage redundancies in selected region.", "type": "object", "properties": { - "properties": { + "backupStorageRedundancy": { "type": "object", "x-ms-client-flatten": true, "description": "The properties of a available backup storage redundancies", From eeadaf2350e9fc85201d15d96f1961617a382c0a Mon Sep 17 00:00:00 2001 From: Teng Pan Date: Fri, 22 Jan 2021 14:19:36 -0800 Subject: [PATCH 03/10] fix property --- .../preview/2020-06-01-preview/cosmos-db.json | 9 ++++----- 1 file changed, 4 insertions(+), 5 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 d6b7703677fb..19c92489540d 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 @@ -7954,11 +7954,10 @@ "$ref": "#/definitions/BackupStorageRedundancy" } }, - "allOf": [ - { - "$ref": "#/definitions/ARMResourceProperties" - } - ] + "location": { + "type": "string", + "description": "The location of the resource group to which the resource belongs." + } }, "BackupStorageRedundancy": { "description": "Enum to indicate the available backup storage redundancies", From 07ea9ee7c433357752863789d5288ea0d4041d3e Mon Sep 17 00:00:00 2001 From: Teng Pan Date: Fri, 22 Jan 2021 14:32:08 -0800 Subject: [PATCH 04/10] array format --- .../preview/2020-06-01-preview/cosmos-db.json | 18 ++++++++++-------- 1 file changed, 10 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 19c92489540d..eefd7b5cd3b9 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 @@ -7946,17 +7946,19 @@ "BackupStorageRedundanciesResult": { "description": "Available backup storage redundancies in selected region.", "type": "object", - "properties": { - "backupStorageRedundancy": { - "type": "object", - "x-ms-client-flatten": true, - "description": "The properties of a available backup storage redundancies", - "$ref": "#/definitions/BackupStorageRedundancy" - } - }, "location": { "type": "string", "description": "The location of the resource group to which the resource belongs." + }, + "properties": { + "backupStorageRedundancy": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/BackupStorageRedundancy" + }, + "description": "The properties of a available backup storage redundancies" + } } }, "BackupStorageRedundancy": { From 62378fc9bbef252f06baceda7275c32015919c26 Mon Sep 17 00:00:00 2001 From: Teng Pan Date: Fri, 22 Jan 2021 16:03:39 -0800 Subject: [PATCH 05/10] fix lsit --- .../preview/2020-06-01-preview/cosmos-db.json | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 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 eefd7b5cd3b9..b8b3700eae59 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 @@ -7946,10 +7946,21 @@ "BackupStorageRedundanciesResult": { "description": "Available backup storage redundancies in selected region.", "type": "object", - "location": { - "type": "string", - "description": "The location of the resource group to which the resource belongs." - }, + "properties": { + "location": { + "type": "string", + "description": "The location of the resource group to which the resource belongs." + }, + "properties": { + "type": "object", + "description": "x.", + "$ref": "#/definitions/BackupStorageRedundancyProperties" + } + } + }, + "BackupStorageRedundancyProperties": { + "description": "x.", + "type": "object", "properties": { "backupStorageRedundancy": { "readOnly": true, From 99a903ed12c282d885203f4e15d71a963fe04015 Mon Sep 17 00:00:00 2001 From: Teng Pan Date: Fri, 22 Jan 2021 16:10:30 -0800 Subject: [PATCH 06/10] fix response --- .../CosmosDBBackupStorageRedundanciesList.json | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBBackupStorageRedundanciesList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBBackupStorageRedundanciesList.json index 010d84fe7e5a..19b9e7939be6 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBBackupStorageRedundanciesList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBBackupStorageRedundanciesList.json @@ -7,17 +7,13 @@ "responses": { "200": { "body": { - "value": [ - { - "location": "West US", - "properties": { - "backupStorageRedundancies": [ - "Local", - "Geo" - ] - } - } - ] + "location": "West US", + "properties": { + "backupStorageRedundancies": [ + "Local", + "Geo" + ] + } } } } From 9febc873477796be7289131815ef8bf713251930 Mon Sep 17 00:00:00 2001 From: Teng Pan Date: Fri, 22 Jan 2021 16:18:54 -0800 Subject: [PATCH 07/10] name --- .../preview/2020-06-01-preview/cosmos-db.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 b8b3700eae59..0d46b2d9b847 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 @@ -7962,7 +7962,7 @@ "description": "x.", "type": "object", "properties": { - "backupStorageRedundancy": { + "backupStorageRedundancies": { "readOnly": true, "type": "array", "items": { From b33062eaf65b99b26f7aaf50cb8f97dc4e2a440c Mon Sep 17 00:00:00 2001 From: Teng Pan Date: Mon, 25 Jan 2021 10:24:28 -0800 Subject: [PATCH 08/10] discription --- .../preview/2020-06-01-preview/cosmos-db.json | 16 ++++++++-------- 1 file changed, 8 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 0d46b2d9b847..cac108e1c8c6 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 @@ -4301,9 +4301,9 @@ }, "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/backupStorageRedundancies": { "get": { - "operationId": "BackupStorageRedundancies_ListByLocation", + "operationId": "BackupStorageRedundancies_GetByLocation", "x-ms-examples": { - "CosmosDBDatabaseAccountList": { + "CosmosDBBackupStorageRedundanciesList": { "$ref": "./examples/CosmosDBBackupStorageRedundanciesList.json" } }, @@ -7944,22 +7944,22 @@ } }, "BackupStorageRedundanciesResult": { - "description": "Available backup storage redundancies in selected region.", + "description": "Available backup storage redundancies in selected location.", "type": "object", "properties": { "location": { "type": "string", - "description": "The location of the resource group to which the resource belongs." + "description": "The selected location." }, "properties": { "type": "object", - "description": "x.", + "description": "Available backup storage redundancies.", "$ref": "#/definitions/BackupStorageRedundancyProperties" } } }, "BackupStorageRedundancyProperties": { - "description": "x.", + "description": "Available backup storage redundancies.", "type": "object", "properties": { "backupStorageRedundancies": { @@ -7968,12 +7968,12 @@ "items": { "$ref": "#/definitions/BackupStorageRedundancy" }, - "description": "The properties of a available backup storage redundancies" + "description": "Available backup storage redundancies in list." } } }, "BackupStorageRedundancy": { - "description": "Enum to indicate the available backup storage redundancies", + "description": "Enum to indicate the backup storage redundancy.", "type": "string", "enum": [ "Geo", From 3e53e71460d9b4b8114e558234b2875455f72774 Mon Sep 17 00:00:00 2001 From: Teng Pan Date: Tue, 26 Jan 2021 12:31:54 -0800 Subject: [PATCH 09/10] modify description --- .../preview/2020-06-01-preview/cosmos-db.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 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 cac108e1c8c6..6a1cc5f485c7 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 @@ -4307,7 +4307,7 @@ "$ref": "./examples/CosmosDBBackupStorageRedundanciesList.json" } }, - "description": "Lists all the available backup redundancies in a region.", + "description": "Lists all the available backup redundancy types in a region.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" @@ -7828,7 +7828,7 @@ "description": "An integer representing the time (in hours) that each backup is retained" }, "backupStorageRedundancy": { - "description": "Enum to indicate backup residency", + "description": "Enum to indicate type of backup residency", "type": "string", "$ref": "#/definitions/BackupStorageRedundancy" } @@ -7944,7 +7944,7 @@ } }, "BackupStorageRedundanciesResult": { - "description": "Available backup storage redundancies in selected location.", + "description": "Available backup storage redundancy types in selected location.", "type": "object", "properties": { "location": { @@ -7953,13 +7953,13 @@ }, "properties": { "type": "object", - "description": "Available backup storage redundancies.", + "description": "Available backup storage redundancy types.", "$ref": "#/definitions/BackupStorageRedundancyProperties" } } }, "BackupStorageRedundancyProperties": { - "description": "Available backup storage redundancies.", + "description": "Available backup storage redundancy types.", "type": "object", "properties": { "backupStorageRedundancies": { @@ -7968,12 +7968,12 @@ "items": { "$ref": "#/definitions/BackupStorageRedundancy" }, - "description": "Available backup storage redundancies in list." + "description": "Available backup storage types in list." } } }, "BackupStorageRedundancy": { - "description": "Enum to indicate the backup storage redundancy.", + "description": "Enum to indicate type of backup storage redundancy.", "type": "string", "enum": [ "Geo", From 54c99210051bdb0820d76f7160f74ca36daea16a Mon Sep 17 00:00:00 2001 From: Teng Pan Date: Fri, 29 Jan 2021 14:54:21 -0800 Subject: [PATCH 10/10] revert new api --- .../preview/2020-06-01-preview/cosmos-db.json | 68 ------------------- ...CosmosDBBackupStorageRedundanciesList.json | 20 ------ 2 files changed, 88 deletions(-) delete mode 100644 specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBBackupStorageRedundanciesList.json 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 6a1cc5f485c7..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 @@ -4298,45 +4298,6 @@ } } } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/backupStorageRedundancies": { - "get": { - "operationId": "BackupStorageRedundancies_GetByLocation", - "x-ms-examples": { - "CosmosDBBackupStorageRedundanciesList": { - "$ref": "./examples/CosmosDBBackupStorageRedundanciesList.json" - } - }, - "description": "Lists all the available backup redundancy types in a region.", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/locationParameter" - } - ], - "responses": { - "200": { - "description": "The operation completed successfully.", - "schema": { - "$ref": "#/definitions/BackupStorageRedundanciesResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } } }, "definitions": { @@ -7943,35 +7904,6 @@ } } }, - "BackupStorageRedundanciesResult": { - "description": "Available backup storage redundancy types in selected location.", - "type": "object", - "properties": { - "location": { - "type": "string", - "description": "The selected location." - }, - "properties": { - "type": "object", - "description": "Available backup storage redundancy types.", - "$ref": "#/definitions/BackupStorageRedundancyProperties" - } - } - }, - "BackupStorageRedundancyProperties": { - "description": "Available backup storage redundancy types.", - "type": "object", - "properties": { - "backupStorageRedundancies": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/BackupStorageRedundancy" - }, - "description": "Available backup storage types in list." - } - } - }, "BackupStorageRedundancy": { "description": "Enum to indicate type of backup storage redundancy.", "type": "string", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBBackupStorageRedundanciesList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBBackupStorageRedundanciesList.json deleted file mode 100644 index 19b9e7939be6..000000000000 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBBackupStorageRedundanciesList.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "parameters": { - "api-version": "2020-06-01-preview", - "subscriptionId": "subid", - "location": "West US" - }, - "responses": { - "200": { - "body": { - "location": "West US", - "properties": { - "backupStorageRedundancies": [ - "Local", - "Geo" - ] - } - } - } - } -}