From a0658aa7f6984d446a5197f6b9ada92528ad0967 Mon Sep 17 00:00:00 2001 From: Amir Dachabash Date: Tue, 4 Jan 2022 11:58:36 +0200 Subject: [PATCH 1/4] Adding ReadOnlyDatabase object to Synapse model. --- .../preview/2021-06-01-preview/kustoPool.json | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/kustoPool.json b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/kustoPool.json index 7f32c55a0acb..a8bdef37e496 100644 --- a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/kustoPool.json +++ b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/kustoPool.json @@ -2954,6 +2954,72 @@ }, "description": "Class representing the Kusto database properties." }, + "ReadOnlyFollowingDatabase": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The database properties.", + "$ref": "#/definitions/ReadOnlyFollowingDatabaseProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Database" + } + ], + "description": "Class representing a read only following database.", + "x-ms-discriminator-value": "ReadOnlyFollowing" + }, + "ReadOnlyFollowingDatabaseProperties": { + "properties": { + "provisioningState": { + "$ref": "#/definitions/ResourceProvisioningState", + "readOnly": true, + "description": "The provisioned state of the resource." + }, + "softDeletePeriod": { + "type": "string", + "readOnly": true, + "format": "duration", + "description": "The time the data should be kept before it stops being accessible to queries in TimeSpan." + }, + "hotCachePeriod": { + "type": "string", + "format": "duration", + "description": "The time the data should be kept in cache for fast queries in TimeSpan." + }, + "statistics": { + "$ref": "#/definitions/DatabaseStatistics", + "readOnly": true, + "description": "The statistics of the database." + }, + "leaderClusterResourceId": { + "type": "string", + "readOnly": true, + "description": "The name of the leader cluster" + }, + "attachedDatabaseConfigurationName": { + "type": "string", + "readOnly": true, + "description": "The name of the attached database configuration cluster" + }, + "principalsModificationKind": { + "type": "string", + "readOnly": true, + "enum": [ + "Union", + "Replace", + "None" + ], + "x-ms-enum": { + "name": "PrincipalsModificationKind", + "modelAsString": true + }, + "description": "The principals modification kind of the database" + } + }, + "description": "Class representing the Kusto database properties." + }, "DatabaseStatistics": { "type": "object", "readOnly": true, From b27301e5947788e3b78cf76819e585c9c5607e1f Mon Sep 17 00:00:00 2001 From: Amir Dachabash Date: Wed, 5 Jan 2022 14:54:48 +0200 Subject: [PATCH 2/4] Adding type:object to ReadOnlyDatabase and to its properties. --- .../Microsoft.Synapse/preview/2021-06-01-preview/kustoPool.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/kustoPool.json b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/kustoPool.json index a8bdef37e496..40f962a6ae77 100644 --- a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/kustoPool.json +++ b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/kustoPool.json @@ -2955,6 +2955,7 @@ "description": "Class representing the Kusto database properties." }, "ReadOnlyFollowingDatabase": { + "type": "object", "properties": { "properties": { "x-ms-client-flatten": true, @@ -2971,6 +2972,7 @@ "x-ms-discriminator-value": "ReadOnlyFollowing" }, "ReadOnlyFollowingDatabaseProperties": { + "type": "object", "properties": { "provisioningState": { "$ref": "#/definitions/ResourceProvisioningState", From 05b23992797ee27459b7afdb87a35d6bff9f4811 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Fri, 7 Jan 2022 11:39:20 +0800 Subject: [PATCH 3/4] fix python pipeline failure --- .../Microsoft.Synapse/stable/2021-06-01/sqlPool.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/sqlPool.json b/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/sqlPool.json index 4fd61e337701..2cd9e3954f30 100644 --- a/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/sqlPool.json +++ b/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/sqlPool.json @@ -6122,8 +6122,7 @@ "storageAccountSubscriptionId": { "format": "uuid", "description": "Specifies the blob storage subscription Id.", - "type": "string", - "default": "" + "type": "string" }, "isStorageSecondaryKeyInUse": { "description": "Specifies whether storageAccountAccessKey value is the storage's secondary key.", From c58257efd15d1363d43f064efd8514445e0cb706 Mon Sep 17 00:00:00 2001 From: msyyc <70930885+msyyc@users.noreply.github.com> Date: Fri, 7 Jan 2022 13:26:46 +0800 Subject: [PATCH 4/4] fix python pipeline failure --- .../Microsoft.Synapse/stable/2021-06-01/sqlServer.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/sqlServer.json b/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/sqlServer.json index fbd9d377cbb4..cdf4c29b1b9f 100644 --- a/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/sqlServer.json +++ b/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/sqlServer.json @@ -1237,8 +1237,7 @@ "storageAccountSubscriptionId": { "format": "uuid", "description": "Specifies the blob storage subscription Id.", - "type": "string", - "default": "" + "type": "string" }, "isStorageSecondaryKeyInUse": { "description": "Specifies whether storageAccountAccessKey value is the storage's secondary key.",