From f02fcdc85e1974f067bfabd636c0559d8911965b Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Mon, 26 Oct 2020 05:42:31 +0000 Subject: [PATCH] Generated from a925b597d7462c919a8ae6240e3d34633b275809 --- .../src/models/bigDataPoolsMappers.ts | 5 + .../src/models/dataMaskingPoliciesMappers.ts | 85 ++ .../src/models/dataMaskingRulesMappers.ts | 86 +++ ...endedSqlPoolBlobAuditingPoliciesMappers.ts | 86 +++ sdk/synapse/arm-synapse/src/models/index.ts | 730 +++++++++++++++++- .../src/models/integrationRuntimesMappers.ts | 5 + .../src/models/ipFirewallRulesMappers.ts | 5 + sdk/synapse/arm-synapse/src/models/mappers.ts | 478 ++++++++++++ .../arm-synapse/src/models/parameters.ts | 36 + .../privateEndpointConnectionsMappers.ts | 5 + .../src/models/privateLinkHubsMappers.ts | 5 + .../src/models/privateLinkResourcesMappers.ts | 5 + .../sqlPoolBlobAuditingPoliciesMappers.ts | 6 + .../src/models/sqlPoolColumnsMappers.ts | 85 ++ .../sqlPoolConnectionPoliciesMappers.ts | 5 + ...lPoolDataWarehouseUserActivitiesMappers.ts | 5 + .../models/sqlPoolGeoBackupPoliciesMappers.ts | 5 + .../sqlPoolMetadataSyncConfigsMappers.ts | 5 + .../src/models/sqlPoolOperationsMappers.ts | 5 + .../models/sqlPoolReplicationLinksMappers.ts | 5 + .../src/models/sqlPoolRestorePointsMappers.ts | 5 + .../src/models/sqlPoolSchemasMappers.ts | 5 + .../sqlPoolSecurityAlertPoliciesMappers.ts | 5 + .../models/sqlPoolSensitivityLabelsMappers.ts | 5 + .../src/models/sqlPoolTableColumnsMappers.ts | 5 + .../src/models/sqlPoolTablesMappers.ts | 5 + ...qlPoolTransparentDataEncryptionsMappers.ts | 5 + ...erabilityAssessmentRuleBaselinesMappers.ts | 5 + ...PoolVulnerabilityAssessmentScansMappers.ts | 5 + .../sqlPoolVulnerabilityAssessmentsMappers.ts | 5 + .../arm-synapse/src/models/sqlPoolsMappers.ts | 5 + .../src/models/workspaceAadAdminsMappers.ts | 5 + ...anagedIdentitySqlControlSettingsMappers.ts | 5 + .../src/models/workspacesMappers.ts | 8 +- .../src/operations/dataMaskingPolicies.ts | 167 ++++ .../src/operations/dataMaskingRules.ts | 175 +++++ .../extendedSqlPoolBlobAuditingPolicies.ts | 281 +++++++ .../arm-synapse/src/operations/index.ts | 4 + .../operations/sqlPoolBlobAuditingPolicies.ts | 111 +++ .../src/operations/sqlPoolColumns.ts | 107 +++ .../src/operations/sqlPoolSchemas.ts | 67 ++ .../operations/sqlPoolSensitivityLabels.ts | 89 ++- .../src/operations/sqlPoolTables.ts | 72 ++ ...oolVulnerabilityAssessmentRuleBaselines.ts | 79 ++ .../sqlPoolVulnerabilityAssessmentScans.ts | 68 ++ .../src/synapseManagementClient.ts | 8 + 46 files changed, 2945 insertions(+), 8 deletions(-) create mode 100644 sdk/synapse/arm-synapse/src/models/dataMaskingPoliciesMappers.ts create mode 100644 sdk/synapse/arm-synapse/src/models/dataMaskingRulesMappers.ts create mode 100644 sdk/synapse/arm-synapse/src/models/extendedSqlPoolBlobAuditingPoliciesMappers.ts create mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolColumnsMappers.ts create mode 100644 sdk/synapse/arm-synapse/src/operations/dataMaskingPolicies.ts create mode 100644 sdk/synapse/arm-synapse/src/operations/dataMaskingRules.ts create mode 100644 sdk/synapse/arm-synapse/src/operations/extendedSqlPoolBlobAuditingPolicies.ts create mode 100644 sdk/synapse/arm-synapse/src/operations/sqlPoolColumns.ts diff --git a/sdk/synapse/arm-synapse/src/models/bigDataPoolsMappers.ts b/sdk/synapse/arm-synapse/src/models/bigDataPoolsMappers.ts index 7c8c1688ea13..86a0a3d0d89e 100644 --- a/sdk/synapse/arm-synapse/src/models/bigDataPoolsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/bigDataPoolsMappers.ts @@ -20,12 +20,15 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, ErrorAdditionalInfo, ErrorContract, ErrorResponse, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -37,6 +40,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -45,6 +49,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/dataMaskingPoliciesMappers.ts b/sdk/synapse/arm-synapse/src/models/dataMaskingPoliciesMappers.ts new file mode 100644 index 000000000000..1c3a96670f3a --- /dev/null +++ b/sdk/synapse/arm-synapse/src/models/dataMaskingPoliciesMappers.ts @@ -0,0 +1,85 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AutoPauseProperties, + AutoScaleProperties, + AzureEntityResource, + BaseResource, + BigDataPoolResourceInfo, + CloudError, + CmdkeySetup, + ComponentSetup, + CustomSetupBase, + DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, + DataWarehouseUserActivities, + EntityReference, + EnvironmentVariableSetup, + ExtendedSqlPoolBlobAuditingPolicy, + GeoBackupPolicy, + IntegrationRuntime, + IntegrationRuntimeComputeProperties, + IntegrationRuntimeCustomSetupScriptProperties, + IntegrationRuntimeDataFlowProperties, + IntegrationRuntimeDataProxyProperties, + IntegrationRuntimeResource, + IntegrationRuntimeSsisCatalogInfo, + IntegrationRuntimeSsisProperties, + IntegrationRuntimeVNetProperties, + IpFirewallRuleInfo, + LibraryInfo, + LibraryRequirements, + LinkedIntegrationRuntimeKeyAuthorization, + LinkedIntegrationRuntimeRbacAuthorization, + LinkedIntegrationRuntimeType, + ManagedIdentity, + ManagedIdentitySqlControlSettingsModel, + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, + ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, + MetadataSyncConfig, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkHub, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionState, + ProxyResource, + ReplicationLink, + Resource, + RestorePoint, + SecretBase, + SecureString, + SelfHostedIntegrationRuntime, + SensitivityLabel, + Sku, + SqlPool, + SqlPoolBlobAuditingPolicy, + SqlPoolColumn, + SqlPoolConnectionPolicy, + SqlPoolOperation, + SqlPoolSchema, + SqlPoolSecurityAlertPolicy, + SqlPoolTable, + SqlPoolVulnerabilityAssessment, + SqlPoolVulnerabilityAssessmentRuleBaseline, + SqlPoolVulnerabilityAssessmentRuleBaselineItem, + SqlPoolVulnerabilityAssessmentScansExport, + SubResource, + TrackedResource, + TransparentDataEncryption, + VirtualNetworkProfile, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + Workspace, + WorkspaceAadAdminInfo +} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/dataMaskingRulesMappers.ts b/sdk/synapse/arm-synapse/src/models/dataMaskingRulesMappers.ts new file mode 100644 index 000000000000..5a322bff9715 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/models/dataMaskingRulesMappers.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AutoPauseProperties, + AutoScaleProperties, + AzureEntityResource, + BaseResource, + BigDataPoolResourceInfo, + CloudError, + CmdkeySetup, + ComponentSetup, + CustomSetupBase, + DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, + DataMaskingRuleListResult, + DataWarehouseUserActivities, + EntityReference, + EnvironmentVariableSetup, + ExtendedSqlPoolBlobAuditingPolicy, + GeoBackupPolicy, + IntegrationRuntime, + IntegrationRuntimeComputeProperties, + IntegrationRuntimeCustomSetupScriptProperties, + IntegrationRuntimeDataFlowProperties, + IntegrationRuntimeDataProxyProperties, + IntegrationRuntimeResource, + IntegrationRuntimeSsisCatalogInfo, + IntegrationRuntimeSsisProperties, + IntegrationRuntimeVNetProperties, + IpFirewallRuleInfo, + LibraryInfo, + LibraryRequirements, + LinkedIntegrationRuntimeKeyAuthorization, + LinkedIntegrationRuntimeRbacAuthorization, + LinkedIntegrationRuntimeType, + ManagedIdentity, + ManagedIdentitySqlControlSettingsModel, + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, + ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, + MetadataSyncConfig, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkHub, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionState, + ProxyResource, + ReplicationLink, + Resource, + RestorePoint, + SecretBase, + SecureString, + SelfHostedIntegrationRuntime, + SensitivityLabel, + Sku, + SqlPool, + SqlPoolBlobAuditingPolicy, + SqlPoolColumn, + SqlPoolConnectionPolicy, + SqlPoolOperation, + SqlPoolSchema, + SqlPoolSecurityAlertPolicy, + SqlPoolTable, + SqlPoolVulnerabilityAssessment, + SqlPoolVulnerabilityAssessmentRuleBaseline, + SqlPoolVulnerabilityAssessmentRuleBaselineItem, + SqlPoolVulnerabilityAssessmentScansExport, + SubResource, + TrackedResource, + TransparentDataEncryption, + VirtualNetworkProfile, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + Workspace, + WorkspaceAadAdminInfo +} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/extendedSqlPoolBlobAuditingPoliciesMappers.ts b/sdk/synapse/arm-synapse/src/models/extendedSqlPoolBlobAuditingPoliciesMappers.ts new file mode 100644 index 000000000000..3a285230c887 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/models/extendedSqlPoolBlobAuditingPoliciesMappers.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AutoPauseProperties, + AutoScaleProperties, + AzureEntityResource, + BaseResource, + BigDataPoolResourceInfo, + CloudError, + CmdkeySetup, + ComponentSetup, + CustomSetupBase, + DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, + DataWarehouseUserActivities, + EntityReference, + EnvironmentVariableSetup, + ExtendedSqlPoolBlobAuditingPolicy, + ExtendedSqlPoolBlobAuditingPolicyListResult, + GeoBackupPolicy, + IntegrationRuntime, + IntegrationRuntimeComputeProperties, + IntegrationRuntimeCustomSetupScriptProperties, + IntegrationRuntimeDataFlowProperties, + IntegrationRuntimeDataProxyProperties, + IntegrationRuntimeResource, + IntegrationRuntimeSsisCatalogInfo, + IntegrationRuntimeSsisProperties, + IntegrationRuntimeVNetProperties, + IpFirewallRuleInfo, + LibraryInfo, + LibraryRequirements, + LinkedIntegrationRuntimeKeyAuthorization, + LinkedIntegrationRuntimeRbacAuthorization, + LinkedIntegrationRuntimeType, + ManagedIdentity, + ManagedIdentitySqlControlSettingsModel, + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, + ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, + MetadataSyncConfig, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkHub, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionState, + ProxyResource, + ReplicationLink, + Resource, + RestorePoint, + SecretBase, + SecureString, + SelfHostedIntegrationRuntime, + SensitivityLabel, + Sku, + SqlPool, + SqlPoolBlobAuditingPolicy, + SqlPoolColumn, + SqlPoolConnectionPolicy, + SqlPoolOperation, + SqlPoolSchema, + SqlPoolSecurityAlertPolicy, + SqlPoolTable, + SqlPoolVulnerabilityAssessment, + SqlPoolVulnerabilityAssessmentRuleBaseline, + SqlPoolVulnerabilityAssessmentRuleBaselineItem, + SqlPoolVulnerabilityAssessmentScansExport, + SubResource, + TrackedResource, + TransparentDataEncryption, + VirtualNetworkProfile, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + Workspace, + WorkspaceAadAdminInfo +} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/index.ts b/sdk/synapse/arm-synapse/src/models/index.ts index 0df366e6af64..e067bbe5ca33 100644 --- a/sdk/synapse/arm-synapse/src/models/index.ts +++ b/sdk/synapse/arm-synapse/src/models/index.ts @@ -65,6 +65,33 @@ export interface LibraryRequirements { filename?: string; } +/** + * Library/package information of a Big Data pool powered by Apache Spark + * @summary Information about a library/package created at the workspace level. + */ +export interface LibraryInfo { + /** + * Name of the library. + */ + name?: string; + /** + * Storage blob path of library. + */ + path?: string; + /** + * Storage blob container name. + */ + containerName?: string; + /** + * The last update time of the library. + */ + uploadedTimestamp?: Date; + /** + * Type of the library. + */ + type?: string; +} + /** * An interface representing Resource. */ @@ -127,6 +154,10 @@ export interface BigDataPoolResourceInfo extends TrackedResource { * Whether compute isolation is required or not. */ isComputeIsolationEnabled?: boolean; + /** + * Whether session level library/package management is enabled or not. + */ + sessionLevelPackagesEnabled?: boolean; /** * The Spark events folder */ @@ -139,6 +170,14 @@ export interface BigDataPoolResourceInfo extends TrackedResource { * Library version requirements */ libraryRequirements?: LibraryRequirements; + /** + * List of custom libraries/packages associated with the spark pool. + */ + customLibraries?: LibraryInfo[]; + /** + * Spark configuration file to specify additional properties + */ + sparkConfigProperties?: LibraryRequirements; /** * The Apache Spark version. */ @@ -149,7 +188,7 @@ export interface BigDataPoolResourceInfo extends TrackedResource { defaultSparkLogFolder?: string; /** * The level of compute power that each node in the Big Data pool has. Possible values include: - * 'None', 'Small', 'Medium', 'Large', 'XLarge', 'XXLarge' + * 'None', 'Small', 'Medium', 'Large', 'XLarge', 'XXLarge', 'XXXLarge' */ nodeSize?: NodeSize; /** @@ -1499,6 +1538,257 @@ export interface CreateSqlPoolRestorePointDefinition { restorePointLabel: string; } +/** + * An extended Sql pool blob auditing policy. + */ +export interface ExtendedSqlPoolBlobAuditingPolicy 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; + /** + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state + * is Enabled, storageEndpoint or isAzureMonitorTargetEnabled 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) + */ + storageAccountAccessKey?: string; + /** + * Specifies the number of days to keep in the audit logs in the storage account. + */ + retentionDays?: number; + /** + * 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) + */ + 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 database data masking policy. + */ +export interface DataMaskingPolicy extends ProxyResource { + /** + * The state of the data masking policy. Possible values include: 'Disabled', 'Enabled' + */ + dataMaskingState: DataMaskingState; + /** + * 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. + */ + exemptPrincipals?: string; + /** + * 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.** + */ + readonly applicationPrincipals?: string; + /** + * 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 maskingLevel?: string; + /** + * The location of the data masking policy. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * 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 kind?: string; +} + +/** + * Represents a Sql pool data masking rule. + */ +export interface DataMaskingRule extends ProxyResource { + /** + * The rule Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataMaskingRuleId?: string; + /** + * The alias name. This is a legacy parameter and is no longer used. + */ + aliasName?: 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' + */ + ruleState?: DataMaskingRuleState; + /** + * The schema name on which the data masking rule is applied. + */ + schemaName: string; + /** + * The table name on which the data masking rule is applied. + */ + tableName: string; + /** + * The column name on which the data masking rule is applied. + */ + columnName: string; + /** + * The masking function that is used for the data masking rule. Possible values include: + * 'Default', 'CCN', 'Email', 'Number', 'SSN', 'Text' + */ + maskingFunction: DataMaskingFunction; + /** + * The numberFrom property of the masking rule. Required if maskingFunction is set to Number, + * otherwise this parameter will be ignored. + */ + numberFrom?: string; + /** + * The numberTo property of the data masking rule. Required if maskingFunction is set to Number, + * otherwise this parameter will be ignored. + */ + numberTo?: 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. + */ + prefixSize?: string; + /** + * 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. + */ + suffixSize?: string; + /** + * If maskingFunction is set to Text, the character to use for masking the unexposed part of the + * string. Otherwise, this parameter will be ignored. + */ + replacementString?: string; + /** + * The location of the data masking rule. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * 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 kind?: string; +} + /** * Details of the data lake storage account associated with the workspace */ @@ -1573,6 +1863,24 @@ export interface PrivateEndpointConnection extends ProxyResource { readonly provisioningState?: string; } +/** + * Managed Virtual Network Settings + */ +export interface ManagedVirtualNetworkSettings { + /** + * Prevent Data Exfiltration + */ + preventDataExfiltration?: boolean; + /** + * Linked Access Check On Target Resource + */ + linkedAccessCheckOnTargetResource?: boolean; + /** + * Allowed Aad Tenant Ids For Linking + */ + allowedAadTenantIdsForLinking?: string[]; +} + /** * The workspace managed identity */ @@ -1644,6 +1952,10 @@ export interface Workspace extends TrackedResource { * **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; /** * Identity of the workspace */ @@ -1672,6 +1984,24 @@ export interface WorkspaceAadAdminInfo extends BaseResource { sid?: string; } +/** + * Managed Virtual Network Settings + */ +export interface WorkspacePatchInfoManagedVirtualNetworkSettings { + /** + * Prevent Data Exfiltration + */ + preventDataExfiltration?: boolean; + /** + * Linked Access Check On Target Resource + */ + linkedAccessCheckOnTargetResource?: boolean; + /** + * Allowed Aad Tenant Ids For Linking + */ + allowedAadTenantIdsForLinking?: string[]; +} + /** * Workspace patch details */ @@ -1684,6 +2014,10 @@ export interface WorkspacePatchInfo { * The identity of the workspace */ identity?: ManagedIdentity; + /** + * Managed Virtual Network Settings + */ + managedVirtualNetworkSettings?: WorkspacePatchInfoManagedVirtualNetworkSettings; /** * SQL administrator login password */ @@ -3287,6 +3621,19 @@ export interface ReplicationLinkListResult extends Array { 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 @@ -3391,6 +3738,27 @@ export interface VulnerabilityAssessmentScanRecordListResult 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 * List of workspaces @@ -3455,11 +3823,11 @@ export interface PrivateLinkHubInfoListResult extends Array { /** * Defines values for NodeSize. - * Possible values include: 'None', 'Small', 'Medium', 'Large', 'XLarge', 'XXLarge' + * Possible values include: 'None', 'Small', 'Medium', 'Large', 'XLarge', 'XXLarge', 'XXXLarge' * @readonly * @enum {string} */ -export type NodeSize = 'None' | 'Small' | 'Medium' | 'Large' | 'XLarge' | 'XXLarge'; +export type NodeSize = 'None' | 'Small' | 'Medium' | 'Large' | 'XLarge' | 'XXLarge' | 'XXXLarge'; /** * Defines values for NodeSizeFamily. @@ -3611,8 +3979,32 @@ export type VulnerabilityAssessmentScanState = 'Passed' | 'Failed' | 'FailedToRu export type SecurityAlertPolicyState = 'New' | 'Enabled' | 'Disabled'; /** - * Defines values for ResourceIdentityType. - * Possible values include: 'None', 'SystemAssigned' + * Defines values for DataMaskingState. + * Possible values include: 'Disabled', 'Enabled' + * @readonly + * @enum {string} + */ +export type DataMaskingState = 'Disabled' | 'Enabled'; + +/** + * Defines values for DataMaskingRuleState. + * Possible values include: 'Disabled', 'Enabled' + * @readonly + * @enum {string} + */ +export type DataMaskingRuleState = 'Disabled' | 'Enabled'; + +/** + * 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'; + +/** + * Defines values for ResourceIdentityType. + * Possible values include: 'None', 'SystemAssigned' * @readonly * @enum {string} */ @@ -3732,6 +4124,14 @@ export type IntegrationRuntimeAuthKeyName = 'authKey1' | 'authKey2'; */ export type SsisObjectMetadataType = 'Folder' | 'Project' | 'Package' | 'Environment'; +/** + * 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' @@ -4772,6 +5172,46 @@ export type SqlPoolBlobAuditingPoliciesCreateOrUpdateResponse = SqlPoolBlobAudit }; }; +/** + * Contains response data for the listBySqlPool operation. + */ +export type SqlPoolBlobAuditingPoliciesListBySqlPoolResponse = SqlPoolBlobAuditingPolicyListResult & { + /** + * 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: SqlPoolBlobAuditingPolicyListResult; + }; +}; + +/** + * Contains response data for the listBySqlPoolNext operation. + */ +export type SqlPoolBlobAuditingPoliciesListBySqlPoolNextResponse = SqlPoolBlobAuditingPolicyListResult & { + /** + * 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: SqlPoolBlobAuditingPolicyListResult; + }; +}; + /** * Contains response data for the list operation. */ @@ -4912,6 +5352,26 @@ export type SqlPoolSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel & }; }; +/** + * Contains response data for the get operation. + */ +export type SqlPoolSensitivityLabelsGetResponse = SensitivityLabel & { + /** + * 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: SensitivityLabel; + }; +}; + /** * Contains response data for the listCurrentNext operation. */ @@ -4972,6 +5432,26 @@ export type SqlPoolSchemasListResponse = SqlPoolSchemaListResult & { }; }; +/** + * Contains response data for the get operation. + */ +export type SqlPoolSchemasGetResponse = SqlPoolSchema & { + /** + * 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: SqlPoolSchema; + }; +}; + /** * Contains response data for the listNext operation. */ @@ -5012,6 +5492,26 @@ export type SqlPoolTablesListBySchemaResponse = SqlPoolTableListResult & { }; }; +/** + * Contains response data for the get operation. + */ +export type SqlPoolTablesGetResponse = SqlPoolTable & { + /** + * 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: SqlPoolTable; + }; +}; + /** * Contains response data for the listBySchemaNext operation. */ @@ -5212,6 +5712,26 @@ export type SqlPoolVulnerabilityAssessmentScansExportMethodResponse = SqlPoolVul }; }; +/** + * Contains response data for the get operation. + */ +export type SqlPoolVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord & { + /** + * 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: VulnerabilityAssessmentScanRecord; + }; +}; + /** * Contains response data for the listNext operation. */ @@ -5292,6 +5812,206 @@ export type SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = }; }; +/** + * Contains response data for the get operation. + */ +export type SqlPoolVulnerabilityAssessmentRuleBaselinesGetResponse = SqlPoolVulnerabilityAssessmentRuleBaseline & { + /** + * 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: SqlPoolVulnerabilityAssessmentRuleBaseline; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ExtendedSqlPoolBlobAuditingPoliciesGetResponse = ExtendedSqlPoolBlobAuditingPolicy & { + /** + * 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: ExtendedSqlPoolBlobAuditingPolicy; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedSqlPoolBlobAuditingPolicy & { + /** + * 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: ExtendedSqlPoolBlobAuditingPolicy; + }; +}; + +/** + * Contains response data for the listBySqlPool operation. + */ +export type ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolResponse = ExtendedSqlPoolBlobAuditingPolicyListResult & { + /** + * 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: ExtendedSqlPoolBlobAuditingPolicyListResult; + }; +}; + +/** + * Contains response data for the listBySqlPoolNext operation. + */ +export type ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolNextResponse = ExtendedSqlPoolBlobAuditingPolicyListResult & { + /** + * 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: ExtendedSqlPoolBlobAuditingPolicyListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DataMaskingPoliciesCreateOrUpdateResponse = DataMaskingPolicy & { + /** + * 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: DataMaskingPolicy; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DataMaskingPoliciesGetResponse = DataMaskingPolicy & { + /** + * 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: DataMaskingPolicy; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule & { + /** + * 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: DataMaskingRule; + }; +}; + +/** + * Contains response data for the listBySqlPool operation. + */ +export type DataMaskingRulesListBySqlPoolResponse = DataMaskingRuleListResult & { + /** + * 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: DataMaskingRuleListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type SqlPoolColumnsGetResponse = SqlPoolColumn & { + /** + * 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: SqlPoolColumn; + }; +}; + /** * Contains response data for the listByResourceGroup operation. */ diff --git a/sdk/synapse/arm-synapse/src/models/integrationRuntimesMappers.ts b/sdk/synapse/arm-synapse/src/models/integrationRuntimesMappers.ts index 366ead1389f3..78533be87235 100644 --- a/sdk/synapse/arm-synapse/src/models/integrationRuntimesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/integrationRuntimesMappers.ts @@ -18,9 +18,12 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -35,6 +38,7 @@ export { IntegrationRuntimeStatusResponse, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntime, LinkedIntegrationRuntimeKeyAuthorization, @@ -48,6 +52,7 @@ export { ManagedIntegrationRuntimeNode, ManagedIntegrationRuntimeOperationResult, ManagedIntegrationRuntimeStatus, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/ipFirewallRulesMappers.ts b/sdk/synapse/arm-synapse/src/models/ipFirewallRulesMappers.ts index c7f8771d0db7..d380ed68b3a6 100644 --- a/sdk/synapse/arm-synapse/src/models/ipFirewallRulesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/ipFirewallRulesMappers.ts @@ -18,12 +18,15 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, ErrorAdditionalInfo, ErrorContract, ErrorResponse, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -37,6 +40,7 @@ export { IpFirewallRuleInfo, IpFirewallRuleInfoListResult, IpFirewallRuleProperties, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -45,6 +49,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/mappers.ts b/sdk/synapse/arm-synapse/src/models/mappers.ts index fda271583898..367dea2e5474 100644 --- a/sdk/synapse/arm-synapse/src/models/mappers.ts +++ b/sdk/synapse/arm-synapse/src/models/mappers.ts @@ -91,6 +91,46 @@ export const LibraryRequirements: msRest.CompositeMapper = { } }; +export const LibraryInfo: msRest.CompositeMapper = { + serializedName: "LibraryInfo", + type: { + name: "Composite", + className: "LibraryInfo", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + path: { + serializedName: "path", + type: { + name: "String" + } + }, + containerName: { + serializedName: "containerName", + type: { + name: "String" + } + }, + uploadedTimestamp: { + serializedName: "uploadedTimestamp", + type: { + name: "DateTime" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + export const Resource: msRest.CompositeMapper = { serializedName: "Resource", type: { @@ -190,6 +230,12 @@ export const BigDataPoolResourceInfo: msRest.CompositeMapper = { name: "Boolean" } }, + sessionLevelPackagesEnabled: { + serializedName: "properties.sessionLevelPackagesEnabled", + type: { + name: "Boolean" + } + }, sparkEventsFolder: { serializedName: "properties.sparkEventsFolder", type: { @@ -209,6 +255,25 @@ export const BigDataPoolResourceInfo: msRest.CompositeMapper = { className: "LibraryRequirements" } }, + customLibraries: { + serializedName: "properties.customLibraries", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LibraryInfo" + } + } + } + }, + sparkConfigProperties: { + serializedName: "properties.sparkConfigProperties", + type: { + name: "Composite", + className: "LibraryRequirements" + } + }, sparkVersion: { serializedName: "properties.sparkVersion", type: { @@ -2275,6 +2340,257 @@ export const CreateSqlPoolRestorePointDefinition: msRest.CompositeMapper = { } }; +export const ExtendedSqlPoolBlobAuditingPolicy: msRest.CompositeMapper = { + serializedName: "ExtendedSqlPoolBlobAuditingPolicy", + type: { + name: "Composite", + className: "ExtendedSqlPoolBlobAuditingPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + predicateExpression: { + serializedName: "properties.predicateExpression", + type: { + name: "String" + } + }, + state: { + required: true, + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "Enabled", + "Disabled" + ] + } + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", + type: { + name: "String" + } + }, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", + type: { + name: "String" + } + }, + retentionDays: { + serializedName: "properties.retentionDays", + type: { + name: "Number" + } + }, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", + type: { + name: "Uuid" + } + }, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", + type: { + name: "Boolean" + } + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", + type: { + name: "Boolean" + } + }, + queueDelayMs: { + serializedName: "properties.queueDelayMs", + type: { + name: "Number" + } + } + } + } +}; + +export const DataMaskingPolicy: msRest.CompositeMapper = { + serializedName: "DataMaskingPolicy", + type: { + name: "Composite", + className: "DataMaskingPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + dataMaskingState: { + required: true, + serializedName: "properties.dataMaskingState", + type: { + name: "Enum", + allowedValues: [ + "Disabled", + "Enabled" + ] + } + }, + exemptPrincipals: { + serializedName: "properties.exemptPrincipals", + type: { + name: "String" + } + }, + applicationPrincipals: { + readOnly: true, + serializedName: "properties.applicationPrincipals", + type: { + name: "String" + } + }, + maskingLevel: { + readOnly: true, + serializedName: "properties.maskingLevel", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + kind: { + readOnly: true, + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + +export const DataMaskingRule: msRest.CompositeMapper = { + serializedName: "DataMaskingRule", + type: { + name: "Composite", + className: "DataMaskingRule", + modelProperties: { + ...ProxyResource.type.modelProperties, + dataMaskingRuleId: { + readOnly: true, + serializedName: "properties.id", + type: { + name: "String" + } + }, + aliasName: { + serializedName: "properties.aliasName", + type: { + name: "String" + } + }, + ruleState: { + serializedName: "properties.ruleState", + type: { + name: "Enum", + allowedValues: [ + "Disabled", + "Enabled" + ] + } + }, + schemaName: { + required: true, + serializedName: "properties.schemaName", + type: { + name: "String" + } + }, + tableName: { + required: true, + serializedName: "properties.tableName", + type: { + name: "String" + } + }, + columnName: { + required: true, + serializedName: "properties.columnName", + type: { + name: "String" + } + }, + maskingFunction: { + required: true, + serializedName: "properties.maskingFunction", + type: { + name: "Enum", + allowedValues: [ + "Default", + "CCN", + "Email", + "Number", + "SSN", + "Text" + ] + } + }, + numberFrom: { + serializedName: "properties.numberFrom", + type: { + name: "String" + } + }, + numberTo: { + serializedName: "properties.numberTo", + type: { + name: "String" + } + }, + prefixSize: { + serializedName: "properties.prefixSize", + type: { + name: "String" + } + }, + suffixSize: { + serializedName: "properties.suffixSize", + type: { + name: "String" + } + }, + replacementString: { + serializedName: "properties.replacementString", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + kind: { + readOnly: true, + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + export const DataLakeStorageAccountDetails: msRest.CompositeMapper = { serializedName: "DataLakeStorageAccountDetails", type: { @@ -2391,6 +2707,39 @@ export const PrivateEndpointConnection: msRest.CompositeMapper = { } }; +export const ManagedVirtualNetworkSettings: msRest.CompositeMapper = { + serializedName: "ManagedVirtualNetworkSettings", + type: { + name: "Composite", + className: "ManagedVirtualNetworkSettings", + modelProperties: { + preventDataExfiltration: { + serializedName: "preventDataExfiltration", + type: { + name: "Boolean" + } + }, + linkedAccessCheckOnTargetResource: { + serializedName: "linkedAccessCheckOnTargetResource", + type: { + name: "Boolean" + } + }, + allowedAadTenantIdsForLinking: { + serializedName: "allowedAadTenantIdsForLinking", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const ManagedIdentity: msRest.CompositeMapper = { serializedName: "ManagedIdentity", type: { @@ -2512,6 +2861,13 @@ export const Workspace: msRest.CompositeMapper = { } } }, + managedVirtualNetworkSettings: { + serializedName: "properties.managedVirtualNetworkSettings", + type: { + name: "Composite", + className: "ManagedVirtualNetworkSettings" + } + }, identity: { serializedName: "identity", type: { @@ -2557,6 +2913,39 @@ export const WorkspaceAadAdminInfo: msRest.CompositeMapper = { } }; +export const WorkspacePatchInfoManagedVirtualNetworkSettings: msRest.CompositeMapper = { + serializedName: "WorkspacePatchInfo_managedVirtualNetworkSettings", + type: { + name: "Composite", + className: "WorkspacePatchInfoManagedVirtualNetworkSettings", + modelProperties: { + preventDataExfiltration: { + serializedName: "preventDataExfiltration", + type: { + name: "Boolean" + } + }, + linkedAccessCheckOnTargetResource: { + serializedName: "linkedAccessCheckOnTargetResource", + type: { + name: "Boolean" + } + }, + allowedAadTenantIdsForLinking: { + serializedName: "allowedAadTenantIdsForLinking", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const WorkspacePatchInfo: msRest.CompositeMapper = { serializedName: "WorkspacePatchInfo", type: { @@ -2581,6 +2970,13 @@ export const WorkspacePatchInfo: msRest.CompositeMapper = { className: "ManagedIdentity" } }, + managedVirtualNetworkSettings: { + serializedName: "managedVirtualNetworkSettings", + type: { + name: "Composite", + className: "WorkspacePatchInfoManagedVirtualNetworkSettings" + } + }, sqlAdministratorLoginPassword: { serializedName: "properties.sqlAdministratorLoginPassword", type: { @@ -4876,6 +5272,36 @@ export const ReplicationLinkListResult: msRest.CompositeMapper = { } }; +export const SqlPoolBlobAuditingPolicyListResult: msRest.CompositeMapper = { + serializedName: "SqlPoolBlobAuditingPolicyListResult", + type: { + name: "Composite", + className: "SqlPoolBlobAuditingPolicyListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SqlPoolBlobAuditingPolicy" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const SqlPoolBlobAuditingPolicySqlPoolOperationListResult: msRest.CompositeMapper = { serializedName: "SqlPoolBlobAuditingPolicySqlPoolOperationListResult", type: { @@ -5116,6 +5542,58 @@ export const VulnerabilityAssessmentScanRecordListResult: msRest.CompositeMapper } }; +export const ExtendedSqlPoolBlobAuditingPolicyListResult: msRest.CompositeMapper = { + serializedName: "ExtendedSqlPoolBlobAuditingPolicyListResult", + type: { + name: "Composite", + className: "ExtendedSqlPoolBlobAuditingPolicyListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExtendedSqlPoolBlobAuditingPolicy" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DataMaskingRuleListResult: msRest.CompositeMapper = { + serializedName: "DataMaskingRuleListResult", + type: { + name: "Composite", + className: "DataMaskingRuleListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataMaskingRule" + } + } + } + } + } + } +}; + export const WorkspaceInfoListResult: msRest.CompositeMapper = { serializedName: "WorkspaceInfoListResult", type: { diff --git a/sdk/synapse/arm-synapse/src/models/parameters.ts b/sdk/synapse/arm-synapse/src/models/parameters.ts index 0dd981eac51a..066b247b553a 100644 --- a/sdk/synapse/arm-synapse/src/models/parameters.ts +++ b/sdk/synapse/arm-synapse/src/models/parameters.ts @@ -91,6 +91,28 @@ export const connectionPolicyName: msRest.OperationURLParameter = { } } }; +export const dataMaskingPolicyName: msRest.OperationURLParameter = { + parameterPath: "dataMaskingPolicyName", + mapper: { + required: true, + isConstant: true, + serializedName: "dataMaskingPolicyName", + defaultValue: 'Default', + type: { + name: "String" + } + } +}; +export const dataMaskingRuleName: msRest.OperationURLParameter = { + parameterPath: "dataMaskingRuleName", + mapper: { + required: true, + serializedName: "dataMaskingRuleName", + type: { + name: "String" + } + } +}; export const dataWarehouseUserActivityName: msRest.OperationURLParameter = { parameterPath: "dataWarehouseUserActivityName", mapper: { @@ -327,6 +349,20 @@ export const sensitivityLabelSource0: msRest.OperationURLParameter = { } }; export const sensitivityLabelSource1: msRest.OperationURLParameter = { + parameterPath: "sensitivityLabelSource", + mapper: { + required: true, + serializedName: "sensitivityLabelSource", + type: { + name: "Enum", + allowedValues: [ + "current", + "recommended" + ] + } + } +}; +export const sensitivityLabelSource2: msRest.OperationURLParameter = { parameterPath: "sensitivityLabelSource", mapper: { required: true, diff --git a/sdk/synapse/arm-synapse/src/models/privateEndpointConnectionsMappers.ts b/sdk/synapse/arm-synapse/src/models/privateEndpointConnectionsMappers.ts index 2de0c2955f9f..6327d9f9ce71 100644 --- a/sdk/synapse/arm-synapse/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/privateEndpointConnectionsMappers.ts @@ -17,6 +17,8 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, @@ -24,6 +26,7 @@ export { ErrorContract, ErrorDetail, ErrorResponse, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -35,6 +38,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -43,6 +47,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, OperationResource, PrivateEndpoint, diff --git a/sdk/synapse/arm-synapse/src/models/privateLinkHubsMappers.ts b/sdk/synapse/arm-synapse/src/models/privateLinkHubsMappers.ts index 3d66c23b5fa0..24282247adb1 100644 --- a/sdk/synapse/arm-synapse/src/models/privateLinkHubsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/privateLinkHubsMappers.ts @@ -18,12 +18,15 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, ErrorAdditionalInfo, ErrorContract, ErrorResponse, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -35,6 +38,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -43,6 +47,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/privateLinkResourcesMappers.ts b/sdk/synapse/arm-synapse/src/models/privateLinkResourcesMappers.ts index ab6170d0a453..ebe6f06dede4 100644 --- a/sdk/synapse/arm-synapse/src/models/privateLinkResourcesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/privateLinkResourcesMappers.ts @@ -18,9 +18,12 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -32,6 +35,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -40,6 +44,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolBlobAuditingPoliciesMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolBlobAuditingPoliciesMappers.ts index fb61cb78574b..e394409742e1 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolBlobAuditingPoliciesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolBlobAuditingPoliciesMappers.ts @@ -18,9 +18,12 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -32,6 +35,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -40,6 +44,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, @@ -58,6 +63,7 @@ export { Sku, SqlPool, SqlPoolBlobAuditingPolicy, + SqlPoolBlobAuditingPolicyListResult, SqlPoolColumn, SqlPoolConnectionPolicy, SqlPoolOperation, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolColumnsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolColumnsMappers.ts new file mode 100644 index 000000000000..1c3a96670f3a --- /dev/null +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolColumnsMappers.ts @@ -0,0 +1,85 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AutoPauseProperties, + AutoScaleProperties, + AzureEntityResource, + BaseResource, + BigDataPoolResourceInfo, + CloudError, + CmdkeySetup, + ComponentSetup, + CustomSetupBase, + DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, + DataWarehouseUserActivities, + EntityReference, + EnvironmentVariableSetup, + ExtendedSqlPoolBlobAuditingPolicy, + GeoBackupPolicy, + IntegrationRuntime, + IntegrationRuntimeComputeProperties, + IntegrationRuntimeCustomSetupScriptProperties, + IntegrationRuntimeDataFlowProperties, + IntegrationRuntimeDataProxyProperties, + IntegrationRuntimeResource, + IntegrationRuntimeSsisCatalogInfo, + IntegrationRuntimeSsisProperties, + IntegrationRuntimeVNetProperties, + IpFirewallRuleInfo, + LibraryInfo, + LibraryRequirements, + LinkedIntegrationRuntimeKeyAuthorization, + LinkedIntegrationRuntimeRbacAuthorization, + LinkedIntegrationRuntimeType, + ManagedIdentity, + ManagedIdentitySqlControlSettingsModel, + ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, + ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, + MetadataSyncConfig, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkHub, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionState, + ProxyResource, + ReplicationLink, + Resource, + RestorePoint, + SecretBase, + SecureString, + SelfHostedIntegrationRuntime, + SensitivityLabel, + Sku, + SqlPool, + SqlPoolBlobAuditingPolicy, + SqlPoolColumn, + SqlPoolConnectionPolicy, + SqlPoolOperation, + SqlPoolSchema, + SqlPoolSecurityAlertPolicy, + SqlPoolTable, + SqlPoolVulnerabilityAssessment, + SqlPoolVulnerabilityAssessmentRuleBaseline, + SqlPoolVulnerabilityAssessmentRuleBaselineItem, + SqlPoolVulnerabilityAssessmentScansExport, + SubResource, + TrackedResource, + TransparentDataEncryption, + VirtualNetworkProfile, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + Workspace, + WorkspaceAadAdminInfo +} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolConnectionPoliciesMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolConnectionPoliciesMappers.ts index fb61cb78574b..1c3a96670f3a 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolConnectionPoliciesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolConnectionPoliciesMappers.ts @@ -18,9 +18,12 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -32,6 +35,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -40,6 +44,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolDataWarehouseUserActivitiesMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolDataWarehouseUserActivitiesMappers.ts index fb61cb78574b..1c3a96670f3a 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolDataWarehouseUserActivitiesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolDataWarehouseUserActivitiesMappers.ts @@ -18,9 +18,12 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -32,6 +35,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -40,6 +44,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolGeoBackupPoliciesMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolGeoBackupPoliciesMappers.ts index fb61cb78574b..1c3a96670f3a 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolGeoBackupPoliciesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolGeoBackupPoliciesMappers.ts @@ -18,9 +18,12 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -32,6 +35,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -40,6 +44,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolMetadataSyncConfigsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolMetadataSyncConfigsMappers.ts index 13d72f5d5cea..717d03cfd589 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolMetadataSyncConfigsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolMetadataSyncConfigsMappers.ts @@ -17,12 +17,15 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, ErrorAdditionalInfo, ErrorContract, ErrorResponse, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -34,6 +37,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -42,6 +46,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolOperationsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolOperationsMappers.ts index a6542954d3c6..29b293bfe195 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolOperationsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolOperationsMappers.ts @@ -18,9 +18,12 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -32,6 +35,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -40,6 +44,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolReplicationLinksMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolReplicationLinksMappers.ts index 1ba27fefd430..8c91694a6003 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolReplicationLinksMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolReplicationLinksMappers.ts @@ -18,9 +18,12 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -32,6 +35,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -40,6 +44,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolRestorePointsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolRestorePointsMappers.ts index e4cd1d6bfde5..fd4f93ceb885 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolRestorePointsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolRestorePointsMappers.ts @@ -19,9 +19,12 @@ export { CreateSqlPoolRestorePointDefinition, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -33,6 +36,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -41,6 +45,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolSchemasMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolSchemasMappers.ts index 6841809faae5..bc4ade0c5e6b 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolSchemasMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolSchemasMappers.ts @@ -18,9 +18,12 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -32,6 +35,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -40,6 +44,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolSecurityAlertPoliciesMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolSecurityAlertPoliciesMappers.ts index fb61cb78574b..1c3a96670f3a 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolSecurityAlertPoliciesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolSecurityAlertPoliciesMappers.ts @@ -18,9 +18,12 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -32,6 +35,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -40,6 +44,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolSensitivityLabelsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolSensitivityLabelsMappers.ts index e686153f196c..9aa0692835ca 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolSensitivityLabelsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolSensitivityLabelsMappers.ts @@ -18,9 +18,12 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -32,6 +35,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -40,6 +44,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolTableColumnsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolTableColumnsMappers.ts index 6e1cca804695..55fc44fafa7e 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolTableColumnsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolTableColumnsMappers.ts @@ -18,9 +18,12 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -32,6 +35,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -40,6 +44,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolTablesMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolTablesMappers.ts index 07c2ef8dd23b..b4c08a6bfef3 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolTablesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolTablesMappers.ts @@ -18,9 +18,12 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -32,6 +35,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -40,6 +44,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolTransparentDataEncryptionsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolTransparentDataEncryptionsMappers.ts index fb61cb78574b..1c3a96670f3a 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolTransparentDataEncryptionsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolTransparentDataEncryptionsMappers.ts @@ -18,9 +18,12 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -32,6 +35,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -40,6 +44,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentRuleBaselinesMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentRuleBaselinesMappers.ts index fb61cb78574b..1c3a96670f3a 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentRuleBaselinesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentRuleBaselinesMappers.ts @@ -18,9 +18,12 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -32,6 +35,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -40,6 +44,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentScansMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentScansMappers.ts index 4bbca08d25b0..432cfea040a9 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentScansMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentScansMappers.ts @@ -18,9 +18,12 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -32,6 +35,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -40,6 +44,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentsMappers.ts index 761eb9db111d..cceb8cc8a5ff 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentsMappers.ts @@ -18,9 +18,12 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -32,6 +35,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -40,6 +44,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolsMappers.ts index 59a9481cc5fe..b68b4dac6861 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/sqlPoolsMappers.ts @@ -18,12 +18,15 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, ErrorAdditionalInfo, ErrorContract, ErrorResponse, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -35,6 +38,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -43,6 +47,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/workspaceAadAdminsMappers.ts b/sdk/synapse/arm-synapse/src/models/workspaceAadAdminsMappers.ts index a521be300354..207cf34ec036 100644 --- a/sdk/synapse/arm-synapse/src/models/workspaceAadAdminsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/workspaceAadAdminsMappers.ts @@ -18,12 +18,15 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, ErrorAdditionalInfo, ErrorContract, ErrorResponse, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -35,6 +38,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -43,6 +47,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/workspaceManagedIdentitySqlControlSettingsMappers.ts b/sdk/synapse/arm-synapse/src/models/workspaceManagedIdentitySqlControlSettingsMappers.ts index 13d72f5d5cea..717d03cfd589 100644 --- a/sdk/synapse/arm-synapse/src/models/workspaceManagedIdentitySqlControlSettingsMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/workspaceManagedIdentitySqlControlSettingsMappers.ts @@ -17,12 +17,15 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, ErrorAdditionalInfo, ErrorContract, ErrorResponse, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -34,6 +37,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -42,6 +46,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/synapse/arm-synapse/src/models/workspacesMappers.ts b/sdk/synapse/arm-synapse/src/models/workspacesMappers.ts index 400002e0c610..2cb0d699a679 100644 --- a/sdk/synapse/arm-synapse/src/models/workspacesMappers.ts +++ b/sdk/synapse/arm-synapse/src/models/workspacesMappers.ts @@ -18,12 +18,15 @@ export { ComponentSetup, CustomSetupBase, DataLakeStorageAccountDetails, + DataMaskingPolicy, + DataMaskingRule, DataWarehouseUserActivities, EntityReference, EnvironmentVariableSetup, ErrorAdditionalInfo, ErrorContract, ErrorResponse, + ExtendedSqlPoolBlobAuditingPolicy, GeoBackupPolicy, IntegrationRuntime, IntegrationRuntimeComputeProperties, @@ -35,6 +38,7 @@ export { IntegrationRuntimeSsisProperties, IntegrationRuntimeVNetProperties, IpFirewallRuleInfo, + LibraryInfo, LibraryRequirements, LinkedIntegrationRuntimeKeyAuthorization, LinkedIntegrationRuntimeRbacAuthorization, @@ -43,6 +47,7 @@ export { ManagedIdentitySqlControlSettingsModel, ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, ManagedIntegrationRuntime, + ManagedVirtualNetworkSettings, MetadataSyncConfig, PrivateEndpoint, PrivateEndpointConnection, @@ -81,5 +86,6 @@ export { Workspace, WorkspaceAadAdminInfo, WorkspaceInfoListResult, - WorkspacePatchInfo + WorkspacePatchInfo, + WorkspacePatchInfoManagedVirtualNetworkSettings } from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/operations/dataMaskingPolicies.ts b/sdk/synapse/arm-synapse/src/operations/dataMaskingPolicies.ts new file mode 100644 index 000000000000..c6d5732f1285 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/dataMaskingPolicies.ts @@ -0,0 +1,167 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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/dataMaskingPoliciesMappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClientContext } from "../synapseManagementClientContext"; + +/** Class representing a DataMaskingPolicies. */ +export class DataMaskingPolicies { + private readonly client: SynapseManagementClientContext; + + /** + * Create a DataMaskingPolicies. + * @param {SynapseManagementClientContext} client Reference to the service client. + */ + constructor(client: SynapseManagementClientContext) { + this.client = client; + } + + /** + * Creates or updates a Sql pool data masking policy + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param sqlPoolName SQL pool name + * @param parameters Parameters for creating or updating a data masking policy. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.DataMaskingPolicy, 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 sqlPoolName SQL pool name + * @param parameters Parameters for creating or updating a data masking policy. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.DataMaskingPolicy, 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 sqlPoolName SQL pool name + * @param parameters Parameters for creating or updating a data masking policy. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.DataMaskingPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.DataMaskingPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + sqlPoolName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Gets a Sql pool data masking policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param sqlPoolName SQL pool name + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: 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 sqlPoolName SQL pool name + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: 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 sqlPoolName SQL pool name + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + sqlPoolName, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName, + Parameters.dataMaskingPolicyName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DataMaskingPolicy, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DataMaskingPolicy + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName, + Parameters.dataMaskingPolicyName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataMaskingPolicy + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/dataMaskingRules.ts b/sdk/synapse/arm-synapse/src/operations/dataMaskingRules.ts new file mode 100644 index 000000000000..3ed793d8a64a --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/dataMaskingRules.ts @@ -0,0 +1,175 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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/dataMaskingRulesMappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClientContext } from "../synapseManagementClientContext"; + +/** Class representing a DataMaskingRules. */ +export class DataMaskingRules { + private readonly client: SynapseManagementClientContext; + + /** + * Create a DataMaskingRules. + * @param {SynapseManagementClientContext} client Reference to the service client. + */ + constructor(client: SynapseManagementClientContext) { + this.client = client; + } + + /** + * Creates or updates a Sql pool data masking rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param sqlPoolName SQL pool name + * @param dataMaskingRuleName The name of the data masking rule. + * @param parameters The required parameters for creating or updating a data masking rule. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, dataMaskingRuleName: string, parameters: Models.DataMaskingRule, 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 sqlPoolName SQL pool name + * @param dataMaskingRuleName The name of the data masking rule. + * @param parameters The required parameters for creating or updating a data masking rule. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, dataMaskingRuleName: string, parameters: Models.DataMaskingRule, 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 sqlPoolName SQL pool name + * @param dataMaskingRuleName The name of the data masking rule. + * @param parameters The required parameters for creating or updating a data masking rule. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, dataMaskingRuleName: string, parameters: Models.DataMaskingRule, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, dataMaskingRuleName: string, parameters: Models.DataMaskingRule, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + sqlPoolName, + dataMaskingRuleName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of Sql pool data masking rules. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param sqlPoolName SQL pool name + * @param [options] The optional parameters + * @returns Promise + */ + listBySqlPool(resourceGroupName: string, workspaceName: string, sqlPoolName: 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 sqlPoolName SQL pool name + * @param callback The callback + */ + listBySqlPool(resourceGroupName: string, workspaceName: string, sqlPoolName: 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 sqlPoolName SQL pool name + * @param options The optional parameters + * @param callback The callback + */ + listBySqlPool(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySqlPool(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + sqlPoolName, + options + }, + listBySqlPoolOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules/{dataMaskingRuleName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName, + Parameters.dataMaskingPolicyName, + Parameters.dataMaskingRuleName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DataMaskingRule, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DataMaskingRule + }, + 201: { + bodyMapper: Mappers.DataMaskingRule + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySqlPoolOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName, + Parameters.dataMaskingPolicyName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataMaskingRuleListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/extendedSqlPoolBlobAuditingPolicies.ts b/sdk/synapse/arm-synapse/src/operations/extendedSqlPoolBlobAuditingPolicies.ts new file mode 100644 index 000000000000..cbfcf569d904 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/extendedSqlPoolBlobAuditingPolicies.ts @@ -0,0 +1,281 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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/extendedSqlPoolBlobAuditingPoliciesMappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClientContext } from "../synapseManagementClientContext"; + +/** Class representing a ExtendedSqlPoolBlobAuditingPolicies. */ +export class ExtendedSqlPoolBlobAuditingPolicies { + private readonly client: SynapseManagementClientContext; + + /** + * Create a ExtendedSqlPoolBlobAuditingPolicies. + * @param {SynapseManagementClientContext} client Reference to the service client. + */ + constructor(client: SynapseManagementClientContext) { + this.client = client; + } + + /** + * Gets an extended Sql pool's blob auditing policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param sqlPoolName SQL pool name + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: 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 sqlPoolName SQL pool name + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: 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 sqlPoolName SQL pool name + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + sqlPoolName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates an extended Sql pool's blob auditing policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param sqlPoolName SQL pool name + * @param parameters The extended Sql pool blob auditing policy. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.ExtendedSqlPoolBlobAuditingPolicy, 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 sqlPoolName SQL pool name + * @param parameters The extended Sql pool blob auditing policy. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.ExtendedSqlPoolBlobAuditingPolicy, 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 sqlPoolName SQL pool name + * @param parameters The extended Sql pool blob auditing policy. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.ExtendedSqlPoolBlobAuditingPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.ExtendedSqlPoolBlobAuditingPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + sqlPoolName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Lists extended auditing settings of a Sql pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param sqlPoolName SQL pool name + * @param [options] The optional parameters + * @returns Promise + */ + listBySqlPool(resourceGroupName: string, workspaceName: string, sqlPoolName: 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 sqlPoolName SQL pool name + * @param callback The callback + */ + listBySqlPool(resourceGroupName: string, workspaceName: string, sqlPoolName: 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 sqlPoolName SQL pool name + * @param options The optional parameters + * @param callback The callback + */ + listBySqlPool(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySqlPool(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + sqlPoolName, + options + }, + listBySqlPoolOperationSpec, + callback) as Promise; + } + + /** + * Lists extended auditing settings of a Sql pool. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySqlPoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySqlPoolNext(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 + */ + listBySqlPoolNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySqlPoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySqlPoolNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings/{blobAuditingPolicyName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName, + Parameters.blobAuditingPolicyName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ExtendedSqlPoolBlobAuditingPolicy + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings/{blobAuditingPolicyName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName, + Parameters.blobAuditingPolicyName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ExtendedSqlPoolBlobAuditingPolicy, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ExtendedSqlPoolBlobAuditingPolicy + }, + 201: { + bodyMapper: Mappers.ExtendedSqlPoolBlobAuditingPolicy + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySqlPoolOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ExtendedSqlPoolBlobAuditingPolicyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySqlPoolNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ExtendedSqlPoolBlobAuditingPolicyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/index.ts b/sdk/synapse/arm-synapse/src/operations/index.ts index 7261342670cb..24dd315d05d4 100644 --- a/sdk/synapse/arm-synapse/src/operations/index.ts +++ b/sdk/synapse/arm-synapse/src/operations/index.ts @@ -31,6 +31,10 @@ export * from "./sqlPoolVulnerabilityAssessments"; export * from "./sqlPoolVulnerabilityAssessmentScans"; export * from "./sqlPoolSecurityAlertPolicies"; export * from "./sqlPoolVulnerabilityAssessmentRuleBaselines"; +export * from "./extendedSqlPoolBlobAuditingPolicies"; +export * from "./dataMaskingPolicies"; +export * from "./dataMaskingRules"; +export * from "./sqlPoolColumns"; export * from "./workspaces"; export * from "./workspaceAadAdmins"; export * from "./workspaceManagedIdentitySqlControlSettings"; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolBlobAuditingPolicies.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolBlobAuditingPolicies.ts index 49fb26a87eb5..ed52162c179b 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolBlobAuditingPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolBlobAuditingPolicies.ts @@ -103,6 +103,70 @@ export class SqlPoolBlobAuditingPolicies { createOrUpdateOperationSpec, callback) as Promise; } + + /** + * Lists auditing settings of a Sql pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param sqlPoolName SQL pool name + * @param [options] The optional parameters + * @returns Promise + */ + listBySqlPool(resourceGroupName: string, workspaceName: string, sqlPoolName: 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 sqlPoolName SQL pool name + * @param callback The callback + */ + listBySqlPool(resourceGroupName: string, workspaceName: string, sqlPoolName: 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 sqlPoolName SQL pool name + * @param options The optional parameters + * @param callback The callback + */ + listBySqlPool(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySqlPool(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + sqlPoolName, + options + }, + listBySqlPoolOperationSpec, + callback) as Promise; + } + + /** + * Lists auditing settings of a Sql pool. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySqlPoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySqlPoolNext(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 + */ + listBySqlPoolNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySqlPoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySqlPoolNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -170,3 +234,50 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listBySqlPoolOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SqlPoolBlobAuditingPolicyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySqlPoolNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SqlPoolBlobAuditingPolicyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolColumns.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolColumns.ts new file mode 100644 index 000000000000..e46304200c66 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolColumns.ts @@ -0,0 +1,107 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * 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/sqlPoolColumnsMappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClientContext } from "../synapseManagementClientContext"; + +/** Class representing a SqlPoolColumns. */ +export class SqlPoolColumns { + private readonly client: SynapseManagementClientContext; + + /** + * Create a SqlPoolColumns. + * @param {SynapseManagementClientContext} client Reference to the service client. + */ + constructor(client: SynapseManagementClientContext) { + this.client = client; + } + + /** + * Get Sql pool column + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param sqlPoolName SQL pool name + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: 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 sqlPoolName SQL pool name + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: 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 sqlPoolName SQL pool name + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + sqlPoolName, + schemaName, + tableName, + columnName, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName, + Parameters.schemaName, + Parameters.tableName, + Parameters.columnName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SqlPoolColumn + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolSchemas.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolSchemas.ts index 37daf5aa4bd4..b9972038dfed 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolSchemas.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolSchemas.ts @@ -63,6 +63,46 @@ export class SqlPoolSchemas { callback) as Promise; } + /** + * Get Sql Pool schema + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param sqlPoolName SQL pool name + * @param schemaName The name of the schema. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: 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 sqlPoolName SQL pool name + * @param schemaName The name of the schema. + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: 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 sqlPoolName SQL pool name + * @param schemaName The name of the schema. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + sqlPoolName, + schemaName, + options + }, + getOperationSpec, + callback) as Promise; + } + /** * Gets schemas of a given SQL pool. * @summary Gets schemas of a given SQL pool @@ -122,6 +162,33 @@ const listOperationSpec: msRest.OperationSpec = { serializer }; +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName, + Parameters.schemaName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SqlPoolSchema + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolSensitivityLabels.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolSensitivityLabels.ts index a3079e626726..212462dc8faf 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolSensitivityLabels.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolSensitivityLabels.ts @@ -200,6 +200,61 @@ export class SqlPoolSensitivityLabels { callback); } + /** + * Gets the sensitivity label of a given column + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param sqlPoolName SQL pool name + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param sensitivityLabelSource The source of the sensitivity label. Possible values include: + * 'current', 'recommended' + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: Models.SensitivityLabelSource, 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 sqlPoolName SQL pool name + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param sensitivityLabelSource The source of the sensitivity label. Possible values include: + * 'current', 'recommended' + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: Models.SensitivityLabelSource, 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 sqlPoolName SQL pool name + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param sensitivityLabelSource The source of the sensitivity label. Possible values include: + * 'current', 'recommended' + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: Models.SensitivityLabelSource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: Models.SensitivityLabelSource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + sqlPoolName, + schemaName, + tableName, + columnName, + sensitivityLabelSource, + options + }, + getOperationSpec, + callback) as Promise; + } + /** * Enables sensitivity recommendations on a given column (recommendations are enabled by default on * all columns) @@ -482,6 +537,36 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { serializer }; +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName, + Parameters.schemaName, + Parameters.tableName, + Parameters.columnName, + Parameters.sensitivityLabelSource1 + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SensitivityLabel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const enableRecommendationOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/enable", @@ -493,7 +578,7 @@ const enableRecommendationOperationSpec: msRest.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource1 + Parameters.sensitivityLabelSource2 ], queryParameters: [ Parameters.apiVersion @@ -521,7 +606,7 @@ const disableRecommendationOperationSpec: msRest.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource1 + Parameters.sensitivityLabelSource2 ], queryParameters: [ Parameters.apiVersion diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolTables.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolTables.ts index 01b746e50308..3cd7e2dbd968 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolTables.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolTables.ts @@ -67,6 +67,50 @@ export class SqlPoolTables { callback) as Promise; } + /** + * Get Sql pool table + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param sqlPoolName SQL pool name + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: 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 sqlPoolName SQL pool name + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: 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 sqlPoolName SQL pool name + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + sqlPoolName, + schemaName, + tableName, + options + }, + getOperationSpec, + callback) as Promise; + } + /** * Gets tables of a given schema in a SQL pool. * @summary Gets tables of a given schema in a SQL pool @@ -127,6 +171,34 @@ const listBySchemaOperationSpec: msRest.OperationSpec = { serializer }; +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName, + Parameters.schemaName, + Parameters.tableName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SqlPoolTable + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listBySchemaNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentRuleBaselines.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentRuleBaselines.ts index ef22e4fd0e5f..7a4a6622b8e7 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentRuleBaselines.ts @@ -129,6 +129,56 @@ export class SqlPoolVulnerabilityAssessmentRuleBaselines { deleteMethodOperationSpec, callback); } + + /** + * Gets a SqlPool's vulnerability assessment rule baseline. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param sqlPoolName SQL pool name + * @param ruleId The vulnerability assessment rule ID. + * @param baselineName The name of the vulnerability assessment rule baseline (default implies a + * baseline on a Sql pool level rule and master for server level rule). Possible values include: + * 'master', 'default' + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, 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 sqlPoolName SQL pool name + * @param ruleId The vulnerability assessment rule ID. + * @param baselineName The name of the vulnerability assessment rule baseline (default implies a + * baseline on a Sql pool level rule and master for server level rule). Possible values include: + * 'master', 'default' + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, 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 sqlPoolName SQL pool name + * @param ruleId The vulnerability assessment rule ID. + * @param baselineName The name of the vulnerability assessment rule baseline (default implies a + * baseline on a Sql pool level rule and master for server level rule). Possible values include: + * 'master', 'default' + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + sqlPoolName, + ruleId, + baselineName, + options + }, + getOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -195,3 +245,32 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { }, serializer }; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName, + Parameters.vulnerabilityAssessmentName, + Parameters.ruleId, + Parameters.baselineName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SqlPoolVulnerabilityAssessmentRuleBaseline + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentScans.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentScans.ts index 82ce9e9af3e9..a59a05d30f53 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentScans.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentScans.ts @@ -118,6 +118,46 @@ export class SqlPoolVulnerabilityAssessmentScans { callback) as Promise; } + /** + * Gets a vulnerability assessment scan record of a Sql pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace + * @param sqlPoolName SQL pool name + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, scanId: 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 sqlPoolName SQL pool name + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, scanId: 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 sqlPoolName SQL pool name + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, scanId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, scanId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + sqlPoolName, + scanId, + options + }, + getOperationSpec, + callback) as Promise; + } + /** * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -230,6 +270,34 @@ const exportMethodOperationSpec: msRest.OperationSpec = { serializer }; +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName, + Parameters.vulnerabilityAssessmentName, + Parameters.scanId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.VulnerabilityAssessmentScanRecord + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginInitiateScanOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan", diff --git a/sdk/synapse/arm-synapse/src/synapseManagementClient.ts b/sdk/synapse/arm-synapse/src/synapseManagementClient.ts index c30de81d36df..1afac988f7de 100644 --- a/sdk/synapse/arm-synapse/src/synapseManagementClient.ts +++ b/sdk/synapse/arm-synapse/src/synapseManagementClient.ts @@ -40,6 +40,10 @@ class SynapseManagementClient extends SynapseManagementClientContext { sqlPoolVulnerabilityAssessmentScans: operations.SqlPoolVulnerabilityAssessmentScans; sqlPoolSecurityAlertPolicies: operations.SqlPoolSecurityAlertPolicies; sqlPoolVulnerabilityAssessmentRuleBaselines: operations.SqlPoolVulnerabilityAssessmentRuleBaselines; + extendedSqlPoolBlobAuditingPolicies: operations.ExtendedSqlPoolBlobAuditingPolicies; + dataMaskingPolicies: operations.DataMaskingPolicies; + dataMaskingRules: operations.DataMaskingRules; + sqlPoolColumns: operations.SqlPoolColumns; workspaces: operations.Workspaces; workspaceAadAdmins: operations.WorkspaceAadAdmins; workspaceManagedIdentitySqlControlSettings: operations.WorkspaceManagedIdentitySqlControlSettings; @@ -87,6 +91,10 @@ class SynapseManagementClient extends SynapseManagementClientContext { this.sqlPoolVulnerabilityAssessmentScans = new operations.SqlPoolVulnerabilityAssessmentScans(this); this.sqlPoolSecurityAlertPolicies = new operations.SqlPoolSecurityAlertPolicies(this); this.sqlPoolVulnerabilityAssessmentRuleBaselines = new operations.SqlPoolVulnerabilityAssessmentRuleBaselines(this); + this.extendedSqlPoolBlobAuditingPolicies = new operations.ExtendedSqlPoolBlobAuditingPolicies(this); + this.dataMaskingPolicies = new operations.DataMaskingPolicies(this); + this.dataMaskingRules = new operations.DataMaskingRules(this); + this.sqlPoolColumns = new operations.SqlPoolColumns(this); this.workspaces = new operations.Workspaces(this); this.workspaceAadAdmins = new operations.WorkspaceAadAdmins(this); this.workspaceManagedIdentitySqlControlSettings = new operations.WorkspaceManagedIdentitySqlControlSettings(this);