From ff98083b63c4eea245891d2d91e74c017db230c5 Mon Sep 17 00:00:00 2001 From: Christy Peterson Date: Mon, 15 Mar 2021 17:14:50 +0000 Subject: [PATCH 1/3] add storageRedundancy to get and create properties --- .../preview/2020-04-01-preview/sqlDatabase.json | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/sqlDatabase.json b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/sqlDatabase.json index e5d4529274ec..cbed6ba09c32 100644 --- a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/sqlDatabase.json +++ b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/sqlDatabase.json @@ -285,6 +285,14 @@ "create" ] }, + "storageRedundancy": { + "description": "Storage redundancy of the database.", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, "maxSizeBytes": { "format": "int64", "description": "The max size of the database expressed in bytes.", @@ -331,11 +339,6 @@ "description": "A sql database resource.", "type": "object", "properties": { - "properties": { - "$ref": "#/definitions/SqlDatabaseProperties", - "description": "Resource properties.", - "x-ms-client-flatten": true - }, "tags": { "description": "Resource tags.", "type": "object", From aac25963b5f130d7e6112e9b52186ee470dda87d Mon Sep 17 00:00:00 2001 From: Christy Peterson Date: Mon, 15 Mar 2021 18:59:19 +0000 Subject: [PATCH 2/3] undo update properties change --- .../preview/2020-04-01-preview/sqlDatabase.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/sqlDatabase.json b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/sqlDatabase.json index cbed6ba09c32..cb7b473e6c16 100644 --- a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/sqlDatabase.json +++ b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/sqlDatabase.json @@ -339,6 +339,11 @@ "description": "A sql database resource.", "type": "object", "properties": { + "properties": { + "$ref": "#/definitions/SqlDatabaseProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + }, "tags": { "description": "Resource tags.", "type": "object", From 7b62f1e22db8674f86820ea9f88528f8793a6057 Mon Sep 17 00:00:00 2001 From: Christy Peterson Date: Fri, 19 Mar 2021 16:48:10 +0000 Subject: [PATCH 3/3] add enum storage redundancy type --- .../preview/2020-04-01-preview/sqlDatabase.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/sqlDatabase.json b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/sqlDatabase.json index cb7b473e6c16..315f00e8f6ac 100644 --- a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/sqlDatabase.json +++ b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2020-04-01-preview/sqlDatabase.json @@ -287,7 +287,17 @@ }, "storageRedundancy": { "description": "Storage redundancy of the database.", + "enum": [ + "Geo", + "GeoZone", + "Local", + "Zone" + ], "type": "string", + "x-ms-enum": { + "name": "SqlDatabaseStorageRedundancyType", + "modelAsString": true + }, "x-ms-mutability": [ "read", "create"