diff --git a/sdk/synapse/arm-synapse/README.md b/sdk/synapse/arm-synapse/README.md index 1bda5ed3936c..9acf4f8ecb8c 100644 --- a/sdk/synapse/arm-synapse/README.md +++ b/sdk/synapse/arm-synapse/README.md @@ -1,95 +1,103 @@ ## Azure SynapseManagementClient SDK for JavaScript -This package contains an isomorphic SDK for SynapseManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for SynapseManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-synapse` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-synapse +npm install --save @azure/arm-synapse @azure/identity ``` +> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. +If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. ### How to use -#### nodejs - client creation and get bigDataPools as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth - -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +In the below samples, we pass the credential and the Azure subscription id to instantiate the client. +Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. +#### nodejs - Authentication, client creation, and get bigDataPools as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { SynapseManagementClient } = require("@azure/arm-synapse"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new SynapseManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const workspaceName = "testworkspaceName"; - const bigDataPoolName = "testbigDataPoolName"; - client.bigDataPools.get(resourceGroupName, workspaceName, bigDataPoolName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new SynapseManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const workspaceName = "testworkspaceName"; +const bigDataPoolName = "testbigDataPoolName"; +client.bigDataPools.get(resourceGroupName, workspaceName, bigDataPoolName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get bigDataPools as an example written in JavaScript. +#### browser - Authentication, client creation, and get bigDataPools as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-synapse sample - - + diff --git a/sdk/synapse/arm-synapse/package.json b/sdk/synapse/arm-synapse/package.json index c01cf1d6f7d6..db64bd609cd9 100644 --- a/sdk/synapse/arm-synapse/package.json +++ b/sdk/synapse/arm-synapse/package.json @@ -4,8 +4,9 @@ "description": "SynapseManagementClient Library with typescript type definitions for node.js and browser.", "version": "5.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,13 +21,13 @@ "module": "./esm/synapseManagementClient.js", "types": "./esm/synapseManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/synapse/arm-synapse", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/synapse/arm-synapse", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/synapse/arm-synapse/src/models/attachedDatabaseConfigurationsMappers.ts b/sdk/synapse/arm-synapse/src/models/attachedDatabaseConfigurationsMappers.ts new file mode 100644 index 000000000000..b2cdb2ce5da7 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/models/attachedDatabaseConfigurationsMappers.ts @@ -0,0 +1,132 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AttachedDatabaseConfiguration, + AttachedDatabaseConfigurationListResult, + AutoPauseProperties, + AutoScaleProperties, + AzureEntityResource, + AzureSku, + BaseResource, + BigDataPoolResourceInfo, + ClusterPrincipalAssignment, + CmdkeySetup, + ComponentSetup, + CspWorkspaceAdminProperties, + CustomerManagedKeyDetails, + CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, + DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, + DataWarehouseUserActivities, + DynamicExecutorAllocation, + EncryptionDetails, + EncryptionProtector, + EntityReference, + EnvironmentVariableSetup, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, + ExtendedServerBlobAuditingPolicy, + ExtendedSqlPoolBlobAuditingPolicy, + GeoBackupPolicy, + IntegrationRuntime, + IntegrationRuntimeComputeProperties, + IntegrationRuntimeCustomSetupScriptProperties, + IntegrationRuntimeDataFlowProperties, + IntegrationRuntimeDataProxyProperties, + IntegrationRuntimeResource, + IntegrationRuntimeSsisCatalogInfo, + IntegrationRuntimeSsisProperties, + IntegrationRuntimeVNetProperties, + IotHubDataConnection, + IpFirewallRuleInfo, + KekIdentityProperties, + Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, + LibraryInfo, + LibraryRequirements, + LibraryResource, + LinkedIntegrationRuntimeKeyAuthorization, + LinkedIntegrationRuntimeRbacAuthorization, + LinkedIntegrationRuntimeType, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedIdentity, + ManagedIdentitySqlControlSettingsModel, + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, + ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, + MetadataSyncConfig, + OptimizedAutoscale, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionForPrivateLinkHub, + PrivateEndpointConnectionForPrivateLinkHubBasic, + PrivateLinkHub, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionState, + ProxyResource, + PurviewConfiguration, + ReadWriteDatabase, + RecommendedSensitivityLabelUpdate, + RecoverableSqlPool, + ReplicationLink, + Resource, + RestorableDroppedSqlPool, + RestorePoint, + SecretBase, + SecureString, + SelfHostedIntegrationRuntime, + SensitivityLabel, + SensitivityLabelUpdate, + ServerBlobAuditingPolicy, + ServerSecurityAlertPolicy, + ServerVulnerabilityAssessment, + Sku, + SqlPool, + SqlPoolBlobAuditingPolicy, + SqlPoolColumn, + SqlPoolConnectionPolicy, + SqlPoolOperation, + SqlPoolSchema, + SqlPoolSecurityAlertPolicy, + SqlPoolTable, + SqlPoolVulnerabilityAssessment, + SqlPoolVulnerabilityAssessmentRuleBaseline, + SqlPoolVulnerabilityAssessmentRuleBaselineItem, + SqlPoolVulnerabilityAssessmentScansExport, + SubResource, + SystemData, + TableLevelSharingProperties, + TrackedResource, + TransparentDataEncryption, + VirtualNetworkProfile, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup, + Workspace, + WorkspaceAadAdminInfo, + WorkspaceKeyDetails, + WorkspaceRepositoryConfiguration +} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/bigDataPoolsMappers.ts b/sdk/synapse/arm-synapse/src/models/bigDataPoolsMappers.ts index d4138198acad..86aa22cce7cb 100644 --- a/sdk/synapse/arm-synapse/src/models/bigDataPoolsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/bigDataPoolsMappers.ts @@ -8,17 +8,25 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolPatchInfo, BigDataPoolResourceInfo, BigDataPoolResourceInfoListResult, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -31,6 +39,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -43,8 +53,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -60,6 +76,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -70,6 +87,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -98,6 +116,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/dataConnectionsMappers.ts b/sdk/synapse/arm-synapse/src/models/dataConnectionsMappers.ts new file mode 100644 index 000000000000..483a5820447f --- /dev/null +++ b/sdk/synapse/arm-synapse/src/models/dataConnectionsMappers.ts @@ -0,0 +1,137 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AttachedDatabaseConfiguration, + AutoPauseProperties, + AutoScaleProperties, + AzureEntityResource, + AzureSku, + BaseResource, + BigDataPoolResourceInfo, + CheckNameResult, + ClusterPrincipalAssignment, + CmdkeySetup, + ComponentSetup, + CspWorkspaceAdminProperties, + CustomerManagedKeyDetails, + CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, + DataConnectionCheckNameRequest, + DataConnectionListResult, + DataConnectionValidation, + DataConnectionValidationListResult, + DataConnectionValidationResult, + DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, + DataWarehouseUserActivities, + DynamicExecutorAllocation, + EncryptionDetails, + EncryptionProtector, + EntityReference, + EnvironmentVariableSetup, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, + ExtendedServerBlobAuditingPolicy, + ExtendedSqlPoolBlobAuditingPolicy, + GeoBackupPolicy, + IntegrationRuntime, + IntegrationRuntimeComputeProperties, + IntegrationRuntimeCustomSetupScriptProperties, + IntegrationRuntimeDataFlowProperties, + IntegrationRuntimeDataProxyProperties, + IntegrationRuntimeResource, + IntegrationRuntimeSsisCatalogInfo, + IntegrationRuntimeSsisProperties, + IntegrationRuntimeVNetProperties, + IotHubDataConnection, + IpFirewallRuleInfo, + KekIdentityProperties, + Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, + LibraryInfo, + LibraryRequirements, + LibraryResource, + LinkedIntegrationRuntimeKeyAuthorization, + LinkedIntegrationRuntimeRbacAuthorization, + LinkedIntegrationRuntimeType, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedIdentity, + ManagedIdentitySqlControlSettingsModel, + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, + ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, + MetadataSyncConfig, + OptimizedAutoscale, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionForPrivateLinkHub, + PrivateEndpointConnectionForPrivateLinkHubBasic, + PrivateLinkHub, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionState, + ProxyResource, + PurviewConfiguration, + ReadWriteDatabase, + RecommendedSensitivityLabelUpdate, + RecoverableSqlPool, + ReplicationLink, + Resource, + RestorableDroppedSqlPool, + RestorePoint, + SecretBase, + SecureString, + SelfHostedIntegrationRuntime, + SensitivityLabel, + SensitivityLabelUpdate, + ServerBlobAuditingPolicy, + ServerSecurityAlertPolicy, + ServerVulnerabilityAssessment, + Sku, + SqlPool, + SqlPoolBlobAuditingPolicy, + SqlPoolColumn, + SqlPoolConnectionPolicy, + SqlPoolOperation, + SqlPoolSchema, + SqlPoolSecurityAlertPolicy, + SqlPoolTable, + SqlPoolVulnerabilityAssessment, + SqlPoolVulnerabilityAssessmentRuleBaseline, + SqlPoolVulnerabilityAssessmentRuleBaselineItem, + SqlPoolVulnerabilityAssessmentScansExport, + SubResource, + SystemData, + TableLevelSharingProperties, + TrackedResource, + TransparentDataEncryption, + VirtualNetworkProfile, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup, + Workspace, + WorkspaceAadAdminInfo, + WorkspaceKeyDetails, + WorkspaceRepositoryConfiguration +} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/dataMaskingPoliciesMappers.ts b/sdk/synapse/arm-synapse/src/models/dataMaskingPoliciesMappers.ts index fa7be042dcd4..b4e9ed3171c2 100644 --- a/sdk/synapse/arm-synapse/src/models/dataMaskingPoliciesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/dataMaskingPoliciesMappers.ts @@ -8,15 +8,23 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -29,6 +37,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -41,8 +51,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -58,6 +74,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -68,6 +85,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -96,6 +114,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/dataMaskingRulesMappers.ts b/sdk/synapse/arm-synapse/src/models/dataMaskingRulesMappers.ts index b5e9b734020a..c9ab1639ac67 100644 --- a/sdk/synapse/arm-synapse/src/models/dataMaskingRulesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/dataMaskingRulesMappers.ts @@ -8,15 +8,23 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -30,6 +38,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -42,8 +52,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -59,6 +75,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -69,6 +86,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -97,6 +115,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/databasePrincipalAssignmentsMappers.ts b/sdk/synapse/arm-synapse/src/models/databasePrincipalAssignmentsMappers.ts new file mode 100644 index 000000000000..dd2aaaa7252d --- /dev/null +++ b/sdk/synapse/arm-synapse/src/models/databasePrincipalAssignmentsMappers.ts @@ -0,0 +1,134 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AttachedDatabaseConfiguration, + AutoPauseProperties, + AutoScaleProperties, + AzureEntityResource, + AzureSku, + BaseResource, + BigDataPoolResourceInfo, + CheckNameResult, + ClusterPrincipalAssignment, + CmdkeySetup, + ComponentSetup, + CspWorkspaceAdminProperties, + CustomerManagedKeyDetails, + CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabasePrincipalAssignmentCheckNameRequest, + DatabasePrincipalAssignmentListResult, + DatabaseStatistics, + DataConnection, + DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, + DataWarehouseUserActivities, + DynamicExecutorAllocation, + EncryptionDetails, + EncryptionProtector, + EntityReference, + EnvironmentVariableSetup, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, + ExtendedServerBlobAuditingPolicy, + ExtendedSqlPoolBlobAuditingPolicy, + GeoBackupPolicy, + IntegrationRuntime, + IntegrationRuntimeComputeProperties, + IntegrationRuntimeCustomSetupScriptProperties, + IntegrationRuntimeDataFlowProperties, + IntegrationRuntimeDataProxyProperties, + IntegrationRuntimeResource, + IntegrationRuntimeSsisCatalogInfo, + IntegrationRuntimeSsisProperties, + IntegrationRuntimeVNetProperties, + IotHubDataConnection, + IpFirewallRuleInfo, + KekIdentityProperties, + Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, + LibraryInfo, + LibraryRequirements, + LibraryResource, + LinkedIntegrationRuntimeKeyAuthorization, + LinkedIntegrationRuntimeRbacAuthorization, + LinkedIntegrationRuntimeType, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedIdentity, + ManagedIdentitySqlControlSettingsModel, + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, + ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, + MetadataSyncConfig, + OptimizedAutoscale, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionForPrivateLinkHub, + PrivateEndpointConnectionForPrivateLinkHubBasic, + PrivateLinkHub, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionState, + ProxyResource, + PurviewConfiguration, + ReadWriteDatabase, + RecommendedSensitivityLabelUpdate, + RecoverableSqlPool, + ReplicationLink, + Resource, + RestorableDroppedSqlPool, + RestorePoint, + SecretBase, + SecureString, + SelfHostedIntegrationRuntime, + SensitivityLabel, + SensitivityLabelUpdate, + ServerBlobAuditingPolicy, + ServerSecurityAlertPolicy, + ServerVulnerabilityAssessment, + Sku, + SqlPool, + SqlPoolBlobAuditingPolicy, + SqlPoolColumn, + SqlPoolConnectionPolicy, + SqlPoolOperation, + SqlPoolSchema, + SqlPoolSecurityAlertPolicy, + SqlPoolTable, + SqlPoolVulnerabilityAssessment, + SqlPoolVulnerabilityAssessmentRuleBaseline, + SqlPoolVulnerabilityAssessmentRuleBaselineItem, + SqlPoolVulnerabilityAssessmentScansExport, + SubResource, + SystemData, + TableLevelSharingProperties, + TrackedResource, + TransparentDataEncryption, + VirtualNetworkProfile, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup, + Workspace, + WorkspaceAadAdminInfo, + WorkspaceKeyDetails, + WorkspaceRepositoryConfiguration +} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/databasesMappers.ts b/sdk/synapse/arm-synapse/src/models/databasesMappers.ts new file mode 100644 index 000000000000..1a30f298c176 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/models/databasesMappers.ts @@ -0,0 +1,132 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AttachedDatabaseConfiguration, + AutoPauseProperties, + AutoScaleProperties, + AzureEntityResource, + AzureSku, + BaseResource, + BigDataPoolResourceInfo, + ClusterPrincipalAssignment, + CmdkeySetup, + ComponentSetup, + CspWorkspaceAdminProperties, + CustomerManagedKeyDetails, + CustomSetupBase, + Database, + DatabaseListResult, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, + DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, + DataWarehouseUserActivities, + DynamicExecutorAllocation, + EncryptionDetails, + EncryptionProtector, + EntityReference, + EnvironmentVariableSetup, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, + ExtendedServerBlobAuditingPolicy, + ExtendedSqlPoolBlobAuditingPolicy, + GeoBackupPolicy, + IntegrationRuntime, + IntegrationRuntimeComputeProperties, + IntegrationRuntimeCustomSetupScriptProperties, + IntegrationRuntimeDataFlowProperties, + IntegrationRuntimeDataProxyProperties, + IntegrationRuntimeResource, + IntegrationRuntimeSsisCatalogInfo, + IntegrationRuntimeSsisProperties, + IntegrationRuntimeVNetProperties, + IotHubDataConnection, + IpFirewallRuleInfo, + KekIdentityProperties, + Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, + LibraryInfo, + LibraryRequirements, + LibraryResource, + LinkedIntegrationRuntimeKeyAuthorization, + LinkedIntegrationRuntimeRbacAuthorization, + LinkedIntegrationRuntimeType, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedIdentity, + ManagedIdentitySqlControlSettingsModel, + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, + ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, + MetadataSyncConfig, + OptimizedAutoscale, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionForPrivateLinkHub, + PrivateEndpointConnectionForPrivateLinkHubBasic, + PrivateLinkHub, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionState, + ProxyResource, + PurviewConfiguration, + ReadWriteDatabase, + RecommendedSensitivityLabelUpdate, + RecoverableSqlPool, + ReplicationLink, + Resource, + RestorableDroppedSqlPool, + RestorePoint, + SecretBase, + SecureString, + SelfHostedIntegrationRuntime, + SensitivityLabel, + SensitivityLabelUpdate, + ServerBlobAuditingPolicy, + ServerSecurityAlertPolicy, + ServerVulnerabilityAssessment, + Sku, + SqlPool, + SqlPoolBlobAuditingPolicy, + SqlPoolColumn, + SqlPoolConnectionPolicy, + SqlPoolOperation, + SqlPoolSchema, + SqlPoolSecurityAlertPolicy, + SqlPoolTable, + SqlPoolVulnerabilityAssessment, + SqlPoolVulnerabilityAssessmentRuleBaseline, + SqlPoolVulnerabilityAssessmentRuleBaselineItem, + SqlPoolVulnerabilityAssessmentScansExport, + SubResource, + SystemData, + TableLevelSharingProperties, + TrackedResource, + TransparentDataEncryption, + VirtualNetworkProfile, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup, + Workspace, + WorkspaceAadAdminInfo, + WorkspaceKeyDetails, + WorkspaceRepositoryConfiguration +} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/extendedSqlPoolBlobAuditingPoliciesMappers.ts b/sdk/synapse/arm-synapse/src/models/extendedSqlPoolBlobAuditingPoliciesMappers.ts index 09b013d385f5..c9c6e5665356 100644 --- a/sdk/synapse/arm-synapse/src/models/extendedSqlPoolBlobAuditingPoliciesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/extendedSqlPoolBlobAuditingPoliciesMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -27,6 +35,8 @@ export { EncryptionProtector, EntityReference, EnvironmentVariableSetup, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicyListResult, @@ -40,8 +50,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -57,6 +73,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -67,6 +84,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -95,6 +113,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/index.ts b/sdk/synapse/arm-synapse/src/models/index.ts index dd515f83cf7b..81f95ae7ecf8 100644 --- a/sdk/synapse/arm-synapse/src/models/index.ts +++ b/sdk/synapse/arm-synapse/src/models/index.ts @@ -225,7 +225,7 @@ export interface BigDataPoolResourceInfo extends TrackedResource { nodeSize?: NodeSize; /** * The kind of nodes that the Big Data pool provides. Possible values include: 'None', - * 'MemoryOptimized' + * 'MemoryOptimized', 'HardwareAcceleratedFPGA', 'HardwareAcceleratedGPU' */ nodeSizeFamily?: NodeSizeFamily; /** @@ -387,7 +387,7 @@ export interface IpFirewallRuleProperties { /** * IP firewall rule */ -export interface IpFirewallRuleInfo extends BaseResource { +export interface IpFirewallRuleInfo extends ProxyResource { /** * The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to * startIpAddress @@ -1768,1548 +1768,1888 @@ export interface Key extends ProxyResource { } /** - * Library response details + * An interface representing OperationDisplay. + * @summary The object that describes the operation. */ -export interface LibraryResource extends SubResource { - /** - * Name of the library. - */ - libraryResourceName?: string; - /** - * Storage blob path of library. - */ - path?: string; - /** - * Storage blob container name. - */ - containerName?: string; +export interface OperationDisplay { /** - * The last update time of the library. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Friendly name of the resource provider. */ - readonly uploadedTimestamp?: Date; + provider?: string; /** - * Type of the library. + * The operation type. For example: read, write, delete. */ - libraryResourceType?: string; + operation?: string; /** - * Provisioning status of the library/package. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource type on which the operation is performed. */ - readonly provisioningStatus?: string; + resource?: string; /** - * Creator Id of the library/package. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The friendly name of the operation. */ - readonly creatorId?: string; + description?: string; } /** - * Description of an available operation + * An interface representing Operation. + * @summary A REST API operation */ -export interface AvailableRpOperationDisplayInfo { +export interface Operation { /** - * Operation description + * The operation name. This is of the format {provider}/{resource}/{operation}. */ - description?: string; + name?: string; /** - * Resource type + * The object that describes the operation. */ - resource?: string; + display?: OperationDisplay; /** - * Resource provider name + * The intended executor of the operation. */ - provider?: string; + origin?: string; /** - * Operation name + * Properties of the operation. */ - operation?: string; + properties?: any; } /** - * What is this? + * Azure SKU definition. */ -export interface OperationMetaMetricDimensionSpecification { +export interface AzureSku { /** - * Dimension display name + * SKU name. Possible values include: 'Compute optimized', 'Storage optimized' */ - displayName?: string; + name: SkuName; /** - * Dimension unique name + * The number of instances of the cluster. */ - name?: string; + capacity?: number; /** - * Whether this metric should be exported for Shoebox + * SKU size. Possible values include: 'Extra small', 'Small', 'Medium', 'Large' */ - toBeExportedForShoebox?: boolean; + size: SkuSize; } /** - * What is this? + * A class that contains the optimized auto scale definition. */ -export interface OperationMetaMetricSpecification { +export interface OptimizedAutoscale { /** - * The source MDM namespace + * The version of the template defined, for instance 1. */ - sourceMdmNamespace?: string; + version: number; /** - * Metric display name + * A boolean value that indicate if the optimized autoscale feature is enabled or not. */ - displayName?: string; + isEnabled: boolean; /** - * Metric unique name + * Minimum allowed instances count. */ - name?: string; + minimum: number; /** - * Metric aggregation type + * Maximum allowed instances count. */ - aggregationType?: string; + maximum: number; +} + +/** + * The language extension object. + */ +export interface LanguageExtension { /** - * Metric description + * The language extension name. Possible values include: 'PYTHON', 'R' */ - displayDescription?: string; + languageExtensionName?: LanguageExtensionName; +} + +/** + * Metadata pertaining to creation and last modification of the resource. + */ +export interface SystemData { /** - * The source MDM account + * The identity that created the resource. */ - sourceMdmAccount?: string; + createdBy?: string; /** - * Whether the regional MDM account is enabled + * The type of identity that created the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' */ - enableRegionalMdmAccount?: boolean; + createdByType?: CreatedByType; /** - * Metric units + * The timestamp of resource creation (UTC). */ - unit?: string; + createdAt?: Date; /** - * Metric dimensions + * The identity that last modified the resource. */ - dimensions?: OperationMetaMetricDimensionSpecification[]; + lastModifiedBy?: string; /** - * Whether the metric supports instance-level aggregation + * The type of identity that last modified the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' */ - supportsInstanceLevelAggregation?: boolean; + lastModifiedByType?: CreatedByType; /** - * Metric filter + * The timestamp of resource last modification (UTC) */ - metricFilterPattern?: string; + lastModifiedAt?: Date; } /** - * What is this? + * Class representing a Kusto kusto pool. */ -export interface OperationMetaLogSpecification { +export interface KustoPool extends TrackedResource { /** - * Log display name + * The SKU of the kusto pool. */ - displayName?: string; + sku: AzureSku; /** - * Time range the log covers + * The state of the resource. Possible values include: 'Creating', 'Unavailable', 'Running', + * 'Deleting', 'Deleted', 'Stopping', 'Stopped', 'Starting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - blobDuration?: string; + readonly state?: State; /** - * Log unique name + * The provisioned state of the resource. Possible values include: 'Running', 'Creating', + * 'Deleting', 'Succeeded', 'Failed', 'Moving', 'Canceled' */ - name?: string; -} - -/** - * What is this? - */ -export interface OperationMetaServiceSpecification { + provisioningState?: ResourceProvisioningState; /** - * Service metric specifications + * The Kusto Pool URI. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - metricSpecifications?: OperationMetaMetricSpecification[]; + readonly uri?: string; /** - * Service log specifications + * The Kusto Pool data ingestion URI. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - logSpecifications?: OperationMetaLogSpecification[]; -} - -/** - * An operation that is available in this resource provider - */ -export interface AvailableRpOperation { + readonly dataIngestionUri?: string; /** - * Display properties of the operation + * The reason for the Kusto Pool's current state. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - display?: AvailableRpOperationDisplayInfo; + readonly stateReason?: string; /** - * Whether this operation is a data action + * Optimized auto scale definition. */ - isDataAction?: string; + optimizedAutoscale?: OptimizedAutoscale; /** - * Operation name + * A boolean value that indicates if the streaming ingest is enabled. Default value: false. */ - name?: string; + enableStreamingIngest?: boolean; /** - * Operation service specification + * A boolean value that indicates if the purge operations are enabled. Default value: false. */ - serviceSpecification?: OperationMetaServiceSpecification; + enablePurge?: boolean; /** - * Operation origin + * List of the Kusto Pool's language extensions. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - origin?: string; + readonly languageExtensions?: LanguageExtensionsList; + /** + * The workspace unique identifier. + */ + workspaceUID?: string; + /** + * A unique read-only string that changes whenever the resource is updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** - * An operation + * The list Kusto pools operation response. */ -export interface OperationResource { +export interface KustoPoolListResult { /** - * Operation ID + * The list of Kusto pools. */ - id?: string; + value?: KustoPool[]; +} + +/** + * The locations and zones info for SKU. + */ +export interface SkuLocationInfoItem { /** - * Operation name + * The available location of the SKU. */ - name?: string; + location: string; /** - * Operation status. Possible values include: 'InProgress', 'Succeeded', 'Failed', 'Canceled' + * The available zone of the SKU. */ - status?: OperationStatus; + zones?: string[]; +} + +/** + * The Kusto SKU description of given resource type + */ +export interface SkuDescription { /** - * Operation properties + * The resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - properties?: any; + readonly resourceType?: string; /** - * Errors from the operation + * The name of the SKU + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - error?: ErrorDetail; + readonly name?: string; /** - * Operation start time + * The size of the SKU + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - startTime?: Date; + readonly size?: string; /** - * Operation start time + * The set of locations that the SKU is available + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - endTime?: Date; + readonly locations?: string[]; /** - * Completion percentage of the operation + * Locations and zones + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - percentComplete?: number; + readonly locationInfo?: SkuLocationInfoItem[]; + /** + * The restrictions because of which SKU cannot be used + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly restrictions?: any[]; } /** - * Connection state details of the private endpoint + * Azure capacity definition. */ -export interface PrivateLinkServiceConnectionState { +export interface AzureCapacity { /** - * The private link service connection status. + * Scale type. Possible values include: 'automatic', 'manual', 'none' */ - status?: string; + scaleType: AzureScaleType; /** - * The private link service connection description. + * Minimum allowed capacity. */ - description?: string; + minimum: number; /** - * The actions required for private link service connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Maximum allowed capacity. */ - readonly actionsRequired?: string; -} - -/** - * Private endpoint details - */ -export interface PrivateEndpoint extends BaseResource { + maximum: number; /** - * Resource id of the private endpoint. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The default capacity that would be used. */ - readonly id?: string; + default: number; } /** - * A private endpoint connection + * Azure resource SKU definition. */ -export interface PrivateEndpointConnection extends ProxyResource { +export interface AzureResourceSku { /** - * The private endpoint which the connection belongs to. + * Resource Namespace and Type. */ - privateEndpoint?: PrivateEndpoint; + resourceType?: string; /** - * Connection state of the private endpoint connection. + * The SKU details. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + sku?: AzureSku; /** - * Provisioning state of the private endpoint connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The number of instances of the cluster. */ - readonly provisioningState?: string; + capacity?: AzureCapacity; } /** - * Properties of a private link resource. + * Class representing an update to a Kusto kusto pool. */ -export interface PrivateLinkResourceProperties { +export interface KustoPoolUpdate extends Resource { /** - * The private link resource group id. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Resource tags. */ - readonly groupId?: string; + tags?: { [propertyName: string]: string }; /** - * The private link resource required member names. + * The SKU of the kusto pool. + */ + sku?: AzureSku; + /** + * The state of the resource. Possible values include: 'Creating', 'Unavailable', 'Running', + * 'Deleting', 'Deleted', 'Stopping', 'Stopped', 'Starting', 'Updating' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly requiredMembers?: string[]; + readonly state?: State; /** - * Required DNS zone names of the the private link resource. + * The provisioned state of the resource. Possible values include: 'Running', 'Creating', + * 'Deleting', 'Succeeded', 'Failed', 'Moving', 'Canceled' + */ + provisioningState?: ResourceProvisioningState; + /** + * The Kusto Pool URI. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly requiredZoneNames?: string[]; -} - -/** - * A private link resource - */ -export interface PrivateLinkResource extends ProxyResource { + readonly uri?: string; /** - * The private link resource properties. + * The Kusto Pool data ingestion URI. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly properties?: PrivateLinkResourceProperties; -} - -/** - * Private Endpoint Connection For Private Link Hub - Basic - */ -export interface PrivateEndpointConnectionForPrivateLinkHubBasic { + readonly dataIngestionUri?: string; /** - * identifier + * The reason for the Kusto Pool's current state. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly id?: string; + readonly stateReason?: string; /** - * The private endpoint which the connection belongs to. + * Optimized auto scale definition. */ - privateEndpoint?: PrivateEndpoint; + optimizedAutoscale?: OptimizedAutoscale; /** - * Connection state of the private endpoint connection. + * A boolean value that indicates if the streaming ingest is enabled. Default value: false. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + enableStreamingIngest?: boolean; /** - * Provisioning state of the private endpoint connection. + * A boolean value that indicates if the purge operations are enabled. Default value: false. + */ + enablePurge?: boolean; + /** + * List of the Kusto Pool's language extensions. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningState?: string; + readonly languageExtensions?: LanguageExtensionsList; + /** + * The workspace unique identifier. + */ + workspaceUID?: string; } /** - * A privateLinkHub + * Tables that will be included and excluded in the follower database */ -export interface PrivateLinkHub extends TrackedResource { +export interface TableLevelSharingProperties { /** - * PrivateLinkHub provisioning state + * List of tables to include in the follower database */ - provisioningState?: string; + tablesToInclude?: string[]; /** - * List of private endpoint connections - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * List of tables to exclude from the follower database */ - readonly privateEndpointConnections?: PrivateEndpointConnectionForPrivateLinkHubBasic[]; + tablesToExclude?: string[]; + /** + * List of external tables to include in the follower database + */ + externalTablesToInclude?: string[]; + /** + * List of external tables exclude from the follower database + */ + externalTablesToExclude?: string[]; + /** + * List of materialized views to include in the follower database + */ + materializedViewsToInclude?: string[]; + /** + * List of materialized views exclude from the follower database + */ + materializedViewsToExclude?: string[]; } /** - * PrivateLinkHub patch details + * Class representing an attached database configuration. */ -export interface PrivateLinkHubPatchInfo { +export interface AttachedDatabaseConfiguration extends ProxyResource { /** - * Resource tags + * Resource location. */ - tags?: { [propertyName: string]: string }; -} - -/** - * An interface representing PrivateEndpointConnectionForPrivateLinkHub. - */ -export interface PrivateEndpointConnectionForPrivateLinkHub extends PrivateEndpointConnectionForPrivateLinkHubBasic { - name?: string; - type?: string; -} - -/** - * SQL pool SKU - * @summary Sku - */ -export interface Sku { - /** - * The service tier - */ - tier?: string; + location?: string; /** - * The SKU name + * The provisioned state of the resource. Possible values include: 'Running', 'Creating', + * 'Deleting', 'Succeeded', 'Failed', 'Moving', 'Canceled' */ - name?: string; + provisioningState?: ResourceProvisioningState; /** - * If the SKU supports scale out/in then the capacity integer should be included. If scale out/in - * is not possible for the resource this may be omitted. + * The name of the database which you would like to attach, use * if you want to follow all + * current and future databases. */ - capacity?: number; -} - -/** - * A SQL Analytics pool - * @summary SQL pool - */ -export interface SqlPool extends TrackedResource { + databaseName: string; /** - * SQL pool SKU + * The resource id of the kusto pool where the databases you would like to attach reside. */ - sku?: Sku; + clusterResourceId: string; /** - * Maximum size in bytes + * The list of databases from the clusterResourceId which are currently attached to the kusto + * pool. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - maxSizeBytes?: number; + readonly attachedDatabaseNames?: string[]; /** - * Collation mode + * The default principals modification kind. Possible values include: 'Union', 'Replace', 'None' */ - collation?: string; + defaultPrincipalsModificationKind: DefaultPrincipalsModificationKind; /** - * Source database to create from + * Table level sharing specifications */ - sourceDatabaseId?: string; + tableLevelSharingProperties?: TableLevelSharingProperties; /** - * Backup database to restore from + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoverableDatabaseId?: string; + readonly systemData?: SystemData; +} + +/** + * Contains the possible cases for Database. + */ +export type DatabaseUnion = Database | ReadWriteDatabase; + +/** + * Class representing a Kusto database. + */ +export interface Database { /** - * Resource state + * Polymorphic Discriminator */ - provisioningState?: string; + kind: "Database"; /** - * Resource status + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - status?: string; + readonly id?: string; /** - * Snapshot time to restore + * The name of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - restorePointInTime?: Date; + readonly name?: string; /** - * What is this? + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - createMode?: string; + readonly type?: string; /** - * Date the SQL pool was created + * Resource location. */ - creationDate?: Date; + location?: string; /** - * The storage account type used to store backups for this sql pool. Possible values include: - * 'GRS', 'LRS', 'ZRS' + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - storageAccountType?: StorageAccountType; + readonly systemData?: SystemData; } /** - * A SQL Analytics pool patch info - * @summary SQL pool patch info + * A class that contains database statistics information. */ -export interface SqlPoolPatchInfo { - /** - * Resource tags. - */ - tags?: { [propertyName: string]: string }; +export interface DatabaseStatistics { /** - * The geo-location where the resource lives + * The database size - the total size of compressed data and index in bytes. */ - location?: string; + size?: number; +} + +/** + * Class representing a read write database. + */ +export interface ReadWriteDatabase { /** - * SQL pool SKU + * Polymorphic Discriminator */ - sku?: Sku; + kind: "ReadWrite"; /** - * Maximum size in bytes + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - maxSizeBytes?: number; + readonly id?: string; /** - * Collation mode + * The name of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - collation?: string; + readonly name?: string; /** - * Source database to create from + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sourceDatabaseId?: string; + readonly type?: string; /** - * Backup database to restore from + * Resource location. */ - recoverableDatabaseId?: string; + location?: string; /** - * Resource state + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - provisioningState?: string; + readonly systemData?: SystemData; /** - * Resource status + * The provisioned state of the resource. Possible values include: 'Running', 'Creating', + * 'Deleting', 'Succeeded', 'Failed', 'Moving', 'Canceled' */ - status?: string; + provisioningState?: ResourceProvisioningState; /** - * Snapshot time to restore + * The time the data should be kept before it stops being accessible to queries in TimeSpan. */ - restorePointInTime?: Date; + softDeletePeriod?: string; /** - * What is this? + * The time the data should be kept in cache for fast queries in TimeSpan. */ - createMode?: string; + hotCachePeriod?: string; /** - * Date the SQL pool was created + * The statistics of the database. */ - creationDate?: Date; + statistics?: DatabaseStatistics; /** - * The storage account type used to store backups for this sql pool. Possible values include: - * 'GRS', 'LRS', 'ZRS' + * Indicates whether the database is followed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - storageAccountType?: StorageAccountType; + readonly isFollowed?: boolean; } /** - * Configuration for metadata sync - * @summary Metadata sync configuration + * The result returned from a data connection validation request. */ -export interface MetadataSyncConfig extends BaseResource { +export interface DataConnectionValidationResult { /** - * Indicates whether the metadata sync is enabled or disabled + * A message which indicates a problem in data connection validation. */ - enabled?: boolean; + errorMessage?: string; +} + +/** + * The list Kusto data connection validation result. + */ +export interface DataConnectionValidationListResult { /** - * The Sync Interval in minutes. + * The list of Kusto data connection validation errors. */ - syncIntervalInMinutes?: number; + value?: DataConnectionValidationResult[]; } /** - * A database geo backup policy. + * Contains the possible cases for DataConnection. */ -export interface GeoBackupPolicy extends ProxyResource { +export type DataConnectionUnion = DataConnection | EventHubDataConnection | IotHubDataConnection | EventGridDataConnection; + +/** + * Class representing a data connection. + */ +export interface DataConnection { /** - * The state of the geo backup policy. Possible values include: 'Disabled', 'Enabled' + * Polymorphic Discriminator */ - state: GeoBackupPolicyState; + kind: "DataConnection"; /** - * The storage type of the geo backup policy. + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly storageType?: string; + readonly id?: string; /** - * Kind of geo backup policy. This is metadata used for the Azure portal experience. + * The name of the resource * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly kind?: string; + readonly name?: string; /** - * Backup policy location. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly location?: string; -} - -/** - * A database query. - */ -export interface QueryMetric { + readonly type?: string; /** - * The name of the metric - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Resource location. */ - readonly name?: string; + location?: string; /** - * The name of the metric for display in user interface + * Azure Resource Manager metadata containing createdBy and modifiedBy information. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly displayName?: string; + readonly systemData?: SystemData; +} + +/** + * Class representing an data connection validation. + */ +export interface DataConnectionValidation { /** - * The unit of measurement. Possible values include: 'percentage', 'KB', 'microseconds' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The name of the data connection. */ - readonly unit?: QueryMetricUnit; + dataConnectionName?: string; /** - * The measured value - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The data connection properties to validate. */ - readonly value?: number; + properties?: DataConnectionUnion; } /** - * A database query. + * Class representing an event hub data connection. */ -export interface QueryInterval { +export interface EventHubDataConnection { /** - * The start time of the measurement interval (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Polymorphic Discriminator */ - readonly intervalStartTime?: Date; + kind: "EventHub"; /** - * The number of times the query was executed during this interval. + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly executionCount?: number; + readonly id?: string; /** - * The list of query metrics during this interval. + * The name of the resource * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly metrics?: QueryMetric[]; -} - -/** - * A database query. - */ -export interface QueryStatistic { + readonly name?: string; /** - * The id of the query + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly queryId?: string; + readonly type?: string; /** - * The list of query intervals. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Resource location. */ - readonly intervals?: QueryInterval[]; -} - -/** - * A database query. - */ -export interface TopQueries { + location?: string; /** - * The function that is used to aggregate each query's metrics. Possible values include: 'min', - * 'max', 'avg', 'sum' + * Azure Resource Manager metadata containing createdBy and modifiedBy information. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly aggregationFunction?: QueryAggregationFunction; + readonly systemData?: SystemData; /** - * The execution type that is used to filter the query instances that are returned. Possible - * values include: 'any', 'regular', 'irregular', 'aborted', 'exception' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource ID of the event hub to be used to create a data connection. */ - readonly executionType?: QueryExecutionType; + eventHubResourceId: string; /** - * The duration of the interval (ISO8601 duration format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The event hub consumer group. */ - readonly intervalType?: string; + consumerGroup: string; /** - * The number of requested queries. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The table where the data should be ingested. Optionally the table information can be added to + * each message. */ - readonly numberOfTopQueries?: number; + tableName?: string; /** - * The start time for queries that are returned (ISO8601 format) - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The mapping rule to be used to ingest the data. Optionally the mapping information can be + * added to each message. */ - readonly observationStartTime?: Date; + mappingRuleName?: string; /** - * The end time for queries that are returned (ISO8601 format) - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The data format of the message. Optionally the data format can be added to each message. + * Possible values include: 'MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'TXT', + * 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', 'APACHEAVRO', 'W3CLOGFILE' */ - readonly observationEndTime?: Date; + dataFormat?: EventHubDataFormat; /** - * The type of metric to use for ordering the top metrics. Possible values include: 'cpu', 'io', - * 'logio', 'duration', 'executionCount' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * System properties of the event hub */ - readonly observedMetric?: QueryObservedMetricType; + eventSystemProperties?: string[]; /** - * The list of queries. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The event hub messages compression type. Possible values include: 'None', 'GZip' */ - readonly queries?: QueryStatistic[]; + compression?: Compression; + /** + * The provisioned state of the resource. Possible values include: 'Running', 'Creating', + * 'Deleting', 'Succeeded', 'Failed', 'Moving', 'Canceled' + */ + provisioningState?: ResourceProvisioningState; } /** - * Represents the response to a get top queries request. + * Class representing an iot hub data connection. */ -export interface TopQueriesListResult { +export interface IotHubDataConnection { /** - * The list of top queries. + * Polymorphic Discriminator */ - value: TopQueries[]; -} - -/** - * User activities of a data warehouse - */ -export interface DataWarehouseUserActivities extends ProxyResource { + kind: "IotHub"; /** - * Count of running and suspended queries. + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly activeQueriesCount?: number; -} - -/** - * Database restore points. - */ -export interface RestorePoint extends ProxyResource { + readonly id?: string; /** - * Resource location. + * The name of the resource * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly location?: string; + readonly name?: string; /** - * The type of restore point. Possible values include: 'CONTINUOUS', 'DISCRETE' + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly restorePointType?: RestorePointType; + readonly type?: string; /** - * The earliest time to which this database can be restored - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Resource location. */ - readonly earliestRestoreDate?: Date; + location?: string; /** - * The time the backup was taken + * Azure Resource Manager metadata containing createdBy and modifiedBy information. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly restorePointCreationDate?: Date; + readonly systemData?: SystemData; /** - * The label of restore point for backup request by user - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource ID of the Iot hub to be used to create a data connection. */ - readonly restorePointLabel?: string; + iotHubResourceId: string; + /** + * The iot hub consumer group. + */ + consumerGroup: string; + /** + * The table where the data should be ingested. Optionally the table information can be added to + * each message. + */ + tableName?: string; + /** + * The mapping rule to be used to ingest the data. Optionally the mapping information can be + * added to each message. + */ + mappingRuleName?: string; + /** + * The data format of the message. Optionally the data format can be added to each message. + * Possible values include: 'MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'TXT', + * 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', 'APACHEAVRO', 'W3CLOGFILE' + */ + dataFormat?: IotHubDataFormat; + /** + * System properties of the iot hub + */ + eventSystemProperties?: string[]; + /** + * The name of the share access policy + */ + sharedAccessPolicyName: string; + /** + * The provisioned state of the resource. Possible values include: 'Running', 'Creating', + * 'Deleting', 'Succeeded', 'Failed', 'Moving', 'Canceled' + */ + provisioningState?: ResourceProvisioningState; } /** - * Represents a Sql pool replication link. + * Class representing an Event Grid data connection. */ -export interface ReplicationLink extends ProxyResource { +export interface EventGridDataConnection { /** - * Location of the workspace that contains this firewall rule. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Polymorphic Discriminator */ - readonly location?: string; + kind: "EventGrid"; /** - * Legacy value indicating whether termination is allowed. Currently always returns true. + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly isTerminationAllowed?: boolean; + readonly id?: string; /** - * Replication mode of this replication link. + * The name of the resource * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly replicationMode?: string; + readonly name?: string; /** - * The name of the workspace hosting the partner Sql pool. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly partnerServer?: string; + readonly type?: string; /** - * The name of the partner Sql pool. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Resource location. */ - readonly partnerDatabase?: string; + location?: string; /** - * The Azure Region of the partner Sql pool. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly partnerLocation?: string; + readonly systemData?: SystemData; /** - * The role of the Sql pool in the replication link. Possible values include: 'Primary', - * 'Secondary', 'NonReadableSecondary', 'Source', 'Copy' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource ID of the storage account where the data resides. */ - readonly role?: ReplicationRole; + storageAccountResourceId: string; /** - * The role of the partner Sql pool in the replication link. Possible values include: 'Primary', - * 'Secondary', 'NonReadableSecondary', 'Source', 'Copy' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource ID where the event grid is configured to send events. */ - readonly partnerRole?: ReplicationRole; + eventHubResourceId: string; /** - * The start time for the replication link. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The event hub consumer group. */ - readonly startTime?: Date; + consumerGroup: string; /** - * The percentage of seeding complete for the replication link. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The table where the data should be ingested. Optionally the table information can be added to + * each message. */ - readonly percentComplete?: number; + tableName?: string; /** - * The replication state for the replication link. Possible values include: 'PENDING', 'SEEDING', - * 'CATCH_UP', 'SUSPENDED' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The mapping rule to be used to ingest the data. Optionally the mapping information can be + * added to each message. */ - readonly replicationState?: ReplicationState; + mappingRuleName?: string; + /** + * The data format of the message. Optionally the data format can be added to each message. + * Possible values include: 'MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'TXT', + * 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', 'APACHEAVRO', 'W3CLOGFILE' + */ + dataFormat?: EventGridDataFormat; + /** + * A Boolean value that, if set to true, indicates that ingestion should ignore the first record + * of every file + */ + ignoreFirstRecord?: boolean; + /** + * The name of blob storage event type to process. Possible values include: + * 'Microsoft.Storage.BlobCreated', 'Microsoft.Storage.BlobRenamed' + */ + blobStorageEventType?: BlobStorageEventType; + /** + * The provisioned state of the resource. Possible values include: 'Running', 'Creating', + * 'Deleting', 'Succeeded', 'Failed', 'Moving', 'Canceled' + */ + provisioningState?: ResourceProvisioningState; } /** - * Maintenance window time range. + * A class representing follower database request. */ -export interface MaintenanceWindowTimeRange { +export interface FollowerDatabaseDefinition { /** - * Day of maintenance window. Possible values include: 'Sunday', 'Monday', 'Tuesday', - * 'Wednesday', 'Thursday', 'Friday', 'Saturday' + * Resource id of the cluster that follows a database owned by this cluster. */ - dayOfWeek?: DayOfWeek; + clusterResourceId: string; /** - * Start time minutes offset from 12am. + * Resource name of the attached database configuration in the follower cluster. */ - startTime?: string; + attachedDatabaseConfigurationName: string; /** - * Duration of maintenance window in minutes. + * The database name owned by this cluster that was followed. * in case following all databases. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - duration?: string; + readonly databaseName?: string; } /** - * Maintenance window options. + * Class representing a cluster principal assignment. */ -export interface MaintenanceWindowOptions extends ProxyResource { +export interface ClusterPrincipalAssignment extends ProxyResource { /** - * Whether maintenance windows are enabled for the database. + * The principal ID assigned to the cluster principal. It can be a user email, application ID, or + * security group name. */ - isEnabled?: boolean; + principalId: string; /** - * Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, 24*60}. + * Cluster principal role. Possible values include: 'AllDatabasesAdmin', 'AllDatabasesViewer' */ - maintenanceWindowCycles?: MaintenanceWindowTimeRange[]; + role: ClusterPrincipalRole; /** - * Minimum duration of maintenance window. + * The tenant id of the principal */ - minDurationInMinutes?: number; + tenantId?: string; /** - * Default duration for maintenance window. + * Principal type. Possible values include: 'App', 'Group', 'User' */ - defaultDurationInMinutes?: number; + principalType: PrincipalType; /** - * Minimum number of maintenance windows cycles to be set on the database. + * The tenant name of the principal + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - minCycles?: number; + readonly tenantName?: string; /** - * Time granularity in minutes for maintenance windows. + * The principal name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - timeGranularityInMinutes?: number; + readonly principalName?: string; /** - * Whether we allow multiple maintenance windows per cycle. + * The provisioned state of the resource. Possible values include: 'Running', 'Creating', + * 'Deleting', 'Succeeded', 'Failed', 'Moving', 'Canceled' */ - allowMultipleMaintenanceWindowsPerCycle?: boolean; + provisioningState?: ResourceProvisioningState; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** - * Maintenance windows. + * A principal assignment check name availability request. */ -export interface MaintenanceWindows extends ProxyResource { - timeRanges?: MaintenanceWindowTimeRange[]; +export interface ClusterPrincipalAssignmentCheckNameRequest { + /** + * Principal Assignment resource name. + */ + name: string; } /** - * Represents a Sql pool transparent data encryption configuration. + * Class representing a database principal assignment. */ -export interface TransparentDataEncryption extends ProxyResource { +export interface DatabasePrincipalAssignment extends ProxyResource { /** - * Resource location. + * The principal ID assigned to the database principal. It can be a user email, application ID, + * or security group name. + */ + principalId: string; + /** + * Database principal role. Possible values include: 'Admin', 'Ingestor', 'Monitor', 'User', + * 'UnrestrictedViewer', 'Viewer' + */ + role: DatabasePrincipalRole; + /** + * The tenant id of the principal + */ + tenantId?: string; + /** + * Principal type. Possible values include: 'App', 'Group', 'User' + */ + principalType: PrincipalType; + /** + * The tenant name of the principal * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly location?: string; + readonly tenantName?: string; /** - * The status of the database transparent data encryption. Possible values include: 'Enabled', - * 'Disabled' + * The principal name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - status?: TransparentDataEncryptionStatus; + readonly principalName?: string; + /** + * The provisioned state of the resource. Possible values include: 'Running', 'Creating', + * 'Deleting', 'Succeeded', 'Failed', 'Moving', 'Canceled' + */ + provisioningState?: ResourceProvisioningState; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** - * A Sql pool blob auditing policy. + * A principal assignment check name availability request. */ -export interface SqlPoolBlobAuditingPolicy extends ProxyResource { +export interface DatabasePrincipalAssignmentCheckNameRequest { /** - * Resource kind. + * Principal Assignment resource name. + */ + name: string; +} + +/** + * The object sent for a kusto pool check name availability request. + */ +export interface KustoPoolCheckNameRequest { + /** + * Kusto Pool name. + */ + name: string; +} + +/** + * The result returned from a database check name availability request. + */ +export interface DatabaseCheckNameRequest { + /** + * Resource name. + */ + name: string; + /** + * The type of resource, for instance Microsoft.Synapse/workspaces/kustoPools/databases. Possible + * values include: 'Microsoft.Synapse/workspaces/kustoPools/databases', + * 'Microsoft.Synapse/workspaces/kustoPools/attachedDatabaseConfigurations' + */ + type: Type; +} + +/** + * A data connection check name availability request. + */ +export interface DataConnectionCheckNameRequest { + /** + * Data Connection name. + */ + name: string; +} + +/** + * The result returned from a check name availability request. + */ +export interface CheckNameResult { + /** + * Specifies a Boolean value that indicates if the name is available. + */ + nameAvailable?: boolean; + /** + * The name that was checked. + */ + name?: string; + /** + * Message indicating an unavailable name due to a conflict, or a description of the naming rules + * that are violated. + */ + message?: string; + /** + * Message providing the reason why the given name is invalid. Possible values include: + * 'Invalid', 'AlreadyExists' + */ + reason?: Reason; +} + +/** + * Library response details + */ +export interface LibraryResource extends SubResource { + /** + * Name of the library. + */ + libraryResourceName?: string; + /** + * Storage blob path of library. + */ + path?: string; + /** + * Storage blob container name. + */ + containerName?: string; + /** + * The last update time of the library. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly kind?: string; + readonly uploadedTimestamp?: Date; /** - * Specifies the state of the policy. If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' + * Type of the library. */ - state: BlobAuditingPolicyState; + libraryResourceType?: string; /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state - * is Enabled, storageEndpoint is required. + * Provisioning status of the library/package. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - storageEndpoint?: string; + readonly provisioningStatus?: string; /** - * Specifies the identifier key of the auditing storage account. If state is Enabled and - * storageEndpoint is specified, storageAccountAccessKey is required. + * Creator Id of the library/package. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - storageAccountAccessKey?: string; + readonly creatorId?: string; +} + +/** + * Description of an available operation + */ +export interface AvailableRpOperationDisplayInfo { /** - * Specifies the number of days to keep in the audit logs in the storage account. + * Operation description */ - retentionDays?: number; + description?: string; /** - * Specifies the Actions-Groups and Actions to audit. - * - * The 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: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing - * from the Azure portal. - * - * The 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): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * These 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. - * - * For 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). - * - * For 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: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note 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. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For 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) + * Resource type */ - auditActionsAndGroups?: string[]; + resource?: string; /** - * Specifies the blob storage subscription Id. + * Resource provider name */ - storageAccountSubscriptionId?: string; + provider?: string; /** - * Specifies whether storageAccountAccessKey value is the storage's secondary key. + * Operation name */ - isStorageSecondaryKeyInUse?: boolean; + operation?: string; +} + +/** + * What is this? + */ +export interface OperationMetaMetricDimensionSpecification { /** - * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and - * 'isAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. - * Note that for server level audit you should use the 'master' database as {databaseName}. - * - * Diagnostic Settings URI format: - * PUT - * 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 - * - * For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * Dimension display name */ - isAzureMonitorTargetEnabled?: boolean; + displayName?: string; + /** + * Dimension unique name + */ + name?: string; + /** + * Whether this metric should be exported for Shoebox + */ + toBeExportedForShoebox?: boolean; } /** - * A Sql pool operation. + * What is this? */ -export interface SqlPoolOperation extends ProxyResource { +export interface OperationMetaMetricSpecification { /** - * The name of the Sql pool the operation is being performed on. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The source MDM namespace */ - readonly databaseName?: string; + sourceMdmNamespace?: string; /** - * The name of operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Metric display name */ - readonly operation?: string; + displayName?: string; /** - * The friendly name of operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Metric unique name */ - readonly operationFriendlyName?: string; + name?: string; /** - * The percentage of the operation completed. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Metric aggregation type */ - readonly percentComplete?: number; + aggregationType?: string; /** - * The name of the server. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Metric description */ - readonly serverName?: string; + displayDescription?: string; /** - * The operation start time. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The source MDM account */ - readonly startTime?: Date; + sourceMdmAccount?: string; /** - * The operation state. Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', - * 'CancelInProgress', 'Cancelled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether the regional MDM account is enabled */ - readonly state?: ManagementOperationState; + enableRegionalMdmAccount?: boolean; /** - * The operation error code. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Metric units */ - readonly errorCode?: number; + unit?: string; /** - * The operation error description. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Metric dimensions */ - readonly errorDescription?: string; + dimensions?: OperationMetaMetricDimensionSpecification[]; /** - * The operation error severity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether the metric supports instance-level aggregation */ - readonly errorSeverity?: number; + supportsInstanceLevelAggregation?: boolean; /** - * Whether or not the error is a user error. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Metric filter */ - readonly isUserError?: boolean; + metricFilterPattern?: string; +} + +/** + * What is this? + */ +export interface OperationMetaLogSpecification { /** - * The estimated completion time of the operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Log display name */ - readonly estimatedCompletionTime?: Date; + displayName?: string; /** - * The operation description. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Time range the log covers */ - readonly description?: string; + blobDuration?: string; /** - * Whether the operation can be cancelled. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Log unique name */ - readonly isCancellable?: boolean; + name?: string; } /** - * The Sql pool usages. + * What is this? */ -export interface SqlPoolUsage { +export interface OperationMetaServiceSpecification { /** - * The name of the usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Service metric specifications */ - readonly name?: string; + metricSpecifications?: OperationMetaMetricSpecification[]; /** - * The name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Service log specifications */ - readonly resourceName?: string; + logSpecifications?: OperationMetaLogSpecification[]; +} + +/** + * An operation that is available in this resource provider + */ +export interface AvailableRpOperation { /** - * The usage metric display name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Display properties of the operation */ - readonly displayName?: string; + display?: AvailableRpOperationDisplayInfo; /** - * The current value of the usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether this operation is a data action */ - readonly currentValue?: number; + isDataAction?: string; /** - * The current limit of the usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Operation name */ - readonly limit?: number; + name?: string; /** - * The units of the usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Operation service specification */ - readonly unit?: string; + serviceSpecification?: OperationMetaServiceSpecification; /** - * The next reset time for the usage metric (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Operation origin */ - readonly nextResetTime?: Date; + origin?: string; } /** - * A sensitivity label. + * An operation */ -export interface SensitivityLabel extends ProxyResource { +export interface OperationResource { /** - * The schema name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Operation ID */ - readonly schemaName?: string; + id?: string; /** - * The table name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Operation name */ - readonly tableName?: string; + name?: string; /** - * The column name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Operation status. Possible values include: 'InProgress', 'Succeeded', 'Failed', 'Canceled' */ - readonly columnName?: string; + status?: OperationStatus; /** - * The label name. + * Operation properties */ - labelName?: string; + properties?: any; /** - * The label ID. + * Errors from the operation */ - labelId?: string; + error?: ErrorDetail; /** - * The information type. + * Operation start time */ - informationType?: string; + startTime?: Date; /** - * The information type ID. + * Operation start time */ - informationTypeId?: string; + endTime?: Date; /** - * Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. - * Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or - * not. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Completion percentage of the operation */ - readonly isDisabled?: boolean; + percentComplete?: number; +} + +/** + * Connection state details of the private endpoint + */ +export interface PrivateLinkServiceConnectionState { /** - * Possible values include: 'None', 'Low', 'Medium', 'High', 'Critical' + * The private link service connection status. */ - rank?: SensitivityLabelRank; + status?: string; /** - * managed by + * The private link service connection description. + */ + description?: string; + /** + * The actions required for private link service connection. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly managedBy?: string; -} - -/** - * A Sql pool schema resource. - */ -export interface SqlPoolSchema extends ProxyResource { + readonly actionsRequired?: string; } /** - * A Sql pool table resource. + * Private endpoint details */ -export interface SqlPoolTable extends ProxyResource { +export interface PrivateEndpoint extends BaseResource { + /** + * Resource id of the private endpoint. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; } /** - * A Sql pool column resource. + * A private endpoint connection */ -export interface SqlPoolColumn extends ProxyResource { +export interface PrivateEndpointConnection extends ProxyResource { /** - * The column data type. Possible values include: 'image', 'text', 'uniqueidentifier', 'date', - * 'time', 'datetime2', 'datetimeoffset', 'tinyint', 'smallint', 'int', 'smalldatetime', 'real', - * 'money', 'datetime', 'float', 'sql_variant', 'ntext', 'bit', 'decimal', 'numeric', - * 'smallmoney', 'bigint', 'hierarchyid', 'geometry', 'geography', 'varbinary', 'varchar', - * 'binary', 'char', 'timestamp', 'nvarchar', 'nchar', 'xml', 'sysname' + * The private endpoint which the connection belongs to. */ - columnType?: ColumnDataType; + privateEndpoint?: PrivateEndpoint; /** - * Indicates whether column value is computed or not + * Connection state of the private endpoint connection. + */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + /** + * Provisioning state of the private endpoint connection. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly isComputed?: boolean; + readonly provisioningState?: string; } /** - * A Sql pool connection policy. + * Properties of a private link resource. */ -export interface SqlPoolConnectionPolicy extends ProxyResource { +export interface PrivateLinkResourceProperties { /** - * Resource kind. + * The private link resource group id. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly kind?: string; + readonly groupId?: string; /** - * Resource location. + * The private link resource required member names. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly location?: string; - /** - * The state of security access. - */ - securityEnabledAccess?: string; + readonly requiredMembers?: string[]; /** - * The fully qualified host name of the auditing proxy. + * Required DNS zone names of the the private link resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - proxyDnsName?: string; + readonly requiredZoneNames?: string[]; +} + +/** + * A private link resource + */ +export interface PrivateLinkResource extends ProxyResource { /** - * The port number of the auditing proxy. + * The private link resource properties. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - proxyPort?: string; + readonly properties?: PrivateLinkResourceProperties; +} + +/** + * Private Endpoint Connection For Private Link Hub - Basic + */ +export interface PrivateEndpointConnectionForPrivateLinkHubBasic { /** - * The visibility of the auditing proxy. + * identifier + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - visibility?: string; + readonly id?: string; /** - * Whether server default is enabled or disabled. + * The private endpoint which the connection belongs to. */ - useServerDefault?: string; + privateEndpoint?: PrivateEndpoint; /** - * The state of proxy redirection. + * Connection state of the private endpoint connection. */ - redirectionState?: string; + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; /** - * The connection policy state. + * Provisioning state of the private endpoint connection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - state?: string; + readonly provisioningState?: string; } /** - * Properties of a Vulnerability Assessment recurring scans. + * A privateLinkHub */ -export interface VulnerabilityAssessmentRecurringScansProperties { - /** - * Recurring scans state. - */ - isEnabled?: boolean; +export interface PrivateLinkHub extends TrackedResource { /** - * Specifies that the schedule scan notification will be is sent to the subscription - * administrators. Default value: true. + * PrivateLinkHub provisioning state */ - emailSubscriptionAdmins?: boolean; + provisioningState?: string; /** - * Specifies an array of e-mail addresses to which the scan notification is sent. + * List of private endpoint connections + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - emails?: string[]; + readonly privateEndpointConnections?: PrivateEndpointConnectionForPrivateLinkHubBasic[]; } /** - * A Sql pool vulnerability assessment. + * PrivateLinkHub patch details */ -export interface SqlPoolVulnerabilityAssessment extends ProxyResource { +export interface PrivateLinkHubPatchInfo { /** - * A blob storage container path to hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). It is required if server level - * vulnerability assessment policy doesn't set + * Resource tags */ - storageContainerPath?: string; + tags?: { [propertyName: string]: string }; +} + +/** + * An interface representing PrivateEndpointConnectionForPrivateLinkHub. + */ +export interface PrivateEndpointConnectionForPrivateLinkHub extends PrivateEndpointConnectionForPrivateLinkHubBasic { + name?: string; + type?: string; +} + +/** + * SQL pool SKU + * @summary Sku + */ +export interface Sku { /** - * A shared access signature (SAS Key) that has write access to the blob container specified in - * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, - * StorageContainerSasKey is required. + * The service tier */ - storageContainerSasKey?: string; + tier?: string; /** - * Specifies the identifier key of the storage account for vulnerability assessment scan results. - * If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. + * The SKU name */ - storageAccountAccessKey?: string; + name?: string; /** - * The recurring scans settings + * If the SKU supports scale out/in then the capacity integer should be included. If scale out/in + * is not possible for the resource this may be omitted. */ - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; + capacity?: number; } /** - * Properties of a vulnerability assessment scan error. + * A SQL Analytics pool + * @summary SQL pool */ -export interface VulnerabilityAssessmentScanError { +export interface SqlPool extends TrackedResource { /** - * The error code. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * SQL pool SKU */ - readonly code?: string; + sku?: Sku; /** - * The error message. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Maximum size in bytes */ - readonly message?: string; -} - -/** - * A vulnerability assessment scan record. - */ -export interface VulnerabilityAssessmentScanRecord extends ProxyResource { + maxSizeBytes?: number; /** - * The scan ID. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Collation mode */ - readonly scanId?: string; + collation?: string; /** - * The scan trigger type. Possible values include: 'OnDemand', 'Recurring' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Source database to create from */ - readonly triggerType?: VulnerabilityAssessmentScanTriggerType; + sourceDatabaseId?: string; /** - * The scan status. Possible values include: 'Passed', 'Failed', 'FailedToRun', 'InProgress' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Backup database to restore from */ - readonly state?: VulnerabilityAssessmentScanState; + recoverableDatabaseId?: string; /** - * The scan start time (UTC). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Resource state */ - readonly startTime?: Date; + provisioningState?: string; /** - * The scan end time (UTC). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Resource status */ - readonly endTime?: Date; + status?: string; /** - * The scan errors. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Snapshot time to restore */ - readonly errors?: VulnerabilityAssessmentScanError[]; + restorePointInTime?: Date; /** - * The scan results storage container path. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * What is this? */ - readonly storageContainerPath?: string; + createMode?: string; /** - * The number of failed security checks. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Date the SQL pool was created */ - readonly numberOfFailedSecurityChecks?: number; + creationDate?: Date; + /** + * The storage account type used to store backups for this sql pool. Possible values include: + * 'GRS', 'LRS', 'ZRS' + */ + storageAccountType?: StorageAccountType; } /** - * A Sql pool security alert policy. + * A SQL Analytics pool patch info + * @summary SQL pool patch info */ -export interface SqlPoolSecurityAlertPolicy extends ProxyResource { +export interface SqlPoolPatchInfo { /** - * Specifies the state of the policy, whether it is enabled or disabled or a policy has not been - * applied yet on the specific Sql pool. Possible values include: 'New', 'Enabled', 'Disabled' + * Resource tags. */ - state: SecurityAlertPolicyState; + tags?: { [propertyName: string]: string }; /** - * Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, - * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action + * The geo-location where the resource lives */ - disabledAlerts?: string[]; + location?: string; /** - * Specifies an array of e-mail addresses to which the alert is sent. + * SQL pool SKU */ - emailAddresses?: string[]; + sku?: Sku; /** - * Specifies that the alert is sent to the account administrators. + * Maximum size in bytes */ - emailAccountAdmins?: boolean; + maxSizeBytes?: number; /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob - * storage will hold all Threat Detection audit logs. + * Collation mode */ - storageEndpoint?: string; + collation?: string; /** - * Specifies the identifier key of the Threat Detection audit storage account. + * Source database to create from */ - storageAccountAccessKey?: string; + sourceDatabaseId?: string; /** - * Specifies the number of days to keep in the Threat Detection audit logs. + * Backup database to restore from */ - retentionDays?: number; + recoverableDatabaseId?: string; /** - * Specifies the UTC creation time of the policy. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Resource state */ - readonly creationTime?: Date; -} - -/** - * Properties for an Sql pool vulnerability assessment rule baseline's result. - */ -export interface SqlPoolVulnerabilityAssessmentRuleBaselineItem { + provisioningState?: string; /** - * The rule baseline result + * Resource status */ - result: string[]; + status?: string; + /** + * Snapshot time to restore + */ + restorePointInTime?: Date; + /** + * What is this? + */ + createMode?: string; + /** + * Date the SQL pool was created + */ + creationDate?: Date; + /** + * The storage account type used to store backups for this sql pool. Possible values include: + * 'GRS', 'LRS', 'ZRS' + */ + storageAccountType?: StorageAccountType; } /** - * A Sql pool vulnerability assessment rule baseline. + * Configuration for metadata sync + * @summary Metadata sync configuration */ -export interface SqlPoolVulnerabilityAssessmentRuleBaseline extends ProxyResource { +export interface MetadataSyncConfig extends ProxyResource { /** - * The rule baseline result + * Indicates whether the metadata sync is enabled or disabled */ - baselineResults: SqlPoolVulnerabilityAssessmentRuleBaselineItem[]; + enabled?: boolean; + /** + * The Sync Interval in minutes. + */ + syncIntervalInMinutes?: number; } /** - * A Sql pool Vulnerability Assessment scan export resource. + * A database geo backup policy. */ -export interface SqlPoolVulnerabilityAssessmentScansExport extends ProxyResource { +export interface GeoBackupPolicy extends ProxyResource { /** - * Location of the exported report (e.g. - * https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). + * The state of the geo backup policy. Possible values include: 'Disabled', 'Enabled' + */ + state: GeoBackupPolicyState; + /** + * The storage type of the geo backup policy. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly exportedReportLocation?: string; -} - -/** - * Contains the information necessary to perform a resource move (rename). - */ -export interface ResourceMoveDefinition { + readonly storageType?: string; /** - * The target ID for the resource + * Kind of geo backup policy. This is metadata used for the Azure portal experience. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - id: string; -} - -/** - * Contains the information necessary to perform a create Sql pool restore point operation. - */ -export interface CreateSqlPoolRestorePointDefinition { + readonly kind?: string; /** - * The restore point label to apply + * Backup policy location. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - restorePointLabel: string; + readonly location?: string; } /** - * Workload group operations for a sql pool + * A database query. */ -export interface WorkloadGroup extends ProxyResource { - /** - * The workload group minimum percentage resource. - */ - minResourcePercent: number; - /** - * The workload group cap percentage resource. - */ - maxResourcePercent: number; +export interface QueryMetric { /** - * The workload group request minimum grant percentage. + * The name of the metric + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - minResourcePercentPerRequest: number; + readonly name?: string; /** - * The workload group request maximum grant percentage. + * The name of the metric for display in user interface + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - maxResourcePercentPerRequest?: number; + readonly displayName?: string; /** - * The workload group importance level. + * The unit of measurement. Possible values include: 'percentage', 'KB', 'microseconds' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - importance?: string; + readonly unit?: QueryMetricUnit; /** - * The workload group query execution timeout. + * The measured value + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - queryExecutionTimeout?: number; + readonly value?: number; } /** - * Workload classifier operations for a data warehouse + * A database query. */ -export interface WorkloadClassifier extends ProxyResource { - /** - * The workload classifier member name. - */ - memberName: string; +export interface QueryInterval { /** - * The workload classifier label. + * The start time of the measurement interval (ISO8601 format). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - label?: string; + readonly intervalStartTime?: Date; /** - * The workload classifier context. + * The number of times the query was executed during this interval. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - context?: string; + readonly executionCount?: number; /** - * The workload classifier start time for classification. + * The list of query metrics during this interval. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - startTime?: string; + readonly metrics?: QueryMetric[]; +} + +/** + * A database query. + */ +export interface QueryStatistic { /** - * The workload classifier end time for classification. + * The id of the query + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - endTime?: string; + readonly queryId?: string; /** - * The workload classifier importance. + * The list of query intervals. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - importance?: string; + readonly intervals?: QueryInterval[]; } /** - * An interface representing DataMaskingPolicy. + * A database query. */ -export interface DataMaskingPolicy extends ProxyResource { +export interface TopQueries { /** - * The state of the data masking policy. Possible values include: 'Disabled', 'Enabled' + * The function that is used to aggregate each query's metrics. Possible values include: 'min', + * 'max', 'avg', 'sum' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - dataMaskingState: DataMaskingState; + readonly aggregationFunction?: QueryAggregationFunction; /** - * The list of the exempt principals. Specifies the semicolon-separated list of database users - * for which the data masking policy does not apply. The specified users receive data results - * without masking for all of the database queries. + * The execution type that is used to filter the query instances that are returned. Possible + * values include: 'any', 'regular', 'irregular', 'aborted', 'exception' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - exemptPrincipals?: string; + readonly executionType?: QueryExecutionType; /** - * The list of the application principals. This is a legacy parameter and is no longer used. + * The duration of the interval (ISO8601 duration format). * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly applicationPrincipals?: string; + readonly intervalType?: string; /** - * The masking level. This is a legacy parameter and is no longer used. + * The number of requested queries. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly maskingLevel?: string; + readonly numberOfTopQueries?: number; /** - * The location of the data masking policy. + * The start time for queries that are returned (ISO8601 format) * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly location?: string; + readonly observationStartTime?: Date; /** - * The kind of data masking policy. Metadata, used for Azure portal. + * The end time for queries that are returned (ISO8601 format) * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly kind?: string; + readonly observationEndTime?: Date; /** - * Fully qualified resource ID of the sql pool + * The type of metric to use for ordering the top metrics. Possible values include: 'cpu', 'io', + * 'logio', 'duration', 'executionCount' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly managedBy?: string; + readonly observedMetric?: QueryObservedMetricType; + /** + * The list of queries. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly queries?: QueryStatistic[]; } /** - * An extended Sql pool blob auditing policy. + * Represents the response to a get top queries request. */ -export interface ExtendedSqlPoolBlobAuditingPolicy extends ProxyResource { +export interface TopQueriesListResult { /** - * Specifies condition of where clause when creating an audit. + * The list of top queries. */ - predicateExpression?: string; + value: TopQueries[]; +} + +/** + * User activities of a data warehouse + */ +export interface DataWarehouseUserActivities extends ProxyResource { /** - * Specifies the state of the policy. If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' + * Count of running and suspended queries. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - state: BlobAuditingPolicyState; + readonly activeQueriesCount?: number; +} + +/** + * Database restore points. + */ +export interface RestorePoint extends ProxyResource { /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state - * is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. - */ + * Resource location. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * The type of restore point. Possible values include: 'CONTINUOUS', 'DISCRETE' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly restorePointType?: RestorePointType; + /** + * The earliest time to which this database can be restored + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly earliestRestoreDate?: Date; + /** + * The time the backup was taken + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly restorePointCreationDate?: Date; + /** + * The label of restore point for backup request by user + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly restorePointLabel?: string; +} + +/** + * Represents a Sql pool replication link. + */ +export interface ReplicationLink extends ProxyResource { + /** + * Location of the workspace that contains this firewall rule. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * Legacy value indicating whether termination is allowed. Currently always returns true. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isTerminationAllowed?: boolean; + /** + * Replication mode of this replication link. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly replicationMode?: string; + /** + * The name of the workspace hosting the partner Sql pool. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly partnerServer?: string; + /** + * The name of the partner Sql pool. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly partnerDatabase?: string; + /** + * The Azure Region of the partner Sql pool. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly partnerLocation?: string; + /** + * The role of the Sql pool in the replication link. Possible values include: 'Primary', + * 'Secondary', 'NonReadableSecondary', 'Source', 'Copy' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly role?: ReplicationRole; + /** + * The role of the partner Sql pool in the replication link. Possible values include: 'Primary', + * 'Secondary', 'NonReadableSecondary', 'Source', 'Copy' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly partnerRole?: ReplicationRole; + /** + * The start time for the replication link. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startTime?: Date; + /** + * The percentage of seeding complete for the replication link. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly percentComplete?: number; + /** + * The replication state for the replication link. Possible values include: 'PENDING', 'SEEDING', + * 'CATCH_UP', 'SUSPENDED' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly replicationState?: ReplicationState; +} + +/** + * Maintenance window time range. + */ +export interface MaintenanceWindowTimeRange { + /** + * Day of maintenance window. Possible values include: 'Sunday', 'Monday', 'Tuesday', + * 'Wednesday', 'Thursday', 'Friday', 'Saturday' + */ + dayOfWeek?: DayOfWeek; + /** + * Start time minutes offset from 12am. + */ + startTime?: string; + /** + * Duration of maintenance window in minutes. + */ + duration?: string; +} + +/** + * Maintenance window options. + */ +export interface MaintenanceWindowOptions extends ProxyResource { + /** + * Whether maintenance windows are enabled for the database. + */ + isEnabled?: boolean; + /** + * Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, 24*60}. + */ + maintenanceWindowCycles?: MaintenanceWindowTimeRange[]; + /** + * Minimum duration of maintenance window. + */ + minDurationInMinutes?: number; + /** + * Default duration for maintenance window. + */ + defaultDurationInMinutes?: number; + /** + * Minimum number of maintenance windows cycles to be set on the database. + */ + minCycles?: number; + /** + * Time granularity in minutes for maintenance windows. + */ + timeGranularityInMinutes?: number; + /** + * Whether we allow multiple maintenance windows per cycle. + */ + allowMultipleMaintenanceWindowsPerCycle?: boolean; +} + +/** + * Maintenance windows. + */ +export interface MaintenanceWindows extends ProxyResource { + timeRanges?: MaintenanceWindowTimeRange[]; +} + +/** + * Represents a Sql pool transparent data encryption configuration. + */ +export interface TransparentDataEncryption extends ProxyResource { + /** + * Resource location. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * The status of the database transparent data encryption. Possible values include: 'Enabled', + * 'Disabled' + */ + status?: TransparentDataEncryptionStatus; +} + +/** + * A Sql pool blob auditing policy. + */ +export interface SqlPoolBlobAuditingPolicy extends ProxyResource { + /** + * Resource kind. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly kind?: string; + /** + * Specifies the state of the policy. If state is Enabled, storageEndpoint or + * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' + */ + state: BlobAuditingPolicyState; + /** + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state + * is Enabled, storageEndpoint is required. + */ storageEndpoint?: string; /** - * Specifies the identifier key of the auditing storage account. - * If state is Enabled and storageEndpoint is specified, not specifying the - * storageAccountAccessKey will use SQL server system-assigned managed identity to access the - * storage. - * Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). - * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data - * Contributor' RBAC role to the server identity. - * For more information, see [Auditing to storage using Managed Identity - * authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + * Specifies the identifier key of the auditing storage account. If state is Enabled and + * storageEndpoint is specified, storageAccountAccessKey is required. */ storageAccountAccessKey?: string; /** @@ -3414,435 +3754,369 @@ export interface ExtendedSqlPoolBlobAuditingPolicy extends ProxyResource { * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) */ isAzureMonitorTargetEnabled?: boolean; - /** - * Specifies the amount of time in milliseconds that can elapse before audit actions are forced - * to be processed. - * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. - */ - queueDelayMs?: number; } /** - * Represents a Sql pool data masking rule. + * A Sql pool operation. */ -export interface DataMaskingRule extends ProxyResource { +export interface SqlPoolOperation extends ProxyResource { /** - * The rule Id. + * The name of the Sql pool the operation is being performed on. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly dataMaskingRuleId?: string; + readonly databaseName?: string; /** - * The alias name. This is a legacy parameter and is no longer used. + * The name of operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - aliasName?: string; + readonly operation?: string; /** - * The rule state. Used to delete a rule. To delete an existing rule, specify the schemaName, - * tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if the - * rule doesn't already exist, the rule will be created with ruleState set to enabled, regardless - * of the provided value of ruleState. Possible values include: 'Disabled', 'Enabled' + * The friendly name of operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - ruleState?: DataMaskingRuleState; + readonly operationFriendlyName?: string; /** - * The schema name on which the data masking rule is applied. + * The percentage of the operation completed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - schemaName: string; + readonly percentComplete?: number; /** - * The table name on which the data masking rule is applied. + * The name of the server. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tableName: string; + readonly serverName?: string; /** - * The column name on which the data masking rule is applied. + * The operation start time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - columnName: string; + readonly startTime?: Date; /** - * The masking function that is used for the data masking rule. Possible values include: - * 'Default', 'CCN', 'Email', 'Number', 'SSN', 'Text' + * The operation state. Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', + * 'CancelInProgress', 'Cancelled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - maskingFunction: DataMaskingFunction; + readonly state?: ManagementOperationState; /** - * The numberFrom property of the masking rule. Required if maskingFunction is set to Number, - * otherwise this parameter will be ignored. + * The operation error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - numberFrom?: string; + readonly errorCode?: number; /** - * The numberTo property of the data masking rule. Required if maskingFunction is set to Number, - * otherwise this parameter will be ignored. + * The operation error description. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - numberTo?: string; + readonly errorDescription?: string; /** - * If maskingFunction is set to Text, the number of characters to show unmasked in the beginning - * of the string. Otherwise, this parameter will be ignored. + * The operation error severity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - prefixSize?: string; + readonly errorSeverity?: number; /** - * If maskingFunction is set to Text, the number of characters to show unmasked at the end of the - * string. Otherwise, this parameter will be ignored. + * Whether or not the error is a user error. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - suffixSize?: string; + readonly isUserError?: boolean; /** - * If maskingFunction is set to Text, the character to use for masking the unexposed part of the - * string. Otherwise, this parameter will be ignored. + * The estimated completion time of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - replacementString?: string; + readonly estimatedCompletionTime?: Date; /** - * The location of the data masking rule. + * The operation description. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly location?: string; + readonly description?: string; /** - * The kind of Data Masking Rule. Metadata, used for Azure portal. + * Whether the operation can be cancelled. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly kind?: string; + readonly isCancellable?: boolean; } /** - * A sensitivity label update operation. + * The Sql pool usages. */ -export interface SensitivityLabelUpdate extends ProxyResource { +export interface SqlPoolUsage { /** - * Possible values include: 'set', 'remove' + * The name of the usage metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - op: SensitivityLabelUpdateKind; + readonly name?: string; /** - * Schema name of the column to update. + * The name of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - schema: string; + readonly resourceName?: string; /** - * Table name of the column to update. + * The usage metric display name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - table: string; + readonly displayName?: string; /** - * Column name to update. + * The current value of the usage metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - column: string; + readonly currentValue?: number; /** - * The sensitivity label information to apply on a column. + * The current limit of the usage metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sensitivityLabel?: SensitivityLabel; + readonly limit?: number; + /** + * The units of the usage metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly unit?: string; + /** + * The next reset time for the usage metric (ISO8601 format). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextResetTime?: Date; } /** - * A list of sensitivity label update operations. + * A sensitivity label. */ -export interface SensitivityLabelUpdateList { - operations?: SensitivityLabelUpdate[]; +export interface SensitivityLabel extends ProxyResource { + /** + * The schema name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly schemaName?: string; + /** + * The table name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tableName?: string; + /** + * The column name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly columnName?: string; + /** + * The label name. + */ + labelName?: string; + /** + * The label ID. + */ + labelId?: string; + /** + * The information type. + */ + informationType?: string; + /** + * The information type ID. + */ + informationTypeId?: string; + /** + * Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. + * Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or + * not. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isDisabled?: boolean; + /** + * Possible values include: 'None', 'Low', 'Medium', 'High', 'Critical' + */ + rank?: SensitivityLabelRank; + /** + * managed by + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly managedBy?: string; } /** - * A recommended sensitivity label update operation. + * A Sql pool schema resource. */ -export interface RecommendedSensitivityLabelUpdate extends ProxyResource { +export interface SqlPoolSchema extends ProxyResource { +} + +/** + * A Sql pool table resource. + */ +export interface SqlPoolTable extends ProxyResource { +} + +/** + * A Sql pool column resource. + */ +export interface SqlPoolColumn extends ProxyResource { /** - * Possible values include: 'enable', 'disable' + * The column data type. Possible values include: 'image', 'text', 'uniqueidentifier', 'date', + * 'time', 'datetime2', 'datetimeoffset', 'tinyint', 'smallint', 'int', 'smalldatetime', 'real', + * 'money', 'datetime', 'float', 'sql_variant', 'ntext', 'bit', 'decimal', 'numeric', + * 'smallmoney', 'bigint', 'hierarchyid', 'geometry', 'geography', 'varbinary', 'varchar', + * 'binary', 'char', 'timestamp', 'nvarchar', 'nchar', 'xml', 'sysname' */ - op: RecommendedSensitivityLabelUpdateKind; + columnType?: ColumnDataType; /** - * Schema name of the column to update. + * Indicates whether column value is computed or not + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - schema: string; + readonly isComputed?: boolean; +} + +/** + * A Sql pool connection policy. + */ +export interface SqlPoolConnectionPolicy extends ProxyResource { /** - * Table name of the column to update. + * Resource kind. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - table: string; + readonly kind?: string; /** - * Column name to update. + * Resource location. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - column: string; + readonly location?: string; + /** + * The state of security access. + */ + securityEnabledAccess?: string; + /** + * The fully qualified host name of the auditing proxy. + */ + proxyDnsName?: string; + /** + * The port number of the auditing proxy. + */ + proxyPort?: string; + /** + * The visibility of the auditing proxy. + */ + visibility?: string; + /** + * Whether server default is enabled or disabled. + */ + useServerDefault?: string; + /** + * The state of proxy redirection. + */ + redirectionState?: string; + /** + * The connection policy state. + */ + state?: string; } /** - * A list of recommended sensitivity label update operations. + * Properties of a Vulnerability Assessment recurring scans. */ -export interface RecommendedSensitivityLabelUpdateList { - operations?: RecommendedSensitivityLabelUpdate[]; +export interface VulnerabilityAssessmentRecurringScansProperties { + /** + * Recurring scans state. + */ + isEnabled?: boolean; + /** + * Specifies that the schedule scan notification will be is sent to the subscription + * administrators. Default value: true. + */ + emailSubscriptionAdmins?: boolean; + /** + * Specifies an array of e-mail addresses to which the scan notification is sent. + */ + emails?: string[]; } /** - * A server blob auditing policy. + * A Sql pool vulnerability assessment. */ -export interface ServerBlobAuditingPolicy extends ProxyResource { +export interface SqlPoolVulnerabilityAssessment extends ProxyResource { /** - * Specifies the state of the policy. If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' + * A blob storage container path to hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). It is required if server level + * vulnerability assessment policy doesn't set */ - state: BlobAuditingPolicyState; + storageContainerPath?: string; /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state - * is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. + * A shared access signature (SAS Key) that has write access to the blob container specified in + * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, + * StorageContainerSasKey is required. */ - storageEndpoint?: string; + storageContainerSasKey?: string; /** - * Specifies the identifier key of the auditing storage account. - * If state is Enabled and storageEndpoint is specified, not specifying the - * storageAccountAccessKey will use SQL server system-assigned managed identity to access the - * storage. - * Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). - * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data - * Contributor' RBAC role to the server identity. - * For more information, see [Auditing to storage using Managed Identity - * authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + * Specifies the identifier key of the storage account for vulnerability assessment scan results. + * If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. */ storageAccountAccessKey?: string; /** - * Specifies the number of days to keep in the audit logs in the storage account. + * The recurring scans settings */ - retentionDays?: number; + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; +} + +/** + * Properties of a vulnerability assessment scan error. + */ +export interface VulnerabilityAssessmentScanError { /** - * Specifies the Actions-Groups and Actions to audit. - * - * The 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: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing - * from the Azure portal. - * - * The 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): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * These 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. - * - * For 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). - * - * For 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: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note 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. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For 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) - */ - auditActionsAndGroups?: string[]; - /** - * Specifies the blob storage subscription Id. - */ - storageAccountSubscriptionId?: string; - /** - * Specifies whether storageAccountAccessKey value is the storage's secondary key. - */ - isStorageSecondaryKeyInUse?: boolean; - /** - * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and - * 'isAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. - * Note that for server level audit you should use the 'master' database as {databaseName}. - * - * Diagnostic Settings URI format: - * PUT - * 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 - * - * For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * The error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - isAzureMonitorTargetEnabled?: boolean; + readonly code?: string; /** - * Specifies the amount of time in milliseconds that can elapse before audit actions are forced - * to be processed. - * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * The error message. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - queueDelayMs?: number; + readonly message?: string; } /** - * An extended server blob auditing policy. + * A vulnerability assessment scan record. */ -export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { - /** - * Specifies condition of where clause when creating an audit. - */ - predicateExpression?: string; - /** - * Specifies the state of the policy. If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' - */ - state: BlobAuditingPolicyState; +export interface VulnerabilityAssessmentScanRecord extends ProxyResource { /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state - * is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. + * The scan ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - storageEndpoint?: string; + readonly scanId?: string; /** - * Specifies the identifier key of the auditing storage account. - * If state is Enabled and storageEndpoint is specified, not specifying the - * storageAccountAccessKey will use SQL server system-assigned managed identity to access the - * storage. - * Prerequisites for using managed identity authentication: - * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). - * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data - * Contributor' RBAC role to the server identity. - * For more information, see [Auditing to storage using Managed Identity - * authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + * The scan trigger type. Possible values include: 'OnDemand', 'Recurring' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - storageAccountAccessKey?: string; + readonly triggerType?: VulnerabilityAssessmentScanTriggerType; /** - * Specifies the number of days to keep in the audit logs in the storage account. + * The scan status. Possible values include: 'Passed', 'Failed', 'FailedToRun', 'InProgress' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - retentionDays?: number; + readonly state?: VulnerabilityAssessmentScanState; /** - * Specifies the Actions-Groups and Actions to audit. - * - * The 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: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing - * from the Azure portal. - * - * The 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): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * These 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. - * - * For 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). - * - * For 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: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note 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. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For 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) + * The scan start time (UTC). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - auditActionsAndGroups?: string[]; + readonly startTime?: Date; /** - * Specifies the blob storage subscription Id. + * The scan end time (UTC). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - storageAccountSubscriptionId?: string; + readonly endTime?: Date; /** - * Specifies whether storageAccountAccessKey value is the storage's secondary key. + * The scan errors. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - isStorageSecondaryKeyInUse?: boolean; + readonly errors?: VulnerabilityAssessmentScanError[]; /** - * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and - * 'isAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. - * Note that for server level audit you should use the 'master' database as {databaseName}. - * - * Diagnostic Settings URI format: - * PUT - * 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 - * - * For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * The scan results storage container path. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - isAzureMonitorTargetEnabled?: boolean; + readonly storageContainerPath?: string; /** - * Specifies the amount of time in milliseconds that can elapse before audit actions are forced - * to be processed. - * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. + * The number of failed security checks. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - queueDelayMs?: number; + readonly numberOfFailedSecurityChecks?: number; } /** - * Workspace managed Sql server security alert policy. + * A Sql pool security alert policy. */ -export interface ServerSecurityAlertPolicy extends ProxyResource { +export interface SqlPoolSecurityAlertPolicy extends ProxyResource { /** * Specifies the state of the policy, whether it is enabled or disabled or a policy has not been - * applied yet on the specific server. Possible values include: 'New', 'Enabled', 'Disabled' + * applied yet on the specific Sql pool. Possible values include: 'New', 'Enabled', 'Disabled' */ state: SecurityAlertPolicyState; /** @@ -3879,1568 +4153,3441 @@ export interface ServerSecurityAlertPolicy extends ProxyResource { } /** - * A server vulnerability assessment. + * Properties for an Sql pool vulnerability assessment rule baseline's result. */ -export interface ServerVulnerabilityAssessment extends ProxyResource { +export interface SqlPoolVulnerabilityAssessmentRuleBaselineItem { /** - * A blob storage container path to hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). - */ - storageContainerPath: string; - /** - * 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. - */ - storageContainerSasKey?: string; - /** - * Specifies the identifier key of the storage account for vulnerability assessment scan results. - * If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. - */ - storageAccountAccessKey?: string; - /** - * The recurring scans settings + * The rule baseline result */ - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; + result: string[]; } /** - * The server encryption protector. + * A Sql pool vulnerability assessment rule baseline. */ -export interface EncryptionProtector extends ProxyResource { - /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly kind?: string; - /** - * Resource location. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly location?: string; - /** - * Subregion of the encryption protector. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly subregion?: string; - /** - * The name of the server key. - */ - serverKeyName?: string; +export interface SqlPoolVulnerabilityAssessmentRuleBaseline extends ProxyResource { /** - * The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: - * 'ServiceManaged', 'AzureKeyVault' + * The rule baseline result */ - serverKeyType: ServerKeyType; + baselineResults: SqlPoolVulnerabilityAssessmentRuleBaselineItem[]; +} + +/** + * A Sql pool Vulnerability Assessment scan export resource. + */ +export interface SqlPoolVulnerabilityAssessmentScansExport extends ProxyResource { /** - * The URI of the server key. + * Location of the exported report (e.g. + * https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly uri?: string; + readonly exportedReportLocation?: string; +} + +/** + * Contains the information necessary to perform a resource move (rename). + */ +export interface ResourceMoveDefinition { /** - * Thumbprint of the server key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The target ID for the resource */ - readonly thumbprint?: string; + id: string; } /** - * Represents server metrics. + * Contains the information necessary to perform a create Sql pool restore point operation. */ -export interface ServerUsage { +export interface CreateSqlPoolRestorePointDefinition { /** - * Name of the server usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The restore point label to apply */ - readonly name?: string; + restorePointLabel: string; +} + +/** + * Workload group operations for a sql pool + */ +export interface WorkloadGroup extends ProxyResource { /** - * The name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The workload group minimum percentage resource. */ - readonly resourceName?: string; + minResourcePercent: number; /** - * The metric display name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The workload group cap percentage resource. */ - readonly displayName?: string; + maxResourcePercent: number; /** - * The current value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The workload group request minimum grant percentage. */ - readonly currentValue?: number; + minResourcePercentPerRequest: number; /** - * The current limit of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The workload group request maximum grant percentage. */ - readonly limit?: number; + maxResourcePercentPerRequest?: number; /** - * The units of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The workload group importance level. */ - readonly unit?: string; + importance?: string; /** - * The next reset time for the metric (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The workload group query execution timeout. */ - readonly nextResetTime?: Date; + queryExecutionTimeout?: number; } /** - * A recoverable sql pool + * Workload classifier operations for a data warehouse */ -export interface RecoverableSqlPool extends ProxyResource { +export interface WorkloadClassifier extends ProxyResource { /** - * The edition of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The workload classifier member name. */ - readonly edition?: string; + memberName: string; /** - * The service level objective name of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The workload classifier label. */ - readonly serviceLevelObjective?: string; + label?: string; /** - * The elastic pool name of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The workload classifier context. */ - readonly elasticPoolName?: string; + context?: string; /** - * The last available backup date of the database (ISO8601 format) - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The workload classifier start time for classification. */ - readonly lastAvailableBackupDate?: Date; -} - -/** - * Details of the data lake storage account associated with the workspace - */ -export interface DataLakeStorageAccountDetails { + startTime?: string; /** - * Account URL + * The workload classifier end time for classification. */ - accountUrl?: string; + endTime?: string; /** - * Filesystem name + * The workload classifier importance. */ - filesystem?: string; + importance?: string; } /** - * Virtual Network Profile + * An interface representing DataMaskingPolicy. */ -export interface VirtualNetworkProfile { +export interface DataMaskingPolicy extends ProxyResource { /** - * Subnet ID used for computes in workspace + * The state of the data masking policy. Possible values include: 'Disabled', 'Enabled' */ - computeSubnetId?: string; -} - -/** - * Details of the customer managed key associated with the workspace - */ -export interface WorkspaceKeyDetails { + dataMaskingState: DataMaskingState; /** - * Workspace Key sub-resource name + * The list of the exempt principals. Specifies the semicolon-separated list of database users + * for which the data masking policy does not apply. The specified users receive data results + * without masking for all of the database queries. */ - name?: string; + exemptPrincipals?: string; /** - * Workspace Key sub-resource key vault url + * The list of the application principals. This is a legacy parameter and is no longer used. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - keyVaultUrl?: string; -} - -/** - * Details of the customer managed key associated with the workspace - */ -export interface CustomerManagedKeyDetails { + readonly applicationPrincipals?: string; /** - * The customer managed key status on the workspace + * The masking level. This is a legacy parameter and is no longer used. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly status?: string; + readonly maskingLevel?: string; /** - * The key object of the workspace + * The location of the data masking policy. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - key?: WorkspaceKeyDetails; -} - -/** - * Details of the encryption associated with the workspace - */ -export interface EncryptionDetails { + readonly location?: string; /** - * Double Encryption enabled + * The kind of data masking policy. Metadata, used for Azure portal. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly doubleEncryptionEnabled?: boolean; + readonly kind?: string; /** - * Customer Managed Key Details + * Fully qualified resource ID of the sql pool + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - cmk?: CustomerManagedKeyDetails; + readonly managedBy?: string; } /** - * Managed Virtual Network Settings + * An extended Sql pool blob auditing policy. */ -export interface ManagedVirtualNetworkSettings { - /** - * Prevent Data Exfiltration - */ - preventDataExfiltration?: boolean; +export interface ExtendedSqlPoolBlobAuditingPolicy extends ProxyResource { /** - * Linked Access Check On Target Resource + * Specifies condition of where clause when creating an audit. */ - linkedAccessCheckOnTargetResource?: boolean; + predicateExpression?: string; /** - * Allowed Aad Tenant Ids For Linking + * Specifies the state of the policy. If state is Enabled, storageEndpoint or + * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' */ - allowedAadTenantIdsForLinking?: string[]; -} - -/** - * Git integration settings - */ -export interface WorkspaceRepositoryConfiguration { + state: BlobAuditingPolicyState; /** - * Type of workspace repositoryID configuration. Example WorkspaceVSTSConfiguration, - * WorkspaceGitHubConfiguration + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state + * is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ - type?: string; + storageEndpoint?: string; /** - * GitHub Enterprise host name. For example: https://github.mydomain.com + * Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the + * storageAccountAccessKey will use SQL server system-assigned managed identity to access the + * storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data + * Contributor' RBAC role to the server identity. + * For more information, see [Auditing to storage using Managed Identity + * authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ - hostName?: string; + storageAccountAccessKey?: string; /** - * Account name + * Specifies the number of days to keep in the audit logs in the storage account. */ - accountName?: string; + retentionDays?: number; /** - * VSTS project name - */ - projectName?: string; - /** - * Repository name - */ - repositoryName?: string; - /** - * Collaboration branch + * Specifies the Actions-Groups and Actions to audit. + * + * The 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: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing + * from the Azure portal. + * + * The 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): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These 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. + * + * For 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). + * + * For 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: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note 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. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For 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) */ - collaborationBranch?: string; + auditActionsAndGroups?: string[]; /** - * Root folder to use in the repository + * Specifies the blob storage subscription Id. */ - rootFolder?: string; + storageAccountSubscriptionId?: string; /** - * The last commit ID + * Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - lastCommitId?: string; + isStorageSecondaryKeyInUse?: boolean; /** - * The VSTS tenant ID + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and + * 'isAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' + * diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT + * 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 + * + * For more information, see [Diagnostic Settings REST + * API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) */ - tenantId?: string; -} - -/** - * Purview Configuration - */ -export interface PurviewConfiguration { + isAzureMonitorTargetEnabled?: boolean; /** - * Purview Resource ID + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced + * to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ - purviewResourceId?: string; + queueDelayMs?: number; } /** - * The workspace managed identity + * Represents a Sql pool data masking rule. */ -export interface ManagedIdentity { - /** - * The principal ID of the workspace managed identity - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly principalId?: string; +export interface DataMaskingRule extends ProxyResource { /** - * The tenant ID of the workspace managed identity + * The rule Id. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly tenantId?: string; + readonly dataMaskingRuleId?: string; /** - * The type of managed identity for the workspace. Possible values include: 'None', - * 'SystemAssigned' + * The alias name. This is a legacy parameter and is no longer used. */ - type?: ResourceIdentityType; -} - -/** - * A workspace - */ -export interface Workspace extends TrackedResource { + aliasName?: string; /** - * Workspace default data lake storage account details + * The rule state. Used to delete a rule. To delete an existing rule, specify the schemaName, + * tableName, columnName, maskingFunction, and specify ruleState as disabled. However, if the + * rule doesn't already exist, the rule will be created with ruleState set to enabled, regardless + * of the provided value of ruleState. Possible values include: 'Disabled', 'Enabled' */ - defaultDataLakeStorage?: DataLakeStorageAccountDetails; + ruleState?: DataMaskingRuleState; /** - * SQL administrator login password + * The schema name on which the data masking rule is applied. */ - sqlAdministratorLoginPassword?: string; + schemaName: string; /** - * Workspace managed resource group. The resource group name uniquely identifies the resource - * group within the user subscriptionId. The resource group name must be no longer than 90 - * characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', - * '(', ')' and'.'. Note that the name cannot end with '.' + * The table name on which the data masking rule is applied. */ - managedResourceGroupName?: string; + tableName: string; /** - * Resource provisioning state - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The column name on which the data masking rule is applied. */ - readonly provisioningState?: string; + columnName: string; /** - * Login for workspace SQL active directory administrator + * The masking function that is used for the data masking rule. Possible values include: + * 'Default', 'CCN', 'Email', 'Number', 'SSN', 'Text' */ - sqlAdministratorLogin?: string; + maskingFunction: DataMaskingFunction; /** - * Virtual Network profile + * The numberFrom property of the masking rule. Required if maskingFunction is set to Number, + * otherwise this parameter will be ignored. */ - virtualNetworkProfile?: VirtualNetworkProfile; + numberFrom?: string; /** - * Connectivity endpoints + * The numberTo property of the data masking rule. Required if maskingFunction is set to Number, + * otherwise this parameter will be ignored. */ - connectivityEndpoints?: { [propertyName: string]: string }; + numberTo?: string; /** - * Setting this to 'default' will ensure that all compute for this workspace is in a virtual - * network managed on behalf of the user. + * If maskingFunction is set to Text, the number of characters to show unmasked in the beginning + * of the string. Otherwise, this parameter will be ignored. */ - managedVirtualNetwork?: string; + prefixSize?: string; /** - * Private endpoint connections to the workspace + * If maskingFunction is set to Text, the number of characters to show unmasked at the end of the + * string. Otherwise, this parameter will be ignored. */ - privateEndpointConnections?: PrivateEndpointConnection[]; + suffixSize?: string; /** - * The encryption details of the workspace + * If maskingFunction is set to Text, the character to use for masking the unexposed part of the + * string. Otherwise, this parameter will be ignored. */ - encryption?: EncryptionDetails; + replacementString?: string; /** - * The workspace unique identifier + * The location of the data masking rule. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly workspaceUID?: string; + readonly location?: string; /** - * Workspace level configs and feature flags + * The kind of Data Masking Rule. Metadata, used for Azure portal. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly extraProperties?: { [propertyName: string]: any }; - /** - * Managed Virtual Network Settings - */ - managedVirtualNetworkSettings?: ManagedVirtualNetworkSettings; + readonly kind?: string; +} + +/** + * A sensitivity label update operation. + */ +export interface SensitivityLabelUpdate extends ProxyResource { /** - * Git integration settings + * Possible values include: 'set', 'remove' */ - workspaceRepositoryConfiguration?: WorkspaceRepositoryConfiguration; + op: SensitivityLabelUpdateKind; /** - * Purview Configuration + * Schema name of the column to update. */ - purviewConfiguration?: PurviewConfiguration; + schema: string; /** - * The ADLA resource ID. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Table name of the column to update. */ - readonly adlaResourceId?: string; + table: string; /** - * Enable or Disable pubic network access to workspace. Possible values include: 'Enabled', - * 'Disabled' + * Column name to update. */ - publicNetworkAccess?: WorkspacePublicNetworkAccess; + column: string; /** - * Identity of the workspace + * The sensitivity label information to apply on a column. */ - identity?: ManagedIdentity; + sensitivityLabel?: SensitivityLabel; } /** - * Workspace active directory administrator + * A list of sensitivity label update operations. + */ +export interface SensitivityLabelUpdateList { + operations?: SensitivityLabelUpdate[]; +} + +/** + * A recommended sensitivity label update operation. */ -export interface WorkspaceAadAdminInfo extends BaseResource { +export interface RecommendedSensitivityLabelUpdate extends ProxyResource { /** - * Tenant ID of the workspace active directory administrator + * Possible values include: 'enable', 'disable' */ - tenantId?: string; + op: RecommendedSensitivityLabelUpdateKind; /** - * Login of the workspace active directory administrator + * Schema name of the column to update. */ - login?: string; + schema: string; /** - * Workspace active directory administrator type + * Table name of the column to update. */ - administratorType?: string; + table: string; /** - * Object ID of the workspace active directory administrator - */ - sid?: string; -} - -/** - * Workspace patch details - */ -export interface WorkspacePatchInfo { - /** - * Resource tags - */ - tags?: { [propertyName: string]: string }; - /** - * The identity of the workspace - */ - identity?: ManagedIdentity; - /** - * SQL administrator login password - */ - sqlAdministratorLoginPassword?: string; - /** - * Managed Virtual Network Settings - */ - managedVirtualNetworkSettings?: ManagedVirtualNetworkSettings; - /** - * Git integration settings - */ - workspaceRepositoryConfiguration?: WorkspaceRepositoryConfiguration; - /** - * Purview Configuration - */ - purviewConfiguration?: PurviewConfiguration; - /** - * Resource provisioning state - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: string; - /** - * The encryption details of the workspace - */ - encryption?: EncryptionDetails; - /** - * Enable or Disable pubic network access to workspace. Possible values include: 'Enabled', - * 'Disabled' - */ - publicNetworkAccess?: WorkspacePublicNetworkAccess; -} - -/** - * Grant sql control to managed identity - */ -export interface ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity { - /** - * Desired state. Possible values include: 'Enabled', 'Disabled' - */ - desiredState?: DesiredState; - /** - * Actual state. Possible values include: 'Enabling', 'Enabled', 'Disabling', 'Disabled', - * 'Unknown' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Column name to update. */ - readonly actualState?: ActualState; + column: string; } /** - * Sql Control Settings for workspace managed identity - * @summary Managed Identity Sql Control Settings + * A list of recommended sensitivity label update operations. */ -export interface ManagedIdentitySqlControlSettingsModel extends ProxyResource { - /** - * Grant sql control to managed identity - */ - grantSqlControlToManagedIdentity?: ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity; +export interface RecommendedSensitivityLabelUpdateList { + operations?: RecommendedSensitivityLabelUpdate[]; } /** - * A restorable dropped Sql pool + * A server blob auditing policy. */ -export interface RestorableDroppedSqlPool extends ProxyResource { +export interface ServerBlobAuditingPolicy extends ProxyResource { /** - * The geo-location where the resource lives - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the state of the policy. If state is Enabled, storageEndpoint or + * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' */ - readonly location?: string; + state: BlobAuditingPolicyState; /** - * The name of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state + * is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ - readonly databaseName?: string; + storageEndpoint?: string; /** - * The edition of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the + * storageAccountAccessKey will use SQL server system-assigned managed identity to access the + * storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data + * Contributor' RBAC role to the server identity. + * For more information, see [Auditing to storage using Managed Identity + * authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ - readonly edition?: string; + storageAccountAccessKey?: string; /** - * The max size in bytes of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the number of days to keep in the audit logs in the storage account. */ - readonly maxSizeBytes?: string; + retentionDays?: number; /** - * The service level objective name of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the Actions-Groups and Actions to audit. + * + * The 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: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing + * from the Azure portal. + * + * The 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): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These 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. + * + * For 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). + * + * For 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: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note 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. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For 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) */ - readonly serviceLevelObjective?: string; + auditActionsAndGroups?: string[]; /** - * The elastic pool name of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the blob storage subscription Id. */ - readonly elasticPoolName?: string; + storageAccountSubscriptionId?: string; /** - * The creation date of the database (ISO8601 format) - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - readonly creationDate?: Date; + isStorageSecondaryKeyInUse?: boolean; /** - * The deletion date of the database (ISO8601 format) - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and + * 'isAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' + * diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT + * 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 + * + * For more information, see [Diagnostic Settings REST + * API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) */ - readonly deletionDate?: Date; + isAzureMonitorTargetEnabled?: boolean; /** - * The earliest restore date of the database (ISO8601 format) - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced + * to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ - readonly earliestRestoreDate?: Date; + queueDelayMs?: number; } /** - * Optional Parameters. + * An extended server blob auditing policy. */ -export interface BigDataPoolsCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { /** - * Whether to stop any running jobs in the Big Data pool. Default value: false. + * Specifies condition of where clause when creating an audit. */ - force?: boolean; -} - -/** - * Optional Parameters. - */ -export interface BigDataPoolsBeginCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + predicateExpression?: string; /** - * Whether to stop any running jobs in the Big Data pool. Default value: false. + * Specifies the state of the policy. If state is Enabled, storageEndpoint or + * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' */ - force?: boolean; -} - -/** - * Optional Parameters. - */ -export interface IntegrationRuntimesGetOptionalParams extends msRest.RequestOptionsBase { + state: BlobAuditingPolicyState; /** - * ETag of the integration runtime entity. Should only be specified for get. If the ETag matches - * the existing entity tag, or if * was provided, then no content will be returned. + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state + * is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ - ifNoneMatch?: string; -} - -/** - * Optional Parameters. - */ -export interface IntegrationRuntimesCreateOptionalParams extends msRest.RequestOptionsBase { + storageEndpoint?: string; /** - * ETag of the integration runtime entity. Should only be specified for update, for which it - * should match existing entity or can be * for unconditional update. - */ - ifMatch?: string; -} - -/** - * Optional Parameters. - */ -export interface IntegrationRuntimesBeginCreateOptionalParams extends msRest.RequestOptionsBase { + * Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the + * storageAccountAccessKey will use SQL server system-assigned managed identity to access the + * storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data + * Contributor' RBAC role to the server identity. + * For more information, see [Auditing to storage using Managed Identity + * authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + */ + storageAccountAccessKey?: string; /** - * ETag of the integration runtime entity. Should only be specified for update, for which it - * should match existing entity or can be * for unconditional update. + * Specifies the number of days to keep in the audit logs in the storage account. */ - ifMatch?: string; -} - -/** - * Optional Parameters. - */ -export interface IntegrationRuntimeObjectMetadataListOptionalParams extends msRest.RequestOptionsBase { + retentionDays?: number; /** - * The parameters for getting a SSIS object metadata. + * Specifies the Actions-Groups and Actions to audit. + * + * The 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: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing + * from the Azure portal. + * + * The 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): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These 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. + * + * For 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). + * + * For 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: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note 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. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For 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) */ - getMetadataRequest?: GetSsisObjectMetadataRequest; -} - -/** - * Optional Parameters. - */ -export interface SqlPoolSensitivityLabelsListCurrentOptionalParams extends msRest.RequestOptionsBase { + auditActionsAndGroups?: string[]; /** - * An OData filter expression that filters elements in the collection. + * Specifies the blob storage subscription Id. */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface SqlPoolSensitivityLabelsListRecommendedOptionalParams extends msRest.RequestOptionsBase { + storageAccountSubscriptionId?: string; /** - * Specifies whether to include disabled recommendations or not. + * Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - includeDisabledRecommendations?: boolean; + isStorageSecondaryKeyInUse?: boolean; /** - * An OData query option to indicate how many elements to skip in the collection. + * Specifies whether audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and + * 'isAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' + * diagnostic logs category on the database should be also created. + * Note that for server level audit you should use the 'master' database as {databaseName}. + * + * Diagnostic Settings URI format: + * PUT + * 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 + * + * For more information, see [Diagnostic Settings REST + * API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) */ - skipToken?: string; + isAzureMonitorTargetEnabled?: boolean; /** - * An OData filter expression that filters elements in the collection. + * Specifies the amount of time in milliseconds that can elapse before audit actions are forced + * to be processed. + * The default minimum value is 1000 (1 second). The maximum is 2,147,483,647. */ - filter?: string; + queueDelayMs?: number; } /** - * Optional Parameters. + * Workspace managed Sql server security alert policy. */ -export interface SqlPoolSensitivityLabelsListCurrentNextOptionalParams extends msRest.RequestOptionsBase { +export interface ServerSecurityAlertPolicy extends ProxyResource { /** - * An OData filter expression that filters elements in the collection. + * Specifies the state of the policy, whether it is enabled or disabled or a policy has not been + * applied yet on the specific server. Possible values include: 'New', 'Enabled', 'Disabled' */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface SqlPoolSensitivityLabelsListRecommendedNextOptionalParams extends msRest.RequestOptionsBase { + state: SecurityAlertPolicyState; /** - * Specifies whether to include disabled recommendations or not. + * Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, + * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action */ - includeDisabledRecommendations?: boolean; + disabledAlerts?: string[]; /** - * An OData query option to indicate how many elements to skip in the collection. + * Specifies an array of e-mail addresses to which the alert is sent. */ - skipToken?: string; + emailAddresses?: string[]; /** - * An OData filter expression that filters elements in the collection. + * Specifies that the alert is sent to the account administrators. */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface SqlPoolSchemasListOptionalParams extends msRest.RequestOptionsBase { + emailAccountAdmins?: boolean; /** - * An OData filter expression that filters elements in the collection. + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob + * storage will hold all Threat Detection audit logs. */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface SqlPoolSchemasListNextOptionalParams extends msRest.RequestOptionsBase { + storageEndpoint?: string; /** - * An OData filter expression that filters elements in the collection. + * Specifies the identifier key of the Threat Detection audit storage account. */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface SqlPoolTablesListBySchemaOptionalParams extends msRest.RequestOptionsBase { + storageAccountAccessKey?: string; /** - * An OData filter expression that filters elements in the collection. + * Specifies the number of days to keep in the Threat Detection audit logs. */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface SqlPoolTablesListBySchemaNextOptionalParams extends msRest.RequestOptionsBase { + retentionDays?: number; /** - * An OData filter expression that filters elements in the collection. + * Specifies the UTC creation time of the policy. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - filter?: string; + readonly creationTime?: Date; } /** - * Optional Parameters. + * A server vulnerability assessment. */ -export interface SqlPoolTableColumnsListByTableNameOptionalParams extends msRest.RequestOptionsBase { +export interface ServerVulnerabilityAssessment extends ProxyResource { /** - * An OData filter expression that filters elements in the collection. + * A blob storage container path to hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface SqlPoolTableColumnsListByTableNameNextOptionalParams extends msRest.RequestOptionsBase { + storageContainerPath: string; /** - * An OData filter expression that filters elements in the collection. + * 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. */ - filter?: string; + storageContainerSasKey?: string; + /** + * Specifies the identifier key of the storage account for vulnerability assessment scan results. + * If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. + */ + storageAccountAccessKey?: string; + /** + * The recurring scans settings + */ + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; } /** - * An interface representing SynapseManagementClientOptions. + * The server encryption protector. */ -export interface SynapseManagementClientOptions extends AzureServiceClientOptions { - baseUri?: string; -} - -/** - * @interface - * Collection of Big Data pool information - * @summary Collection of Big Data pools - * @extends Array - */ -export interface BigDataPoolResourceInfoListResult extends Array { +export interface EncryptionProtector extends ProxyResource { /** - * Link to the next page of results + * Kind of encryption protector. This is metadata used for the Azure portal experience. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - nextLink?: string; -} - -/** - * @interface - * List of IP firewall rules - * @extends Array - */ -export interface IpFirewallRuleInfoListResult extends Array { + readonly kind?: string; /** - * Link to next page of results + * Resource location. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - nextLink?: string; -} - -/** - * @interface - * A list of integration runtime resources. - * @extends Array - */ -export interface IntegrationRuntimeListResponse extends Array { + readonly location?: string; /** - * The link to the next page of results, if any remaining results exist. + * Subregion of the encryption protector. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - nextLink?: string; -} - -/** - * @interface - * List of keys - * @extends Array - */ -export interface KeyInfoListResult extends Array { + readonly subregion?: string; /** - * Link to the next page of results + * The name of the server key. */ - nextLink?: string; -} - -/** - * @interface - * A list of Library resources. - * @extends Array - */ -export interface LibraryListResponse extends Array { + serverKeyName?: string; /** - * The link to the next page of results, if any remaining results exist. + * The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: + * 'ServiceManaged', 'AzureKeyVault' */ - nextLink?: string; -} - -/** - * @interface - * A list of private endpoint connections - * @extends Array - */ -export interface PrivateEndpointConnectionList extends Array { + serverKeyType: ServerKeyType; /** - * Link to retrieve next page of results. + * The URI of the server key. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of private link resources - * @extends Array - */ -export interface PrivateLinkResourceListResult extends Array { + readonly uri?: string; /** - * Link to retrieve next page of results. + * Thumbprint of the server key. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly thumbprint?: string; } /** - * @interface - * List of privateLinkHubs - * @extends Array + * Represents server metrics. */ -export interface PrivateLinkHubInfoListResult extends Array { +export interface ServerUsage { /** - * Link to the next page of results + * Name of the server usage metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - nextLink?: string; + readonly name?: string; + /** + * The name of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resourceName?: string; + /** + * The metric display name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly displayName?: string; + /** + * The current value of the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly currentValue?: number; + /** + * The current limit of the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly limit?: number; + /** + * The units of the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly unit?: string; + /** + * The next reset time for the metric (ISO8601 format). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextResetTime?: Date; } /** - * @interface - * An interface representing the - * PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse. - * @extends Array + * A recoverable sql pool */ -export interface PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse extends Array { - nextLink?: string; +export interface RecoverableSqlPool extends ProxyResource { + /** + * The edition of the database + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly edition?: string; + /** + * The service level objective name of the database + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly serviceLevelObjective?: string; + /** + * The elastic pool name of the database + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly elasticPoolName?: string; + /** + * The last available backup date of the database (ISO8601 format) + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastAvailableBackupDate?: Date; } /** - * @interface - * List of SQL pools - * @summary SQL pool collection - * @extends Array + * Details of the data lake storage account associated with the workspace */ -export interface SqlPoolInfoListResult extends Array { +export interface DataLakeStorageAccountDetails { /** - * Link to the next page of results + * Account URL */ - nextLink?: string; + accountUrl?: string; + /** + * Filesystem name + */ + filesystem?: string; } /** - * @interface - * The response to a list geo backup policies request. - * @extends Array + * Virtual Network Profile */ -export interface GeoBackupPolicyListResult extends Array { +export interface VirtualNetworkProfile { + /** + * Subnet ID used for computes in workspace + */ + computeSubnetId?: string; } /** - * @interface - * A list of long term retention backups. - * @extends Array + * Details of the customer managed key associated with the workspace */ -export interface RestorePointListResult extends Array { +export interface WorkspaceKeyDetails { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Workspace Key sub-resource name */ - readonly nextLink?: string; + name?: string; + /** + * Workspace Key sub-resource key vault url + */ + keyVaultUrl?: string; } /** - * @interface - * Represents the response to a List Sql pool replication link request. - * @extends Array + * Key encryption key properties */ -export interface ReplicationLinkListResult extends Array { +export interface KekIdentityProperties { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * User assigned identity resource Id */ - readonly nextLink?: string; + userAssignedIdentity?: string; + /** + * Boolean specifying whether to use system assigned identity or not + */ + useSystemAssignedIdentity?: any; } /** - * @interface - * A list of transparent data encryption configurations. - * @extends Array + * Details of the customer managed key associated with the workspace */ -export interface TransparentDataEncryptionListResult extends Array { +export interface CustomerManagedKeyDetails { /** - * Link to retrieve next page of results. + * The customer managed key status on the workspace * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly status?: string; + /** + * The key object of the workspace + */ + key?: WorkspaceKeyDetails; + /** + * Key encryption key + */ + kekIdentity?: KekIdentityProperties; } /** - * @interface - * A list of Sql pool auditing settings. - * @extends Array + * Details of the encryption associated with the workspace */ -export interface SqlPoolBlobAuditingPolicyListResult extends Array { +export interface EncryptionDetails { /** - * Link to retrieve next page of results. + * Double Encryption enabled * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly doubleEncryptionEnabled?: boolean; + /** + * Customer Managed Key Details + */ + cmk?: CustomerManagedKeyDetails; } /** - * @interface - * The response to a list Sql pool operations request - * @extends Array + * Managed Virtual Network Settings */ -export interface SqlPoolBlobAuditingPolicySqlPoolOperationListResult extends Array { +export interface ManagedVirtualNetworkSettings { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Prevent Data Exfiltration */ - readonly nextLink?: string; + preventDataExfiltration?: boolean; + /** + * Linked Access Check On Target Resource + */ + linkedAccessCheckOnTargetResource?: boolean; + /** + * Allowed Aad Tenant Ids For Linking + */ + allowedAadTenantIdsForLinking?: string[]; } /** - * @interface - * The response to a list Sql pool usages request. - * @extends Array + * Git integration settings */ -export interface SqlPoolUsageListResult extends Array { +export interface WorkspaceRepositoryConfiguration { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Type of workspace repositoryID configuration. Example WorkspaceVSTSConfiguration, + * WorkspaceGitHubConfiguration */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of sensitivity labels. - * @extends Array - */ -export interface SensitivityLabelListResult extends Array { + type?: string; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * GitHub Enterprise host name. For example: https://github.mydomain.com */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of Sql pool schemas. - * @extends Array - */ -export interface SqlPoolSchemaListResult extends Array { + hostName?: string; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Account name */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of Sql pool tables. - * @extends Array - */ -export interface SqlPoolTableListResult extends Array { + accountName?: string; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * VSTS project name */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of Sql pool columns. - * @extends Array - */ -export interface SqlPoolColumnListResult extends Array { + projectName?: string; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Repository name */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of the Sql pool's vulnerability assessments. - * @extends Array - */ -export interface SqlPoolVulnerabilityAssessmentListResult extends Array { + repositoryName?: string; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Collaboration branch */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of vulnerability assessment scan records. - * @extends Array - */ -export interface VulnerabilityAssessmentScanRecordListResult extends Array { + collaborationBranch?: string; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Root folder to use in the repository */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of SQL pool security alert policies. - * @extends Array - */ -export interface ListSqlPoolSecurityAlertPolicies extends Array { + rootFolder?: string; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The last commit ID */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of sql pool extended auditing settings. - * @extends Array - */ -export interface ExtendedSqlPoolBlobAuditingPolicyListResult extends Array { + lastCommitId?: string; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The VSTS tenant ID */ - readonly nextLink?: string; -} - -/** - * @interface - * The response to a list data masking rules request. - * @extends Array - */ -export interface DataMaskingRuleListResult extends Array { + tenantId?: string; } /** - * @interface - * A list of workload groups. - * @extends Array + * Purview Configuration */ -export interface WorkloadGroupListResult extends Array { +export interface PurviewConfiguration { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Purview Resource ID */ - readonly nextLink?: string; + purviewResourceId?: string; } /** - * @interface - * A list of workload classifiers for a workload group. - * @extends Array + * Initial workspace AAD admin properties for a CSP subscription */ -export interface WorkloadClassifierListResult extends Array { +export interface CspWorkspaceAdminProperties { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * AAD object ID of initial workspace admin */ - readonly nextLink?: string; + initialWorkspaceAdminObjectId?: string; } /** - * @interface - * A list of server auditing settings. - * @extends Array + * The workspace managed identity */ -export interface ServerBlobAuditingPolicyListResult extends Array { +export interface ManagedIdentity { /** - * Link to retrieve next page of results. + * The principal ID of the workspace managed identity * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of server extended auditing settings. - * @extends Array - */ -export interface ExtendedServerBlobAuditingPolicyListResult extends Array { + readonly principalId?: string; /** - * Link to retrieve next page of results. + * The tenant ID of the workspace managed identity * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of the workspace managed sql server's security alert policies. - * @extends Array - */ -export interface ServerSecurityAlertPolicyListResult extends Array { + readonly tenantId?: string; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The type of managed identity for the workspace. Possible values include: 'None', + * 'SystemAssigned' */ - readonly nextLink?: string; + type?: ResourceIdentityType; } /** - * @interface - * A list of the server's vulnerability assessments. - * @extends Array + * A workspace */ -export interface ServerVulnerabilityAssessmentListResult extends Array { +export interface Workspace extends TrackedResource { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Workspace default data lake storage account details */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of server encryption protectors. - * @extends Array - */ -export interface EncryptionProtectorListResult extends Array { + defaultDataLakeStorage?: DataLakeStorageAccountDetails; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * SQL administrator login password */ - readonly nextLink?: string; -} - -/** - * @interface - * Represents the response to a list server metrics request. - * @extends Array - */ -export interface ServerUsageListResult extends Array { + sqlAdministratorLoginPassword?: string; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Workspace managed resource group. The resource group name uniquely identifies the resource + * group within the user subscriptionId. The resource group name must be no longer than 90 + * characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', + * '(', ')' and'.'. Note that the name cannot end with '.' */ - readonly nextLink?: string; -} - -/** - * @interface - * The response to a list recoverable sql pools request - * @extends Array - */ -export interface RecoverableSqlPoolListResult extends Array { + managedResourceGroupName?: string; /** - * Link to retrieve next page of results. + * Resource provisioning state * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; -} - -/** - * @interface - * List of workspaces - * @extends Array - */ -export interface WorkspaceInfoListResult extends Array { + readonly provisioningState?: string; /** - * Link to the next page of results + * Login for workspace SQL active directory administrator */ - nextLink?: string; -} - -/** - * @interface - * The response to a list restorable dropped Sql pools request - * @extends Array - */ -export interface RestorableDroppedSqlPoolListResult extends Array { -} - -/** - * Defines values for NodeSize. - * Possible values include: 'None', 'Small', 'Medium', 'Large', 'XLarge', 'XXLarge', 'XXXLarge' - * @readonly - * @enum {string} - */ -export type NodeSize = 'None' | 'Small' | 'Medium' | 'Large' | 'XLarge' | 'XXLarge' | 'XXXLarge'; - -/** - * Defines values for NodeSizeFamily. - * Possible values include: 'None', 'MemoryOptimized' + sqlAdministratorLogin?: string; + /** + * Virtual Network profile + */ + virtualNetworkProfile?: VirtualNetworkProfile; + /** + * Connectivity endpoints + */ + connectivityEndpoints?: { [propertyName: string]: string }; + /** + * Setting this to 'default' will ensure that all compute for this workspace is in a virtual + * network managed on behalf of the user. + */ + managedVirtualNetwork?: string; + /** + * Private endpoint connections to the workspace + */ + privateEndpointConnections?: PrivateEndpointConnection[]; + /** + * The encryption details of the workspace + */ + encryption?: EncryptionDetails; + /** + * The workspace unique identifier + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly workspaceUID?: string; + /** + * Workspace level configs and feature flags + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly extraProperties?: { [propertyName: string]: any }; + /** + * Managed Virtual Network Settings + */ + managedVirtualNetworkSettings?: ManagedVirtualNetworkSettings; + /** + * Git integration settings + */ + workspaceRepositoryConfiguration?: WorkspaceRepositoryConfiguration; + /** + * Purview Configuration + */ + purviewConfiguration?: PurviewConfiguration; + /** + * The ADLA resource ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly adlaResourceId?: string; + /** + * Enable or Disable public network access to workspace. Possible values include: 'Enabled', + * 'Disabled' + */ + publicNetworkAccess?: WorkspacePublicNetworkAccess; + /** + * Initial workspace AAD admin properties for a CSP subscription + */ + cspWorkspaceAdminProperties?: CspWorkspaceAdminProperties; + /** + * Identity of the workspace + */ + identity?: ManagedIdentity; +} + +/** + * Workspace active directory administrator + */ +export interface WorkspaceAadAdminInfo extends ProxyResource { + /** + * Tenant ID of the workspace active directory administrator + */ + tenantId?: string; + /** + * Login of the workspace active directory administrator + */ + login?: string; + /** + * Workspace active directory administrator type + */ + administratorType?: string; + /** + * Object ID of the workspace active directory administrator + */ + sid?: string; +} + +/** + * Workspace patch details + */ +export interface WorkspacePatchInfo { + /** + * Resource tags + */ + tags?: { [propertyName: string]: string }; + /** + * The identity of the workspace + */ + identity?: ManagedIdentity; + /** + * SQL administrator login password + */ + sqlAdministratorLoginPassword?: string; + /** + * Managed Virtual Network Settings + */ + managedVirtualNetworkSettings?: ManagedVirtualNetworkSettings; + /** + * Git integration settings + */ + workspaceRepositoryConfiguration?: WorkspaceRepositoryConfiguration; + /** + * Purview Configuration + */ + purviewConfiguration?: PurviewConfiguration; + /** + * Resource provisioning state + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * The encryption details of the workspace + */ + encryption?: EncryptionDetails; + /** + * Enable or Disable public network access to workspace. Possible values include: 'Enabled', + * 'Disabled' + */ + publicNetworkAccess?: WorkspacePublicNetworkAccess; +} + +/** + * Grant sql control to managed identity + */ +export interface ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity { + /** + * Desired state. Possible values include: 'Enabled', 'Disabled' + */ + desiredState?: DesiredState; + /** + * Actual state. Possible values include: 'Enabling', 'Enabled', 'Disabling', 'Disabled', + * 'Unknown' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly actualState?: ActualState; +} + +/** + * Sql Control Settings for workspace managed identity + * @summary Managed Identity Sql Control Settings + */ +export interface ManagedIdentitySqlControlSettingsModel extends ProxyResource { + /** + * Grant sql control to managed identity + */ + grantSqlControlToManagedIdentity?: ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity; +} + +/** + * A restorable dropped Sql pool + */ +export interface RestorableDroppedSqlPool extends ProxyResource { + /** + * The geo-location where the resource lives + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * The name of the database + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly databaseName?: string; + /** + * The edition of the database + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly edition?: string; + /** + * The max size in bytes of the database + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly maxSizeBytes?: string; + /** + * The service level objective name of the database + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly serviceLevelObjective?: string; + /** + * The elastic pool name of the database + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly elasticPoolName?: string; + /** + * The creation date of the database (ISO8601 format) + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly creationDate?: Date; + /** + * The deletion date of the database (ISO8601 format) + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly deletionDate?: Date; + /** + * The earliest restore date of the database (ISO8601 format) + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly earliestRestoreDate?: Date; +} + +/** + * Optional Parameters. + */ +export interface BigDataPoolsCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether to stop any running jobs in the Big Data pool. Default value: false. + */ + force?: boolean; +} + +/** + * Optional Parameters. + */ +export interface BigDataPoolsBeginCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether to stop any running jobs in the Big Data pool. Default value: false. + */ + force?: boolean; +} + +/** + * Optional Parameters. + */ +export interface IntegrationRuntimesGetOptionalParams extends msRest.RequestOptionsBase { + /** + * ETag of the integration runtime entity. Should only be specified for get. If the ETag matches + * the existing entity tag, or if * was provided, then no content will be returned. + */ + ifNoneMatch?: string; +} + +/** + * Optional Parameters. + */ +export interface IntegrationRuntimesCreateOptionalParams extends msRest.RequestOptionsBase { + /** + * ETag of the integration runtime entity. Should only be specified for update, for which it + * should match existing entity or can be * for unconditional update. + */ + ifMatch?: string; +} + +/** + * Optional Parameters. + */ +export interface IntegrationRuntimesBeginCreateOptionalParams extends msRest.RequestOptionsBase { + /** + * ETag of the integration runtime entity. Should only be specified for update, for which it + * should match existing entity or can be * for unconditional update. + */ + ifMatch?: string; +} + +/** + * Optional Parameters. + */ +export interface IntegrationRuntimeObjectMetadataListOptionalParams extends msRest.RequestOptionsBase { + /** + * The parameters for getting a SSIS object metadata. + */ + getMetadataRequest?: GetSsisObjectMetadataRequest; +} + +/** + * Optional Parameters. + */ +export interface KustoPoolsCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. + * Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + */ + ifMatch?: string; + /** + * Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto + * Pool. Other values will result in a 412 Pre-condition Failed response. + */ + ifNoneMatch?: string; +} + +/** + * Optional Parameters. + */ +export interface KustoPoolsUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. + * Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + */ + ifMatch?: string; +} + +/** + * Optional Parameters. + */ +export interface KustoPoolsBeginCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. + * Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + */ + ifMatch?: string; + /** + * Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto + * Pool. Other values will result in a 412 Pre-condition Failed response. + */ + ifNoneMatch?: string; +} + +/** + * Optional Parameters. + */ +export interface KustoPoolsBeginUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. + * Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. + */ + ifMatch?: string; +} + +/** + * Optional Parameters. + */ +export interface SqlPoolSensitivityLabelsListCurrentOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface SqlPoolSensitivityLabelsListRecommendedOptionalParams extends msRest.RequestOptionsBase { + /** + * Specifies whether to include disabled recommendations or not. + */ + includeDisabledRecommendations?: boolean; + /** + * An OData query option to indicate how many elements to skip in the collection. + */ + skipToken?: string; + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface SqlPoolSensitivityLabelsListCurrentNextOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface SqlPoolSensitivityLabelsListRecommendedNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Specifies whether to include disabled recommendations or not. + */ + includeDisabledRecommendations?: boolean; + /** + * An OData query option to indicate how many elements to skip in the collection. + */ + skipToken?: string; + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface SqlPoolSchemasListOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface SqlPoolSchemasListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface SqlPoolTablesListBySchemaOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface SqlPoolTablesListBySchemaNextOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface SqlPoolTableColumnsListByTableNameOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface SqlPoolTableColumnsListByTableNameNextOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * An interface representing SynapseManagementClientOptions. + */ +export interface SynapseManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * Collection of Big Data pool information + * @summary Collection of Big Data pools + * @extends Array + */ +export interface BigDataPoolResourceInfoListResult extends Array { + /** + * Link to the next page of results + */ + nextLink?: string; +} + +/** + * @interface + * List of IP firewall rules + * @extends Array + */ +export interface IpFirewallRuleInfoListResult extends Array { + /** + * Link to next page of results + */ + nextLink?: string; +} + +/** + * @interface + * A list of integration runtime resources. + * @extends Array + */ +export interface IntegrationRuntimeListResponse extends Array { + /** + * The link to the next page of results, if any remaining results exist. + */ + nextLink?: string; +} + +/** + * @interface + * List of keys + * @extends Array + */ +export interface KeyInfoListResult extends Array { + /** + * Link to the next page of results + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the OperationListResult. + * @summary Result of the request to list REST API operations. It contains a list of operations and + * a URL nextLink to get the next set of results. + * @extends Array + */ +export interface OperationListResult extends Array { + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * The list of the SKU descriptions + * @extends Array + */ +export interface SkuDescriptionList extends Array { +} + +/** + * @interface + * List of available SKUs for a Kusto Pool. + * @extends Array + */ +export interface ListResourceSkusResult extends Array { +} + +/** + * @interface + * The list of language extension objects. + * @extends Array + */ +export interface LanguageExtensionsList extends Array { +} + +/** + * @interface + * The list Kusto database principals operation response. + * @extends Array + */ +export interface FollowerDatabaseListResult extends Array { +} + +/** + * @interface + * The list attached database configurations operation response. + * @extends Array + */ +export interface AttachedDatabaseConfigurationListResult extends Array { +} + +/** + * @interface + * The list Kusto databases operation response. + * @extends Array + */ +export interface DatabaseListResult extends Array { +} + +/** + * @interface + * The list Kusto data connections operation response. + * @extends Array + */ +export interface DataConnectionListResult extends Array { +} + +/** + * @interface + * The list Kusto cluster principal assignments operation response. + * @extends Array + */ +export interface ClusterPrincipalAssignmentListResult extends Array { +} + +/** + * @interface + * The list Kusto database principal assignments operation response. + * @extends Array + */ +export interface DatabasePrincipalAssignmentListResult extends Array { +} + +/** + * @interface + * A list of Library resources. + * @extends Array + */ +export interface LibraryListResponse extends Array { + /** + * The link to the next page of results, if any remaining results exist. + */ + nextLink?: string; +} + +/** + * @interface + * A list of private endpoint connections + * @extends Array + */ +export interface PrivateEndpointConnectionList extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of private link resources + * @extends Array + */ +export interface PrivateLinkResourceListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of privateLinkHubs + * @extends Array + */ +export interface PrivateLinkHubInfoListResult extends Array { + /** + * Link to the next page of results + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the + * PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse. + * @extends Array + */ +export interface PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse extends Array { + nextLink?: string; +} + +/** + * @interface + * List of SQL pools + * @summary SQL pool collection + * @extends Array + */ +export interface SqlPoolInfoListResult extends Array { + /** + * Link to the next page of results + */ + nextLink?: string; +} + +/** + * @interface + * The response to a list geo backup policies request. + * @extends Array + */ +export interface GeoBackupPolicyListResult extends Array { +} + +/** + * @interface + * A list of long term retention backups. + * @extends Array + */ +export interface RestorePointListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Represents the response to a List Sql pool replication link request. + * @extends Array + */ +export interface ReplicationLinkListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of transparent data encryption configurations. + * @extends Array + */ +export interface TransparentDataEncryptionListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of Sql pool auditing settings. + * @extends Array + */ +export interface SqlPoolBlobAuditingPolicyListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * The response to a list Sql pool operations request + * @extends Array + */ +export interface SqlPoolBlobAuditingPolicySqlPoolOperationListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * The response to a list Sql pool usages request. + * @extends Array + */ +export interface SqlPoolUsageListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of sensitivity labels. + * @extends Array + */ +export interface SensitivityLabelListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of Sql pool schemas. + * @extends Array + */ +export interface SqlPoolSchemaListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of Sql pool tables. + * @extends Array + */ +export interface SqlPoolTableListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of Sql pool columns. + * @extends Array + */ +export interface SqlPoolColumnListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of the Sql pool's vulnerability assessments. + * @extends Array + */ +export interface SqlPoolVulnerabilityAssessmentListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of vulnerability assessment scan records. + * @extends Array + */ +export interface VulnerabilityAssessmentScanRecordListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of SQL pool security alert policies. + * @extends Array + */ +export interface ListSqlPoolSecurityAlertPolicies extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of sql pool extended auditing settings. + * @extends Array + */ +export interface ExtendedSqlPoolBlobAuditingPolicyListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * The response to a list data masking rules request. + * @extends Array + */ +export interface DataMaskingRuleListResult extends Array { +} + +/** + * @interface + * A list of workload groups. + * @extends Array + */ +export interface WorkloadGroupListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of workload classifiers for a workload group. + * @extends Array + */ +export interface WorkloadClassifierListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of server auditing settings. + * @extends Array + */ +export interface ServerBlobAuditingPolicyListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of server extended auditing settings. + * @extends Array + */ +export interface ExtendedServerBlobAuditingPolicyListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of the workspace managed sql server's security alert policies. + * @extends Array + */ +export interface ServerSecurityAlertPolicyListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of the server's vulnerability assessments. + * @extends Array + */ +export interface ServerVulnerabilityAssessmentListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of server encryption protectors. + * @extends Array + */ +export interface EncryptionProtectorListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Represents the response to a list server metrics request. + * @extends Array + */ +export interface ServerUsageListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * The response to a list recoverable sql pools request + * @extends Array + */ +export interface RecoverableSqlPoolListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * List of workspaces + * @extends Array + */ +export interface WorkspaceInfoListResult extends Array { + /** + * Link to the next page of results + */ + nextLink?: string; +} + +/** + * @interface + * The response to a list restorable dropped Sql pools request + * @extends Array + */ +export interface RestorableDroppedSqlPoolListResult extends Array { +} + +/** + * Defines values for NodeSize. + * Possible values include: 'None', 'Small', 'Medium', 'Large', 'XLarge', 'XXLarge', 'XXXLarge' + * @readonly + * @enum {string} + */ +export type NodeSize = 'None' | 'Small' | 'Medium' | 'Large' | 'XLarge' | 'XXLarge' | 'XXXLarge'; + +/** + * Defines values for NodeSizeFamily. + * Possible values include: 'None', 'MemoryOptimized', 'HardwareAcceleratedFPGA', + * 'HardwareAcceleratedGPU' + * @readonly + * @enum {string} + */ +export type NodeSizeFamily = 'None' | 'MemoryOptimized' | 'HardwareAcceleratedFPGA' | 'HardwareAcceleratedGPU'; + +/** + * Defines values for ProvisioningState. + * Possible values include: 'Provisioning', 'Succeeded', 'Deleting', 'Failed', 'DeleteError' + * @readonly + * @enum {string} + */ +export type ProvisioningState = 'Provisioning' | 'Succeeded' | 'Deleting' | 'Failed' | 'DeleteError'; + +/** + * Defines values for IntegrationRuntimeType. + * Possible values include: 'Managed', 'SelfHosted' + * @readonly + * @enum {string} + */ +export type IntegrationRuntimeType = 'Managed' | 'SelfHosted'; + +/** + * Defines values for IntegrationRuntimeState. + * Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', + * 'NeedRegistration', 'Online', 'Limited', 'Offline', 'AccessDenied' + * @readonly + * @enum {string} + */ +export type IntegrationRuntimeState = 'Initial' | 'Stopped' | 'Started' | 'Starting' | 'Stopping' | 'NeedRegistration' | 'Online' | 'Limited' | 'Offline' | 'AccessDenied'; + +/** + * Defines values for DataFlowComputeType. + * Possible values include: 'General', 'MemoryOptimized', 'ComputeOptimized' + * @readonly + * @enum {string} + */ +export type DataFlowComputeType = 'General' | 'MemoryOptimized' | 'ComputeOptimized'; + +/** + * Defines values for IntegrationRuntimeSsisCatalogPricingTier. + * Possible values include: 'Basic', 'Standard', 'Premium', 'PremiumRS' + * @readonly + * @enum {string} + */ +export type IntegrationRuntimeSsisCatalogPricingTier = 'Basic' | 'Standard' | 'Premium' | 'PremiumRS'; + +/** + * Defines values for IntegrationRuntimeLicenseType. + * Possible values include: 'BasePrice', 'LicenseIncluded' + * @readonly + * @enum {string} + */ +export type IntegrationRuntimeLicenseType = 'BasePrice' | 'LicenseIncluded'; + +/** + * Defines values for IntegrationRuntimeEntityReferenceType. + * Possible values include: 'IntegrationRuntimeReference', 'LinkedServiceReference' + * @readonly + * @enum {string} + */ +export type IntegrationRuntimeEntityReferenceType = 'IntegrationRuntimeReference' | 'LinkedServiceReference'; + +/** + * Defines values for IntegrationRuntimeEdition. + * Possible values include: 'Standard', 'Enterprise' + * @readonly + * @enum {string} + */ +export type IntegrationRuntimeEdition = 'Standard' | 'Enterprise'; + +/** + * Defines values for ManagedIntegrationRuntimeNodeStatus. + * Possible values include: 'Starting', 'Available', 'Recycling', 'Unavailable' + * @readonly + * @enum {string} + */ +export type ManagedIntegrationRuntimeNodeStatus = 'Starting' | 'Available' | 'Recycling' | 'Unavailable'; + +/** + * Defines values for IntegrationRuntimeInternalChannelEncryptionMode. + * Possible values include: 'NotSet', 'SslEncrypted', 'NotEncrypted' + * @readonly + * @enum {string} + */ +export type IntegrationRuntimeInternalChannelEncryptionMode = 'NotSet' | 'SslEncrypted' | 'NotEncrypted'; + +/** + * Defines values for SelfHostedIntegrationRuntimeNodeStatus. + * Possible values include: 'NeedRegistration', 'Online', 'Limited', 'Offline', 'Upgrading', + * 'Initializing', 'InitializeFailed' + * @readonly + * @enum {string} + */ +export type SelfHostedIntegrationRuntimeNodeStatus = 'NeedRegistration' | 'Online' | 'Limited' | 'Offline' | 'Upgrading' | 'Initializing' | 'InitializeFailed'; + +/** + * Defines values for IntegrationRuntimeUpdateResult. + * Possible values include: 'None', 'Succeed', 'Fail' + * @readonly + * @enum {string} + */ +export type IntegrationRuntimeUpdateResult = 'None' | 'Succeed' | 'Fail'; + +/** + * Defines values for IntegrationRuntimeAutoUpdate. + * Possible values include: 'On', 'Off' + * @readonly + * @enum {string} + */ +export type IntegrationRuntimeAutoUpdate = 'On' | 'Off'; + +/** + * Defines values for IntegrationRuntimeAuthKeyName. + * Possible values include: 'authKey1', 'authKey2' + * @readonly + * @enum {string} + */ +export type IntegrationRuntimeAuthKeyName = 'authKey1' | 'authKey2'; + +/** + * Defines values for SsisObjectMetadataType. + * Possible values include: 'Folder', 'Project', 'Package', 'Environment' + * @readonly + * @enum {string} + */ +export type SsisObjectMetadataType = 'Folder' | 'Project' | 'Package' | 'Environment'; + +/** + * Defines values for SkuName. + * Possible values include: 'Compute optimized', 'Storage optimized' + * @readonly + * @enum {string} + */ +export type SkuName = 'Compute optimized' | 'Storage optimized'; + +/** + * Defines values for SkuSize. + * Possible values include: 'Extra small', 'Small', 'Medium', 'Large' + * @readonly + * @enum {string} + */ +export type SkuSize = 'Extra small' | 'Small' | 'Medium' | 'Large'; + +/** + * Defines values for State. + * Possible values include: 'Creating', 'Unavailable', 'Running', 'Deleting', 'Deleted', + * 'Stopping', 'Stopped', 'Starting', 'Updating' + * @readonly + * @enum {string} + */ +export type State = 'Creating' | 'Unavailable' | 'Running' | 'Deleting' | 'Deleted' | 'Stopping' | 'Stopped' | 'Starting' | 'Updating'; + +/** + * Defines values for ResourceProvisioningState. + * Possible values include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed', 'Moving', + * 'Canceled' + * @readonly + * @enum {string} + */ +export type ResourceProvisioningState = 'Running' | 'Creating' | 'Deleting' | 'Succeeded' | 'Failed' | 'Moving' | 'Canceled'; + +/** + * Defines values for LanguageExtensionName. + * Possible values include: 'PYTHON', 'R' + * @readonly + * @enum {string} + */ +export type LanguageExtensionName = 'PYTHON' | 'R'; + +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + +/** + * Defines values for AzureScaleType. + * Possible values include: 'automatic', 'manual', 'none' + * @readonly + * @enum {string} + */ +export type AzureScaleType = 'automatic' | 'manual' | 'none'; + +/** + * Defines values for DefaultPrincipalsModificationKind. + * Possible values include: 'Union', 'Replace', 'None' + * @readonly + * @enum {string} + */ +export type DefaultPrincipalsModificationKind = 'Union' | 'Replace' | 'None'; + +/** + * Defines values for EventHubDataFormat. + * Possible values include: 'MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'TXT', + * 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', 'APACHEAVRO', 'W3CLOGFILE' + * @readonly + * @enum {string} + */ +export type EventHubDataFormat = 'MULTIJSON' | 'JSON' | 'CSV' | 'TSV' | 'SCSV' | 'SOHSV' | 'PSV' | 'TXT' | 'RAW' | 'SINGLEJSON' | 'AVRO' | 'TSVE' | 'PARQUET' | 'ORC' | 'APACHEAVRO' | 'W3CLOGFILE'; + +/** + * Defines values for Compression. + * Possible values include: 'None', 'GZip' + * @readonly + * @enum {string} + */ +export type Compression = 'None' | 'GZip'; + +/** + * Defines values for IotHubDataFormat. + * Possible values include: 'MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'TXT', + * 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', 'APACHEAVRO', 'W3CLOGFILE' + * @readonly + * @enum {string} + */ +export type IotHubDataFormat = 'MULTIJSON' | 'JSON' | 'CSV' | 'TSV' | 'SCSV' | 'SOHSV' | 'PSV' | 'TXT' | 'RAW' | 'SINGLEJSON' | 'AVRO' | 'TSVE' | 'PARQUET' | 'ORC' | 'APACHEAVRO' | 'W3CLOGFILE'; + +/** + * Defines values for EventGridDataFormat. + * Possible values include: 'MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'TXT', + * 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', 'APACHEAVRO', 'W3CLOGFILE' + * @readonly + * @enum {string} + */ +export type EventGridDataFormat = 'MULTIJSON' | 'JSON' | 'CSV' | 'TSV' | 'SCSV' | 'SOHSV' | 'PSV' | 'TXT' | 'RAW' | 'SINGLEJSON' | 'AVRO' | 'TSVE' | 'PARQUET' | 'ORC' | 'APACHEAVRO' | 'W3CLOGFILE'; + +/** + * Defines values for BlobStorageEventType. + * Possible values include: 'Microsoft.Storage.BlobCreated', 'Microsoft.Storage.BlobRenamed' + * @readonly + * @enum {string} + */ +export type BlobStorageEventType = 'Microsoft.Storage.BlobCreated' | 'Microsoft.Storage.BlobRenamed'; + +/** + * Defines values for ClusterPrincipalRole. + * Possible values include: 'AllDatabasesAdmin', 'AllDatabasesViewer' + * @readonly + * @enum {string} + */ +export type ClusterPrincipalRole = 'AllDatabasesAdmin' | 'AllDatabasesViewer'; + +/** + * Defines values for PrincipalType. + * Possible values include: 'App', 'Group', 'User' + * @readonly + * @enum {string} + */ +export type PrincipalType = 'App' | 'Group' | 'User'; + +/** + * Defines values for DatabasePrincipalRole. + * Possible values include: 'Admin', 'Ingestor', 'Monitor', 'User', 'UnrestrictedViewer', 'Viewer' + * @readonly + * @enum {string} + */ +export type DatabasePrincipalRole = 'Admin' | 'Ingestor' | 'Monitor' | 'User' | 'UnrestrictedViewer' | 'Viewer'; + +/** + * Defines values for Type. + * Possible values include: 'Microsoft.Synapse/workspaces/kustoPools/databases', + * 'Microsoft.Synapse/workspaces/kustoPools/attachedDatabaseConfigurations' + * @readonly + * @enum {string} + */ +export type Type = 'Microsoft.Synapse/workspaces/kustoPools/databases' | 'Microsoft.Synapse/workspaces/kustoPools/attachedDatabaseConfigurations'; + +/** + * Defines values for Reason. + * Possible values include: 'Invalid', 'AlreadyExists' + * @readonly + * @enum {string} + */ +export type Reason = 'Invalid' | 'AlreadyExists'; + +/** + * Defines values for OperationStatus. + * Possible values include: 'InProgress', 'Succeeded', 'Failed', 'Canceled' + * @readonly + * @enum {string} + */ +export type OperationStatus = 'InProgress' | 'Succeeded' | 'Failed' | 'Canceled'; + +/** + * Defines values for StorageAccountType. + * Possible values include: 'GRS', 'LRS', 'ZRS' + * @readonly + * @enum {string} + */ +export type StorageAccountType = 'GRS' | 'LRS' | 'ZRS'; + +/** + * Defines values for GeoBackupPolicyState. + * Possible values include: 'Disabled', 'Enabled' + * @readonly + * @enum {string} + */ +export type GeoBackupPolicyState = 'Disabled' | 'Enabled'; + +/** + * Defines values for QueryAggregationFunction. + * Possible values include: 'min', 'max', 'avg', 'sum' + * @readonly + * @enum {string} + */ +export type QueryAggregationFunction = 'min' | 'max' | 'avg' | 'sum'; + +/** + * Defines values for QueryExecutionType. + * Possible values include: 'any', 'regular', 'irregular', 'aborted', 'exception' + * @readonly + * @enum {string} + */ +export type QueryExecutionType = 'any' | 'regular' | 'irregular' | 'aborted' | 'exception'; + +/** + * Defines values for QueryObservedMetricType. + * Possible values include: 'cpu', 'io', 'logio', 'duration', 'executionCount' + * @readonly + * @enum {string} + */ +export type QueryObservedMetricType = 'cpu' | 'io' | 'logio' | 'duration' | 'executionCount'; + +/** + * Defines values for QueryMetricUnit. + * Possible values include: 'percentage', 'KB', 'microseconds' + * @readonly + * @enum {string} + */ +export type QueryMetricUnit = 'percentage' | 'KB' | 'microseconds'; + +/** + * Defines values for RestorePointType. + * Possible values include: 'CONTINUOUS', 'DISCRETE' + * @readonly + * @enum {string} + */ +export type RestorePointType = 'CONTINUOUS' | 'DISCRETE'; + +/** + * Defines values for ReplicationRole. + * Possible values include: 'Primary', 'Secondary', 'NonReadableSecondary', 'Source', 'Copy' + * @readonly + * @enum {string} + */ +export type ReplicationRole = 'Primary' | 'Secondary' | 'NonReadableSecondary' | 'Source' | 'Copy'; + +/** + * Defines values for ReplicationState. + * Possible values include: 'PENDING', 'SEEDING', 'CATCH_UP', 'SUSPENDED' + * @readonly + * @enum {string} + */ +export type ReplicationState = 'PENDING' | 'SEEDING' | 'CATCH_UP' | 'SUSPENDED'; + +/** + * Defines values for DayOfWeek. + * Possible values include: 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', + * 'Saturday' + * @readonly + * @enum {string} + */ +export type DayOfWeek = 'Sunday' | 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday'; + +/** + * Defines values for TransparentDataEncryptionStatus. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type TransparentDataEncryptionStatus = 'Enabled' | 'Disabled'; + +/** + * Defines values for BlobAuditingPolicyState. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type BlobAuditingPolicyState = 'Enabled' | 'Disabled'; + +/** + * Defines values for ManagementOperationState. + * Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', 'CancelInProgress', + * 'Cancelled' + * @readonly + * @enum {string} + */ +export type ManagementOperationState = 'Pending' | 'InProgress' | 'Succeeded' | 'Failed' | 'CancelInProgress' | 'Cancelled'; + +/** + * Defines values for SensitivityLabelRank. + * Possible values include: 'None', 'Low', 'Medium', 'High', 'Critical' + * @readonly + * @enum {string} + */ +export type SensitivityLabelRank = 'None' | 'Low' | 'Medium' | 'High' | 'Critical'; + +/** + * Defines values for ColumnDataType. + * Possible values include: 'image', 'text', 'uniqueidentifier', 'date', 'time', 'datetime2', + * 'datetimeoffset', 'tinyint', 'smallint', 'int', 'smalldatetime', 'real', 'money', 'datetime', + * 'float', 'sql_variant', 'ntext', 'bit', 'decimal', 'numeric', 'smallmoney', 'bigint', + * 'hierarchyid', 'geometry', 'geography', 'varbinary', 'varchar', 'binary', 'char', 'timestamp', + * 'nvarchar', 'nchar', 'xml', 'sysname' + * @readonly + * @enum {string} + */ +export type ColumnDataType = 'image' | 'text' | 'uniqueidentifier' | 'date' | 'time' | 'datetime2' | 'datetimeoffset' | 'tinyint' | 'smallint' | 'int' | 'smalldatetime' | 'real' | 'money' | 'datetime' | 'float' | 'sql_variant' | 'ntext' | 'bit' | 'decimal' | 'numeric' | 'smallmoney' | 'bigint' | 'hierarchyid' | 'geometry' | 'geography' | 'varbinary' | 'varchar' | 'binary' | 'char' | 'timestamp' | 'nvarchar' | 'nchar' | 'xml' | 'sysname'; + +/** + * Defines values for VulnerabilityAssessmentScanTriggerType. + * Possible values include: 'OnDemand', 'Recurring' + * @readonly + * @enum {string} + */ +export type VulnerabilityAssessmentScanTriggerType = 'OnDemand' | 'Recurring'; + +/** + * Defines values for VulnerabilityAssessmentScanState. + * Possible values include: 'Passed', 'Failed', 'FailedToRun', 'InProgress' + * @readonly + * @enum {string} + */ +export type VulnerabilityAssessmentScanState = 'Passed' | 'Failed' | 'FailedToRun' | 'InProgress'; + +/** + * Defines values for SecurityAlertPolicyState. + * Possible values include: 'New', 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type SecurityAlertPolicyState = 'New' | 'Enabled' | 'Disabled'; + +/** + * Defines values for DataMaskingState. + * Possible values include: 'Disabled', 'Enabled' * @readonly * @enum {string} */ -export type NodeSizeFamily = 'None' | 'MemoryOptimized'; +export type DataMaskingState = 'Disabled' | 'Enabled'; /** - * Defines values for ProvisioningState. - * Possible values include: 'Provisioning', 'Succeeded', 'Deleting', 'Failed', 'DeleteError' + * Defines values for DataMaskingRuleState. + * Possible values include: 'Disabled', 'Enabled' * @readonly * @enum {string} */ -export type ProvisioningState = 'Provisioning' | 'Succeeded' | 'Deleting' | 'Failed' | 'DeleteError'; +export type DataMaskingRuleState = 'Disabled' | 'Enabled'; /** - * Defines values for IntegrationRuntimeType. - * Possible values include: 'Managed', 'SelfHosted' + * Defines values for DataMaskingFunction. + * Possible values include: 'Default', 'CCN', 'Email', 'Number', 'SSN', 'Text' * @readonly * @enum {string} */ -export type IntegrationRuntimeType = 'Managed' | 'SelfHosted'; +export type DataMaskingFunction = 'Default' | 'CCN' | 'Email' | 'Number' | 'SSN' | 'Text'; /** - * Defines values for IntegrationRuntimeState. - * Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', - * 'NeedRegistration', 'Online', 'Limited', 'Offline', 'AccessDenied' + * Defines values for SensitivityLabelUpdateKind. + * Possible values include: 'set', 'remove' * @readonly * @enum {string} */ -export type IntegrationRuntimeState = 'Initial' | 'Stopped' | 'Started' | 'Starting' | 'Stopping' | 'NeedRegistration' | 'Online' | 'Limited' | 'Offline' | 'AccessDenied'; +export type SensitivityLabelUpdateKind = 'set' | 'remove'; /** - * Defines values for DataFlowComputeType. - * Possible values include: 'General', 'MemoryOptimized', 'ComputeOptimized' + * Defines values for RecommendedSensitivityLabelUpdateKind. + * Possible values include: 'enable', 'disable' * @readonly * @enum {string} */ -export type DataFlowComputeType = 'General' | 'MemoryOptimized' | 'ComputeOptimized'; +export type RecommendedSensitivityLabelUpdateKind = 'enable' | 'disable'; + +/** + * Defines values for ServerKeyType. + * Possible values include: 'ServiceManaged', 'AzureKeyVault' + * @readonly + * @enum {string} + */ +export type ServerKeyType = 'ServiceManaged' | 'AzureKeyVault'; + +/** + * Defines values for WorkspacePublicNetworkAccess. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type WorkspacePublicNetworkAccess = 'Enabled' | 'Disabled'; + +/** + * Defines values for ResourceIdentityType. + * Possible values include: 'None', 'SystemAssigned' + * @readonly + * @enum {string} + */ +export type ResourceIdentityType = 'None' | 'SystemAssigned'; + +/** + * Defines values for SensitivityLabelSource. + * Possible values include: 'current', 'recommended' + * @readonly + * @enum {string} + */ +export type SensitivityLabelSource = 'current' | 'recommended'; + +/** + * Defines values for VulnerabilityAssessmentPolicyBaselineName. + * Possible values include: 'master', 'default' + * @readonly + * @enum {string} + */ +export type VulnerabilityAssessmentPolicyBaselineName = 'master' | 'default'; + +/** + * Defines values for DesiredState. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type DesiredState = 'Enabled' | 'Disabled'; + +/** + * Defines values for ActualState. + * Possible values include: 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Unknown' + * @readonly + * @enum {string} + */ +export type ActualState = 'Enabling' | 'Enabled' | 'Disabling' | 'Disabled' | 'Unknown'; + +/** + * Contains response data for the get operation. + */ +export type BigDataPoolsGetResponse = BigDataPoolResourceInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BigDataPoolResourceInfo; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type BigDataPoolsUpdateResponse = BigDataPoolResourceInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BigDataPoolResourceInfo; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type BigDataPoolsCreateOrUpdateResponse = BigDataPoolResourceInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BigDataPoolResourceInfo; + }; +}; + +/** + * Contains response data for the deleteMethod operation. + */ +export type BigDataPoolsDeleteMethodResponse = { + /** + * The parsed response body. + */ + body: any; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; + +/** + * Contains response data for the listByWorkspace operation. + */ +export type BigDataPoolsListByWorkspaceResponse = BigDataPoolResourceInfoListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BigDataPoolResourceInfoListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type BigDataPoolsBeginCreateOrUpdateResponse = BigDataPoolResourceInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BigDataPoolResourceInfo; + }; +}; + +/** + * Contains response data for the beginDeleteMethod operation. + */ +export type BigDataPoolsBeginDeleteMethodResponse = { + /** + * The parsed response body. + */ + body: any; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; + +/** + * Contains response data for the listByWorkspaceNext operation. + */ +export type BigDataPoolsListByWorkspaceNextResponse = BigDataPoolResourceInfoListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BigDataPoolResourceInfoListResult; + }; +}; /** - * Defines values for IntegrationRuntimeSsisCatalogPricingTier. - * Possible values include: 'Basic', 'Standard', 'Premium', 'PremiumRS' - * @readonly - * @enum {string} + * Contains response data for the checkNameAvailability operation. */ -export type IntegrationRuntimeSsisCatalogPricingTier = 'Basic' | 'Standard' | 'Premium' | 'PremiumRS'; +export type OperationsCheckNameAvailabilityResponse = CheckNameAvailabilityResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for IntegrationRuntimeLicenseType. - * Possible values include: 'BasePrice', 'LicenseIncluded' - * @readonly - * @enum {string} - */ -export type IntegrationRuntimeLicenseType = 'BasePrice' | 'LicenseIncluded'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CheckNameAvailabilityResponse; + }; +}; /** - * Defines values for IntegrationRuntimeEntityReferenceType. - * Possible values include: 'IntegrationRuntimeReference', 'LinkedServiceReference' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type IntegrationRuntimeEntityReferenceType = 'IntegrationRuntimeReference' | 'LinkedServiceReference'; +export type OperationsListResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for IntegrationRuntimeEdition. - * Possible values include: 'Standard', 'Enterprise' - * @readonly - * @enum {string} - */ -export type IntegrationRuntimeEdition = 'Standard' | 'Enterprise'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AvailableRpOperation[]; + }; +}; /** - * Defines values for ManagedIntegrationRuntimeNodeStatus. - * Possible values include: 'Starting', 'Available', 'Recycling', 'Unavailable' - * @readonly - * @enum {string} + * Contains response data for the getAzureAsyncHeaderResult operation. */ -export type ManagedIntegrationRuntimeNodeStatus = 'Starting' | 'Available' | 'Recycling' | 'Unavailable'; +export type OperationsGetAzureAsyncHeaderResultResponse = OperationResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for IntegrationRuntimeInternalChannelEncryptionMode. - * Possible values include: 'NotSet', 'SslEncrypted', 'NotEncrypted' - * @readonly - * @enum {string} - */ -export type IntegrationRuntimeInternalChannelEncryptionMode = 'NotSet' | 'SslEncrypted' | 'NotEncrypted'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationResource; + }; +}; /** - * Defines values for SelfHostedIntegrationRuntimeNodeStatus. - * Possible values include: 'NeedRegistration', 'Online', 'Limited', 'Offline', 'Upgrading', - * 'Initializing', 'InitializeFailed' - * @readonly - * @enum {string} + * Contains response data for the listByWorkspace operation. */ -export type SelfHostedIntegrationRuntimeNodeStatus = 'NeedRegistration' | 'Online' | 'Limited' | 'Offline' | 'Upgrading' | 'Initializing' | 'InitializeFailed'; +export type IpFirewallRulesListByWorkspaceResponse = IpFirewallRuleInfoListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for IntegrationRuntimeUpdateResult. - * Possible values include: 'None', 'Succeed', 'Fail' - * @readonly - * @enum {string} - */ -export type IntegrationRuntimeUpdateResult = 'None' | 'Succeed' | 'Fail'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IpFirewallRuleInfoListResult; + }; +}; /** - * Defines values for IntegrationRuntimeAutoUpdate. - * Possible values include: 'On', 'Off' - * @readonly - * @enum {string} + * Contains response data for the createOrUpdate operation. */ -export type IntegrationRuntimeAutoUpdate = 'On' | 'Off'; +export type IpFirewallRulesCreateOrUpdateResponse = IpFirewallRuleInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IpFirewallRuleInfo; + }; +}; /** - * Defines values for IntegrationRuntimeAuthKeyName. - * Possible values include: 'authKey1', 'authKey2' - * @readonly - * @enum {string} + * Contains response data for the deleteMethod operation. */ -export type IntegrationRuntimeAuthKeyName = 'authKey1' | 'authKey2'; +export type IpFirewallRulesDeleteMethodResponse = { + /** + * The parsed response body. + */ + body: any; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; /** - * Defines values for SsisObjectMetadataType. - * Possible values include: 'Folder', 'Project', 'Package', 'Environment' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type SsisObjectMetadataType = 'Folder' | 'Project' | 'Package' | 'Environment'; +export type IpFirewallRulesGetResponse = IpFirewallRuleInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IpFirewallRuleInfo; + }; +}; /** - * Defines values for OperationStatus. - * Possible values include: 'InProgress', 'Succeeded', 'Failed', 'Canceled' - * @readonly - * @enum {string} + * Contains response data for the replaceAll operation. */ -export type OperationStatus = 'InProgress' | 'Succeeded' | 'Failed' | 'Canceled'; +export type IpFirewallRulesReplaceAllResponse = ReplaceAllFirewallRulesOperationResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReplaceAllFirewallRulesOperationResponse; + }; +}; /** - * Defines values for StorageAccountType. - * Possible values include: 'GRS', 'LRS', 'ZRS' - * @readonly - * @enum {string} + * Contains response data for the beginCreateOrUpdate operation. */ -export type StorageAccountType = 'GRS' | 'LRS' | 'ZRS'; +export type IpFirewallRulesBeginCreateOrUpdateResponse = IpFirewallRuleInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IpFirewallRuleInfo; + }; +}; /** - * Defines values for GeoBackupPolicyState. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} + * Contains response data for the beginDeleteMethod operation. */ -export type GeoBackupPolicyState = 'Disabled' | 'Enabled'; +export type IpFirewallRulesBeginDeleteMethodResponse = { + /** + * The parsed response body. + */ + body: any; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; +}; /** - * Defines values for QueryAggregationFunction. - * Possible values include: 'min', 'max', 'avg', 'sum' - * @readonly - * @enum {string} + * Contains response data for the beginReplaceAll operation. */ -export type QueryAggregationFunction = 'min' | 'max' | 'avg' | 'sum'; +export type IpFirewallRulesBeginReplaceAllResponse = ReplaceAllFirewallRulesOperationResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for QueryExecutionType. - * Possible values include: 'any', 'regular', 'irregular', 'aborted', 'exception' - * @readonly - * @enum {string} - */ -export type QueryExecutionType = 'any' | 'regular' | 'irregular' | 'aborted' | 'exception'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReplaceAllFirewallRulesOperationResponse; + }; +}; /** - * Defines values for QueryObservedMetricType. - * Possible values include: 'cpu', 'io', 'logio', 'duration', 'executionCount' - * @readonly - * @enum {string} + * Contains response data for the listByWorkspaceNext operation. */ -export type QueryObservedMetricType = 'cpu' | 'io' | 'logio' | 'duration' | 'executionCount'; +export type IpFirewallRulesListByWorkspaceNextResponse = IpFirewallRuleInfoListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for QueryMetricUnit. - * Possible values include: 'percentage', 'KB', 'microseconds' - * @readonly - * @enum {string} - */ -export type QueryMetricUnit = 'percentage' | 'KB' | 'microseconds'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IpFirewallRuleInfoListResult; + }; +}; /** - * Defines values for RestorePointType. - * Possible values include: 'CONTINUOUS', 'DISCRETE' - * @readonly - * @enum {string} + * Contains response data for the update operation. */ -export type RestorePointType = 'CONTINUOUS' | 'DISCRETE'; +export type IntegrationRuntimesUpdateResponse = IntegrationRuntimeResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ReplicationRole. - * Possible values include: 'Primary', 'Secondary', 'NonReadableSecondary', 'Source', 'Copy' - * @readonly - * @enum {string} - */ -export type ReplicationRole = 'Primary' | 'Secondary' | 'NonReadableSecondary' | 'Source' | 'Copy'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IntegrationRuntimeResource; + }; +}; /** - * Defines values for ReplicationState. - * Possible values include: 'PENDING', 'SEEDING', 'CATCH_UP', 'SUSPENDED' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type ReplicationState = 'PENDING' | 'SEEDING' | 'CATCH_UP' | 'SUSPENDED'; +export type IntegrationRuntimesGetResponse = IntegrationRuntimeResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for DayOfWeek. - * Possible values include: 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', - * 'Saturday' - * @readonly - * @enum {string} - */ -export type DayOfWeek = 'Sunday' | 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IntegrationRuntimeResource; + }; +}; /** - * Defines values for TransparentDataEncryptionStatus. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the create operation. */ -export type TransparentDataEncryptionStatus = 'Enabled' | 'Disabled'; +export type IntegrationRuntimesCreateResponse = IntegrationRuntimeResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for BlobAuditingPolicyState. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type BlobAuditingPolicyState = 'Enabled' | 'Disabled'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IntegrationRuntimeResource; + }; +}; /** - * Defines values for ManagementOperationState. - * Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', 'CancelInProgress', - * 'Cancelled' - * @readonly - * @enum {string} + * Contains response data for the listByWorkspace operation. */ -export type ManagementOperationState = 'Pending' | 'InProgress' | 'Succeeded' | 'Failed' | 'CancelInProgress' | 'Cancelled'; +export type IntegrationRuntimesListByWorkspaceResponse = IntegrationRuntimeListResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IntegrationRuntimeListResponse; + }; +}; /** - * Defines values for SensitivityLabelRank. - * Possible values include: 'None', 'Low', 'Medium', 'High', 'Critical' - * @readonly - * @enum {string} + * Contains response data for the start operation. */ -export type SensitivityLabelRank = 'None' | 'Low' | 'Medium' | 'High' | 'Critical'; +export type IntegrationRuntimesStartResponse = IntegrationRuntimeStatusResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IntegrationRuntimeStatusResponse; + }; +}; /** - * Defines values for ColumnDataType. - * Possible values include: 'image', 'text', 'uniqueidentifier', 'date', 'time', 'datetime2', - * 'datetimeoffset', 'tinyint', 'smallint', 'int', 'smalldatetime', 'real', 'money', 'datetime', - * 'float', 'sql_variant', 'ntext', 'bit', 'decimal', 'numeric', 'smallmoney', 'bigint', - * 'hierarchyid', 'geometry', 'geography', 'varbinary', 'varchar', 'binary', 'char', 'timestamp', - * 'nvarchar', 'nchar', 'xml', 'sysname' - * @readonly - * @enum {string} + * Contains response data for the beginCreate operation. */ -export type ColumnDataType = 'image' | 'text' | 'uniqueidentifier' | 'date' | 'time' | 'datetime2' | 'datetimeoffset' | 'tinyint' | 'smallint' | 'int' | 'smalldatetime' | 'real' | 'money' | 'datetime' | 'float' | 'sql_variant' | 'ntext' | 'bit' | 'decimal' | 'numeric' | 'smallmoney' | 'bigint' | 'hierarchyid' | 'geometry' | 'geography' | 'varbinary' | 'varchar' | 'binary' | 'char' | 'timestamp' | 'nvarchar' | 'nchar' | 'xml' | 'sysname'; +export type IntegrationRuntimesBeginCreateResponse = IntegrationRuntimeResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IntegrationRuntimeResource; + }; +}; /** - * Defines values for VulnerabilityAssessmentScanTriggerType. - * Possible values include: 'OnDemand', 'Recurring' - * @readonly - * @enum {string} + * Contains response data for the beginStart operation. */ -export type VulnerabilityAssessmentScanTriggerType = 'OnDemand' | 'Recurring'; +export type IntegrationRuntimesBeginStartResponse = IntegrationRuntimeStatusResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IntegrationRuntimeStatusResponse; + }; +}; /** - * Defines values for VulnerabilityAssessmentScanState. - * Possible values include: 'Passed', 'Failed', 'FailedToRun', 'InProgress' - * @readonly - * @enum {string} + * Contains response data for the listByWorkspaceNext operation. */ -export type VulnerabilityAssessmentScanState = 'Passed' | 'Failed' | 'FailedToRun' | 'InProgress'; +export type IntegrationRuntimesListByWorkspaceNextResponse = IntegrationRuntimeListResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IntegrationRuntimeListResponse; + }; +}; /** - * Defines values for SecurityAlertPolicyState. - * Possible values include: 'New', 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type SecurityAlertPolicyState = 'New' | 'Enabled' | 'Disabled'; +export type IntegrationRuntimeNodeIpAddressGetResponse = IntegrationRuntimeNodeIpAddress & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for DataMaskingState. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} - */ -export type DataMaskingState = 'Disabled' | 'Enabled'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IntegrationRuntimeNodeIpAddress; + }; +}; /** - * Defines values for DataMaskingRuleState. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type DataMaskingRuleState = 'Disabled' | 'Enabled'; +export type IntegrationRuntimeObjectMetadataListResponse = SsisObjectMetadataListResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for DataMaskingFunction. - * Possible values include: 'Default', 'CCN', 'Email', 'Number', 'SSN', 'Text' - * @readonly - * @enum {string} - */ -export type DataMaskingFunction = 'Default' | 'CCN' | 'Email' | 'Number' | 'SSN' | 'Text'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SsisObjectMetadataListResponse; + }; +}; /** - * Defines values for SensitivityLabelUpdateKind. - * Possible values include: 'set', 'remove' - * @readonly - * @enum {string} + * Contains response data for the refresh operation. */ -export type SensitivityLabelUpdateKind = 'set' | 'remove'; +export type IntegrationRuntimeObjectMetadataRefreshResponse = SsisObjectMetadataStatusResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SsisObjectMetadataStatusResponse; + }; +}; /** - * Defines values for RecommendedSensitivityLabelUpdateKind. - * Possible values include: 'enable', 'disable' - * @readonly - * @enum {string} + * Contains response data for the beginRefresh operation. */ -export type RecommendedSensitivityLabelUpdateKind = 'enable' | 'disable'; +export type IntegrationRuntimeObjectMetadataBeginRefreshResponse = SsisObjectMetadataStatusResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SsisObjectMetadataStatusResponse; + }; +}; /** - * Defines values for ServerKeyType. - * Possible values include: 'ServiceManaged', 'AzureKeyVault' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type ServerKeyType = 'ServiceManaged' | 'AzureKeyVault'; +export type IntegrationRuntimeNodesGetResponse = SelfHostedIntegrationRuntimeNode & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SelfHostedIntegrationRuntimeNode; + }; +}; /** - * Defines values for WorkspacePublicNetworkAccess. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the update operation. */ -export type WorkspacePublicNetworkAccess = 'Enabled' | 'Disabled'; +export type IntegrationRuntimeNodesUpdateResponse = SelfHostedIntegrationRuntimeNode & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SelfHostedIntegrationRuntimeNode; + }; +}; /** - * Defines values for ResourceIdentityType. - * Possible values include: 'None', 'SystemAssigned' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type ResourceIdentityType = 'None' | 'SystemAssigned'; +export type IntegrationRuntimeConnectionInfosGetResponse = IntegrationRuntimeConnectionInfo & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IntegrationRuntimeConnectionInfo; + }; +}; /** - * Defines values for SensitivityLabelSource. - * Possible values include: 'current', 'recommended' - * @readonly - * @enum {string} + * Contains response data for the regenerate operation. */ -export type SensitivityLabelSource = 'current' | 'recommended'; +export type IntegrationRuntimeAuthKeysRegenerateResponse = IntegrationRuntimeAuthKeys & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IntegrationRuntimeAuthKeys; + }; +}; /** - * Defines values for VulnerabilityAssessmentPolicyBaselineName. - * Possible values include: 'master', 'default' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type VulnerabilityAssessmentPolicyBaselineName = 'master' | 'default'; +export type IntegrationRuntimeAuthKeysListResponse = IntegrationRuntimeAuthKeys & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IntegrationRuntimeAuthKeys; + }; +}; /** - * Defines values for DesiredState. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type DesiredState = 'Enabled' | 'Disabled'; +export type IntegrationRuntimeMonitoringDataListResponse = IntegrationRuntimeMonitoringData & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IntegrationRuntimeMonitoringData; + }; +}; /** - * Defines values for ActualState. - * Possible values include: 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Unknown' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type ActualState = 'Enabling' | 'Enabled' | 'Disabling' | 'Disabled' | 'Unknown'; +export type IntegrationRuntimeStatusGetResponse = IntegrationRuntimeStatusResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: IntegrationRuntimeStatusResponse; + }; +}; /** - * Contains response data for the get operation. + * Contains response data for the listByWorkspace operation. */ -export type BigDataPoolsGetResponse = BigDataPoolResourceInfo & { +export type KeysListByWorkspaceResponse = KeyInfoListResult & { /** * The underlying HTTP response. */ @@ -5453,14 +7600,14 @@ export type BigDataPoolsGetResponse = BigDataPoolResourceInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: BigDataPoolResourceInfo; + parsedBody: KeyInfoListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type BigDataPoolsUpdateResponse = BigDataPoolResourceInfo & { +export type KeysGetResponse = Key & { /** * The underlying HTTP response. */ @@ -5473,14 +7620,14 @@ export type BigDataPoolsUpdateResponse = BigDataPoolResourceInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: BigDataPoolResourceInfo; + parsedBody: Key; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type BigDataPoolsCreateOrUpdateResponse = BigDataPoolResourceInfo & { +export type KeysCreateOrUpdateResponse = Key & { /** * The underlying HTTP response. */ @@ -5493,19 +7640,34 @@ export type BigDataPoolsCreateOrUpdateResponse = BigDataPoolResourceInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: BigDataPoolResourceInfo; + parsedBody: Key; }; }; /** * Contains response data for the deleteMethod operation. */ -export type BigDataPoolsDeleteMethodResponse = { +export type KeysDeleteMethodResponse = Key & { /** - * The parsed response body. + * The underlying HTTP response. */ - body: any; + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Key; + }; +}; +/** + * Contains response data for the listByWorkspaceNext operation. + */ +export type KeysListByWorkspaceNextResponse = KeyInfoListResult & { /** * The underlying HTTP response. */ @@ -5518,14 +7680,14 @@ export type BigDataPoolsDeleteMethodResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: KeyInfoListResult; }; }; /** - * Contains response data for the listByWorkspace operation. + * Contains response data for the list operation. */ -export type BigDataPoolsListByWorkspaceResponse = BigDataPoolResourceInfoListResult & { +export type KustoOperationsListResponse = OperationListResult & { /** * The underlying HTTP response. */ @@ -5538,14 +7700,14 @@ export type BigDataPoolsListByWorkspaceResponse = BigDataPoolResourceInfoListRes /** * The response body as parsed JSON or XML */ - parsedBody: BigDataPoolResourceInfoListResult; + parsedBody: OperationListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listNext operation. */ -export type BigDataPoolsBeginCreateOrUpdateResponse = BigDataPoolResourceInfo & { +export type KustoOperationsListNextResponse = OperationListResult & { /** * The underlying HTTP response. */ @@ -5558,19 +7720,34 @@ export type BigDataPoolsBeginCreateOrUpdateResponse = BigDataPoolResourceInfo & /** * The response body as parsed JSON or XML */ - parsedBody: BigDataPoolResourceInfo; + parsedBody: OperationListResult; }; }; /** - * Contains response data for the beginDeleteMethod operation. + * Contains response data for the listSkus operation. */ -export type BigDataPoolsBeginDeleteMethodResponse = { +export type KustoPoolListSkusResponse = SkuDescriptionList & { /** - * The parsed response body. + * The underlying HTTP response. */ - body: any; + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SkuDescriptionList; + }; +}; + +/** + * Contains response data for the checkNameAvailability operation. + */ +export type KustoPoolsCheckNameAvailabilityResponse = CheckNameResult & { /** * The underlying HTTP response. */ @@ -5583,14 +7760,14 @@ export type BigDataPoolsBeginDeleteMethodResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: CheckNameResult; }; }; /** - * Contains response data for the listByWorkspaceNext operation. + * Contains response data for the listByWorkspace operation. */ -export type BigDataPoolsListByWorkspaceNextResponse = BigDataPoolResourceInfoListResult & { +export type KustoPoolsListByWorkspaceResponse = KustoPoolListResult & { /** * The underlying HTTP response. */ @@ -5603,14 +7780,14 @@ export type BigDataPoolsListByWorkspaceNextResponse = BigDataPoolResourceInfoLis /** * The response body as parsed JSON or XML */ - parsedBody: BigDataPoolResourceInfoListResult; + parsedBody: KustoPoolListResult; }; }; /** - * Contains response data for the checkNameAvailability operation. + * Contains response data for the get operation. */ -export type OperationsCheckNameAvailabilityResponse = CheckNameAvailabilityResponse & { +export type KustoPoolsGetResponse = KustoPool & { /** * The underlying HTTP response. */ @@ -5623,14 +7800,14 @@ export type OperationsCheckNameAvailabilityResponse = CheckNameAvailabilityRespo /** * The response body as parsed JSON or XML */ - parsedBody: CheckNameAvailabilityResponse; + parsedBody: KustoPool; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createOrUpdate operation. */ -export type OperationsListResponse = Array & { +export type KustoPoolsCreateOrUpdateResponse = KustoPool & { /** * The underlying HTTP response. */ @@ -5643,14 +7820,14 @@ export type OperationsListResponse = Array & { /** * The response body as parsed JSON or XML */ - parsedBody: AvailableRpOperation[]; + parsedBody: KustoPool; }; }; /** - * Contains response data for the getAzureAsyncHeaderResult operation. + * Contains response data for the update operation. */ -export type OperationsGetAzureAsyncHeaderResultResponse = OperationResource & { +export type KustoPoolsUpdateResponse = KustoPool & { /** * The underlying HTTP response. */ @@ -5663,14 +7840,14 @@ export type OperationsGetAzureAsyncHeaderResultResponse = OperationResource & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationResource; + parsedBody: KustoPool; }; }; /** - * Contains response data for the listByWorkspace operation. + * Contains response data for the listSkusByResource operation. */ -export type IpFirewallRulesListByWorkspaceResponse = IpFirewallRuleInfoListResult & { +export type KustoPoolsListSkusByResourceResponse = ListResourceSkusResult & { /** * The underlying HTTP response. */ @@ -5683,14 +7860,14 @@ export type IpFirewallRulesListByWorkspaceResponse = IpFirewallRuleInfoListResul /** * The response body as parsed JSON or XML */ - parsedBody: IpFirewallRuleInfoListResult; + parsedBody: ListResourceSkusResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listLanguageExtensions operation. */ -export type IpFirewallRulesCreateOrUpdateResponse = IpFirewallRuleInfo & { +export type KustoPoolsListLanguageExtensionsResponse = LanguageExtensionsList & { /** * The underlying HTTP response. */ @@ -5703,19 +7880,34 @@ export type IpFirewallRulesCreateOrUpdateResponse = IpFirewallRuleInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: IpFirewallRuleInfo; + parsedBody: LanguageExtensionsList; }; }; /** - * Contains response data for the deleteMethod operation. + * Contains response data for the listFollowerDatabases operation. */ -export type IpFirewallRulesDeleteMethodResponse = { +export type KustoPoolsListFollowerDatabasesResponse = FollowerDatabaseListResult & { /** - * The parsed response body. + * The underlying HTTP response. */ - body: any; + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: FollowerDatabaseListResult; + }; +}; +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type KustoPoolsBeginCreateOrUpdateResponse = KustoPool & { /** * The underlying HTTP response. */ @@ -5728,14 +7920,14 @@ export type IpFirewallRulesDeleteMethodResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: KustoPool; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginUpdate operation. */ -export type IpFirewallRulesGetResponse = IpFirewallRuleInfo & { +export type KustoPoolsBeginUpdateResponse = KustoPool & { /** * The underlying HTTP response. */ @@ -5748,14 +7940,14 @@ export type IpFirewallRulesGetResponse = IpFirewallRuleInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: IpFirewallRuleInfo; + parsedBody: KustoPool; }; }; /** - * Contains response data for the replaceAll operation. + * Contains response data for the checkNameAvailability operation. */ -export type IpFirewallRulesReplaceAllResponse = ReplaceAllFirewallRulesOperationResponse & { +export type KustoPoolChildResourceCheckNameAvailabilityResponse = CheckNameResult & { /** * The underlying HTTP response. */ @@ -5768,14 +7960,14 @@ export type IpFirewallRulesReplaceAllResponse = ReplaceAllFirewallRulesOperation /** * The response body as parsed JSON or XML */ - parsedBody: ReplaceAllFirewallRulesOperationResponse; + parsedBody: CheckNameResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByKustoPool operation. */ -export type IpFirewallRulesBeginCreateOrUpdateResponse = IpFirewallRuleInfo & { +export type AttachedDatabaseConfigurationsListByKustoPoolResponse = AttachedDatabaseConfigurationListResult & { /** * The underlying HTTP response. */ @@ -5788,19 +7980,34 @@ export type IpFirewallRulesBeginCreateOrUpdateResponse = IpFirewallRuleInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: IpFirewallRuleInfo; + parsedBody: AttachedDatabaseConfigurationListResult; }; }; /** - * Contains response data for the beginDeleteMethod operation. + * Contains response data for the get operation. */ -export type IpFirewallRulesBeginDeleteMethodResponse = { +export type AttachedDatabaseConfigurationsGetResponse = AttachedDatabaseConfiguration & { /** - * The parsed response body. + * The underlying HTTP response. */ - body: any; + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AttachedDatabaseConfiguration; + }; +}; +/** + * Contains response data for the createOrUpdate operation. + */ +export type AttachedDatabaseConfigurationsCreateOrUpdateResponse = AttachedDatabaseConfiguration & { /** * The underlying HTTP response. */ @@ -5813,14 +8020,14 @@ export type IpFirewallRulesBeginDeleteMethodResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: AttachedDatabaseConfiguration; }; }; /** - * Contains response data for the beginReplaceAll operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type IpFirewallRulesBeginReplaceAllResponse = ReplaceAllFirewallRulesOperationResponse & { +export type AttachedDatabaseConfigurationsBeginCreateOrUpdateResponse = AttachedDatabaseConfiguration & { /** * The underlying HTTP response. */ @@ -5833,14 +8040,14 @@ export type IpFirewallRulesBeginReplaceAllResponse = ReplaceAllFirewallRulesOper /** * The response body as parsed JSON or XML */ - parsedBody: ReplaceAllFirewallRulesOperationResponse; + parsedBody: AttachedDatabaseConfiguration; }; }; /** - * Contains response data for the listByWorkspaceNext operation. + * Contains response data for the listByKustoPool operation. */ -export type IpFirewallRulesListByWorkspaceNextResponse = IpFirewallRuleInfoListResult & { +export type DatabasesListByKustoPoolResponse = DatabaseListResult & { /** * The underlying HTTP response. */ @@ -5853,14 +8060,14 @@ export type IpFirewallRulesListByWorkspaceNextResponse = IpFirewallRuleInfoListR /** * The response body as parsed JSON or XML */ - parsedBody: IpFirewallRuleInfoListResult; + parsedBody: DatabaseListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type IntegrationRuntimesUpdateResponse = IntegrationRuntimeResource & { +export type DatabasesGetResponse = DatabaseUnion & { /** * The underlying HTTP response. */ @@ -5873,14 +8080,14 @@ export type IntegrationRuntimesUpdateResponse = IntegrationRuntimeResource & { /** * The response body as parsed JSON or XML */ - parsedBody: IntegrationRuntimeResource; + parsedBody: DatabaseUnion; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type IntegrationRuntimesGetResponse = IntegrationRuntimeResource & { +export type DatabasesCreateOrUpdateResponse = DatabaseUnion & { /** * The underlying HTTP response. */ @@ -5893,14 +8100,14 @@ export type IntegrationRuntimesGetResponse = IntegrationRuntimeResource & { /** * The response body as parsed JSON or XML */ - parsedBody: IntegrationRuntimeResource; + parsedBody: DatabaseUnion; }; }; /** - * Contains response data for the create operation. + * Contains response data for the update operation. */ -export type IntegrationRuntimesCreateResponse = IntegrationRuntimeResource & { +export type DatabasesUpdateResponse = DatabaseUnion & { /** * The underlying HTTP response. */ @@ -5913,14 +8120,14 @@ export type IntegrationRuntimesCreateResponse = IntegrationRuntimeResource & { /** * The response body as parsed JSON or XML */ - parsedBody: IntegrationRuntimeResource; + parsedBody: DatabaseUnion; }; }; /** - * Contains response data for the listByWorkspace operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type IntegrationRuntimesListByWorkspaceResponse = IntegrationRuntimeListResponse & { +export type DatabasesBeginCreateOrUpdateResponse = DatabaseUnion & { /** * The underlying HTTP response. */ @@ -5933,14 +8140,14 @@ export type IntegrationRuntimesListByWorkspaceResponse = IntegrationRuntimeListR /** * The response body as parsed JSON or XML */ - parsedBody: IntegrationRuntimeListResponse; + parsedBody: DatabaseUnion; }; }; /** - * Contains response data for the start operation. + * Contains response data for the beginUpdate operation. */ -export type IntegrationRuntimesStartResponse = IntegrationRuntimeStatusResponse & { +export type DatabasesBeginUpdateResponse = DatabaseUnion & { /** * The underlying HTTP response. */ @@ -5953,14 +8160,14 @@ export type IntegrationRuntimesStartResponse = IntegrationRuntimeStatusResponse /** * The response body as parsed JSON or XML */ - parsedBody: IntegrationRuntimeStatusResponse; + parsedBody: DatabaseUnion; }; }; /** - * Contains response data for the beginCreate operation. + * Contains response data for the checkNameAvailability operation. */ -export type IntegrationRuntimesBeginCreateResponse = IntegrationRuntimeResource & { +export type DataConnectionsCheckNameAvailabilityResponse = CheckNameResult & { /** * The underlying HTTP response. */ @@ -5973,14 +8180,14 @@ export type IntegrationRuntimesBeginCreateResponse = IntegrationRuntimeResource /** * The response body as parsed JSON or XML */ - parsedBody: IntegrationRuntimeResource; + parsedBody: CheckNameResult; }; }; /** - * Contains response data for the beginStart operation. + * Contains response data for the dataConnectionValidationMethod operation. */ -export type IntegrationRuntimesBeginStartResponse = IntegrationRuntimeStatusResponse & { +export type DataConnectionsDataConnectionValidationMethodResponse = DataConnectionValidationListResult & { /** * The underlying HTTP response. */ @@ -5993,14 +8200,14 @@ export type IntegrationRuntimesBeginStartResponse = IntegrationRuntimeStatusResp /** * The response body as parsed JSON or XML */ - parsedBody: IntegrationRuntimeStatusResponse; + parsedBody: DataConnectionValidationListResult; }; }; /** - * Contains response data for the listByWorkspaceNext operation. + * Contains response data for the listByDatabase operation. */ -export type IntegrationRuntimesListByWorkspaceNextResponse = IntegrationRuntimeListResponse & { +export type DataConnectionsListByDatabaseResponse = DataConnectionListResult & { /** * The underlying HTTP response. */ @@ -6013,14 +8220,14 @@ export type IntegrationRuntimesListByWorkspaceNextResponse = IntegrationRuntimeL /** * The response body as parsed JSON or XML */ - parsedBody: IntegrationRuntimeListResponse; + parsedBody: DataConnectionListResult; }; }; /** * Contains response data for the get operation. */ -export type IntegrationRuntimeNodeIpAddressGetResponse = IntegrationRuntimeNodeIpAddress & { +export type DataConnectionsGetResponse = DataConnectionUnion & { /** * The underlying HTTP response. */ @@ -6033,14 +8240,14 @@ export type IntegrationRuntimeNodeIpAddressGetResponse = IntegrationRuntimeNodeI /** * The response body as parsed JSON or XML */ - parsedBody: IntegrationRuntimeNodeIpAddress; + parsedBody: DataConnectionUnion; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createOrUpdate operation. */ -export type IntegrationRuntimeObjectMetadataListResponse = SsisObjectMetadataListResponse & { +export type DataConnectionsCreateOrUpdateResponse = DataConnectionUnion & { /** * The underlying HTTP response. */ @@ -6053,14 +8260,14 @@ export type IntegrationRuntimeObjectMetadataListResponse = SsisObjectMetadataLis /** * The response body as parsed JSON or XML */ - parsedBody: SsisObjectMetadataListResponse; + parsedBody: DataConnectionUnion; }; }; /** - * Contains response data for the refresh operation. + * Contains response data for the update operation. */ -export type IntegrationRuntimeObjectMetadataRefreshResponse = SsisObjectMetadataStatusResponse & { +export type DataConnectionsUpdateResponse = DataConnectionUnion & { /** * The underlying HTTP response. */ @@ -6073,14 +8280,14 @@ export type IntegrationRuntimeObjectMetadataRefreshResponse = SsisObjectMetadata /** * The response body as parsed JSON or XML */ - parsedBody: SsisObjectMetadataStatusResponse; + parsedBody: DataConnectionUnion; }; }; /** - * Contains response data for the beginRefresh operation. + * Contains response data for the beginDataConnectionValidationMethod operation. */ -export type IntegrationRuntimeObjectMetadataBeginRefreshResponse = SsisObjectMetadataStatusResponse & { +export type DataConnectionsBeginDataConnectionValidationMethodResponse = DataConnectionValidationListResult & { /** * The underlying HTTP response. */ @@ -6093,14 +8300,14 @@ export type IntegrationRuntimeObjectMetadataBeginRefreshResponse = SsisObjectMet /** * The response body as parsed JSON or XML */ - parsedBody: SsisObjectMetadataStatusResponse; + parsedBody: DataConnectionValidationListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type IntegrationRuntimeNodesGetResponse = SelfHostedIntegrationRuntimeNode & { +export type DataConnectionsBeginCreateOrUpdateResponse = DataConnectionUnion & { /** * The underlying HTTP response. */ @@ -6113,14 +8320,14 @@ export type IntegrationRuntimeNodesGetResponse = SelfHostedIntegrationRuntimeNod /** * The response body as parsed JSON or XML */ - parsedBody: SelfHostedIntegrationRuntimeNode; + parsedBody: DataConnectionUnion; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginUpdate operation. */ -export type IntegrationRuntimeNodesUpdateResponse = SelfHostedIntegrationRuntimeNode & { +export type DataConnectionsBeginUpdateResponse = DataConnectionUnion & { /** * The underlying HTTP response. */ @@ -6133,14 +8340,14 @@ export type IntegrationRuntimeNodesUpdateResponse = SelfHostedIntegrationRuntime /** * The response body as parsed JSON or XML */ - parsedBody: SelfHostedIntegrationRuntimeNode; + parsedBody: DataConnectionUnion; }; }; /** - * Contains response data for the get operation. + * Contains response data for the checkNameAvailability operation. */ -export type IntegrationRuntimeConnectionInfosGetResponse = IntegrationRuntimeConnectionInfo & { +export type KustoPoolPrincipalAssignmentsCheckNameAvailabilityResponse = CheckNameResult & { /** * The underlying HTTP response. */ @@ -6153,14 +8360,14 @@ export type IntegrationRuntimeConnectionInfosGetResponse = IntegrationRuntimeCon /** * The response body as parsed JSON or XML */ - parsedBody: IntegrationRuntimeConnectionInfo; + parsedBody: CheckNameResult; }; }; /** - * Contains response data for the regenerate operation. + * Contains response data for the list operation. */ -export type IntegrationRuntimeAuthKeysRegenerateResponse = IntegrationRuntimeAuthKeys & { +export type KustoPoolPrincipalAssignmentsListResponse = ClusterPrincipalAssignmentListResult & { /** * The underlying HTTP response. */ @@ -6173,14 +8380,14 @@ export type IntegrationRuntimeAuthKeysRegenerateResponse = IntegrationRuntimeAut /** * The response body as parsed JSON or XML */ - parsedBody: IntegrationRuntimeAuthKeys; + parsedBody: ClusterPrincipalAssignmentListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type IntegrationRuntimeAuthKeysListResponse = IntegrationRuntimeAuthKeys & { +export type KustoPoolPrincipalAssignmentsGetResponse = ClusterPrincipalAssignment & { /** * The underlying HTTP response. */ @@ -6193,14 +8400,14 @@ export type IntegrationRuntimeAuthKeysListResponse = IntegrationRuntimeAuthKeys /** * The response body as parsed JSON or XML */ - parsedBody: IntegrationRuntimeAuthKeys; + parsedBody: ClusterPrincipalAssignment; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createOrUpdate operation. */ -export type IntegrationRuntimeMonitoringDataListResponse = IntegrationRuntimeMonitoringData & { +export type KustoPoolPrincipalAssignmentsCreateOrUpdateResponse = ClusterPrincipalAssignment & { /** * The underlying HTTP response. */ @@ -6213,14 +8420,14 @@ export type IntegrationRuntimeMonitoringDataListResponse = IntegrationRuntimeMon /** * The response body as parsed JSON or XML */ - parsedBody: IntegrationRuntimeMonitoringData; + parsedBody: ClusterPrincipalAssignment; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type IntegrationRuntimeStatusGetResponse = IntegrationRuntimeStatusResponse & { +export type KustoPoolPrincipalAssignmentsBeginCreateOrUpdateResponse = ClusterPrincipalAssignment & { /** * The underlying HTTP response. */ @@ -6233,14 +8440,14 @@ export type IntegrationRuntimeStatusGetResponse = IntegrationRuntimeStatusRespon /** * The response body as parsed JSON or XML */ - parsedBody: IntegrationRuntimeStatusResponse; + parsedBody: ClusterPrincipalAssignment; }; }; /** - * Contains response data for the listByWorkspace operation. + * Contains response data for the checkNameAvailability operation. */ -export type KeysListByWorkspaceResponse = KeyInfoListResult & { +export type DatabasePrincipalAssignmentsCheckNameAvailabilityResponse = CheckNameResult & { /** * The underlying HTTP response. */ @@ -6253,14 +8460,14 @@ export type KeysListByWorkspaceResponse = KeyInfoListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: KeyInfoListResult; + parsedBody: CheckNameResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type KeysGetResponse = Key & { +export type DatabasePrincipalAssignmentsListResponse = DatabasePrincipalAssignmentListResult & { /** * The underlying HTTP response. */ @@ -6273,14 +8480,14 @@ export type KeysGetResponse = Key & { /** * The response body as parsed JSON or XML */ - parsedBody: Key; + parsedBody: DatabasePrincipalAssignmentListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type KeysCreateOrUpdateResponse = Key & { +export type DatabasePrincipalAssignmentsGetResponse = DatabasePrincipalAssignment & { /** * The underlying HTTP response. */ @@ -6293,14 +8500,14 @@ export type KeysCreateOrUpdateResponse = Key & { /** * The response body as parsed JSON or XML */ - parsedBody: Key; + parsedBody: DatabasePrincipalAssignment; }; }; /** - * Contains response data for the deleteMethod operation. + * Contains response data for the createOrUpdate operation. */ -export type KeysDeleteMethodResponse = Key & { +export type DatabasePrincipalAssignmentsCreateOrUpdateResponse = DatabasePrincipalAssignment & { /** * The underlying HTTP response. */ @@ -6313,14 +8520,14 @@ export type KeysDeleteMethodResponse = Key & { /** * The response body as parsed JSON or XML */ - parsedBody: Key; + parsedBody: DatabasePrincipalAssignment; }; }; /** - * Contains response data for the listByWorkspaceNext operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type KeysListByWorkspaceNextResponse = KeyInfoListResult & { +export type DatabasePrincipalAssignmentsBeginCreateOrUpdateResponse = DatabasePrincipalAssignment & { /** * The underlying HTTP response. */ @@ -6333,7 +8540,7 @@ export type KeysListByWorkspaceNextResponse = KeyInfoListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: KeyInfoListResult; + parsedBody: DatabasePrincipalAssignment; }; }; @@ -6817,6 +9024,26 @@ export type PrivateEndpointConnectionsPrivateLinkHubListResponse = PrivateEndpoi }; }; +/** + * Contains response data for the get operation. + */ +export type PrivateEndpointConnectionsPrivateLinkHubGetResponse = PrivateEndpointConnectionForPrivateLinkHub & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PrivateEndpointConnectionForPrivateLinkHub; + }; +}; + /** * Contains response data for the listNext operation. */ diff --git a/sdk/synapse/arm-synapse/src/models/integrationRuntimesMappers.ts b/sdk/synapse/arm-synapse/src/models/integrationRuntimesMappers.ts index 85e13516226c..3ee4849203de 100644 --- a/sdk/synapse/arm-synapse/src/models/integrationRuntimesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/integrationRuntimesMappers.ts @@ -8,15 +8,23 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -29,6 +37,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -44,8 +54,14 @@ export { IntegrationRuntimeStatus, IntegrationRuntimeStatusResponse, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -66,6 +82,7 @@ export { ManagedIntegrationRuntimeStatus, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -76,6 +93,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -106,6 +124,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, UpdateIntegrationRuntimeRequest, diff --git a/sdk/synapse/arm-synapse/src/models/ipFirewallRulesMappers.ts b/sdk/synapse/arm-synapse/src/models/ipFirewallRulesMappers.ts index 6451c7c198fa..897aee9ddddd 100644 --- a/sdk/synapse/arm-synapse/src/models/ipFirewallRulesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/ipFirewallRulesMappers.ts @@ -8,15 +8,23 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -29,6 +37,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -41,10 +51,16 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, IpFirewallRuleInfoListResult, IpFirewallRuleProperties, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -60,6 +76,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -70,6 +87,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplaceAllFirewallRulesOperationResponse, @@ -100,6 +118,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/keysMappers.ts b/sdk/synapse/arm-synapse/src/models/keysMappers.ts index f6f1d834711a..4409aa6067f1 100644 --- a/sdk/synapse/arm-synapse/src/models/keysMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/keysMappers.ts @@ -8,15 +8,23 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -29,6 +37,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -41,9 +51,15 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, KeyInfoListResult, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -59,6 +75,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -69,6 +86,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -97,6 +115,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/kustoOperationsMappers.ts b/sdk/synapse/arm-synapse/src/models/kustoOperationsMappers.ts new file mode 100644 index 000000000000..392eafc4561b --- /dev/null +++ b/sdk/synapse/arm-synapse/src/models/kustoOperationsMappers.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + Operation, + OperationDisplay, + OperationListResult +} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/kustoPoolChildResourceMappers.ts b/sdk/synapse/arm-synapse/src/models/kustoPoolChildResourceMappers.ts new file mode 100644 index 000000000000..f8b67c33fbe4 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/models/kustoPoolChildResourceMappers.ts @@ -0,0 +1,16 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + CheckNameResult, + DatabaseCheckNameRequest, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse +} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/kustoPoolOperationsMappers.ts b/sdk/synapse/arm-synapse/src/models/kustoPoolOperationsMappers.ts new file mode 100644 index 000000000000..60fdad9a0111 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/models/kustoPoolOperationsMappers.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + SkuDescription, + SkuDescriptionList, + SkuLocationInfoItem +} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/kustoPoolPrincipalAssignmentsMappers.ts b/sdk/synapse/arm-synapse/src/models/kustoPoolPrincipalAssignmentsMappers.ts new file mode 100644 index 000000000000..12aa1edf538f --- /dev/null +++ b/sdk/synapse/arm-synapse/src/models/kustoPoolPrincipalAssignmentsMappers.ts @@ -0,0 +1,134 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AttachedDatabaseConfiguration, + AutoPauseProperties, + AutoScaleProperties, + AzureEntityResource, + AzureSku, + BaseResource, + BigDataPoolResourceInfo, + CheckNameResult, + ClusterPrincipalAssignment, + ClusterPrincipalAssignmentCheckNameRequest, + ClusterPrincipalAssignmentListResult, + CmdkeySetup, + ComponentSetup, + CspWorkspaceAdminProperties, + CustomerManagedKeyDetails, + CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, + DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, + DataWarehouseUserActivities, + DynamicExecutorAllocation, + EncryptionDetails, + EncryptionProtector, + EntityReference, + EnvironmentVariableSetup, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, + ExtendedServerBlobAuditingPolicy, + ExtendedSqlPoolBlobAuditingPolicy, + GeoBackupPolicy, + IntegrationRuntime, + IntegrationRuntimeComputeProperties, + IntegrationRuntimeCustomSetupScriptProperties, + IntegrationRuntimeDataFlowProperties, + IntegrationRuntimeDataProxyProperties, + IntegrationRuntimeResource, + IntegrationRuntimeSsisCatalogInfo, + IntegrationRuntimeSsisProperties, + IntegrationRuntimeVNetProperties, + IotHubDataConnection, + IpFirewallRuleInfo, + KekIdentityProperties, + Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, + LibraryInfo, + LibraryRequirements, + LibraryResource, + LinkedIntegrationRuntimeKeyAuthorization, + LinkedIntegrationRuntimeRbacAuthorization, + LinkedIntegrationRuntimeType, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedIdentity, + ManagedIdentitySqlControlSettingsModel, + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, + ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, + MetadataSyncConfig, + OptimizedAutoscale, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionForPrivateLinkHub, + PrivateEndpointConnectionForPrivateLinkHubBasic, + PrivateLinkHub, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionState, + ProxyResource, + PurviewConfiguration, + ReadWriteDatabase, + RecommendedSensitivityLabelUpdate, + RecoverableSqlPool, + ReplicationLink, + Resource, + RestorableDroppedSqlPool, + RestorePoint, + SecretBase, + SecureString, + SelfHostedIntegrationRuntime, + SensitivityLabel, + SensitivityLabelUpdate, + ServerBlobAuditingPolicy, + ServerSecurityAlertPolicy, + ServerVulnerabilityAssessment, + Sku, + SqlPool, + SqlPoolBlobAuditingPolicy, + SqlPoolColumn, + SqlPoolConnectionPolicy, + SqlPoolOperation, + SqlPoolSchema, + SqlPoolSecurityAlertPolicy, + SqlPoolTable, + SqlPoolVulnerabilityAssessment, + SqlPoolVulnerabilityAssessmentRuleBaseline, + SqlPoolVulnerabilityAssessmentRuleBaselineItem, + SqlPoolVulnerabilityAssessmentScansExport, + SubResource, + SystemData, + TableLevelSharingProperties, + TrackedResource, + TransparentDataEncryption, + VirtualNetworkProfile, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup, + Workspace, + WorkspaceAadAdminInfo, + WorkspaceKeyDetails, + WorkspaceRepositoryConfiguration +} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/kustoPoolsMappers.ts b/sdk/synapse/arm-synapse/src/models/kustoPoolsMappers.ts new file mode 100644 index 000000000000..188ec1b5fa23 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/models/kustoPoolsMappers.ts @@ -0,0 +1,139 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AttachedDatabaseConfiguration, + AutoPauseProperties, + AutoScaleProperties, + AzureCapacity, + AzureEntityResource, + AzureResourceSku, + AzureSku, + BaseResource, + BigDataPoolResourceInfo, + CheckNameResult, + ClusterPrincipalAssignment, + CmdkeySetup, + ComponentSetup, + CspWorkspaceAdminProperties, + CustomerManagedKeyDetails, + CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, + DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, + DataWarehouseUserActivities, + DynamicExecutorAllocation, + EncryptionDetails, + EncryptionProtector, + EntityReference, + EnvironmentVariableSetup, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, + ExtendedServerBlobAuditingPolicy, + ExtendedSqlPoolBlobAuditingPolicy, + FollowerDatabaseDefinition, + FollowerDatabaseListResult, + GeoBackupPolicy, + IntegrationRuntime, + IntegrationRuntimeComputeProperties, + IntegrationRuntimeCustomSetupScriptProperties, + IntegrationRuntimeDataFlowProperties, + IntegrationRuntimeDataProxyProperties, + IntegrationRuntimeResource, + IntegrationRuntimeSsisCatalogInfo, + IntegrationRuntimeSsisProperties, + IntegrationRuntimeVNetProperties, + IotHubDataConnection, + IpFirewallRuleInfo, + KekIdentityProperties, + Key, + KustoPool, + KustoPoolCheckNameRequest, + KustoPoolListResult, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, + LibraryInfo, + LibraryRequirements, + LibraryResource, + LinkedIntegrationRuntimeKeyAuthorization, + LinkedIntegrationRuntimeRbacAuthorization, + LinkedIntegrationRuntimeType, + ListResourceSkusResult, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedIdentity, + ManagedIdentitySqlControlSettingsModel, + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, + ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, + MetadataSyncConfig, + OptimizedAutoscale, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionForPrivateLinkHub, + PrivateEndpointConnectionForPrivateLinkHubBasic, + PrivateLinkHub, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionState, + ProxyResource, + PurviewConfiguration, + ReadWriteDatabase, + RecommendedSensitivityLabelUpdate, + RecoverableSqlPool, + ReplicationLink, + Resource, + RestorableDroppedSqlPool, + RestorePoint, + SecretBase, + SecureString, + SelfHostedIntegrationRuntime, + SensitivityLabel, + SensitivityLabelUpdate, + ServerBlobAuditingPolicy, + ServerSecurityAlertPolicy, + ServerVulnerabilityAssessment, + Sku, + SqlPool, + SqlPoolBlobAuditingPolicy, + SqlPoolColumn, + SqlPoolConnectionPolicy, + SqlPoolOperation, + SqlPoolSchema, + SqlPoolSecurityAlertPolicy, + SqlPoolTable, + SqlPoolVulnerabilityAssessment, + SqlPoolVulnerabilityAssessmentRuleBaseline, + SqlPoolVulnerabilityAssessmentRuleBaselineItem, + SqlPoolVulnerabilityAssessmentScansExport, + SubResource, + SystemData, + TableLevelSharingProperties, + TrackedResource, + TransparentDataEncryption, + VirtualNetworkProfile, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup, + Workspace, + WorkspaceAadAdminInfo, + WorkspaceKeyDetails, + WorkspaceRepositoryConfiguration +} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/librariesMappers.ts b/sdk/synapse/arm-synapse/src/models/librariesMappers.ts index eef5ae83fab3..4fbf2c8ed61a 100644 --- a/sdk/synapse/arm-synapse/src/models/librariesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/librariesMappers.ts @@ -8,15 +8,23 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -29,6 +37,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -41,8 +51,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryListResponse, LibraryRequirements, @@ -59,6 +75,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -69,6 +86,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -97,6 +115,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/libraryMappers.ts b/sdk/synapse/arm-synapse/src/models/libraryMappers.ts index fa7be042dcd4..b4e9ed3171c2 100644 --- a/sdk/synapse/arm-synapse/src/models/libraryMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/libraryMappers.ts @@ -8,15 +8,23 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -29,6 +37,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -41,8 +51,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -58,6 +74,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -68,6 +85,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -96,6 +114,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/mappers.ts b/sdk/synapse/arm-synapse/src/models/mappers.ts index 13bf88187ac0..82b3afa2c812 100644 --- a/sdk/synapse/arm-synapse/src/models/mappers.ts +++ b/sdk/synapse/arm-synapse/src/models/mappers.ts @@ -592,6 +592,7 @@ export const IpFirewallRuleInfo: msRest.CompositeMapper = { name: "Composite", className: "IpFirewallRuleInfo", modelProperties: { + ...ProxyResource.type.modelProperties, endIpAddress: { serializedName: "properties.endIpAddress", type: { @@ -2645,8 +2646,1462 @@ export const SsisObjectMetadataStatusResponse: msRest.CompositeMapper = { name: "String" } }, - error: { - serializedName: "error", + error: { + serializedName: "error", + type: { + name: "String" + } + } + } + } +}; + +export const Key: msRest.CompositeMapper = { + serializedName: "Key", + type: { + name: "Composite", + className: "Key", + modelProperties: { + ...ProxyResource.type.modelProperties, + isActiveCMK: { + serializedName: "properties.isActiveCMK", + type: { + name: "Boolean" + } + }, + keyVaultUrl: { + serializedName: "properties.keyVaultUrl", + type: { + name: "String" + } + } + } + } +}; + +export const OperationDisplay: msRest.CompositeMapper = { + serializedName: "Operation_display", + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + }, + origin: { + serializedName: "origin", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Object" + } + } + } + } +}; + +export const AzureSku: msRest.CompositeMapper = { + serializedName: "AzureSku", + type: { + name: "Composite", + className: "AzureSku", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } + }, + size: { + required: true, + serializedName: "size", + type: { + name: "String" + } + } + } + } +}; + +export const OptimizedAutoscale: msRest.CompositeMapper = { + serializedName: "OptimizedAutoscale", + type: { + name: "Composite", + className: "OptimizedAutoscale", + modelProperties: { + version: { + required: true, + serializedName: "version", + type: { + name: "Number" + } + }, + isEnabled: { + required: true, + serializedName: "isEnabled", + type: { + name: "Boolean" + } + }, + minimum: { + required: true, + serializedName: "minimum", + type: { + name: "Number" + } + }, + maximum: { + required: true, + serializedName: "maximum", + type: { + name: "Number" + } + } + } + } +}; + +export const LanguageExtension: msRest.CompositeMapper = { + serializedName: "LanguageExtension", + type: { + name: "Composite", + className: "LanguageExtension", + modelProperties: { + languageExtensionName: { + serializedName: "languageExtensionName", + type: { + name: "String" + } + } + } + } +}; + +export const SystemData: msRest.CompositeMapper = { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } + } + } + } +}; + +export const KustoPool: msRest.CompositeMapper = { + serializedName: "KustoPool", + type: { + name: "Composite", + className: "KustoPool", + modelProperties: { + ...TrackedResource.type.modelProperties, + sku: { + required: true, + serializedName: "sku", + type: { + name: "Composite", + className: "AzureSku" + } + }, + state: { + readOnly: true, + serializedName: "properties.state", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uri: { + readOnly: true, + serializedName: "properties.uri", + type: { + name: "String" + } + }, + dataIngestionUri: { + readOnly: true, + serializedName: "properties.dataIngestionUri", + type: { + name: "String" + } + }, + stateReason: { + readOnly: true, + serializedName: "properties.stateReason", + type: { + name: "String" + } + }, + optimizedAutoscale: { + serializedName: "properties.optimizedAutoscale", + type: { + name: "Composite", + className: "OptimizedAutoscale" + } + }, + enableStreamingIngest: { + serializedName: "properties.enableStreamingIngest", + defaultValue: false, + type: { + name: "Boolean" + } + }, + enablePurge: { + serializedName: "properties.enablePurge", + defaultValue: false, + type: { + name: "Boolean" + } + }, + languageExtensions: { + readOnly: true, + serializedName: "properties.languageExtensions", + type: { + name: "Composite", + className: "LanguageExtensionsList" + } + }, + workspaceUID: { + serializedName: "properties.workspaceUID", + type: { + name: "String" + } + }, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const KustoPoolListResult: msRest.CompositeMapper = { + serializedName: "KustoPoolListResult", + type: { + name: "Composite", + className: "KustoPoolListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "KustoPool" + } + } + } + } + } + } +}; + +export const SkuLocationInfoItem: msRest.CompositeMapper = { + serializedName: "SkuLocationInfoItem", + type: { + name: "Composite", + className: "SkuLocationInfoItem", + modelProperties: { + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const SkuDescription: msRest.CompositeMapper = { + serializedName: "SkuDescription", + type: { + name: "Composite", + className: "SkuDescription", + modelProperties: { + resourceType: { + readOnly: true, + serializedName: "resourceType", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + size: { + readOnly: true, + serializedName: "size", + type: { + name: "String" + } + }, + locations: { + readOnly: true, + serializedName: "locations", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + locationInfo: { + readOnly: true, + serializedName: "locationInfo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SkuLocationInfoItem" + } + } + } + }, + restrictions: { + readOnly: true, + serializedName: "restrictions", + type: { + name: "Sequence", + element: { + type: { + name: "Object" + } + } + } + } + } + } +}; + +export const AzureCapacity: msRest.CompositeMapper = { + serializedName: "AzureCapacity", + type: { + name: "Composite", + className: "AzureCapacity", + modelProperties: { + scaleType: { + required: true, + serializedName: "scaleType", + type: { + name: "String" + } + }, + minimum: { + required: true, + serializedName: "minimum", + type: { + name: "Number" + } + }, + maximum: { + required: true, + serializedName: "maximum", + type: { + name: "Number" + } + }, + default: { + required: true, + serializedName: "default", + type: { + name: "Number" + } + } + } + } +}; + +export const AzureResourceSku: msRest.CompositeMapper = { + serializedName: "AzureResourceSku", + type: { + name: "Composite", + className: "AzureResourceSku", + modelProperties: { + resourceType: { + serializedName: "resourceType", + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "AzureSku" + } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Composite", + className: "AzureCapacity" + } + } + } + } +}; + +export const KustoPoolUpdate: msRest.CompositeMapper = { + serializedName: "KustoPoolUpdate", + type: { + name: "Composite", + className: "KustoPoolUpdate", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "AzureSku" + } + }, + state: { + readOnly: true, + serializedName: "properties.state", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + uri: { + readOnly: true, + serializedName: "properties.uri", + type: { + name: "String" + } + }, + dataIngestionUri: { + readOnly: true, + serializedName: "properties.dataIngestionUri", + type: { + name: "String" + } + }, + stateReason: { + readOnly: true, + serializedName: "properties.stateReason", + type: { + name: "String" + } + }, + optimizedAutoscale: { + serializedName: "properties.optimizedAutoscale", + type: { + name: "Composite", + className: "OptimizedAutoscale" + } + }, + enableStreamingIngest: { + serializedName: "properties.enableStreamingIngest", + defaultValue: false, + type: { + name: "Boolean" + } + }, + enablePurge: { + serializedName: "properties.enablePurge", + defaultValue: false, + type: { + name: "Boolean" + } + }, + languageExtensions: { + readOnly: true, + serializedName: "properties.languageExtensions", + type: { + name: "Composite", + className: "LanguageExtensionsList" + } + }, + workspaceUID: { + serializedName: "properties.workspaceUID", + type: { + name: "String" + } + } + } + } +}; + +export const TableLevelSharingProperties: msRest.CompositeMapper = { + serializedName: "TableLevelSharingProperties", + type: { + name: "Composite", + className: "TableLevelSharingProperties", + modelProperties: { + tablesToInclude: { + serializedName: "tablesToInclude", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + tablesToExclude: { + serializedName: "tablesToExclude", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + externalTablesToInclude: { + serializedName: "externalTablesToInclude", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + externalTablesToExclude: { + serializedName: "externalTablesToExclude", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + materializedViewsToInclude: { + serializedName: "materializedViewsToInclude", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + materializedViewsToExclude: { + serializedName: "materializedViewsToExclude", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const AttachedDatabaseConfiguration: msRest.CompositeMapper = { + serializedName: "AttachedDatabaseConfiguration", + type: { + name: "Composite", + className: "AttachedDatabaseConfiguration", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + databaseName: { + required: true, + serializedName: "properties.databaseName", + type: { + name: "String" + } + }, + clusterResourceId: { + required: true, + serializedName: "properties.clusterResourceId", + type: { + name: "String" + } + }, + attachedDatabaseNames: { + readOnly: true, + serializedName: "properties.attachedDatabaseNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + defaultPrincipalsModificationKind: { + required: true, + serializedName: "properties.defaultPrincipalsModificationKind", + type: { + name: "String" + } + }, + tableLevelSharingProperties: { + serializedName: "properties.tableLevelSharingProperties", + type: { + name: "Composite", + className: "TableLevelSharingProperties" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const Database: msRest.CompositeMapper = { + serializedName: "Database", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "Database", + className: "Database", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + +export const DatabaseStatistics: msRest.CompositeMapper = { + serializedName: "DatabaseStatistics", + type: { + name: "Composite", + className: "DatabaseStatistics", + modelProperties: { + size: { + serializedName: "size", + type: { + name: "Number" + } + } + } + } +}; + +export const ReadWriteDatabase: msRest.CompositeMapper = { + serializedName: "ReadWrite", + type: { + name: "Composite", + polymorphicDiscriminator: Database.type.polymorphicDiscriminator, + uberParent: "Database", + className: "ReadWriteDatabase", + modelProperties: { + ...Database.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + softDeletePeriod: { + serializedName: "properties.softDeletePeriod", + type: { + name: "TimeSpan" + } + }, + hotCachePeriod: { + serializedName: "properties.hotCachePeriod", + type: { + name: "TimeSpan" + } + }, + statistics: { + serializedName: "properties.statistics", + type: { + name: "Composite", + className: "DatabaseStatistics" + } + }, + isFollowed: { + readOnly: true, + serializedName: "properties.isFollowed", + type: { + name: "Boolean" + } + } + } + } +}; + +export const DataConnectionValidationResult: msRest.CompositeMapper = { + serializedName: "DataConnectionValidationResult", + type: { + name: "Composite", + className: "DataConnectionValidationResult", + modelProperties: { + errorMessage: { + serializedName: "errorMessage", + type: { + name: "String" + } + } + } + } +}; + +export const DataConnectionValidationListResult: msRest.CompositeMapper = { + serializedName: "DataConnectionValidationListResult", + type: { + name: "Composite", + className: "DataConnectionValidationListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataConnectionValidationResult" + } + } + } + } + } + } +}; + +export const DataConnection: msRest.CompositeMapper = { + serializedName: "DataConnection", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "DataConnection", + className: "DataConnection", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + +export const DataConnectionValidation: msRest.CompositeMapper = { + serializedName: "DataConnectionValidation", + type: { + name: "Composite", + className: "DataConnectionValidation", + modelProperties: { + dataConnectionName: { + serializedName: "dataConnectionName", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataConnection" + } + } + } + } +}; + +export const EventHubDataConnection: msRest.CompositeMapper = { + serializedName: "EventHub", + type: { + name: "Composite", + polymorphicDiscriminator: DataConnection.type.polymorphicDiscriminator, + uberParent: "DataConnection", + className: "EventHubDataConnection", + modelProperties: { + ...DataConnection.type.modelProperties, + eventHubResourceId: { + required: true, + serializedName: "properties.eventHubResourceId", + type: { + name: "String" + } + }, + consumerGroup: { + required: true, + serializedName: "properties.consumerGroup", + type: { + name: "String" + } + }, + tableName: { + serializedName: "properties.tableName", + type: { + name: "String" + } + }, + mappingRuleName: { + serializedName: "properties.mappingRuleName", + type: { + name: "String" + } + }, + dataFormat: { + serializedName: "properties.dataFormat", + type: { + name: "String" + } + }, + eventSystemProperties: { + serializedName: "properties.eventSystemProperties", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + compression: { + serializedName: "properties.compression", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const IotHubDataConnection: msRest.CompositeMapper = { + serializedName: "IotHub", + type: { + name: "Composite", + polymorphicDiscriminator: DataConnection.type.polymorphicDiscriminator, + uberParent: "DataConnection", + className: "IotHubDataConnection", + modelProperties: { + ...DataConnection.type.modelProperties, + iotHubResourceId: { + required: true, + serializedName: "properties.iotHubResourceId", + type: { + name: "String" + } + }, + consumerGroup: { + required: true, + serializedName: "properties.consumerGroup", + type: { + name: "String" + } + }, + tableName: { + serializedName: "properties.tableName", + type: { + name: "String" + } + }, + mappingRuleName: { + serializedName: "properties.mappingRuleName", + type: { + name: "String" + } + }, + dataFormat: { + serializedName: "properties.dataFormat", + type: { + name: "String" + } + }, + eventSystemProperties: { + serializedName: "properties.eventSystemProperties", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + sharedAccessPolicyName: { + required: true, + serializedName: "properties.sharedAccessPolicyName", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const EventGridDataConnection: msRest.CompositeMapper = { + serializedName: "EventGrid", + type: { + name: "Composite", + polymorphicDiscriminator: DataConnection.type.polymorphicDiscriminator, + uberParent: "DataConnection", + className: "EventGridDataConnection", + modelProperties: { + ...DataConnection.type.modelProperties, + storageAccountResourceId: { + required: true, + serializedName: "properties.storageAccountResourceId", + type: { + name: "String" + } + }, + eventHubResourceId: { + required: true, + serializedName: "properties.eventHubResourceId", + type: { + name: "String" + } + }, + consumerGroup: { + required: true, + serializedName: "properties.consumerGroup", + type: { + name: "String" + } + }, + tableName: { + serializedName: "properties.tableName", + type: { + name: "String" + } + }, + mappingRuleName: { + serializedName: "properties.mappingRuleName", + type: { + name: "String" + } + }, + dataFormat: { + serializedName: "properties.dataFormat", + type: { + name: "String" + } + }, + ignoreFirstRecord: { + serializedName: "properties.ignoreFirstRecord", + type: { + name: "Boolean" + } + }, + blobStorageEventType: { + serializedName: "properties.blobStorageEventType", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const FollowerDatabaseDefinition: msRest.CompositeMapper = { + serializedName: "FollowerDatabaseDefinition", + type: { + name: "Composite", + className: "FollowerDatabaseDefinition", + modelProperties: { + clusterResourceId: { + required: true, + serializedName: "clusterResourceId", + type: { + name: "String" + } + }, + attachedDatabaseConfigurationName: { + required: true, + serializedName: "attachedDatabaseConfigurationName", + type: { + name: "String" + } + }, + databaseName: { + readOnly: true, + serializedName: "databaseName", + type: { + name: "String" + } + } + } + } +}; + +export const ClusterPrincipalAssignment: msRest.CompositeMapper = { + serializedName: "ClusterPrincipalAssignment", + type: { + name: "Composite", + className: "ClusterPrincipalAssignment", + modelProperties: { + ...ProxyResource.type.modelProperties, + principalId: { + required: true, + serializedName: "properties.principalId", + type: { + name: "String" + } + }, + role: { + required: true, + serializedName: "properties.role", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "properties.tenantId", + type: { + name: "String" + } + }, + principalType: { + required: true, + serializedName: "properties.principalType", + type: { + name: "String" + } + }, + tenantName: { + readOnly: true, + serializedName: "properties.tenantName", + type: { + name: "String" + } + }, + principalName: { + readOnly: true, + serializedName: "properties.principalName", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const ClusterPrincipalAssignmentCheckNameRequest: msRest.CompositeMapper = { + serializedName: "ClusterPrincipalAssignmentCheckNameRequest", + type: { + name: "Composite", + className: "ClusterPrincipalAssignmentCheckNameRequest", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + required: true, + isConstant: true, + serializedName: "type", + defaultValue: 'Microsoft.Synapse/workspaces/kustoPools/principalAssignments', + type: { + name: "String" + } + } + } + } +}; + +export const DatabasePrincipalAssignment: msRest.CompositeMapper = { + serializedName: "DatabasePrincipalAssignment", + type: { + name: "Composite", + className: "DatabasePrincipalAssignment", + modelProperties: { + ...ProxyResource.type.modelProperties, + principalId: { + required: true, + serializedName: "properties.principalId", + type: { + name: "String" + } + }, + role: { + required: true, + serializedName: "properties.role", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "properties.tenantId", + type: { + name: "String" + } + }, + principalType: { + required: true, + serializedName: "properties.principalType", + type: { + name: "String" + } + }, + tenantName: { + readOnly: true, + serializedName: "properties.tenantName", + type: { + name: "String" + } + }, + principalName: { + readOnly: true, + serializedName: "properties.principalName", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const DatabasePrincipalAssignmentCheckNameRequest: msRest.CompositeMapper = { + serializedName: "DatabasePrincipalAssignmentCheckNameRequest", + type: { + name: "Composite", + className: "DatabasePrincipalAssignmentCheckNameRequest", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + required: true, + isConstant: true, + serializedName: "type", + defaultValue: 'Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments', + type: { + name: "String" + } + } + } + } +}; + +export const KustoPoolCheckNameRequest: msRest.CompositeMapper = { + serializedName: "KustoPoolCheckNameRequest", + type: { + name: "Composite", + className: "KustoPoolCheckNameRequest", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + required: true, + isConstant: true, + serializedName: "type", + defaultValue: 'Microsoft.Synapse/workspaces/kustoPools', + type: { + name: "String" + } + } + } + } +}; + +export const DatabaseCheckNameRequest: msRest.CompositeMapper = { + serializedName: "DatabaseCheckNameRequest", + type: { + name: "Composite", + className: "DatabaseCheckNameRequest", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + required: true, + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "Microsoft.Synapse/workspaces/kustoPools/databases", + "Microsoft.Synapse/workspaces/kustoPools/attachedDatabaseConfigurations" + ] + } + } + } + } +}; + +export const DataConnectionCheckNameRequest: msRest.CompositeMapper = { + serializedName: "DataConnectionCheckNameRequest", + type: { + name: "Composite", + className: "DataConnectionCheckNameRequest", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + required: true, + isConstant: true, + serializedName: "type", + defaultValue: 'Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections', type: { name: "String" } @@ -2655,21 +4110,32 @@ export const SsisObjectMetadataStatusResponse: msRest.CompositeMapper = { } }; -export const Key: msRest.CompositeMapper = { - serializedName: "Key", +export const CheckNameResult: msRest.CompositeMapper = { + serializedName: "CheckNameResult", type: { name: "Composite", - className: "Key", + className: "CheckNameResult", modelProperties: { - ...ProxyResource.type.modelProperties, - isActiveCMK: { - serializedName: "properties.isActiveCMK", + nameAvailable: { + serializedName: "nameAvailable", type: { name: "Boolean" } }, - keyVaultUrl: { - serializedName: "properties.keyVaultUrl", + name: { + serializedName: "name", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -3497,6 +4963,7 @@ export const MetadataSyncConfig: msRest.CompositeMapper = { name: "Composite", className: "MetadataSyncConfig", modelProperties: { + ...ProxyResource.type.modelProperties, enabled: { serializedName: "properties.enabled", type: { @@ -5849,6 +7316,28 @@ export const WorkspaceKeyDetails: msRest.CompositeMapper = { } }; +export const KekIdentityProperties: msRest.CompositeMapper = { + serializedName: "KekIdentityProperties", + type: { + name: "Composite", + className: "KekIdentityProperties", + modelProperties: { + userAssignedIdentity: { + serializedName: "userAssignedIdentity", + type: { + name: "String" + } + }, + useSystemAssignedIdentity: { + serializedName: "useSystemAssignedIdentity", + type: { + name: "Object" + } + } + } + } +}; + export const CustomerManagedKeyDetails: msRest.CompositeMapper = { serializedName: "CustomerManagedKeyDetails", type: { @@ -5868,6 +7357,13 @@ export const CustomerManagedKeyDetails: msRest.CompositeMapper = { name: "Composite", className: "WorkspaceKeyDetails" } + }, + kekIdentity: { + serializedName: "kekIdentity", + type: { + name: "Composite", + className: "KekIdentityProperties" + } } } } @@ -6010,6 +7506,22 @@ export const PurviewConfiguration: msRest.CompositeMapper = { } }; +export const CspWorkspaceAdminProperties: msRest.CompositeMapper = { + serializedName: "CspWorkspaceAdminProperties", + type: { + name: "Composite", + className: "CspWorkspaceAdminProperties", + modelProperties: { + initialWorkspaceAdminObjectId: { + serializedName: "initialWorkspaceAdminObjectId", + type: { + name: "String" + } + } + } + } +}; + export const ManagedIdentity: msRest.CompositeMapper = { serializedName: "ManagedIdentity", type: { @@ -6179,6 +7691,13 @@ export const Workspace: msRest.CompositeMapper = { name: "String" } }, + cspWorkspaceAdminProperties: { + serializedName: "properties.cspWorkspaceAdminProperties", + type: { + name: "Composite", + className: "CspWorkspaceAdminProperties" + } + }, identity: { serializedName: "identity", type: { @@ -6196,6 +7715,7 @@ export const WorkspaceAadAdminInfo: msRest.CompositeMapper = { name: "Composite", className: "WorkspaceAadAdminInfo", modelProperties: { + ...ProxyResource.type.modelProperties, tenantId: { serializedName: "properties.tenantId", type: { @@ -6527,6 +8047,234 @@ export const KeyInfoListResult: msRest.CompositeMapper = { } }; +export const OperationListResult: msRest.CompositeMapper = { + serializedName: "OperationListResult", + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SkuDescriptionList: msRest.CompositeMapper = { + serializedName: "SkuDescriptionList", + type: { + name: "Composite", + className: "SkuDescriptionList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SkuDescription" + } + } + } + } + } + } +}; + +export const ListResourceSkusResult: msRest.CompositeMapper = { + serializedName: "ListResourceSkusResult", + type: { + name: "Composite", + className: "ListResourceSkusResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureResourceSku" + } + } + } + } + } + } +}; + +export const LanguageExtensionsList: msRest.CompositeMapper = { + serializedName: "LanguageExtensionsList", + type: { + name: "Composite", + className: "LanguageExtensionsList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LanguageExtension" + } + } + } + } + } + } +}; + +export const FollowerDatabaseListResult: msRest.CompositeMapper = { + serializedName: "FollowerDatabaseListResult", + type: { + name: "Composite", + className: "FollowerDatabaseListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FollowerDatabaseDefinition" + } + } + } + } + } + } +}; + +export const AttachedDatabaseConfigurationListResult: msRest.CompositeMapper = { + serializedName: "AttachedDatabaseConfigurationListResult", + type: { + name: "Composite", + className: "AttachedDatabaseConfigurationListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AttachedDatabaseConfiguration" + } + } + } + } + } + } +}; + +export const DatabaseListResult: msRest.CompositeMapper = { + serializedName: "DatabaseListResult", + type: { + name: "Composite", + className: "DatabaseListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Database" + } + } + } + } + } + } +}; + +export const DataConnectionListResult: msRest.CompositeMapper = { + serializedName: "DataConnectionListResult", + type: { + name: "Composite", + className: "DataConnectionListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataConnection" + } + } + } + } + } + } +}; + +export const ClusterPrincipalAssignmentListResult: msRest.CompositeMapper = { + serializedName: "ClusterPrincipalAssignmentListResult", + type: { + name: "Composite", + className: "ClusterPrincipalAssignmentListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ClusterPrincipalAssignment" + } + } + } + } + } + } +}; + +export const DatabasePrincipalAssignmentListResult: msRest.CompositeMapper = { + serializedName: "DatabasePrincipalAssignmentListResult", + type: { + name: "Composite", + className: "DatabasePrincipalAssignmentListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabasePrincipalAssignment" + } + } + } + } + } + } +}; + export const LibraryListResponse: msRest.CompositeMapper = { serializedName: "LibraryListResponse", type: { @@ -7504,6 +9252,12 @@ export const discriminators = { 'SsisObjectMetadata.Folder' : SsisFolder, 'SsisObjectMetadata.Project' : SsisProject, 'SsisObjectMetadata.Package' : SsisPackage, - 'SsisObjectMetadata.Environment' : SsisEnvironment + 'SsisObjectMetadata.Environment' : SsisEnvironment, + 'Database' : Database, + 'Database.ReadWrite' : ReadWriteDatabase, + 'DataConnection' : DataConnection, + 'DataConnection.EventHub' : EventHubDataConnection, + 'DataConnection.IotHub' : IotHubDataConnection, + 'DataConnection.EventGrid' : EventGridDataConnection }; diff --git a/sdk/synapse/arm-synapse/src/models/parameters.ts b/sdk/synapse/arm-synapse/src/models/parameters.ts index 94ee34b3d1d6..c06a9a90da97 100644 --- a/sdk/synapse/arm-synapse/src/models/parameters.ts +++ b/sdk/synapse/arm-synapse/src/models/parameters.ts @@ -32,6 +32,16 @@ export const apiVersion: msRest.OperationQueryParameter = { } } }; +export const attachedDatabaseConfigurationName: msRest.OperationURLParameter = { + parameterPath: "attachedDatabaseConfigurationName", + mapper: { + required: true, + serializedName: "attachedDatabaseConfigurationName", + type: { + name: "String" + } + } +}; export const baselineName: msRest.OperationURLParameter = { parameterPath: "baselineName", mapper: { @@ -90,6 +100,26 @@ export const connectionPolicyName: msRest.OperationURLParameter = { } } }; +export const databaseName: msRest.OperationURLParameter = { + parameterPath: "databaseName", + mapper: { + required: true, + serializedName: "databaseName", + type: { + name: "String" + } + } +}; +export const dataConnectionName: msRest.OperationURLParameter = { + parameterPath: "dataConnectionName", + mapper: { + required: true, + serializedName: "dataConnectionName", + type: { + name: "String" + } + } +}; export const dataMaskingPolicyName: msRest.OperationURLParameter = { parameterPath: "dataMaskingPolicyName", mapper: { @@ -229,6 +259,16 @@ export const keyName: msRest.OperationURLParameter = { } } }; +export const kustoPoolName: msRest.OperationURLParameter = { + parameterPath: "kustoPoolName", + mapper: { + required: true, + serializedName: "kustoPoolName", + type: { + name: "String" + } + } +}; export const libraryName: msRest.OperationURLParameter = { parameterPath: "libraryName", mapper: { @@ -249,6 +289,19 @@ export const linkId: msRest.OperationURLParameter = { } } }; +export const location: msRest.OperationURLParameter = { + parameterPath: "location", + mapper: { + required: true, + serializedName: "location", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } +}; export const maintenanceWindowName: msRest.OperationQueryParameter = { parameterPath: "maintenanceWindowName", mapper: { @@ -300,6 +353,16 @@ export const operationId: msRest.OperationURLParameter = { } } }; +export const principalAssignmentName: msRest.OperationURLParameter = { + parameterPath: "principalAssignmentName", + mapper: { + required: true, + serializedName: "principalAssignmentName", + type: { + name: "String" + } + } +}; export const privateEndpointConnectionName: msRest.OperationURLParameter = { parameterPath: "privateEndpointConnectionName", mapper: { @@ -337,8 +400,7 @@ export const resourceGroupName: msRest.OperationURLParameter = { serializedName: "resourceGroupName", constraints: { MaxLength: 90, - MinLength: 1, - Pattern: /^[-\w\._\(\)]+$/ + MinLength: 1 }, type: { name: "String" diff --git a/sdk/synapse/arm-synapse/src/models/privateEndpointConnectionsMappers.ts b/sdk/synapse/arm-synapse/src/models/privateEndpointConnectionsMappers.ts index 262b1c64c8e6..44eeeada55bc 100644 --- a/sdk/synapse/arm-synapse/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/privateEndpointConnectionsMappers.ts @@ -8,15 +8,23 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -29,6 +37,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -41,8 +51,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -59,6 +75,7 @@ export { ManagedVirtualNetworkSettings, MetadataSyncConfig, OperationResource, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -70,6 +87,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -98,6 +116,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/privateEndpointConnectionsPrivateLinkHubMappers.ts b/sdk/synapse/arm-synapse/src/models/privateEndpointConnectionsPrivateLinkHubMappers.ts index 90adbe73e0c3..990de96163d2 100644 --- a/sdk/synapse/arm-synapse/src/models/privateEndpointConnectionsPrivateLinkHubMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/privateEndpointConnectionsPrivateLinkHubMappers.ts @@ -8,15 +8,23 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -29,6 +37,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -41,8 +51,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -58,6 +74,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -69,6 +86,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -97,6 +115,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/privateLinkHubPrivateLinkResourcesMappers.ts b/sdk/synapse/arm-synapse/src/models/privateLinkHubPrivateLinkResourcesMappers.ts index 18146d45608a..73469183d4a2 100644 --- a/sdk/synapse/arm-synapse/src/models/privateLinkHubPrivateLinkResourcesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/privateLinkHubPrivateLinkResourcesMappers.ts @@ -8,15 +8,23 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -29,6 +37,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -41,8 +51,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -58,6 +74,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -69,6 +86,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -97,6 +115,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/privateLinkHubsMappers.ts b/sdk/synapse/arm-synapse/src/models/privateLinkHubsMappers.ts index baafec14a504..d529abf560d0 100644 --- a/sdk/synapse/arm-synapse/src/models/privateLinkHubsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/privateLinkHubsMappers.ts @@ -8,15 +8,23 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -29,6 +37,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -41,8 +51,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -58,6 +74,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -70,6 +87,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -98,6 +116,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/privateLinkResourcesMappers.ts b/sdk/synapse/arm-synapse/src/models/privateLinkResourcesMappers.ts index 18146d45608a..73469183d4a2 100644 --- a/sdk/synapse/arm-synapse/src/models/privateLinkResourcesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/privateLinkResourcesMappers.ts @@ -8,15 +8,23 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -29,6 +37,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -41,8 +51,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -58,6 +74,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -69,6 +86,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -97,6 +115,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/restorableDroppedSqlPoolsMappers.ts b/sdk/synapse/arm-synapse/src/models/restorableDroppedSqlPoolsMappers.ts index c734cf673056..eb83fe7562cc 100644 --- a/sdk/synapse/arm-synapse/src/models/restorableDroppedSqlPoolsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/restorableDroppedSqlPoolsMappers.ts @@ -8,15 +8,23 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -29,6 +37,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -41,8 +51,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -58,6 +74,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -68,6 +85,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -97,6 +115,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolBlobAuditingPoliciesMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolBlobAuditingPoliciesMappers.ts index 64560aa6a40a..55636ff94039 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolBlobAuditingPoliciesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolBlobAuditingPoliciesMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -27,6 +35,8 @@ export { EncryptionProtector, EntityReference, EnvironmentVariableSetup, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -39,8 +49,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -56,6 +72,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -66,6 +83,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -95,6 +113,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolColumnsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolColumnsMappers.ts index 3e64b791ca44..3e9343348054 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolColumnsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolColumnsMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -27,6 +35,8 @@ export { EncryptionProtector, EntityReference, EnvironmentVariableSetup, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -39,8 +49,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -56,6 +72,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -66,6 +83,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -94,6 +112,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolConnectionPoliciesMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolConnectionPoliciesMappers.ts index fa7be042dcd4..b4e9ed3171c2 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolConnectionPoliciesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolConnectionPoliciesMappers.ts @@ -8,15 +8,23 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -29,6 +37,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -41,8 +51,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -58,6 +74,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -68,6 +85,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -96,6 +114,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolDataWarehouseUserActivitiesMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolDataWarehouseUserActivitiesMappers.ts index 3e64b791ca44..3e9343348054 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolDataWarehouseUserActivitiesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolDataWarehouseUserActivitiesMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -27,6 +35,8 @@ export { EncryptionProtector, EntityReference, EnvironmentVariableSetup, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -39,8 +49,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -56,6 +72,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -66,6 +83,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -94,6 +112,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolGeoBackupPoliciesMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolGeoBackupPoliciesMappers.ts index a946fc3c7409..4c8e5df03dcb 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolGeoBackupPoliciesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolGeoBackupPoliciesMappers.ts @@ -8,15 +8,23 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -29,6 +37,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -42,8 +52,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -59,6 +75,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -69,6 +86,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -97,6 +115,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolMaintenanceWindowOptionsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolMaintenanceWindowOptionsMappers.ts index 3e64b791ca44..3e9343348054 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolMaintenanceWindowOptionsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolMaintenanceWindowOptionsMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -27,6 +35,8 @@ export { EncryptionProtector, EntityReference, EnvironmentVariableSetup, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -39,8 +49,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -56,6 +72,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -66,6 +83,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -94,6 +112,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolMaintenanceWindowsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolMaintenanceWindowsMappers.ts index e7ebca702aa0..3ea9f4f47534 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolMaintenanceWindowsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolMaintenanceWindowsMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -30,6 +38,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -42,8 +52,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -59,6 +75,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -69,6 +86,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -97,6 +115,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolMetadataSyncConfigsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolMetadataSyncConfigsMappers.ts index fa7be042dcd4..b4e9ed3171c2 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolMetadataSyncConfigsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolMetadataSyncConfigsMappers.ts @@ -8,15 +8,23 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -29,6 +37,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -41,8 +51,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -58,6 +74,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -68,6 +85,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -96,6 +114,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolOperationsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolOperationsMappers.ts index d53a8a4c3932..26ae07fd0800 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolOperationsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolOperationsMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -27,6 +35,8 @@ export { EncryptionProtector, EntityReference, EnvironmentVariableSetup, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -39,8 +49,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -56,6 +72,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -66,6 +83,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -95,6 +113,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolRecommendedSensitivityLabelsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolRecommendedSensitivityLabelsMappers.ts index 38373379fa79..5c5c04f9e8ef 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolRecommendedSensitivityLabelsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolRecommendedSensitivityLabelsMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -27,6 +35,8 @@ export { EncryptionProtector, EntityReference, EnvironmentVariableSetup, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -39,8 +49,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -56,6 +72,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -66,6 +83,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecommendedSensitivityLabelUpdateList, RecoverableSqlPool, @@ -95,6 +113,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolReplicationLinksMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolReplicationLinksMappers.ts index d0edb64937f9..a443db2ae028 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolReplicationLinksMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolReplicationLinksMappers.ts @@ -8,15 +8,23 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -29,6 +37,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -41,8 +51,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -58,6 +74,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -68,6 +85,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -97,6 +115,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolRestorePointsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolRestorePointsMappers.ts index 825eb21ca4bf..794eb7dbd99b 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolRestorePointsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolRestorePointsMappers.ts @@ -8,17 +8,25 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, CreateSqlPoolRestorePointDefinition, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -31,6 +39,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -43,8 +53,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -60,6 +76,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -70,6 +87,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -99,6 +117,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolSchemasMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolSchemasMappers.ts index e3d29eeac3ea..3bc2f4f04ed1 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolSchemasMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolSchemasMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -27,6 +35,8 @@ export { EncryptionProtector, EntityReference, EnvironmentVariableSetup, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -39,8 +49,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -56,6 +72,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -66,6 +83,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -95,6 +113,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolSecurityAlertPoliciesMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolSecurityAlertPoliciesMappers.ts index 03429f3b91fd..bb7931bbde49 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolSecurityAlertPoliciesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolSecurityAlertPoliciesMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -27,6 +35,8 @@ export { EncryptionProtector, EntityReference, EnvironmentVariableSetup, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -39,8 +49,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -57,6 +73,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -67,6 +84,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -95,6 +113,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolSensitivityLabelsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolSensitivityLabelsMappers.ts index 54caac1bd7a9..15771858db63 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolSensitivityLabelsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolSensitivityLabelsMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -30,6 +38,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -42,8 +52,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -59,6 +75,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -69,6 +86,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -99,6 +117,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolTableColumnsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolTableColumnsMappers.ts index 1da4c0ca097f..d3d52c6a38fb 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolTableColumnsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolTableColumnsMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -27,6 +35,8 @@ export { EncryptionProtector, EntityReference, EnvironmentVariableSetup, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -39,8 +49,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -56,6 +72,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -66,6 +83,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -95,6 +113,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolTablesMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolTablesMappers.ts index 98d97b28060d..8cff67f1af20 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolTablesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolTablesMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -27,6 +35,8 @@ export { EncryptionProtector, EntityReference, EnvironmentVariableSetup, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -39,8 +49,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -56,6 +72,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -66,6 +83,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -95,6 +113,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolTransparentDataEncryptionsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolTransparentDataEncryptionsMappers.ts index 5ac7ae17fe03..97d9adec3161 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolTransparentDataEncryptionsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolTransparentDataEncryptionsMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -30,6 +38,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -42,8 +52,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -59,6 +75,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -69,6 +86,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -97,6 +115,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, TransparentDataEncryptionListResult, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentRuleBaselinesMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentRuleBaselinesMappers.ts index 3e64b791ca44..3e9343348054 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentRuleBaselinesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentRuleBaselinesMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -27,6 +35,8 @@ export { EncryptionProtector, EntityReference, EnvironmentVariableSetup, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -39,8 +49,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -56,6 +72,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -66,6 +83,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -94,6 +112,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentScansMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentScansMappers.ts index 6c5dc56eb373..8837483ed855 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentScansMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentScansMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -27,6 +35,8 @@ export { EncryptionProtector, EntityReference, EnvironmentVariableSetup, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -39,8 +49,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -56,6 +72,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -66,6 +83,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -94,6 +112,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentsMappers.ts index f2669c7d24a9..459388686b6e 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentsMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -27,6 +35,8 @@ export { EncryptionProtector, EntityReference, EnvironmentVariableSetup, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -39,8 +49,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -56,6 +72,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -66,6 +83,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -95,6 +113,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolWorkloadClassifierMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolWorkloadClassifierMappers.ts index c3251ea93117..808472df2d4a 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolWorkloadClassifierMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolWorkloadClassifierMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -27,6 +35,8 @@ export { EncryptionProtector, EntityReference, EnvironmentVariableSetup, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -39,8 +49,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -56,6 +72,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -66,6 +83,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -94,6 +112,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolWorkloadGroupMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolWorkloadGroupMappers.ts index ac30482fc357..ab14005e61e1 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolWorkloadGroupMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolWorkloadGroupMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -27,6 +35,8 @@ export { EncryptionProtector, EntityReference, EnvironmentVariableSetup, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -39,8 +49,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -56,6 +72,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -66,6 +83,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -94,6 +112,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolsMappers.ts index 7076b6266de9..f501c9b64f7f 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolsMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -30,6 +38,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -42,8 +52,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -59,6 +75,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -69,6 +86,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -100,6 +118,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/workspaceAadAdminsMappers.ts b/sdk/synapse/arm-synapse/src/models/workspaceAadAdminsMappers.ts index fa7be042dcd4..b4e9ed3171c2 100644 --- a/sdk/synapse/arm-synapse/src/models/workspaceAadAdminsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/workspaceAadAdminsMappers.ts @@ -8,15 +8,23 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -29,6 +37,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -41,8 +51,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -58,6 +74,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -68,6 +85,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -96,6 +114,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/workspaceManagedIdentitySqlControlSettingsMappers.ts b/sdk/synapse/arm-synapse/src/models/workspaceManagedIdentitySqlControlSettingsMappers.ts index fa7be042dcd4..b4e9ed3171c2 100644 --- a/sdk/synapse/arm-synapse/src/models/workspaceManagedIdentitySqlControlSettingsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/workspaceManagedIdentitySqlControlSettingsMappers.ts @@ -8,15 +8,23 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -29,6 +37,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -41,8 +51,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -58,6 +74,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -68,6 +85,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -96,6 +114,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerBlobAuditingPoliciesMappers.ts b/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerBlobAuditingPoliciesMappers.ts index bd3a487c73df..10614fdd12ec 100644 --- a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerBlobAuditingPoliciesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerBlobAuditingPoliciesMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -27,6 +35,8 @@ export { EncryptionProtector, EntityReference, EnvironmentVariableSetup, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -39,8 +49,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -56,6 +72,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -66,6 +83,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -95,6 +113,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerEncryptionProtectorMappers.ts b/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerEncryptionProtectorMappers.ts index 0ea4973709e3..c0d323bff1e8 100644 --- a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerEncryptionProtectorMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerEncryptionProtectorMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -31,6 +39,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -43,8 +53,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -60,6 +76,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -70,6 +87,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -98,6 +116,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerExtendedBlobAuditingPoliciesMappers.ts b/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerExtendedBlobAuditingPoliciesMappers.ts index 0547a43568fc..d002c0f165b3 100644 --- a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerExtendedBlobAuditingPoliciesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerExtendedBlobAuditingPoliciesMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -27,6 +35,8 @@ export { EncryptionProtector, EntityReference, EnvironmentVariableSetup, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedServerBlobAuditingPolicyListResult, ExtendedSqlPoolBlobAuditingPolicy, @@ -40,8 +50,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -57,6 +73,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -67,6 +84,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -95,6 +113,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerRecoverableSqlPoolsMappers.ts b/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerRecoverableSqlPoolsMappers.ts index e3a4f6a282e3..7bc0efb00c86 100644 --- a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerRecoverableSqlPoolsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerRecoverableSqlPoolsMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -27,6 +35,8 @@ export { EncryptionProtector, EntityReference, EnvironmentVariableSetup, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -39,8 +49,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -56,6 +72,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -66,6 +83,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, RecoverableSqlPoolListResult, @@ -95,6 +113,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerSecurityAlertPolicyMappers.ts b/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerSecurityAlertPolicyMappers.ts index e2cc9a20ccfc..cd073720efb1 100644 --- a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerSecurityAlertPolicyMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerSecurityAlertPolicyMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -27,6 +35,8 @@ export { EncryptionProtector, EntityReference, EnvironmentVariableSetup, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -39,8 +49,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -56,6 +72,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -66,6 +83,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -95,6 +113,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerVulnerabilityAssessmentsMappers.ts b/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerVulnerabilityAssessmentsMappers.ts index 1aacf48368cd..14fedfb314b1 100644 --- a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerVulnerabilityAssessmentsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerVulnerabilityAssessmentsMappers.ts @@ -8,16 +8,24 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, CloudError, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -27,6 +35,8 @@ export { EncryptionProtector, EntityReference, EnvironmentVariableSetup, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -39,8 +49,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -56,6 +72,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -66,6 +83,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -95,6 +113,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/workspaceSqlAadAdminsMappers.ts b/sdk/synapse/arm-synapse/src/models/workspaceSqlAadAdminsMappers.ts index fa7be042dcd4..b4e9ed3171c2 100644 --- a/sdk/synapse/arm-synapse/src/models/workspaceSqlAadAdminsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/workspaceSqlAadAdminsMappers.ts @@ -8,15 +8,23 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -29,6 +37,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -41,8 +51,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -58,6 +74,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -68,6 +85,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -96,6 +114,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/models/workspacesMappers.ts b/sdk/synapse/arm-synapse/src/models/workspacesMappers.ts index 9dde78134f15..a5709646f9c9 100644 --- a/sdk/synapse/arm-synapse/src/models/workspacesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/workspacesMappers.ts @@ -8,15 +8,23 @@ export { discriminators, + AttachedDatabaseConfiguration, AutoPauseProperties, AutoScaleProperties, AzureEntityResource, + AzureSku, BaseResource, BigDataPoolResourceInfo, + ClusterPrincipalAssignment, CmdkeySetup, ComponentSetup, + CspWorkspaceAdminProperties, CustomerManagedKeyDetails, CustomSetupBase, + Database, + DatabasePrincipalAssignment, + DatabaseStatistics, + DataConnection, DataLakeStorageAccountDetails, DataMaskingPolicy, DataMaskingRule, @@ -29,6 +37,8 @@ export { ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + EventGridDataConnection, + EventHubDataConnection, ExtendedServerBlobAuditingPolicy, ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, @@ -41,8 +51,14 @@ export { IntegrationRuntimeSsisCatalogInfo, IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, + IotHubDataConnection, IpFirewallRuleInfo, + KekIdentityProperties, Key, + KustoPool, + KustoPoolUpdate, + LanguageExtension, + LanguageExtensionsList, LibraryInfo, LibraryRequirements, LibraryResource, @@ -58,6 +74,7 @@ export { ManagedIntegrationRuntime, ManagedVirtualNetworkSettings, MetadataSyncConfig, + OptimizedAutoscale, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionForPrivateLinkHub, @@ -68,6 +85,7 @@ export { PrivateLinkServiceConnectionState, ProxyResource, PurviewConfiguration, + ReadWriteDatabase, RecommendedSensitivityLabelUpdate, RecoverableSqlPool, ReplicationLink, @@ -96,6 +114,8 @@ export { SqlPoolVulnerabilityAssessmentRuleBaselineItem, SqlPoolVulnerabilityAssessmentScansExport, SubResource, + SystemData, + TableLevelSharingProperties, TrackedResource, TransparentDataEncryption, VirtualNetworkProfile, diff --git a/sdk/synapse/arm-synapse/src/operations/attachedDatabaseConfigurations.ts b/sdk/synapse/arm-synapse/src/operations/attachedDatabaseConfigurations.ts new file mode 100644 index 000000000000..25bd1597fef7 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/attachedDatabaseConfigurations.ts @@ -0,0 +1,301 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/attachedDatabaseConfigurationsMappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClientContext } from "../synapseManagementClientContext"; + +/** Class representing a AttachedDatabaseConfigurations. */ +export class AttachedDatabaseConfigurations { + private readonly client: SynapseManagementClientContext; + + /** + * Create a AttachedDatabaseConfigurations. + * @param {SynapseManagementClientContext} client Reference to the service client. + */ + constructor(client: SynapseManagementClientContext) { + this.client = client; + } + + /** + * Returns the list of attached database configurations of the given Kusto Pool. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + listByKustoPool(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param callback The callback + */ + listByKustoPool(workspaceName: string, kustoPoolName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + listByKustoPool(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByKustoPool(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + workspaceName, + kustoPoolName, + resourceGroupName, + options + }, + listByKustoPoolOperationSpec, + callback) as Promise; + } + + /** + * Returns an attached database configuration. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param attachedDatabaseConfigurationName The name of the attached database configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + get(workspaceName: string, kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param attachedDatabaseConfigurationName The name of the attached database configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param callback The callback + */ + get(workspaceName: string, kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param attachedDatabaseConfigurationName The name of the attached database configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + get(workspaceName: string, kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(workspaceName: string, kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + workspaceName, + kustoPoolName, + attachedDatabaseConfigurationName, + resourceGroupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates an attached database configuration. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param attachedDatabaseConfigurationName The name of the attached database configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The database parameters supplied to the CreateOrUpdate operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(workspaceName: string, kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, parameters: Models.AttachedDatabaseConfiguration, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(workspaceName,kustoPoolName,attachedDatabaseConfigurationName,resourceGroupName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes the attached database configuration with the given name. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param attachedDatabaseConfigurationName The name of the attached database configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(workspaceName: string, kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(workspaceName,kustoPoolName,attachedDatabaseConfigurationName,resourceGroupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Creates or updates an attached database configuration. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param attachedDatabaseConfigurationName The name of the attached database configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The database parameters supplied to the CreateOrUpdate operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(workspaceName: string, kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, parameters: Models.AttachedDatabaseConfiguration, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + workspaceName, + kustoPoolName, + attachedDatabaseConfigurationName, + resourceGroupName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes the attached database configuration with the given name. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param attachedDatabaseConfigurationName The name of the attached database configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(workspaceName: string, kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + workspaceName, + kustoPoolName, + attachedDatabaseConfigurationName, + resourceGroupName, + options + }, + beginDeleteMethodOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByKustoPoolOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AttachedDatabaseConfigurationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.attachedDatabaseConfigurationName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AttachedDatabaseConfiguration + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.attachedDatabaseConfigurationName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.AttachedDatabaseConfiguration, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AttachedDatabaseConfiguration + }, + 201: { + bodyMapper: Mappers.AttachedDatabaseConfiguration + }, + 202: { + bodyMapper: Mappers.AttachedDatabaseConfiguration + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.attachedDatabaseConfigurationName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/dataConnections.ts b/sdk/synapse/arm-synapse/src/operations/dataConnections.ts new file mode 100644 index 000000000000..eda54a73de2d --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/dataConnections.ts @@ -0,0 +1,548 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/dataConnectionsMappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClientContext } from "../synapseManagementClientContext"; + +/** Class representing a DataConnections. */ +export class DataConnections { + private readonly client: SynapseManagementClientContext; + + /** + * Create a DataConnections. + * @param {SynapseManagementClientContext} client Reference to the service client. + */ + constructor(client: SynapseManagementClientContext) { + this.client = client; + } + + /** + * Checks that the data connection name is valid and is not already in use. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param [options] The optional parameters + * @returns Promise + */ + checkNameAvailability(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: Models.DataConnectionCheckNameRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param callback The callback + */ + checkNameAvailability(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: Models.DataConnectionCheckNameRequest, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param options The optional parameters + * @param callback The callback + */ + checkNameAvailability(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: Models.DataConnectionCheckNameRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkNameAvailability(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: Models.DataConnectionCheckNameRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + dataConnectionName, + options + }, + checkNameAvailabilityOperationSpec, + callback) as Promise; + } + + /** + * Checks that the data connection parameters are valid. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. + * @param [options] The optional parameters + * @returns Promise + */ + dataConnectionValidationMethod(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, parameters: Models.DataConnectionValidation, options?: msRest.RequestOptionsBase): Promise { + return this.beginDataConnectionValidationMethod(resourceGroupName,workspaceName,kustoPoolName,databaseName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Returns the list of data connections of the given Kusto pool database. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabase(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + options + }, + listByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Returns a data connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + dataConnectionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a data connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, parameters: Models.DataConnectionUnion, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,workspaceName,kustoPoolName,databaseName,dataConnectionName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates a data connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param parameters The data connection parameters supplied to the Update operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, parameters: Models.DataConnectionUnion, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,workspaceName,kustoPoolName,databaseName,dataConnectionName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes the data connection with the given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,workspaceName,kustoPoolName,databaseName,dataConnectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Checks that the data connection parameters are valid. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginDataConnectionValidationMethod(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, parameters: Models.DataConnectionValidation, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + parameters, + options + }, + beginDataConnectionValidationMethodOperationSpec, + options); + } + + /** + * Creates or updates a data connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, parameters: Models.DataConnectionUnion, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + dataConnectionName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Updates a data connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param parameters The data connection parameters supplied to the Update operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, parameters: Models.DataConnectionUnion, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + dataConnectionName, + parameters, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * Deletes the data connection with the given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + dataConnectionName, + options + }, + beginDeleteMethodOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/checkNameAvailability", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.databaseName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "dataConnectionName", + mapper: { + ...Mappers.DataConnectionCheckNameRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CheckNameResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.databaseName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataConnectionListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.databaseName, + Parameters.dataConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataConnection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDataConnectionValidationMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnectionValidation", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.databaseName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DataConnectionValidation, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DataConnectionValidationListResult + }, + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.databaseName, + Parameters.dataConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DataConnection, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DataConnection + }, + 201: { + bodyMapper: Mappers.DataConnection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.databaseName, + Parameters.dataConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DataConnection, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DataConnection + }, + 201: { + bodyMapper: Mappers.DataConnection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.databaseName, + Parameters.dataConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/databasePrincipalAssignments.ts b/sdk/synapse/arm-synapse/src/operations/databasePrincipalAssignments.ts new file mode 100644 index 000000000000..e20cb88af816 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/databasePrincipalAssignments.ts @@ -0,0 +1,394 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/databasePrincipalAssignmentsMappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClientContext } from "../synapseManagementClientContext"; + +/** Class representing a DatabasePrincipalAssignments. */ +export class DatabasePrincipalAssignments { + private readonly client: SynapseManagementClientContext; + + /** + * Create a DatabasePrincipalAssignments. + * @param {SynapseManagementClientContext} client Reference to the service client. + */ + constructor(client: SynapseManagementClientContext) { + this.client = client; + } + + /** + * Checks that the database principal assignment is valid and is not already in use. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param principalAssignmentName The name of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + checkNameAvailability(workspaceName: string, kustoPoolName: string, databaseName: string, resourceGroupName: string, principalAssignmentName: Models.DatabasePrincipalAssignmentCheckNameRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param principalAssignmentName The name of the resource. + * @param callback The callback + */ + checkNameAvailability(workspaceName: string, kustoPoolName: string, databaseName: string, resourceGroupName: string, principalAssignmentName: Models.DatabasePrincipalAssignmentCheckNameRequest, callback: msRest.ServiceCallback): void; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param principalAssignmentName The name of the resource. + * @param options The optional parameters + * @param callback The callback + */ + checkNameAvailability(workspaceName: string, kustoPoolName: string, databaseName: string, resourceGroupName: string, principalAssignmentName: Models.DatabasePrincipalAssignmentCheckNameRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkNameAvailability(workspaceName: string, kustoPoolName: string, databaseName: string, resourceGroupName: string, principalAssignmentName: Models.DatabasePrincipalAssignmentCheckNameRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + workspaceName, + kustoPoolName, + databaseName, + resourceGroupName, + principalAssignmentName, + options + }, + checkNameAvailabilityOperationSpec, + callback) as Promise; + } + + /** + * Lists all Kusto pool database principalAssignments. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + list(workspaceName: string, kustoPoolName: string, databaseName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param callback The callback + */ + list(workspaceName: string, kustoPoolName: string, databaseName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + list(workspaceName: string, kustoPoolName: string, databaseName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(workspaceName: string, kustoPoolName: string, databaseName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + workspaceName, + kustoPoolName, + databaseName, + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets a Kusto pool database principalAssignment. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + get(workspaceName: string, kustoPoolName: string, databaseName: string, principalAssignmentName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param callback The callback + */ + get(workspaceName: string, kustoPoolName: string, databaseName: string, principalAssignmentName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + get(workspaceName: string, kustoPoolName: string, databaseName: string, principalAssignmentName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(workspaceName: string, kustoPoolName: string, databaseName: string, principalAssignmentName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + workspaceName, + kustoPoolName, + databaseName, + principalAssignmentName, + resourceGroupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates a Kusto pool database principalAssignment. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The Kusto principalAssignments parameters supplied for the operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(workspaceName: string, kustoPoolName: string, databaseName: string, principalAssignmentName: string, resourceGroupName: string, parameters: Models.DatabasePrincipalAssignment, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(workspaceName,kustoPoolName,databaseName,principalAssignmentName,resourceGroupName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes a Kusto pool principalAssignment. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(workspaceName: string, kustoPoolName: string, databaseName: string, principalAssignmentName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(workspaceName,kustoPoolName,databaseName,principalAssignmentName,resourceGroupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Creates a Kusto pool database principalAssignment. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The Kusto principalAssignments parameters supplied for the operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(workspaceName: string, kustoPoolName: string, databaseName: string, principalAssignmentName: string, resourceGroupName: string, parameters: Models.DatabasePrincipalAssignment, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + workspaceName, + kustoPoolName, + databaseName, + principalAssignmentName, + resourceGroupName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes a Kusto pool principalAssignment. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(workspaceName: string, kustoPoolName: string, databaseName: string, principalAssignmentName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + workspaceName, + kustoPoolName, + databaseName, + principalAssignmentName, + resourceGroupName, + options + }, + beginDeleteMethodOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/checkPrincipalAssignmentNameAvailability", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "principalAssignmentName", + mapper: { + ...Mappers.DatabasePrincipalAssignmentCheckNameRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CheckNameResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.databaseName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabasePrincipalAssignmentListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.databaseName, + Parameters.principalAssignmentName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabasePrincipalAssignment + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.databaseName, + Parameters.principalAssignmentName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DatabasePrincipalAssignment, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DatabasePrincipalAssignment + }, + 201: { + bodyMapper: Mappers.DatabasePrincipalAssignment + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.databaseName, + Parameters.principalAssignmentName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/databases.ts b/sdk/synapse/arm-synapse/src/operations/databases.ts new file mode 100644 index 000000000000..51673d511751 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/databases.ts @@ -0,0 +1,374 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/databasesMappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClientContext } from "../synapseManagementClientContext"; + +/** Class representing a Databases. */ +export class Databases { + private readonly client: SynapseManagementClientContext; + + /** + * Create a Databases. + * @param {SynapseManagementClientContext} client Reference to the service client. + */ + constructor(client: SynapseManagementClientContext) { + this.client = client; + } + + /** + * Returns the list of databases of the given Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param [options] The optional parameters + * @returns Promise + */ + listByKustoPool(resourceGroupName: string, workspaceName: string, kustoPoolName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param callback The callback + */ + listByKustoPool(resourceGroupName: string, workspaceName: string, kustoPoolName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param options The optional parameters + * @param callback The callback + */ + listByKustoPool(resourceGroupName: string, workspaceName: string, kustoPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByKustoPool(resourceGroupName: string, workspaceName: string, kustoPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + kustoPoolName, + options + }, + listByKustoPoolOperationSpec, + callback) as Promise; + } + + /** + * Returns a database. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a database. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param parameters The database parameters supplied to the CreateOrUpdate operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, parameters: Models.DatabaseUnion, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,workspaceName,kustoPoolName,databaseName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates a database. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param parameters The database parameters supplied to the Update operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, parameters: Models.DatabaseUnion, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,workspaceName,kustoPoolName,databaseName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes the database with the given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,workspaceName,kustoPoolName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Creates or updates a database. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param parameters The database parameters supplied to the CreateOrUpdate operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, parameters: Models.DatabaseUnion, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Updates a database. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param parameters The database parameters supplied to the Update operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, parameters: Models.DatabaseUnion, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + parameters, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * Deletes the database with the given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + options + }, + beginDeleteMethodOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByKustoPoolOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.databaseName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Database + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.databaseName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.Database, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Database + }, + 201: { + bodyMapper: Mappers.Database + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.databaseName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.Database, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Database + }, + 201: { + bodyMapper: Mappers.Database + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.databaseName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/index.ts b/sdk/synapse/arm-synapse/src/operations/index.ts index 3ac30c608616..757a7c329a17 100644 --- a/sdk/synapse/arm-synapse/src/operations/index.ts +++ b/sdk/synapse/arm-synapse/src/operations/index.ts @@ -20,6 +20,15 @@ export * from "./integrationRuntimeAuthKeysOperations"; export * from "./integrationRuntimeMonitoringDataOperations"; export * from "./integrationRuntimeStatusOperations"; export * from "./keys"; +export * from "./kustoOperations"; +export * from "./kustoPoolOperations"; +export * from "./kustoPools"; +export * from "./kustoPoolChildResource"; +export * from "./attachedDatabaseConfigurations"; +export * from "./databases"; +export * from "./dataConnections"; +export * from "./kustoPoolPrincipalAssignments"; +export * from "./databasePrincipalAssignments"; export * from "./library"; export * from "./libraries"; export * from "./privateEndpointConnections"; diff --git a/sdk/synapse/arm-synapse/src/operations/kustoOperations.ts b/sdk/synapse/arm-synapse/src/operations/kustoOperations.ts new file mode 100644 index 000000000000..ef7c958d0583 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/kustoOperations.ts @@ -0,0 +1,125 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/kustoOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClientContext } from "../synapseManagementClientContext"; + +/** Class representing a KustoOperations. */ +export class KustoOperations { + private readonly client: SynapseManagementClientContext; + + /** + * Create a KustoOperations. + * @param {SynapseManagementClientContext} client Reference to the service client. + */ + constructor(client: SynapseManagementClientContext) { + this.client = client; + } + + /** + * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.Synapse/kustooperations", + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/kustoPoolChildResource.ts b/sdk/synapse/arm-synapse/src/operations/kustoPoolChildResource.ts new file mode 100644 index 000000000000..a15fe93b608c --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/kustoPoolChildResource.ts @@ -0,0 +1,102 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/kustoPoolChildResourceMappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClientContext } from "../synapseManagementClientContext"; + +/** Class representing a KustoPoolChildResource. */ +export class KustoPoolChildResource { + private readonly client: SynapseManagementClientContext; + + /** + * Create a KustoPoolChildResource. + * @param {SynapseManagementClientContext} client Reference to the service client. + */ + constructor(client: SynapseManagementClientContext) { + this.client = client; + } + + /** + * Checks that the Kusto Pool child resource name is valid and is not already in use. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Kusto Pool child resource. + * @param [options] The optional parameters + * @returns Promise + */ + checkNameAvailability(workspaceName: string, kustoPoolName: string, resourceGroupName: string, resourceName: Models.DatabaseCheckNameRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Kusto Pool child resource. + * @param callback The callback + */ + checkNameAvailability(workspaceName: string, kustoPoolName: string, resourceGroupName: string, resourceName: Models.DatabaseCheckNameRequest, callback: msRest.ServiceCallback): void; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Kusto Pool child resource. + * @param options The optional parameters + * @param callback The callback + */ + checkNameAvailability(workspaceName: string, kustoPoolName: string, resourceGroupName: string, resourceName: Models.DatabaseCheckNameRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkNameAvailability(workspaceName: string, kustoPoolName: string, resourceGroupName: string, resourceName: Models.DatabaseCheckNameRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + workspaceName, + kustoPoolName, + resourceGroupName, + resourceName, + options + }, + checkNameAvailabilityOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/checkNameAvailability", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "resourceName", + mapper: { + ...Mappers.DatabaseCheckNameRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CheckNameResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/kustoPoolOperations.ts b/sdk/synapse/arm-synapse/src/operations/kustoPoolOperations.ts new file mode 100644 index 000000000000..09c283369038 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/kustoPoolOperations.ts @@ -0,0 +1,76 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/kustoPoolOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClientContext } from "../synapseManagementClientContext"; + +/** Class representing a KustoPoolOperations. */ +export class KustoPoolOperations { + private readonly client: SynapseManagementClientContext; + + /** + * Create a KustoPoolOperations. + * @param {SynapseManagementClientContext} client Reference to the service client. + */ + constructor(client: SynapseManagementClientContext) { + this.client = client; + } + + /** + * Lists eligible SKUs for Kusto Pool resource. + * @param [options] The optional parameters + * @returns Promise + */ + listSkus(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listSkus(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listSkus(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSkus(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listSkusOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listSkusOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Synapse/skus", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SkuDescriptionList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/kustoPoolPrincipalAssignments.ts b/sdk/synapse/arm-synapse/src/operations/kustoPoolPrincipalAssignments.ts new file mode 100644 index 000000000000..501bba5f7488 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/kustoPoolPrincipalAssignments.ts @@ -0,0 +1,371 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/kustoPoolPrincipalAssignmentsMappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClientContext } from "../synapseManagementClientContext"; + +/** Class representing a KustoPoolPrincipalAssignments. */ +export class KustoPoolPrincipalAssignments { + private readonly client: SynapseManagementClientContext; + + /** + * Create a KustoPoolPrincipalAssignments. + * @param {SynapseManagementClientContext} client Reference to the service client. + */ + constructor(client: SynapseManagementClientContext) { + this.client = client; + } + + /** + * Checks that the principal assignment name is valid and is not already in use. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param principalAssignmentName The name of the principal assignment. + * @param [options] The optional parameters + * @returns Promise + */ + checkNameAvailability(workspaceName: string, kustoPoolName: string, resourceGroupName: string, principalAssignmentName: Models.ClusterPrincipalAssignmentCheckNameRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param principalAssignmentName The name of the principal assignment. + * @param callback The callback + */ + checkNameAvailability(workspaceName: string, kustoPoolName: string, resourceGroupName: string, principalAssignmentName: Models.ClusterPrincipalAssignmentCheckNameRequest, callback: msRest.ServiceCallback): void; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param principalAssignmentName The name of the principal assignment. + * @param options The optional parameters + * @param callback The callback + */ + checkNameAvailability(workspaceName: string, kustoPoolName: string, resourceGroupName: string, principalAssignmentName: Models.ClusterPrincipalAssignmentCheckNameRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkNameAvailability(workspaceName: string, kustoPoolName: string, resourceGroupName: string, principalAssignmentName: Models.ClusterPrincipalAssignmentCheckNameRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + workspaceName, + kustoPoolName, + resourceGroupName, + principalAssignmentName, + options + }, + checkNameAvailabilityOperationSpec, + callback) as Promise; + } + + /** + * Lists all Kusto pool principalAssignments. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + list(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param callback The callback + */ + list(workspaceName: string, kustoPoolName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + list(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + workspaceName, + kustoPoolName, + resourceGroupName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets a Kusto pool principalAssignment. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + get(workspaceName: string, kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param callback The callback + */ + get(workspaceName: string, kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + get(workspaceName: string, kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(workspaceName: string, kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + workspaceName, + kustoPoolName, + principalAssignmentName, + resourceGroupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create a Kusto pool principalAssignment. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The Kusto pool principalAssignment's parameters supplied for the operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(workspaceName: string, kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, parameters: Models.ClusterPrincipalAssignment, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(workspaceName,kustoPoolName,principalAssignmentName,resourceGroupName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes a Kusto pool principalAssignment. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(workspaceName: string, kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(workspaceName,kustoPoolName,principalAssignmentName,resourceGroupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Create a Kusto pool principalAssignment. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The Kusto pool principalAssignment's parameters supplied for the operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(workspaceName: string, kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, parameters: Models.ClusterPrincipalAssignment, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + workspaceName, + kustoPoolName, + principalAssignmentName, + resourceGroupName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes a Kusto pool principalAssignment. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(workspaceName: string, kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + workspaceName, + kustoPoolName, + principalAssignmentName, + resourceGroupName, + options + }, + beginDeleteMethodOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/checkPrincipalAssignmentNameAvailability", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "principalAssignmentName", + mapper: { + ...Mappers.ClusterPrincipalAssignmentCheckNameRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CheckNameResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ClusterPrincipalAssignmentListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.principalAssignmentName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ClusterPrincipalAssignment + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.principalAssignmentName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ClusterPrincipalAssignment, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ClusterPrincipalAssignment + }, + 201: { + bodyMapper: Mappers.ClusterPrincipalAssignment + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.principalAssignmentName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/kustoPools.ts b/sdk/synapse/arm-synapse/src/operations/kustoPools.ts new file mode 100644 index 000000000000..3225d6806477 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/kustoPools.ts @@ -0,0 +1,926 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/kustoPoolsMappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClientContext } from "../synapseManagementClientContext"; + +/** Class representing a KustoPools. */ +export class KustoPools { + private readonly client: SynapseManagementClientContext; + + /** + * Create a KustoPools. + * @param {SynapseManagementClientContext} client Reference to the service client. + */ + constructor(client: SynapseManagementClientContext) { + this.client = client; + } + + /** + * Checks that the kusto pool name is valid and is not already in use. + * @param location The name of Azure region. + * @param kustoPoolName The name of the cluster. + * @param [options] The optional parameters + * @returns Promise + */ + checkNameAvailability(location: string, kustoPoolName: Models.KustoPoolCheckNameRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location The name of Azure region. + * @param kustoPoolName The name of the cluster. + * @param callback The callback + */ + checkNameAvailability(location: string, kustoPoolName: Models.KustoPoolCheckNameRequest, callback: msRest.ServiceCallback): void; + /** + * @param location The name of Azure region. + * @param kustoPoolName The name of the cluster. + * @param options The optional parameters + * @param callback The callback + */ + checkNameAvailability(location: string, kustoPoolName: Models.KustoPoolCheckNameRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkNameAvailability(location: string, kustoPoolName: Models.KustoPoolCheckNameRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + kustoPoolName, + options + }, + checkNameAvailabilityOperationSpec, + callback) as Promise; + } + + /** + * List all Kusto pools + * @summary List Kusto pools + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param [options] The optional parameters + * @returns Promise + */ + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param callback The callback + */ + listByWorkspace(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param options The optional parameters + * @param callback The callback + */ + listByWorkspace(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + options + }, + listByWorkspaceOperationSpec, + callback) as Promise; + } + + /** + * Gets a Kusto pool. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + get(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param callback The callback + */ + get(workspaceName: string, kustoPoolName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + get(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + workspaceName, + kustoPoolName, + resourceGroupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or update a Kusto pool. + * @param workspaceName The name of the workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kustoPoolName The name of the Kusto pool. + * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(workspaceName: string, resourceGroupName: string, kustoPoolName: string, parameters: Models.KustoPool, options?: Models.KustoPoolsCreateOrUpdateOptionalParams): Promise { + return this.beginCreateOrUpdate(workspaceName,resourceGroupName,kustoPoolName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Update a Kusto Kusto Pool. + * @param workspaceName The name of the workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kustoPoolName The name of the Kusto pool. + * @param parameters The Kusto pool parameters supplied to the Update operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(workspaceName: string, resourceGroupName: string, kustoPoolName: string, parameters: Models.KustoPoolUpdate, options?: Models.KustoPoolsUpdateOptionalParams): Promise { + return this.beginUpdate(workspaceName,resourceGroupName,kustoPoolName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes a Kusto pool. + * @param workspaceName The name of the workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kustoPoolName The name of the Kusto pool. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(workspaceName: string, resourceGroupName: string, kustoPoolName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(workspaceName,resourceGroupName,kustoPoolName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Stops a Kusto pool. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + stop(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginStop(workspaceName,kustoPoolName,resourceGroupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Starts a Kusto pool. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + start(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginStart(workspaceName,kustoPoolName,resourceGroupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Returns the SKUs available for the provided resource. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + listSkusByResource(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param callback The callback + */ + listSkusByResource(workspaceName: string, kustoPoolName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + listSkusByResource(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSkusByResource(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + workspaceName, + kustoPoolName, + resourceGroupName, + options + }, + listSkusByResourceOperationSpec, + callback) as Promise; + } + + /** + * Returns a list of language extensions that can run within KQL queries. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + listLanguageExtensions(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param callback The callback + */ + listLanguageExtensions(workspaceName: string, kustoPoolName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + listLanguageExtensions(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listLanguageExtensions(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + workspaceName, + kustoPoolName, + resourceGroupName, + options + }, + listLanguageExtensionsOperationSpec, + callback) as Promise; + } + + /** + * Add a list of language extensions that can run within KQL queries. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param languageExtensionsToAdd The language extensions to add. + * @param [options] The optional parameters + * @returns Promise + */ + addLanguageExtensions(workspaceName: string, kustoPoolName: string, resourceGroupName: string, languageExtensionsToAdd: Models.LanguageExtensionsList, options?: msRest.RequestOptionsBase): Promise { + return this.beginAddLanguageExtensions(workspaceName,kustoPoolName,resourceGroupName,languageExtensionsToAdd,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Remove a list of language extensions that can run within KQL queries. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param languageExtensionsToRemove The language extensions to remove. + * @param [options] The optional parameters + * @returns Promise + */ + removeLanguageExtensions(workspaceName: string, kustoPoolName: string, resourceGroupName: string, languageExtensionsToRemove: Models.LanguageExtensionsList, options?: msRest.RequestOptionsBase): Promise { + return this.beginRemoveLanguageExtensions(workspaceName,kustoPoolName,resourceGroupName,languageExtensionsToRemove,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto + * Pool. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + listFollowerDatabases(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param callback The callback + */ + listFollowerDatabases(workspaceName: string, kustoPoolName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + listFollowerDatabases(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listFollowerDatabases(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + workspaceName, + kustoPoolName, + resourceGroupName, + options + }, + listFollowerDatabasesOperationSpec, + callback) as Promise; + } + + /** + * Detaches all followers of a database owned by this Kusto Pool. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param followerDatabaseToRemove The follower databases properties to remove. + * @param [options] The optional parameters + * @returns Promise + */ + detachFollowerDatabases(workspaceName: string, kustoPoolName: string, resourceGroupName: string, followerDatabaseToRemove: Models.FollowerDatabaseDefinition, options?: msRest.RequestOptionsBase): Promise { + return this.beginDetachFollowerDatabases(workspaceName,kustoPoolName,resourceGroupName,followerDatabaseToRemove,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Create or update a Kusto pool. + * @param workspaceName The name of the workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kustoPoolName The name of the Kusto pool. + * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(workspaceName: string, resourceGroupName: string, kustoPoolName: string, parameters: Models.KustoPool, options?: Models.KustoPoolsBeginCreateOrUpdateOptionalParams): Promise { + return this.client.sendLRORequest( + { + workspaceName, + resourceGroupName, + kustoPoolName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Update a Kusto Kusto Pool. + * @param workspaceName The name of the workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kustoPoolName The name of the Kusto pool. + * @param parameters The Kusto pool parameters supplied to the Update operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(workspaceName: string, resourceGroupName: string, kustoPoolName: string, parameters: Models.KustoPoolUpdate, options?: Models.KustoPoolsBeginUpdateOptionalParams): Promise { + return this.client.sendLRORequest( + { + workspaceName, + resourceGroupName, + kustoPoolName, + parameters, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * Deletes a Kusto pool. + * @param workspaceName The name of the workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kustoPoolName The name of the Kusto pool. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(workspaceName: string, resourceGroupName: string, kustoPoolName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + workspaceName, + resourceGroupName, + kustoPoolName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Stops a Kusto pool. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + beginStop(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + workspaceName, + kustoPoolName, + resourceGroupName, + options + }, + beginStopOperationSpec, + options); + } + + /** + * Starts a Kusto pool. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + beginStart(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + workspaceName, + kustoPoolName, + resourceGroupName, + options + }, + beginStartOperationSpec, + options); + } + + /** + * Add a list of language extensions that can run within KQL queries. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param languageExtensionsToAdd The language extensions to add. + * @param [options] The optional parameters + * @returns Promise + */ + beginAddLanguageExtensions(workspaceName: string, kustoPoolName: string, resourceGroupName: string, languageExtensionsToAdd: Models.LanguageExtensionsList, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + workspaceName, + kustoPoolName, + resourceGroupName, + languageExtensionsToAdd, + options + }, + beginAddLanguageExtensionsOperationSpec, + options); + } + + /** + * Remove a list of language extensions that can run within KQL queries. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param languageExtensionsToRemove The language extensions to remove. + * @param [options] The optional parameters + * @returns Promise + */ + beginRemoveLanguageExtensions(workspaceName: string, kustoPoolName: string, resourceGroupName: string, languageExtensionsToRemove: Models.LanguageExtensionsList, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + workspaceName, + kustoPoolName, + resourceGroupName, + languageExtensionsToRemove, + options + }, + beginRemoveLanguageExtensionsOperationSpec, + options); + } + + /** + * Detaches all followers of a database owned by this Kusto Pool. + * @param workspaceName The name of the workspace + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param followerDatabaseToRemove The follower databases properties to remove. + * @param [options] The optional parameters + * @returns Promise + */ + beginDetachFollowerDatabases(workspaceName: string, kustoPoolName: string, resourceGroupName: string, followerDatabaseToRemove: Models.FollowerDatabaseDefinition, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + workspaceName, + kustoPoolName, + resourceGroupName, + followerDatabaseToRemove, + options + }, + beginDetachFollowerDatabasesOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Synapse/locations/{location}/kustoPoolCheckNameAvailability", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "kustoPoolName", + mapper: { + ...Mappers.KustoPoolCheckNameRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CheckNameResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByWorkspaceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.workspaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.KustoPoolListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.KustoPool + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listSkusByResourceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/skus", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListResourceSkusResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listLanguageExtensionsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/listLanguageExtensions", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LanguageExtensionsList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listFollowerDatabasesOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/listFollowerDatabases", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.FollowerDatabaseListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}", + urlParameters: [ + Parameters.workspaceName, + Parameters.resourceGroupName, + Parameters.kustoPoolName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch, + Parameters.ifNoneMatch, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.KustoPool, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.KustoPool + }, + 201: { + bodyMapper: Mappers.KustoPool + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}", + urlParameters: [ + Parameters.workspaceName, + Parameters.resourceGroupName, + Parameters.kustoPoolName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.KustoPoolUpdate, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.KustoPool + }, + 201: { + bodyMapper: Mappers.KustoPool + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}", + urlParameters: [ + Parameters.workspaceName, + Parameters.resourceGroupName, + Parameters.kustoPoolName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginStopOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/stop", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginStartOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/start", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginAddLanguageExtensionsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/addLanguageExtensions", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "languageExtensionsToAdd", + mapper: { + ...Mappers.LanguageExtensionsList, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginRemoveLanguageExtensionsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/removeLanguageExtensions", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "languageExtensionsToRemove", + mapper: { + ...Mappers.LanguageExtensionsList, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDetachFollowerDatabasesOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/detachFollowerDatabases", + urlParameters: [ + Parameters.workspaceName, + Parameters.kustoPoolName, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "followerDatabaseToRemove", + mapper: { + ...Mappers.FollowerDatabaseDefinition, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/privateEndpointConnectionsPrivateLinkHub.ts b/sdk/synapse/arm-synapse/src/operations/privateEndpointConnectionsPrivateLinkHub.ts index c4b1ebfe2946..264bb96c6361 100644 --- a/sdk/synapse/arm-synapse/src/operations/privateEndpointConnectionsPrivateLinkHub.ts +++ b/sdk/synapse/arm-synapse/src/operations/privateEndpointConnectionsPrivateLinkHub.ts @@ -57,6 +57,42 @@ export class PrivateEndpointConnectionsPrivateLinkHub { callback) as Promise; } + /** + * Get all PrivateEndpointConnection in the PrivateLinkHub by name + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateLinkHubName Name of the privateLinkHub + * @param privateEndpointConnectionName Name of the privateEndpointConnection + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, privateLinkHubName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateLinkHubName Name of the privateLinkHub + * @param privateEndpointConnectionName Name of the privateEndpointConnection + * @param callback The callback + */ + get(resourceGroupName: string, privateLinkHubName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateLinkHubName Name of the privateLinkHub + * @param privateEndpointConnectionName Name of the privateEndpointConnection + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, privateLinkHubName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, privateLinkHubName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateLinkHubName, + privateEndpointConnectionName, + options + }, + getOperationSpec, + callback) as Promise; + } + /** * Get all PrivateEndpointConnections in the PrivateLinkHub * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -113,6 +149,32 @@ const listOperationSpec: msRest.OperationSpec = { serializer }; +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateLinkHubName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionForPrivateLinkHub + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", diff --git a/sdk/synapse/arm-synapse/src/synapseManagementClient.ts b/sdk/synapse/arm-synapse/src/synapseManagementClient.ts index b2adedb6fd50..d6957518802d 100644 --- a/sdk/synapse/arm-synapse/src/synapseManagementClient.ts +++ b/sdk/synapse/arm-synapse/src/synapseManagementClient.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -29,6 +30,15 @@ class SynapseManagementClient extends SynapseManagementClientContext { integrationRuntimeMonitoringData: operations.IntegrationRuntimeMonitoringDataOperations; integrationRuntimeStatus: operations.IntegrationRuntimeStatusOperations; keys: operations.Keys; + kustoOperations: operations.KustoOperations; + kustoPool: operations.KustoPoolOperations; + kustoPools: operations.KustoPools; + kustoPoolChildResource: operations.KustoPoolChildResource; + attachedDatabaseConfigurations: operations.AttachedDatabaseConfigurations; + databases: operations.Databases; + dataConnections: operations.DataConnections; + kustoPoolPrincipalAssignments: operations.KustoPoolPrincipalAssignments; + databasePrincipalAssignments: operations.DatabasePrincipalAssignments; library: operations.Library; libraries: operations.Libraries; privateEndpointConnections: operations.PrivateEndpointConnections; @@ -80,11 +90,16 @@ class SynapseManagementClient extends SynapseManagementClientContext { /** * Initializes a new instance of the SynapseManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the + * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and + * @azure/ms-rest-browserauth are also supported. * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.SynapseManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.SynapseManagementClientOptions) { super(credentials, subscriptionId, options); this.bigDataPools = new operations.BigDataPools(this); this.operations = new operations.Operations(this); @@ -99,6 +114,15 @@ class SynapseManagementClient extends SynapseManagementClientContext { this.integrationRuntimeMonitoringData = new operations.IntegrationRuntimeMonitoringDataOperations(this); this.integrationRuntimeStatus = new operations.IntegrationRuntimeStatusOperations(this); this.keys = new operations.Keys(this); + this.kustoOperations = new operations.KustoOperations(this); + this.kustoPool = new operations.KustoPoolOperations(this); + this.kustoPools = new operations.KustoPools(this); + this.kustoPoolChildResource = new operations.KustoPoolChildResource(this); + this.attachedDatabaseConfigurations = new operations.AttachedDatabaseConfigurations(this); + this.databases = new operations.Databases(this); + this.dataConnections = new operations.DataConnections(this); + this.kustoPoolPrincipalAssignments = new operations.KustoPoolPrincipalAssignments(this); + this.databasePrincipalAssignments = new operations.DatabasePrincipalAssignments(this); this.library = new operations.Library(this); this.libraries = new operations.Libraries(this); this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); diff --git a/sdk/synapse/arm-synapse/src/synapseManagementClientContext.ts b/sdk/synapse/arm-synapse/src/synapseManagementClientContext.ts index 5e44f5084cde..01fe251ca932 100644 --- a/sdk/synapse/arm-synapse/src/synapseManagementClientContext.ts +++ b/sdk/synapse/arm-synapse/src/synapseManagementClientContext.ts @@ -10,22 +10,28 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-synapse"; const packageVersion = "5.1.0"; export class SynapseManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the SynapseManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the + * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and + * @azure/ms-rest-browserauth are also supported. * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.SynapseManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.SynapseManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } @@ -43,7 +49,7 @@ export class SynapseManagementClientContext extends msRestAzure.AzureServiceClie super(credentials, options); - this.apiVersion = '2021-03-01'; + this.apiVersion = '2021-06-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";