From ca0fb6539a5bf44c43de65adf4e1a2060dc796ef Mon Sep 17 00:00:00 2001 From: srikanthparatala Date: Fri, 14 Oct 2022 01:12:31 +0530 Subject: [PATCH 1/5] Fix RoundTrip error --- .../preview/2021-06-01-preview/kustoPool.json | 6 ++- .../preview/2021-06-01-preview/sqlServer.json | 6 ++- .../preview/2021-06-01-preview/workspace.json | 6 ++- .../stable/2021-06-01/bigDataPool.json | 7 +++- .../stable/2021-06-01/integrationRuntime.json | 38 +++---------------- .../stable/2021-06-01/sqlPool.json | 26 ++++++++++--- .../stable/2021-06-01/sqlServer.json | 24 ++++++++++-- .../stable/2021-06-01/workspace.json | 24 ++++++++++-- 8 files changed, 88 insertions(+), 49 deletions(-) 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 f9be99f10e34..d4146be68440 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 @@ -2667,7 +2667,11 @@ }, "workspaceUID": { "type": "string", - "description": "The workspace unique identifier." + "description": "The workspace unique identifier.", + "x-ms-mutability": [ + "create", + "read" + ] } }, "description": "Class representing the Kusto pool properties." diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/sqlServer.json b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/sqlServer.json index 40cb4ae8033c..aa738615efda 100644 --- a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/sqlServer.json +++ b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/sqlServer.json @@ -1538,7 +1538,11 @@ }, "isStorageSecondaryKeyInUse": { "description": "Specifies whether storageAccountAccessKey value is the storage's secondary key.", - "type": "boolean" + "type": "boolean", + "x-ms-mutability": [ + "create", + "update" + ] }, "isAzureMonitorTargetEnabled": { "description": "Specifies whether audit events are sent to Azure Monitor. \r\nIn order to send the events to Azure Monitor, specify 'state' as 'Enabled' and 'isAzureMonitorTargetEnabled' as true.\r\n\r\nWhen using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' diagnostic logs category on the database should be also created.\r\nNote that for server level audit you should use the 'master' database as {databaseName}.\r\n\r\nDiagnostic Settings URI format:\r\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview\r\n\r\nFor more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207)\r\nor [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)\r\n", diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json index 43ed24d7d172..cead87e92cb2 100644 --- a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json +++ b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json @@ -1261,7 +1261,11 @@ }, "linkedAccessCheckOnTargetResource": { "description": "Linked Access Check On Target Resource", - "type": "boolean" + "type": "boolean", + "x-ms-mutability": [ + "create", + "update" + ] }, "allowedAadTenantIdsForLinking": { "description": "Allowed Aad Tenant Ids For Linking", diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/bigDataPool.json b/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/bigDataPool.json index 1aaaf897a096..1f18c7fdd988 100644 --- a/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/bigDataPool.json +++ b/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/bigDataPool.json @@ -446,7 +446,12 @@ "nodeCount": { "type": "integer", "format": "int32", - "description": "The number of nodes in the Big Data pool." + "description": "The number of nodes in the Big Data pool.", + "x-ms-mutability": [ + "create", + "read", + "update" + ] }, "libraryRequirements": { "$ref": "#/definitions/LibraryRequirements", diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/integrationRuntime.json b/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/integrationRuntime.json index 0bb4e3eb1ce7..3acff620f147 100644 --- a/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/integrationRuntime.json +++ b/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/integrationRuntime.json @@ -706,7 +706,7 @@ "default": { "description": "An error response received from the Azure Synapse service.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../common/v1/types.json#/definitions/CloudError" } } }, @@ -1370,36 +1370,6 @@ "modelAsString": true } }, - "ManagedIntegrationRuntime": { - "x-ms-discriminator-value": "Managed", - "description": "Managed integration runtime, including managed elastic and managed dedicated integration runtimes.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/IntegrationRuntime" - } - ], - "properties": { - "provisioningState": { - "description": "Integration runtime state, only valid for managed dedicated integration runtime.", - "$ref": "#/definitions/IntegrationRuntimeState", - "readOnly": true - }, - "typeProperties": { - "description": "Managed integration runtime properties.", - "x-ms-client-flatten": true, - "$ref": "#/definitions/ManagedIntegrationRuntimeTypeProperties" - }, - "managedVirtualNetwork": { - "description": "Managed integration runtime managed virtual network.", - "x-ms-client-flatten": true, - "$ref": "#/definitions/ManagedIntegrationRuntimeManagedVirtualNetworkReference" - } - }, - "required": [ - "typeProperties" - ] - }, "ManagedIntegrationRuntimeTypeProperties": { "description": "Managed integration runtime type properties.", "type": "object", @@ -1432,7 +1402,11 @@ }, "id": { "description": "The id of the managed virtual network.", - "type": "string" + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] } } }, 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 798eeec59b23..31492ec04acc 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 @@ -1556,7 +1556,7 @@ }, "default": { "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "description": "" } @@ -5328,7 +5328,11 @@ "properties": { "tier": { "type": "string", - "description": "The service tier" + "description": "The service tier", + "x-ms-mutability": [ + "create", + "update" + ] }, "name": { "type": "string", @@ -6165,19 +6169,31 @@ "retentionDays": { "format": "int32", "description": "Specifies the number of days to keep in the audit logs in the storage account.", - "type": "integer" + "type": "integer", + "x-ms-mutability": [ + "create", + "read" + ] }, "auditActionsAndGroups": { "description": "Specifies the Actions-Groups and Actions to audit.\r\n\r\nThe recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins:\r\n\r\nBATCH_COMPLETED_GROUP,\r\nSUCCESSFUL_DATABASE_AUTHENTICATION_GROUP,\r\nFAILED_DATABASE_AUTHENTICATION_GROUP.\r\n\r\nThis above combination is also the set that is configured by default when enabling auditing from the Azure portal.\r\n\r\nThe supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records):\r\n\r\nAPPLICATION_ROLE_CHANGE_PASSWORD_GROUP\r\nBACKUP_RESTORE_GROUP\r\nDATABASE_LOGOUT_GROUP\r\nDATABASE_OBJECT_CHANGE_GROUP\r\nDATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP\r\nDATABASE_OBJECT_PERMISSION_CHANGE_GROUP\r\nDATABASE_OPERATION_GROUP\r\nDATABASE_PERMISSION_CHANGE_GROUP\r\nDATABASE_PRINCIPAL_CHANGE_GROUP\r\nDATABASE_PRINCIPAL_IMPERSONATION_GROUP\r\nDATABASE_ROLE_MEMBER_CHANGE_GROUP\r\nFAILED_DATABASE_AUTHENTICATION_GROUP\r\nSCHEMA_OBJECT_ACCESS_GROUP\r\nSCHEMA_OBJECT_CHANGE_GROUP\r\nSCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP\r\nSCHEMA_OBJECT_PERMISSION_CHANGE_GROUP\r\nSUCCESSFUL_DATABASE_AUTHENTICATION_GROUP\r\nUSER_CHANGE_PASSWORD_GROUP\r\nBATCH_STARTED_GROUP\r\nBATCH_COMPLETED_GROUP\r\n\r\nThese are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs.\r\n\r\nFor more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups).\r\n\r\nFor Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are:\r\nSELECT\r\nUPDATE\r\nINSERT\r\nDELETE\r\nEXECUTE\r\nRECEIVE\r\nREFERENCES\r\n\r\nThe general form for defining an action to be audited is:\r\n{action} ON {object} BY {principal}\r\n\r\nNote that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively.\r\n\r\nFor example:\r\nSELECT on dbo.myTable by public\r\nSELECT on DATABASE::myDatabase by public\r\nSELECT on SCHEMA::mySchema by public\r\n\r\nFor more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions)", "type": "array", "items": { - "type": "string" + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] } }, "storageAccountSubscriptionId": { "format": "uuid", "description": "Specifies the blob storage subscription Id.", - "type": "string" + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] }, "isStorageSecondaryKeyInUse": { "description": "Specifies whether storageAccountAccessKey value is the storage's secondary key.", 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 6bf73a12e255..58aa842b2bd8 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 @@ -1522,7 +1522,11 @@ "retentionDays": { "format": "int32", "description": "Specifies the number of days to keep in the audit logs in the storage account.", - "type": "integer" + "type": "integer", + "x-ms-mutability": [ + "create", + "read" + ] }, "auditActionsAndGroups": { "description": "Specifies the Actions-Groups and Actions to audit.\r\n\r\nThe recommended set of action groups to use is the following combination - this will audit all the queries and stored procedures executed against the database, as well as successful and failed logins:\r\n\r\nBATCH_COMPLETED_GROUP,\r\nSUCCESSFUL_DATABASE_AUTHENTICATION_GROUP,\r\nFAILED_DATABASE_AUTHENTICATION_GROUP.\r\n\r\nThis above combination is also the set that is configured by default when enabling auditing from the Azure portal.\r\n\r\nThe supported action groups to audit are (note: choose only specific groups that cover your auditing needs. Using unnecessary groups could lead to very large quantities of audit records):\r\n\r\nAPPLICATION_ROLE_CHANGE_PASSWORD_GROUP\r\nBACKUP_RESTORE_GROUP\r\nDATABASE_LOGOUT_GROUP\r\nDATABASE_OBJECT_CHANGE_GROUP\r\nDATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP\r\nDATABASE_OBJECT_PERMISSION_CHANGE_GROUP\r\nDATABASE_OPERATION_GROUP\r\nDATABASE_PERMISSION_CHANGE_GROUP\r\nDATABASE_PRINCIPAL_CHANGE_GROUP\r\nDATABASE_PRINCIPAL_IMPERSONATION_GROUP\r\nDATABASE_ROLE_MEMBER_CHANGE_GROUP\r\nFAILED_DATABASE_AUTHENTICATION_GROUP\r\nSCHEMA_OBJECT_ACCESS_GROUP\r\nSCHEMA_OBJECT_CHANGE_GROUP\r\nSCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP\r\nSCHEMA_OBJECT_PERMISSION_CHANGE_GROUP\r\nSUCCESSFUL_DATABASE_AUTHENTICATION_GROUP\r\nUSER_CHANGE_PASSWORD_GROUP\r\nBATCH_STARTED_GROUP\r\nBATCH_COMPLETED_GROUP\r\n\r\nThese are groups that cover all sql statements and stored procedures executed against the database, and should not be used in combination with other groups as this will result in duplicate audit logs.\r\n\r\nFor more information, see [Database-Level Audit Action Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups).\r\n\r\nFor Database auditing policy, specific Actions can also be specified (note that Actions cannot be specified for Server auditing policy). The supported actions to audit are:\r\nSELECT\r\nUPDATE\r\nINSERT\r\nDELETE\r\nEXECUTE\r\nRECEIVE\r\nREFERENCES\r\n\r\nThe general form for defining an action to be audited is:\r\n{action} ON {object} BY {principal}\r\n\r\nNote that in the above format can refer to an object like a table, view, or stored procedure, or an entire database or schema. For the latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively.\r\n\r\nFor example:\r\nSELECT on dbo.myTable by public\r\nSELECT on DATABASE::myDatabase by public\r\nSELECT on SCHEMA::mySchema by public\r\n\r\nFor more information, see [Database-Level Audit Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions)", @@ -1534,7 +1538,11 @@ "storageAccountSubscriptionId": { "format": "uuid", "description": "Specifies the blob storage subscription Id.", - "type": "string" + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] }, "isStorageSecondaryKeyInUse": { "description": "Specifies whether storageAccountAccessKey value is the storage's secondary key.", @@ -1642,7 +1650,11 @@ }, "storageEndpoint": { "description": "Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.", - "type": "string" + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] }, "storageAccountAccessKey": { "description": "Specifies the identifier key of the Threat Detection audit storage account.", @@ -1709,7 +1721,11 @@ "properties": { "storageContainerPath": { "description": "A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).", - "type": "string" + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] }, "storageContainerSasKey": { "description": "A shared access signature (SAS Key) that has read and write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required.", diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/workspace.json b/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/workspace.json index 120e01ed79d2..2eaf8e37d4f7 100644 --- a/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/workspace.json +++ b/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/workspace.json @@ -898,11 +898,19 @@ }, "administratorType": { "description": "Workspace active directory administrator type", - "type": "string" + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] }, "sid": { "description": "Object ID of the workspace active directory administrator", - "type": "string" + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] } } }, @@ -1095,7 +1103,11 @@ }, "linkedAccessCheckOnTargetResource": { "description": "Linked Access Check On Target Resource", - "type": "boolean" + "type": "boolean", + "x-ms-mutability": [ + "create", + "update" + ] }, "allowedAadTenantIdsForLinking": { "description": "Allowed Aad Tenant Ids For Linking", @@ -1182,7 +1194,11 @@ "properties": { "initialWorkspaceAdminObjectId": { "description": "AAD object ID of initial workspace admin", - "type": "string" + "type": "string", + "x-ms-mutability": [ + "create", + "read" + ] } } }, From bdf14f9a090168cf3c1f26b9cf28af272eced00b Mon Sep 17 00:00:00 2001 From: srikanthparatala Date: Fri, 14 Oct 2022 13:26:47 +0530 Subject: [PATCH 2/5] Fix model validation error --- .../Microsoft.Synapse/preview/2021-06-01-preview/sqlServer.json | 1 + .../Microsoft.Synapse/preview/2021-06-01-preview/workspace.json | 1 + .../Microsoft.Synapse/stable/2021-06-01/sqlPool.json | 1 + .../Microsoft.Synapse/stable/2021-06-01/workspace.json | 1 + 4 files changed, 4 insertions(+) diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/sqlServer.json b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/sqlServer.json index aa738615efda..230f8ca09eeb 100644 --- a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/sqlServer.json +++ b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/sqlServer.json @@ -1541,6 +1541,7 @@ "type": "boolean", "x-ms-mutability": [ "create", + "read", "update" ] }, diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json index cead87e92cb2..f652f259846c 100644 --- a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json +++ b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json @@ -1264,6 +1264,7 @@ "type": "boolean", "x-ms-mutability": [ "create", + "read", "update" ] }, 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 31492ec04acc..44b2b7b25d82 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 @@ -5331,6 +5331,7 @@ "description": "The service tier", "x-ms-mutability": [ "create", + "read", "update" ] }, diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/workspace.json b/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/workspace.json index 2eaf8e37d4f7..3b5e555e5ded 100644 --- a/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/workspace.json +++ b/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/workspace.json @@ -1106,6 +1106,7 @@ "type": "boolean", "x-ms-mutability": [ "create", + "read", "update" ] }, From 7a03b75a1b62b7edd1a09232f6b970ed931f0d37 Mon Sep 17 00:00:00 2001 From: srikanthparatala Date: Fri, 14 Oct 2022 13:51:01 +0530 Subject: [PATCH 3/5] Fix missing definition ManagedIntegrationRuntime --- .../stable/2021-06-01/integrationRuntime.json | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/integrationRuntime.json b/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/integrationRuntime.json index 3acff620f147..7cb4d8160657 100644 --- a/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/integrationRuntime.json +++ b/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/integrationRuntime.json @@ -1370,6 +1370,36 @@ "modelAsString": true } }, + "ManagedIntegrationRuntime": { + "x-ms-discriminator-value": "Managed", + "description": "Managed integration runtime, including managed elastic and managed dedicated integration runtimes.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/IntegrationRuntime" + } + ], + "properties": { + "provisioningState": { + "description": "Integration runtime state, only valid for managed dedicated integration runtime.", + "$ref": "#/definitions/IntegrationRuntimeState", + "readOnly": true + }, + "typeProperties": { + "description": "Managed integration runtime properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ManagedIntegrationRuntimeTypeProperties" + }, + "managedVirtualNetwork": { + "description": "Managed integration runtime managed virtual network.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ManagedIntegrationRuntimeManagedVirtualNetworkReference" + } + }, + "required": [ + "typeProperties" + ] + }, "ManagedIntegrationRuntimeTypeProperties": { "description": "Managed integration runtime type properties.", "type": "object", From 3216774d9c40b33a4837f579b3b6aeef5fa35fa3 Mon Sep 17 00:00:00 2001 From: srikanthparatala Date: Fri, 14 Oct 2022 14:50:31 +0530 Subject: [PATCH 4/5] Fix Invalid_Type error --- .../preview/2021-06-01-preview/workspace.json | 45 +++++++++++++++---- 1 file changed, 37 insertions(+), 8 deletions(-) diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json index f652f259846c..c78f896df9a3 100644 --- a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json +++ b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json @@ -915,10 +915,7 @@ "responses": { "200": { "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/TrustedServiceByPassConfiguration" - } + "$ref": "#/definitions/TrustedServiceByPassConfigurationList" }, "description": "OK" }, @@ -975,10 +972,7 @@ "responses": { "200": { "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/CheckDefaultStorageAccountStatus" - } + "$ref": "#/definitions/CheckDefaultStorageAccountStatusList" }, "description": "OK" }, @@ -1713,6 +1707,24 @@ ], "description": "The response to a list restorable dropped Sql pools request" }, + "TrustedServiceByPassConfigurationList": { + "type": "object", + "title": "Trusted Service By Pass Configuration properties", + "description": "List of Trusted Service By Pass Configuration", + "properties": { + "nextLink": { + "description": "Link to the next page of results", + "type": "string" + }, + "value": { + "description": "Properties of the Check Default Storage Account Status.", + "type": "array", + "items": { + "$ref": "#/definitions/TrustedServiceByPassConfiguration" + } + } + } + }, "TrustedServiceByPassConfiguration": { "type": "object", "title": "Trusted Service By Pass Configuration properties", @@ -1759,6 +1771,23 @@ } } }, + "CheckDefaultStorageAccountStatusList": { + "description": "List of Workspace Check Default Storage Account Status.", + "type": "object", + "properties": { + "nextLink": { + "description": "Link to the next page of results", + "type": "string" + }, + "value": { + "description": "Workspace Check Default Storage Account Status.", + "type": "array", + "items": { + "$ref": "#/definitions/CheckDefaultStorageAccountStatus" + } + } + } + }, "CheckDefaultStorageAccountStatus": { "description": "Workspace Check Default Storage Account Status.", "type": "object", From 5544b9624a300eb1dc9a5b64624807fda6bdaa45 Mon Sep 17 00:00:00 2001 From: srikanthparatala Date: Fri, 14 Oct 2022 15:52:40 +0530 Subject: [PATCH 5/5] Revert "Fix Invalid_Type error" This reverts commit 3216774d9c40b33a4837f579b3b6aeef5fa35fa3. --- .../preview/2021-06-01-preview/workspace.json | 45 ++++--------------- 1 file changed, 8 insertions(+), 37 deletions(-) diff --git a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json index c78f896df9a3..f652f259846c 100644 --- a/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json +++ b/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json @@ -915,7 +915,10 @@ "responses": { "200": { "schema": { - "$ref": "#/definitions/TrustedServiceByPassConfigurationList" + "type": "array", + "items": { + "$ref": "#/definitions/TrustedServiceByPassConfiguration" + } }, "description": "OK" }, @@ -972,7 +975,10 @@ "responses": { "200": { "schema": { - "$ref": "#/definitions/CheckDefaultStorageAccountStatusList" + "type": "array", + "items": { + "$ref": "#/definitions/CheckDefaultStorageAccountStatus" + } }, "description": "OK" }, @@ -1707,24 +1713,6 @@ ], "description": "The response to a list restorable dropped Sql pools request" }, - "TrustedServiceByPassConfigurationList": { - "type": "object", - "title": "Trusted Service By Pass Configuration properties", - "description": "List of Trusted Service By Pass Configuration", - "properties": { - "nextLink": { - "description": "Link to the next page of results", - "type": "string" - }, - "value": { - "description": "Properties of the Check Default Storage Account Status.", - "type": "array", - "items": { - "$ref": "#/definitions/TrustedServiceByPassConfiguration" - } - } - } - }, "TrustedServiceByPassConfiguration": { "type": "object", "title": "Trusted Service By Pass Configuration properties", @@ -1771,23 +1759,6 @@ } } }, - "CheckDefaultStorageAccountStatusList": { - "description": "List of Workspace Check Default Storage Account Status.", - "type": "object", - "properties": { - "nextLink": { - "description": "Link to the next page of results", - "type": "string" - }, - "value": { - "description": "Workspace Check Default Storage Account Status.", - "type": "array", - "items": { - "$ref": "#/definitions/CheckDefaultStorageAccountStatus" - } - } - } - }, "CheckDefaultStorageAccountStatus": { "description": "Workspace Check Default Storage Account Status.", "type": "object",