From 3ed4ea340f735f26823e736078d13acb404f1ab2 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 6 Jan 2022 05:33:58 +0000 Subject: [PATCH] CodeGen from PR 17194 in Azure/azure-rest-api-specs Merge 892f21d7ef64f1168482967215406d564a331cf9 into 2b0d06424d8f6d267778bb3576ad171413ee1ad8 --- common/config/rush/pnpm-lock.yaml | 27 +- rush.json | 5 + sdk/synapse/arm-synapse/CHANGELOG.md | 11 + .../arm-synapse/{LICENSE.txt => LICENSE} | 4 +- sdk/synapse/arm-synapse/README.md | 144 +- sdk/synapse/arm-synapse/_meta.json | 7 + sdk/synapse/arm-synapse/api-extractor.json | 18 + sdk/synapse/arm-synapse/package.json | 94 +- .../arm-synapse/review/arm-synapse.api.md | 5620 ++++++ sdk/synapse/arm-synapse/rollup.config.js | 211 +- ...oolOperationResultsMappers.ts => index.ts} | 10 +- sdk/synapse/arm-synapse/src/lroImpl.ts | 34 + .../src/models/bigDataPoolsMappers.ts | 113 - .../src/models/dataMaskingPoliciesMappers.ts | 111 - .../src/models/dataMaskingRulesMappers.ts | 112 - ...endedSqlPoolBlobAuditingPoliciesMappers.ts | 110 - sdk/synapse/arm-synapse/src/models/index.ts | 14587 +++++++--------- ...grationRuntimeAuthKeysOperationsMappers.ts | 16 - ...ntegrationRuntimeConnectionInfosMappers.ts | 15 - .../integrationRuntimeCredentialsMappers.ts | 14 - ...nRuntimeMonitoringDataOperationsMappers.ts | 16 - ...onRuntimeNodeIpAddressOperationsMappers.ts | 15 - .../models/integrationRuntimeNodesMappers.ts | 16 - ...integrationRuntimeObjectMetadataMappers.ts | 25 - ...tegrationRuntimeStatusOperationsMappers.ts | 23 - .../src/models/integrationRuntimesMappers.ts | 122 - .../src/models/ipFirewallRulesMappers.ts | 115 - .../arm-synapse/src/models/keysMappers.ts | 112 - .../src/models/librariesMappers.ts | 112 - .../arm-synapse/src/models/libraryMappers.ts | 111 - sdk/synapse/arm-synapse/src/models/mappers.ts | 10213 ++++++----- .../src/models/operationsMappers.ts | 23 - .../arm-synapse/src/models/parameters.ts | 939 +- .../privateEndpointConnectionsMappers.ts | 113 - ...ndpointConnectionsPrivateLinkHubMappers.ts | 112 - ...ivateLinkHubPrivateLinkResourcesMappers.ts | 112 - .../src/models/privateLinkHubsMappers.ts | 113 - .../src/models/privateLinkResourcesMappers.ts | 112 - .../restorableDroppedSqlPoolsMappers.ts | 112 - .../sqlPoolBlobAuditingPoliciesMappers.ts | 110 - .../src/models/sqlPoolColumnsMappers.ts | 109 - .../sqlPoolConnectionPoliciesMappers.ts | 111 - ...lPoolDataWarehouseUserActivitiesMappers.ts | 109 - .../models/sqlPoolGeoBackupPoliciesMappers.ts | 112 - .../sqlPoolMaintenanceWindowOptionsMappers.ts | 109 - .../sqlPoolMaintenanceWindowsMappers.ts | 112 - .../sqlPoolMetadataSyncConfigsMappers.ts | 111 - .../src/models/sqlPoolOperationsMappers.ts | 110 - ...PoolRecommendedSensitivityLabelsMappers.ts | 110 - .../models/sqlPoolReplicationLinksMappers.ts | 112 - .../src/models/sqlPoolRestorePointsMappers.ts | 114 - .../src/models/sqlPoolSchemasMappers.ts | 110 - .../sqlPoolSecurityAlertPoliciesMappers.ts | 110 - .../models/sqlPoolSensitivityLabelsMappers.ts | 114 - .../src/models/sqlPoolTableColumnsMappers.ts | 110 - .../src/models/sqlPoolTablesMappers.ts | 110 - ...qlPoolTransparentDataEncryptionsMappers.ts | 113 - .../src/models/sqlPoolUsagesMappers.ts | 16 - ...erabilityAssessmentRuleBaselinesMappers.ts | 109 - ...PoolVulnerabilityAssessmentScansMappers.ts | 110 - .../sqlPoolVulnerabilityAssessmentsMappers.ts | 110 - .../sqlPoolWorkloadClassifierMappers.ts | 110 - .../src/models/sqlPoolWorkloadGroupMappers.ts | 110 - .../arm-synapse/src/models/sqlPoolsMappers.ts | 115 - .../src/models/workspaceAadAdminsMappers.ts | 111 - ...anagedIdentitySqlControlSettingsMappers.ts | 111 - ...gedSqlServerBlobAuditingPoliciesMappers.ts | 110 - ...agedSqlServerEncryptionProtectorMappers.ts | 113 - ...rverExtendedBlobAuditingPoliciesMappers.ts | 110 - ...agedSqlServerRecoverableSqlPoolsMappers.ts | 110 - ...agedSqlServerSecurityAlertPolicyMappers.ts | 110 - .../workspaceManagedSqlServerUsagesMappers.ts | 14 - ...qlServerVulnerabilityAssessmentsMappers.ts | 110 - .../models/workspaceSqlAadAdminsMappers.ts | 111 - .../src/models/workspacesMappers.ts | 113 - .../operations/azureADOnlyAuthentications.ts | 368 + .../src/operations/bigDataPools.ts | 677 +- .../src/operations/dataMaskingPolicies.ts | 174 +- .../src/operations/dataMaskingRules.ts | 295 +- .../extendedSqlPoolBlobAuditingPolicies.ts | 393 +- .../arm-synapse/src/operations/index.ts | 38 +- .../integrationRuntimeAuthKeysOperations.ts | 169 +- .../integrationRuntimeConnectionInfos.ts | 96 +- .../integrationRuntimeCredentials.ts | 100 +- ...egrationRuntimeMonitoringDataOperations.ts | 96 +- ...tegrationRuntimeNodeIpAddressOperations.ts | 94 +- .../src/operations/integrationRuntimeNodes.ts | 224 +- .../integrationRuntimeObjectMetadata.ts | 234 +- .../integrationRuntimeStatusOperations.ts | 96 +- .../src/operations/integrationRuntimes.ts | 1189 +- .../src/operations/ipFirewallRules.ts | 732 +- .../arm-synapse/src/operations/keys.ts | 422 +- .../src/operations/kustoOperations.ts | 137 + ...kustoPoolAttachedDatabaseConfigurations.ts | 470 + .../src/operations/kustoPoolChildResource.ts | 86 + .../operations/kustoPoolDataConnections.ts | 860 + .../kustoPoolDatabasePrincipalAssignments.ts | 566 + .../src/operations/kustoPoolDatabases.ts | 611 + .../kustoPoolPrincipalAssignments.ts | 523 + .../arm-synapse/src/operations/kustoPools.ts | 1542 ++ .../arm-synapse/src/operations/libraries.ts | 219 +- .../arm-synapse/src/operations/library.ts | 94 +- .../arm-synapse/src/operations/operations.ts | 262 +- .../operations/privateEndpointConnections.ts | 546 +- ...rivateEndpointConnectionsPrivateLinkHub.ts | 245 +- .../privateLinkHubPrivateLinkResources.ts | 276 +- .../src/operations/privateLinkHubs.ts | 651 +- .../src/operations/privateLinkResources.ts | 276 +- .../operations/restorableDroppedSqlPools.ts | 220 +- .../src/operations/sparkConfiguration.ts | 75 + .../src/operations/sparkConfigurations.ts | 189 + .../operations/sqlPoolBlobAuditingPolicies.ts | 395 +- .../src/operations/sqlPoolColumns.ts | 100 +- .../operations/sqlPoolConnectionPolicies.ts | 100 +- .../sqlPoolDataWarehouseUserActivities.ts | 97 +- .../operations/sqlPoolGeoBackupPolicies.ts | 294 +- .../sqlPoolMaintenanceWindowOptions.ts | 100 +- .../operations/sqlPoolMaintenanceWindows.ts | 168 +- .../operations/sqlPoolMetadataSyncConfigs.ts | 167 +- .../src/operations/sqlPoolOperationResults.ts | 113 +- .../src/operations/sqlPoolOperations.ts | 241 +- .../sqlPoolRecommendedSensitivityLabels.ts | 107 +- .../src/operations/sqlPoolReplicationLinks.ts | 306 +- .../src/operations/sqlPoolRestorePoints.ts | 530 +- .../src/operations/sqlPoolSchemas.ts | 315 +- .../sqlPoolSecurityAlertPolicies.ts | 389 +- .../operations/sqlPoolSensitivityLabels.ts | 906 +- .../src/operations/sqlPoolTableColumns.ts | 268 +- .../src/operations/sqlPoolTables.ts | 323 +- .../sqlPoolTransparentDataEncryptions.ts | 385 +- .../src/operations/sqlPoolUsages.ts | 235 +- ...oolVulnerabilityAssessmentRuleBaselines.ts | 275 +- .../sqlPoolVulnerabilityAssessmentScans.ts | 514 +- .../sqlPoolVulnerabilityAssessments.ts | 446 +- .../operations/sqlPoolWorkloadClassifier.ts | 631 +- .../src/operations/sqlPoolWorkloadGroup.ts | 606 +- .../arm-synapse/src/operations/sqlPools.ts | 1061 +- .../src/operations/workspaceAadAdmins.ts | 344 +- ...kspaceManagedIdentitySqlControlSettings.ts | 244 +- ...aceManagedSqlServerBlobAuditingPolicies.ts | 468 +- ...paceManagedSqlServerEncryptionProtector.ts | 565 +- ...edSqlServerExtendedBlobAuditingPolicies.ts | 470 +- ...paceManagedSqlServerRecoverableSqlPools.ts | 287 +- ...paceManagedSqlServerSecurityAlertPolicy.ts | 449 +- .../workspaceManagedSqlServerUsages.ts | 216 +- ...anagedSqlServerVulnerabilityAssessments.ts | 421 +- .../src/operations/workspaceSqlAadAdmins.ts | 344 +- .../arm-synapse/src/operations/workspaces.ts | 833 +- .../azureADOnlyAuthentications.ts | 83 + .../src/operationsInterfaces/bigDataPools.ts | 133 + .../dataMaskingPolicies.ts | 47 + .../operationsInterfaces/dataMaskingRules.ts | 67 + .../extendedSqlPoolBlobAuditingPolicies.ts | 63 + .../src/operationsInterfaces/index.ts | 80 + .../integrationRuntimeAuthKeysOperations.ts | 48 + .../integrationRuntimeConnectionInfos.ts | 29 + .../integrationRuntimeCredentials.ts | 29 + ...egrationRuntimeMonitoringDataOperations.ts | 29 + ...tegrationRuntimeNodeIpAddressOperations.ts | 31 + .../integrationRuntimeNodes.ts | 67 + .../integrationRuntimeObjectMetadata.ts | 63 + .../integrationRuntimeStatusOperations.ts | 29 + .../integrationRuntimes.ts | 272 + .../operationsInterfaces/ipFirewallRules.ts | 149 + .../src/operationsInterfaces/keys.ts | 76 + .../operationsInterfaces/kustoOperations.ts | 22 + ...kustoPoolAttachedDatabaseConfigurations.ts | 123 + .../kustoPoolChildResource.ts | 32 + .../kustoPoolDataConnections.ts | 242 + .../kustoPoolDatabasePrincipalAssignments.ts | 157 + .../kustoPoolDatabases.ts | 162 + .../kustoPoolPrincipalAssignments.ts | 139 + .../src/operationsInterfaces/kustoPools.ts | 365 + .../src/operationsInterfaces/libraries.ts | 29 + .../src/operationsInterfaces/library.ts | 26 + .../src/operationsInterfaces/operations.ts | 62 + .../privateEndpointConnections.ts | 109 + ...rivateEndpointConnectionsPrivateLinkHub.ts | 44 + .../privateLinkHubPrivateLinkResources.ts | 44 + .../operationsInterfaces/privateLinkHubs.ts | 103 + .../privateLinkResources.ts | 44 + .../restorableDroppedSqlPools.ts | 45 + .../sparkConfiguration.ts | 29 + .../sparkConfigurations.ts | 29 + .../sqlPoolBlobAuditingPolicies.ts | 63 + .../operationsInterfaces/sqlPoolColumns.ts | 35 + .../sqlPoolConnectionPolicies.ts | 32 + .../sqlPoolDataWarehouseUserActivities.ts | 32 + .../sqlPoolGeoBackupPolicies.ts | 68 + .../sqlPoolMaintenanceWindowOptions.ts | 31 + .../sqlPoolMaintenanceWindows.ts | 50 + .../sqlPoolMetadataSyncConfigs.ts | 47 + .../sqlPoolOperationResults.ts | 31 + .../operationsInterfaces/sqlPoolOperations.ts | 31 + .../sqlPoolRecommendedSensitivityLabels.ts | 31 + .../sqlPoolReplicationLinks.ts | 48 + .../sqlPoolRestorePoints.ts | 103 + .../operationsInterfaces/sqlPoolSchemas.ts | 48 + .../sqlPoolSecurityAlertPolicies.ts | 68 + .../sqlPoolSensitivityLabels.ts | 170 + .../sqlPoolTableColumns.ts | 35 + .../src/operationsInterfaces/sqlPoolTables.ts | 52 + .../sqlPoolTransparentDataEncryptions.ts | 68 + .../src/operationsInterfaces/sqlPoolUsages.ts | 28 + ...oolVulnerabilityAssessmentRuleBaselines.ts | 84 + .../sqlPoolVulnerabilityAssessmentScans.ts | 108 + .../sqlPoolVulnerabilityAssessments.ts | 84 + .../sqlPoolWorkloadClassifier.ts | 133 + .../sqlPoolWorkloadGroup.ts | 121 + .../src/operationsInterfaces/sqlPools.ts | 213 + .../workspaceAadAdmins.ts | 85 + ...kspaceManagedIdentitySqlControlSettings.ts | 64 + ...aceManagedSqlServerBlobAuditingPolicies.ts | 87 + ...paceManagedSqlServerEncryptionProtector.ts | 114 + ...edSqlServerExtendedBlobAuditingPolicies.ts | 87 + ...paceManagedSqlServerRecoverableSqlPools.ts | 44 + ...paceManagedSqlServerSecurityAlertPolicy.ts | 87 + .../workspaceManagedSqlServerUsages.ts | 29 + ...anagedSqlServerVulnerabilityAssessments.ts | 78 + .../workspaceSqlAadAdmins.ts | 85 + .../src/operationsInterfaces/workspaces.ts | 145 + .../src/synapseManagementClient.ts | 552 +- .../src/synapseManagementClientContext.ts | 61 - sdk/synapse/arm-synapse/test/sampleTest.ts | 48 + sdk/synapse/arm-synapse/tsconfig.json | 6 +- sdk/synapse/ci.yml | 8 +- 226 files changed, 42873 insertions(+), 28158 deletions(-) create mode 100644 sdk/synapse/arm-synapse/CHANGELOG.md rename sdk/synapse/arm-synapse/{LICENSE.txt => LICENSE} (96%) create mode 100644 sdk/synapse/arm-synapse/_meta.json create mode 100644 sdk/synapse/arm-synapse/api-extractor.json create mode 100644 sdk/synapse/arm-synapse/review/arm-synapse.api.md rename sdk/synapse/arm-synapse/src/{models/sqlPoolOperationResultsMappers.ts => index.ts} (56%) create mode 100644 sdk/synapse/arm-synapse/src/lroImpl.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/bigDataPoolsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/dataMaskingPoliciesMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/dataMaskingRulesMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/extendedSqlPoolBlobAuditingPoliciesMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/integrationRuntimeAuthKeysOperationsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/integrationRuntimeConnectionInfosMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/integrationRuntimeCredentialsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/integrationRuntimeMonitoringDataOperationsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/integrationRuntimeNodeIpAddressOperationsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/integrationRuntimeNodesMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/integrationRuntimeObjectMetadataMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/integrationRuntimeStatusOperationsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/integrationRuntimesMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/ipFirewallRulesMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/keysMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/librariesMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/libraryMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/operationsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/privateEndpointConnectionsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/privateEndpointConnectionsPrivateLinkHubMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/privateLinkHubPrivateLinkResourcesMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/privateLinkHubsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/privateLinkResourcesMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/restorableDroppedSqlPoolsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolBlobAuditingPoliciesMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolColumnsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolConnectionPoliciesMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolDataWarehouseUserActivitiesMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolGeoBackupPoliciesMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolMaintenanceWindowOptionsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolMaintenanceWindowsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolMetadataSyncConfigsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolOperationsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolRecommendedSensitivityLabelsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolReplicationLinksMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolRestorePointsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolSchemasMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolSecurityAlertPoliciesMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolSensitivityLabelsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolTableColumnsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolTablesMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolTransparentDataEncryptionsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolUsagesMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentRuleBaselinesMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentScansMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolWorkloadClassifierMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolWorkloadGroupMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/sqlPoolsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/workspaceAadAdminsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/workspaceManagedIdentitySqlControlSettingsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerBlobAuditingPoliciesMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerEncryptionProtectorMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerExtendedBlobAuditingPoliciesMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerRecoverableSqlPoolsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerSecurityAlertPolicyMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerUsagesMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerVulnerabilityAssessmentsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/workspaceSqlAadAdminsMappers.ts delete mode 100644 sdk/synapse/arm-synapse/src/models/workspacesMappers.ts create mode 100644 sdk/synapse/arm-synapse/src/operations/azureADOnlyAuthentications.ts create mode 100644 sdk/synapse/arm-synapse/src/operations/kustoOperations.ts create mode 100644 sdk/synapse/arm-synapse/src/operations/kustoPoolAttachedDatabaseConfigurations.ts create mode 100644 sdk/synapse/arm-synapse/src/operations/kustoPoolChildResource.ts create mode 100644 sdk/synapse/arm-synapse/src/operations/kustoPoolDataConnections.ts create mode 100644 sdk/synapse/arm-synapse/src/operations/kustoPoolDatabasePrincipalAssignments.ts create mode 100644 sdk/synapse/arm-synapse/src/operations/kustoPoolDatabases.ts create mode 100644 sdk/synapse/arm-synapse/src/operations/kustoPoolPrincipalAssignments.ts create mode 100644 sdk/synapse/arm-synapse/src/operations/kustoPools.ts create mode 100644 sdk/synapse/arm-synapse/src/operations/sparkConfiguration.ts create mode 100644 sdk/synapse/arm-synapse/src/operations/sparkConfigurations.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/azureADOnlyAuthentications.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/bigDataPools.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/dataMaskingPolicies.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/dataMaskingRules.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/extendedSqlPoolBlobAuditingPolicies.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/index.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeAuthKeysOperations.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeConnectionInfos.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeCredentials.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeMonitoringDataOperations.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeNodeIpAddressOperations.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeNodes.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeObjectMetadata.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeStatusOperations.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimes.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/ipFirewallRules.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/keys.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/kustoOperations.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolAttachedDatabaseConfigurations.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolChildResource.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDataConnections.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDatabasePrincipalAssignments.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDatabases.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolPrincipalAssignments.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPools.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/libraries.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/library.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/operations.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/privateEndpointConnections.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/privateEndpointConnectionsPrivateLinkHub.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkHubPrivateLinkResources.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkHubs.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkResources.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/restorableDroppedSqlPools.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sparkConfiguration.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sparkConfigurations.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolBlobAuditingPolicies.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolColumns.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolConnectionPolicies.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolDataWarehouseUserActivities.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolGeoBackupPolicies.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMaintenanceWindowOptions.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMaintenanceWindows.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMetadataSyncConfigs.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolOperationResults.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolOperations.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolRecommendedSensitivityLabels.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolReplicationLinks.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolRestorePoints.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSchemas.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSecurityAlertPolicies.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSensitivityLabels.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTableColumns.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTables.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTransparentDataEncryptions.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolUsages.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessmentRuleBaselines.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessmentScans.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessments.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolWorkloadClassifier.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolWorkloadGroup.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPools.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceAadAdmins.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedIdentitySqlControlSettings.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerBlobAuditingPolicies.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerEncryptionProtector.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerExtendedBlobAuditingPolicies.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerRecoverableSqlPools.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerSecurityAlertPolicy.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerUsages.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerVulnerabilityAssessments.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceSqlAadAdmins.ts create mode 100644 sdk/synapse/arm-synapse/src/operationsInterfaces/workspaces.ts delete mode 100644 sdk/synapse/arm-synapse/src/synapseManagementClientContext.ts create mode 100644 sdk/synapse/arm-synapse/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index ffaec559068f..54636a14f381 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -76,6 +76,7 @@ specifiers: '@rush-temp/arm-storage': file:./projects/arm-storage.tgz '@rush-temp/arm-streamanalytics': file:./projects/arm-streamanalytics.tgz '@rush-temp/arm-subscriptions': file:./projects/arm-subscriptions.tgz + '@rush-temp/arm-synapse': file:./projects/arm-synapse.tgz '@rush-temp/arm-templatespecs': file:./projects/arm-templatespecs.tgz '@rush-temp/arm-videoanalyzer': file:./projects/arm-videoanalyzer.tgz '@rush-temp/arm-webpubsub': file:./projects/arm-webpubsub.tgz @@ -257,6 +258,7 @@ dependencies: '@rush-temp/arm-storage': file:projects/arm-storage.tgz '@rush-temp/arm-streamanalytics': file:projects/arm-streamanalytics.tgz '@rush-temp/arm-subscriptions': file:projects/arm-subscriptions.tgz + '@rush-temp/arm-synapse': file:projects/arm-synapse.tgz '@rush-temp/arm-templatespecs': file:projects/arm-templatespecs.tgz '@rush-temp/arm-videoanalyzer': file:projects/arm-videoanalyzer.tgz '@rush-temp/arm-webpubsub': file:projects/arm-webpubsub.tgz @@ -7821,7 +7823,7 @@ packages: dev: false file:projects/ai-metrics-advisor.tgz: - resolution: {integrity: sha512-s+dMun5WpGbbWhDl0LQ+IrlxsmxCrjL4bPHQ12W24hW1A/QjfX1BcCeEwursFC/LMPUt+vLYQhrmLT33O1o3xw==, tarball: file:projects/ai-metrics-advisor.tgz} + resolution: {integrity: sha512-U0OBdhA2UsNoYOBkp/0tnP6b3pblzKhmggJFKaC2pUrpKftVfWGTCh3c1B4pzpfA7YG4tjrp2B3A7EbuWpU83A==, tarball: file:projects/ai-metrics-advisor.tgz} name: '@rush-temp/ai-metrics-advisor' version: 0.0.0 dependencies: @@ -9381,6 +9383,27 @@ packages: uglify-js: 3.14.5 dev: false + file:projects/arm-synapse.tgz: + resolution: {integrity: sha512-k5LYmIg1eWN/BaoTjMTS9oNqNXJZ0jY5pFLxhD85g6HUkz81Ay1FOXp0RR6Om6Wflhxk/rHJoEaKUCR+KeTV0g==, tarball: file:projects/arm-synapse.tgz} + name: '@rush-temp/arm-synapse' + version: 0.0.0 + dependencies: + '@microsoft/api-extractor': 7.19.2 + '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 + '@rollup/plugin-json': 4.1.0_rollup@1.32.1 + '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1 + '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1 + cross-env: 7.0.3 + mkdirp: 1.0.4 + mocha: 7.2.0 + rimraf: 3.0.2 + rollup: 1.32.1 + rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 + tslib: 2.3.1 + typescript: 4.2.4 + uglify-js: 3.14.5 + dev: false + file:projects/arm-templatespecs.tgz: resolution: {integrity: sha512-PsUhG3/DdSL17PowykaRCmgY50iuzawFwrM+wyKMoxzhOY/W4saWMWRz+ggnc8OyaAX19fZuTq56vOZrQyb9Qw==, tarball: file:projects/arm-templatespecs.tgz} name: '@rush-temp/arm-templatespecs' @@ -11712,7 +11735,7 @@ packages: dev: false file:projects/monitor-query.tgz: - resolution: {integrity: sha512-F7qKV2Ge+sv8/xFVsPWmCv75v87nMDRm3Q+JuyyTQlh4PXsxpnUTz2g9Q32wYuBYqcKsov9TKc2XhSp6poIBew==, tarball: file:projects/monitor-query.tgz} + resolution: {integrity: sha512-3tAn0vXw53fi/gF+/DDq4KqenujlXI1TiQKHdzNUCzLnOmOG+ehh8H6ZOeEgkBpqq+FxTxUG1g6nF1K9rECjwA==, tarball: file:projects/monitor-query.tgz} name: '@rush-temp/monitor-query' version: 0.0.0 dependencies: diff --git a/rush.json b/rush.json index 66a9aa13703f..d5393bcebd89 100644 --- a/rush.json +++ b/rush.json @@ -1215,6 +1215,11 @@ "packageName": "@azure/arm-containerinstance", "projectFolder": "sdk/containerinstance/arm-containerinstance", "versionPolicyName": "management" + }, + { + "packageName": "@azure/arm-synapse", + "projectFolder": "sdk/synapse/arm-synapse", + "versionPolicyName": "management" } ] } \ No newline at end of file diff --git a/sdk/synapse/arm-synapse/CHANGELOG.md b/sdk/synapse/arm-synapse/CHANGELOG.md new file mode 100644 index 000000000000..64c1a9fa295b --- /dev/null +++ b/sdk/synapse/arm-synapse/CHANGELOG.md @@ -0,0 +1,11 @@ +# Release History + +## 8.0.0-beta.1 (2022-01-06) + +The package of @azure/arm-synapse is using our next generation design principles since version 8.0.0-beta.1, which contains breaking changes. + +To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog). + +To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). + +To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/synapse/arm-synapse/LICENSE.txt b/sdk/synapse/arm-synapse/LICENSE similarity index 96% rename from sdk/synapse/arm-synapse/LICENSE.txt rename to sdk/synapse/arm-synapse/LICENSE index 2d3163745319..5d1d36e0af80 100644 --- a/sdk/synapse/arm-synapse/LICENSE.txt +++ b/sdk/synapse/arm-synapse/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2021 Microsoft +Copyright (c) 2022 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE. \ No newline at end of file diff --git a/sdk/synapse/arm-synapse/README.md b/sdk/synapse/arm-synapse/README.md index d82ff8f57680..24a7c2f3e53e 100644 --- a/sdk/synapse/arm-synapse/README.md +++ b/sdk/synapse/arm-synapse/README.md @@ -1,104 +1,98 @@ -## Azure SynapseManagementClient SDK for JavaScript +# Azure SynapseManagement client library for JavaScript -This package contains an isomorphic SDK for SynapseManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure SynapseManagement client. + +Azure Synapse Analytics Management Client + +[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/synapse/arm-synapse) | +[Package (NPM)](https://www.npmjs.com/package/@azure/arm-synapse) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-synapse?view=azure-node-preview) | +[Samples](https://github.com/Azure-Samples/azure-samples-js-management) + +## Getting started ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. + +### Prerequisites + +- An [Azure subscription][azure_sub]. + +### Install the `@azure/arm-synapse` package -### How to Install +Install the Azure SynapseManagement client library for JavaScript with `npm`: ```bash npm install @azure/arm-synapse ``` -### How to use +### Create and authenticate a `SynapseManagementClient` -#### nodejs - client creation and get bigDataPools as an example written in TypeScript. +To create a client object to access the Azure SynapseManagement API, you will need the `endpoint` of your Azure SynapseManagement resource and a `credential`. The Azure SynapseManagement client can use Azure Active Directory credentials to authenticate. +You can find the endpoint for your Azure SynapseManagement resource in the [Azure Portal][azure_portal]. -##### Install @azure/ms-rest-nodeauth +You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token). + +To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package: -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. ```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" +npm install @azure/identity ``` -##### Sample code +You will also need to **register a new AAD application and grant access to Azure SynapseManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). +Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. + +For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript const { SynapseManagementClient } = require("@azure/arm-synapse"); -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new SynapseManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const workspaceName = "testworkspaceName"; - const bigDataPoolName = "testbigDataPoolName"; - client.bigDataPools.get(resourceGroupName, workspaceName, bigDataPoolName).then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); +const { DefaultAzureCredential } = require("@azure/identity"); +const subscriptionId = "00000000-0000-0000-0000-000000000000"; +const client = new SynapseManagementClient(new DefaultAzureCredential(), subscriptionId); ``` -#### browser - Authentication, client creation and get bigDataPools as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth +### JavaScript Bundle +To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). -```bash -npm install @azure/ms-rest-browserauth -``` +## Key concepts + +### SynapseManagementClient -##### Sample code - -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-synapse sample - - - - - - - - +`SynapseManagementClient` is the primary interface for developers using the Azure SynapseManagement client library. Explore the methods on this client object to understand the different features of the Azure SynapseManagement service that you can access. + +## Troubleshooting + +### Logging + +Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`: + +```javascript +const { setLogLevel } = require("@azure/logger"); +setLogLevel("info"); ``` +For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger). + +## Next steps + +Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library. + +## Contributing + +If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code. + ## Related projects -- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js) + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fsynapse%2Farm-synapse%2FREADME.png) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/synapse/arm-synapse/README.png) +[azure_cli]: https://docs.microsoft.com/cli/azure +[azure_sub]: https://azure.microsoft.com/free/ +[azure_sub]: https://azure.microsoft.com/free/ +[azure_portal]: https://portal.azure.com +[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity +[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential diff --git a/sdk/synapse/arm-synapse/_meta.json b/sdk/synapse/arm-synapse/_meta.json new file mode 100644 index 000000000000..9769a89c451e --- /dev/null +++ b/sdk/synapse/arm-synapse/_meta.json @@ -0,0 +1,7 @@ +{ + "commit": "a7991469ddc831a0e25c5a7c25c2c3f0da1785d9", + "readme": "specification/synapse/resource-manager/readme.md", + "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/synapse/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211130.1", + "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", + "use": "@autorest/typescript@6.0.0-alpha.16.20211130.1" +} \ No newline at end of file diff --git a/sdk/synapse/arm-synapse/api-extractor.json b/sdk/synapse/arm-synapse/api-extractor.json new file mode 100644 index 000000000000..3b1504b73e68 --- /dev/null +++ b/sdk/synapse/arm-synapse/api-extractor.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", + "docModel": { "enabled": true }, + "apiReport": { "enabled": true, "reportFolder": "./review" }, + "dtsRollup": { + "enabled": true, + "untrimmedFilePath": "", + "publicTrimmedFilePath": "./types/arm-synapse.d.ts" + }, + "messages": { + "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "extractorMessageReporting": { + "ae-missing-release-tag": { "logLevel": "none" }, + "ae-unresolved-link": { "logLevel": "none" } + } + } +} diff --git a/sdk/synapse/arm-synapse/package.json b/sdk/synapse/arm-synapse/package.json index c01cf1d6f7d6..91c3afd45870 100644 --- a/sdk/synapse/arm-synapse/package.json +++ b/sdk/synapse/arm-synapse/package.json @@ -1,57 +1,91 @@ { "name": "@azure/arm-synapse", + "sdk-type": "mgmt", "author": "Microsoft Corporation", - "description": "SynapseManagementClient Library with typescript type definitions for node.js and browser.", - "version": "5.1.0", + "description": "A generated SDK for SynapseManagementClient.", + "version": "8.0.0-beta.1", + "engines": { "node": ">=12.0.0" }, "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", - "tslib": "^1.10.0" + "@azure/core-lro": "^2.2.0", + "@azure/abort-controller": "^1.0.0", + "@azure/core-paging": "^1.2.0", + "@azure/core-client": "^1.0.0", + "@azure/core-auth": "^1.3.0", + "@azure/core-rest-pipeline": "^1.1.0", + "tslib": "^2.2.0" }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], + "keywords": ["node", "azure", "typescript", "browser", "isomorphic"], "license": "MIT", - "main": "./dist/arm-synapse.js", - "module": "./esm/synapseManagementClient.js", - "types": "./esm/synapseManagementClient.d.ts", + "main": "./dist/index.js", + "module": "./dist-esm/src/index.js", + "types": "./types/arm-synapse.d.ts", "devDependencies": { - "typescript": "^3.5.3", - "rollup": "^1.18.0", - "rollup-plugin-node-resolve": "^5.2.0", + "@microsoft/api-extractor": "^7.18.11", + "@rollup/plugin-commonjs": "11.0.2", + "@rollup/plugin-json": "^4.0.0", + "@rollup/plugin-multi-entry": "^3.0.0", + "@rollup/plugin-node-resolve": "^8.0.0", + "mkdirp": "^1.0.4", + "rollup": "^1.16.3", "rollup-plugin-sourcemaps": "^0.4.2", - "uglify-js": "^3.6.0" + "typescript": "~4.2.0", + "uglify-js": "^3.4.9", + "rimraf": "^3.0.0", + "@azure/identity": "^2.0.1", + "@azure-tools/test-recorder": "^1.0.0", + "mocha": "^7.1.1", + "cross-env": "^7.0.2" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/synapse/arm-synapse", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" }, - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, + "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", "dist/**/*.js.map", "dist/**/*.d.ts", "dist/**/*.d.ts.map", - "esm/**/*.js", - "esm/**/*.js.map", - "esm/**/*.d.ts", - "esm/**/*.d.ts.map", + "dist-esm/**/*.js", + "dist-esm/**/*.js.map", + "dist-esm/**/*.d.ts", + "dist-esm/**/*.d.ts.map", "src/**/*.ts", "README.md", + "LICENSE", "rollup.config.js", - "tsconfig.json" + "tsconfig.json", + "review/*", + "CHANGELOG.md", + "types/*" ], "scripts": { - "build": "tsc && rollup -c rollup.config.js && npm run minify", - "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-synapse.js.map'\" -o ./dist/arm-synapse.min.js ./dist/arm-synapse.js", - "prepack": "npm install && npm run build" + "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api", + "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "prepack": "npm run build", + "pack": "npm pack 2>&1", + "extract-api": "api-extractor run --local", + "lint": "echo skipped", + "audit": "echo skipped", + "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "build:node": "echo skipped", + "build:browser": "echo skipped", + "build:test": "echo skipped", + "build:samples": "echo skipped.", + "check-format": "echo skipped", + "execute:samples": "echo skipped", + "format": "echo skipped", + "test": "npm run integration-test", + "test:node": "echo skipped", + "test:browser": "echo skipped", + "unit-test": "npm run unit-test:node && npm run unit-test:browser", + "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", + "unit-test:browser": "echo skipped", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js", + "integration-test:browser": "echo skipped", + "docs": "echo skipped" }, "sideEffects": false, "autoPublish": true diff --git a/sdk/synapse/arm-synapse/review/arm-synapse.api.md b/sdk/synapse/arm-synapse/review/arm-synapse.api.md new file mode 100644 index 000000000000..08bd3c89d813 --- /dev/null +++ b/sdk/synapse/arm-synapse/review/arm-synapse.api.md @@ -0,0 +1,5620 @@ +## API Report File for "@azure/arm-synapse" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import * as coreAuth from '@azure/core-auth'; +import * as coreClient from '@azure/core-client'; +import { PagedAsyncIterableIterator } from '@azure/core-paging'; +import { PollerLike } from '@azure/core-lro'; +import { PollOperationState } from '@azure/core-lro'; + +// @public +export type AttachedDatabaseConfiguration = ProxyResource & { + location?: string; + readonly systemData?: SystemData; + readonly provisioningState?: ResourceProvisioningState; + databaseName?: string; + kustoPoolResourceId?: string; + readonly attachedDatabaseNames?: string[]; + defaultPrincipalsModificationKind?: DefaultPrincipalsModificationKind; + tableLevelSharingProperties?: TableLevelSharingProperties; +}; + +// @public +export interface AttachedDatabaseConfigurationListResult { + value?: AttachedDatabaseConfiguration[]; +} + +// @public +export interface AutoPauseProperties { + delayInMinutes?: number; + enabled?: boolean; +} + +// @public +export interface AutoScaleProperties { + enabled?: boolean; + maxNodeCount?: number; + minNodeCount?: number; +} + +// @public +export interface AvailableRpOperation { + display?: AvailableRpOperationDisplayInfo; + isDataAction?: string; + name?: string; + origin?: string; + serviceSpecification?: OperationMetaServiceSpecification; +} + +// @public +export interface AvailableRpOperationDisplayInfo { + description?: string; + operation?: string; + provider?: string; + resource?: string; +} + +// @public +export type AzureADOnlyAuthentication = ProxyResource & { + azureADOnlyAuthentication?: boolean; + readonly state?: StateValue; + readonly creationDate?: Date; +}; + +// @public +export interface AzureADOnlyAuthenticationListResult { + readonly nextLink?: string; + readonly value?: AzureADOnlyAuthentication[]; +} + +// @public +export type AzureADOnlyAuthenticationName = string; + +// @public +export interface AzureADOnlyAuthentications { + beginCreate(resourceGroupName: string, workspaceName: string, azureADOnlyAuthenticationName: AzureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo: AzureADOnlyAuthentication, options?: AzureADOnlyAuthenticationsCreateOptionalParams): Promise, AzureADOnlyAuthenticationsCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, workspaceName: string, azureADOnlyAuthenticationName: AzureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo: AzureADOnlyAuthentication, options?: AzureADOnlyAuthenticationsCreateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, azureADOnlyAuthenticationName: AzureADOnlyAuthenticationName, options?: AzureADOnlyAuthenticationsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: AzureADOnlyAuthenticationsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface AzureADOnlyAuthenticationsCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type AzureADOnlyAuthenticationsCreateResponse = AzureADOnlyAuthentication; + +// @public +export interface AzureADOnlyAuthenticationsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureADOnlyAuthenticationsGetResponse = AzureADOnlyAuthentication; + +// @public +export interface AzureADOnlyAuthenticationsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureADOnlyAuthenticationsListNextResponse = AzureADOnlyAuthenticationListResult; + +// @public +export interface AzureADOnlyAuthenticationsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureADOnlyAuthenticationsListResponse = AzureADOnlyAuthenticationListResult; + +// @public +export interface AzureCapacity { + default: number; + maximum: number; + minimum: number; + scaleType: AzureScaleType; +} + +// @public +export type AzureEntityResource = Resource & { + readonly etag?: string; +}; + +// @public +export interface AzureResourceSku { + capacity?: AzureCapacity; + resourceType?: string; + sku?: AzureSku; +} + +// @public +export type AzureScaleType = string; + +// @public +export interface AzureSku { + capacity?: number; + name: SkuName; + size: SkuSize; +} + +// @public +export interface BigDataPoolPatchInfo { + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export type BigDataPoolResourceInfo = TrackedResource & { + provisioningState?: string; + autoScale?: AutoScaleProperties; + readonly creationDate?: Date; + autoPause?: AutoPauseProperties; + isComputeIsolationEnabled?: boolean; + sessionLevelPackagesEnabled?: boolean; + cacheSize?: number; + dynamicExecutorAllocation?: DynamicExecutorAllocation; + sparkEventsFolder?: string; + nodeCount?: number; + libraryRequirements?: LibraryRequirements; + customLibraries?: LibraryInfo[]; + sparkConfigProperties?: SparkConfigProperties; + sparkVersion?: string; + defaultSparkLogFolder?: string; + nodeSize?: NodeSize; + nodeSizeFamily?: NodeSizeFamily; + readonly lastSucceededTimestamp?: Date; +}; + +// @public +export interface BigDataPoolResourceInfoListResult { + nextLink?: string; + value?: BigDataPoolResourceInfo[]; +} + +// @public +export interface BigDataPools { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, bigDataPoolInfo: BigDataPoolResourceInfo, options?: BigDataPoolsCreateOrUpdateOptionalParams): Promise, BigDataPoolsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, bigDataPoolInfo: BigDataPoolResourceInfo, options?: BigDataPoolsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, options?: BigDataPoolsDeleteOptionalParams): Promise, BigDataPoolsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, options?: BigDataPoolsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, options?: BigDataPoolsGetOptionalParams): Promise; + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: BigDataPoolsListByWorkspaceOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, bigDataPoolPatchInfo: BigDataPoolPatchInfo, options?: BigDataPoolsUpdateOptionalParams): Promise; +} + +// @public +export interface BigDataPoolsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + force?: boolean; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type BigDataPoolsCreateOrUpdateResponse = BigDataPoolResourceInfo; + +// @public +export interface BigDataPoolsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type BigDataPoolsDeleteResponse = Record; + +// @public +export interface BigDataPoolsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BigDataPoolsGetResponse = BigDataPoolResourceInfo; + +// @public +export interface BigDataPoolsListByWorkspaceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BigDataPoolsListByWorkspaceNextResponse = BigDataPoolResourceInfoListResult; + +// @public +export interface BigDataPoolsListByWorkspaceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BigDataPoolsListByWorkspaceResponse = BigDataPoolResourceInfoListResult; + +// @public +export interface BigDataPoolsUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type BigDataPoolsUpdateResponse = BigDataPoolResourceInfo; + +// @public +export type BlobAuditingPolicyName = string; + +// @public +export type BlobAuditingPolicyState = "Enabled" | "Disabled"; + +// @public +export type BlobStorageEventType = string; + +// @public +export interface CheckNameAvailabilityRequest { + name?: string; + type?: string; +} + +// @public +export interface CheckNameAvailabilityResponse { + available?: boolean; + message?: string; + name?: string; + reason?: string; +} + +// @public +export interface CheckNameResult { + message?: string; + name?: string; + nameAvailable?: boolean; + reason?: Reason; +} + +// @public +export type ClusterPrincipalAssignment = ProxyResource & { + readonly systemData?: SystemData; + principalId?: string; + role?: ClusterPrincipalRole; + tenantId?: string; + principalType?: PrincipalType; + readonly tenantName?: string; + readonly principalName?: string; + readonly provisioningState?: ResourceProvisioningState; +}; + +// @public +export interface ClusterPrincipalAssignmentCheckNameRequest { + name: string; + type: "Microsoft.Synapse/workspaces/kustoPools/principalAssignments"; +} + +// @public +export interface ClusterPrincipalAssignmentListResult { + value?: ClusterPrincipalAssignment[]; +} + +// @public +export type ClusterPrincipalRole = string; + +// @public +export type CmdkeySetup = CustomSetupBase & { + type: "CmdkeySetup"; + targetName: Record; + userName: Record; + password: SecretBaseUnion; +}; + +// @public +export type ColumnDataType = string; + +// @public +export type ComponentSetup = CustomSetupBase & { + type: "ComponentSetup"; + componentName: string; + licenseKey?: SecretBaseUnion; +}; + +// @public +export type Compression = string; + +// @public +export type ConfigurationType = string; + +// @public +export type ConnectionPolicyName = string; + +// @public +export type CreatedByType = string; + +// @public +export type CreateMode = string; + +// @public +export interface CreateSqlPoolRestorePointDefinition { + restorePointLabel: string; +} + +// @public +export interface CspWorkspaceAdminProperties { + initialWorkspaceAdminObjectId?: string; +} + +// @public +export interface CustomerManagedKeyDetails { + kekIdentity?: KekIdentityProperties; + key?: WorkspaceKeyDetails; + readonly status?: string; +} + +// @public +export interface CustomSetupBase { + type: "CmdkeySetup" | "EnvironmentVariableSetup" | "ComponentSetup"; +} + +// @public (undocumented) +export type CustomSetupBaseUnion = CustomSetupBase | CmdkeySetup | EnvironmentVariableSetup | ComponentSetup; + +// @public +export type Database = ProxyResource & { + location?: string; + kind: Kind; + readonly systemData?: SystemData; +}; + +// @public +export interface DatabaseCheckNameRequest { + name: string; + type: Type; +} + +// @public +export interface DatabaseListResult { + value?: DatabaseUnion[]; +} + +// @public +export type DatabasePrincipalAssignment = ProxyResource & { + readonly systemData?: SystemData; + principalId?: string; + role?: DatabasePrincipalRole; + tenantId?: string; + principalType?: PrincipalType; + readonly tenantName?: string; + readonly principalName?: string; + readonly provisioningState?: ResourceProvisioningState; +}; + +// @public +export interface DatabasePrincipalAssignmentCheckNameRequest { + name: string; + type: "Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments"; +} + +// @public +export interface DatabasePrincipalAssignmentListResult { + value?: DatabasePrincipalAssignment[]; +} + +// @public +export type DatabasePrincipalRole = string; + +// @public +export interface DatabaseStatistics { + size?: number; +} + +// @public (undocumented) +export type DatabaseUnion = Database | ReadWriteDatabase; + +// @public +export type DataConnection = ProxyResource & { + location?: string; + kind: DataConnectionKind; + readonly systemData?: SystemData; +}; + +// @public +export interface DataConnectionCheckNameRequest { + name: string; + type: "Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections"; +} + +// @public +export type DataConnectionKind = string; + +// @public +export interface DataConnectionListResult { + value?: DataConnectionUnion[]; +} + +// @public (undocumented) +export type DataConnectionUnion = DataConnection | EventHubDataConnection | IotHubDataConnection | EventGridDataConnection; + +// @public +export interface DataConnectionValidation { + dataConnectionName?: string; + properties?: DataConnectionUnion; +} + +// @public +export interface DataConnectionValidationListResult { + value?: DataConnectionValidationResult[]; +} + +// @public +export interface DataConnectionValidationResult { + errorMessage?: string; +} + +// @public +export type DataFlowComputeType = string; + +// @public +export interface DataLakeStorageAccountDetails { + accountUrl?: string; + createManagedPrivateEndpoint?: boolean; + filesystem?: string; + resourceId?: string; +} + +// @public +export type DataMaskingFunction = "Default" | "CCN" | "Email" | "Number" | "SSN" | "Text"; + +// @public +export interface DataMaskingPolicies { + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: DataMaskingPolicy, options?: DataMaskingPoliciesCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: DataMaskingPoliciesGetOptionalParams): Promise; +} + +// @public +export interface DataMaskingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataMaskingPoliciesCreateOrUpdateResponse = DataMaskingPolicy; + +// @public +export interface DataMaskingPoliciesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataMaskingPoliciesGetResponse = DataMaskingPolicy; + +// @public (undocumented) +export type DataMaskingPolicy = ProxyResource & { + readonly location?: string; + readonly kind?: string; + readonly managedBy?: string; + dataMaskingState?: DataMaskingState; + exemptPrincipals?: string; + readonly applicationPrincipals?: string; + readonly maskingLevel?: string; +}; + +// @public +export type DataMaskingRule = ProxyResource & { + readonly location?: string; + readonly kind?: string; + readonly idPropertiesId?: string; + aliasName?: string; + ruleState?: DataMaskingRuleState; + schemaName?: string; + tableName?: string; + columnName?: string; + maskingFunction?: DataMaskingFunction; + numberFrom?: string; + numberTo?: string; + prefixSize?: string; + suffixSize?: string; + replacementString?: string; +}; + +// @public +export interface DataMaskingRuleListResult { + value?: DataMaskingRule[]; +} + +// @public +export interface DataMaskingRules { + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, dataMaskingRuleName: string, parameters: DataMaskingRule, options?: DataMaskingRulesCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, dataMaskingRuleName: string, options?: DataMaskingRulesGetOptionalParams): Promise; + listBySqlPool(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: DataMaskingRulesListBySqlPoolOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface DataMaskingRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule; + +// @public +export interface DataMaskingRulesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataMaskingRulesGetResponse = DataMaskingRule; + +// @public +export interface DataMaskingRulesListBySqlPoolOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataMaskingRulesListBySqlPoolResponse = DataMaskingRuleListResult; + +// @public +export type DataMaskingRuleState = "Disabled" | "Enabled"; + +// @public +export type DataMaskingState = "Disabled" | "Enabled"; + +// @public +export type DataWarehouseUserActivities = ProxyResource & { + readonly activeQueriesCount?: number; +}; + +// @public +export type DataWarehouseUserActivityName = string; + +// @public +export type DayOfWeek = string; + +// @public +export type DefaultPrincipalsModificationKind = string; + +// @public +export interface DynamicExecutorAllocation { + enabled?: boolean; + maxExecutors?: number; + minExecutors?: number; +} + +// @public +export interface EncryptionDetails { + cmk?: CustomerManagedKeyDetails; + readonly doubleEncryptionEnabled?: boolean; +} + +// @public +export type EncryptionProtector = ProxyResource & { + readonly kind?: string; + readonly location?: string; + readonly subregion?: string; + serverKeyName?: string; + serverKeyType?: ServerKeyType; + readonly uri?: string; + readonly thumbprint?: string; +}; + +// @public +export interface EncryptionProtectorListResult { + readonly nextLink?: string; + readonly value?: EncryptionProtector[]; +} + +// @public +export type EncryptionProtectorName = string; + +// @public +export interface EntityReference { + referenceName?: string; + type?: IntegrationRuntimeEntityReferenceType; +} + +// @public +export type EnvironmentVariableSetup = CustomSetupBase & { + type: "EnvironmentVariableSetup"; + variableName: string; + variableValue: string; +}; + +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; +} + +// @public +export interface ErrorResponse { + error?: ErrorDetail; +} + +// @public +export type EventGridDataConnection = DataConnection & { + storageAccountResourceId?: string; + eventHubResourceId?: string; + consumerGroup?: string; + tableName?: string; + mappingRuleName?: string; + dataFormat?: EventGridDataFormat; + ignoreFirstRecord?: boolean; + blobStorageEventType?: BlobStorageEventType; + readonly provisioningState?: ResourceProvisioningState; +}; + +// @public +export type EventGridDataFormat = string; + +// @public +export type EventHubDataConnection = DataConnection & { + eventHubResourceId?: string; + consumerGroup?: string; + tableName?: string; + mappingRuleName?: string; + dataFormat?: EventHubDataFormat; + eventSystemProperties?: string[]; + compression?: Compression; + readonly provisioningState?: ResourceProvisioningState; + managedIdentityResourceId?: string; +}; + +// @public +export type EventHubDataFormat = string; + +// @public +export type ExtendedServerBlobAuditingPolicy = ProxyResource & { + predicateExpression?: string; + state?: BlobAuditingPolicyState; + storageEndpoint?: string; + storageAccountAccessKey?: string; + retentionDays?: number; + auditActionsAndGroups?: string[]; + storageAccountSubscriptionId?: string; + isStorageSecondaryKeyInUse?: boolean; + isAzureMonitorTargetEnabled?: boolean; + queueDelayMs?: number; + isDevopsAuditEnabled?: boolean; +}; + +// @public +export interface ExtendedServerBlobAuditingPolicyListResult { + readonly nextLink?: string; + readonly value?: ExtendedServerBlobAuditingPolicy[]; +} + +// @public +export interface ExtendedSqlPoolBlobAuditingPolicies { + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: ExtendedSqlPoolBlobAuditingPolicy, options?: ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: ExtendedSqlPoolBlobAuditingPoliciesGetOptionalParams): Promise; + listBySqlPool(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedSqlPoolBlobAuditingPolicy; + +// @public +export interface ExtendedSqlPoolBlobAuditingPoliciesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ExtendedSqlPoolBlobAuditingPoliciesGetResponse = ExtendedSqlPoolBlobAuditingPolicy; + +// @public +export interface ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolNextResponse = ExtendedSqlPoolBlobAuditingPolicyListResult; + +// @public +export interface ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolResponse = ExtendedSqlPoolBlobAuditingPolicyListResult; + +// @public +export type ExtendedSqlPoolBlobAuditingPolicy = ProxyResource & { + predicateExpression?: string; + state?: BlobAuditingPolicyState; + storageEndpoint?: string; + storageAccountAccessKey?: string; + retentionDays?: number; + auditActionsAndGroups?: string[]; + storageAccountSubscriptionId?: string; + isStorageSecondaryKeyInUse?: boolean; + isAzureMonitorTargetEnabled?: boolean; + queueDelayMs?: number; +}; + +// @public +export interface ExtendedSqlPoolBlobAuditingPolicyListResult { + readonly nextLink?: string; + readonly value?: ExtendedSqlPoolBlobAuditingPolicy[]; +} + +// @public +export interface FollowerDatabaseDefinition { + attachedDatabaseConfigurationName: string; + readonly databaseName?: string; + kustoPoolResourceId: string; +} + +// @public +export interface FollowerDatabaseListResult { + value?: FollowerDatabaseDefinition[]; +} + +// @public +export type GeoBackupPolicy = ProxyResource & { + readonly kind?: string; + readonly location?: string; + state: GeoBackupPolicyState; + readonly storageType?: string; +}; + +// @public +export interface GeoBackupPolicyListResult { + value?: GeoBackupPolicy[]; +} + +// @public +export type GeoBackupPolicyName = string; + +// @public +export type GeoBackupPolicyState = "Disabled" | "Enabled"; + +// @public +export interface GetSsisObjectMetadataRequest { + metadataPath?: string; +} + +// @public +export interface IntegrationRuntime { + [property: string]: any; + description?: string; + type: "Managed" | "SelfHosted"; +} + +// @public +export type IntegrationRuntimeAuthKeyName = string; + +// @public +export interface IntegrationRuntimeAuthKeys { + authKey1?: string; + authKey2?: string; +} + +// @public +export interface IntegrationRuntimeAuthKeysListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IntegrationRuntimeAuthKeysListResponse = IntegrationRuntimeAuthKeys; + +// @public +export interface IntegrationRuntimeAuthKeysOperations { + list(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimeAuthKeysListOptionalParams): Promise; + regenerate(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, regenerateKeyParameters: IntegrationRuntimeRegenerateKeyParameters, options?: IntegrationRuntimeAuthKeysRegenerateOptionalParams): Promise; +} + +// @public +export interface IntegrationRuntimeAuthKeysRegenerateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IntegrationRuntimeAuthKeysRegenerateResponse = IntegrationRuntimeAuthKeys; + +// @public +export type IntegrationRuntimeAutoUpdate = string; + +// @public +export interface IntegrationRuntimeComputeProperties { + [property: string]: any; + dataFlowProperties?: IntegrationRuntimeDataFlowProperties; + location?: string; + maxParallelExecutionsPerNode?: number; + nodeSize?: string; + numberOfNodes?: number; + vNetProperties?: IntegrationRuntimeVNetProperties; +} + +// @public +export interface IntegrationRuntimeConnectionInfo { + [property: string]: any; + readonly hostServiceUri?: string; + readonly identityCertThumbprint?: string; + readonly isIdentityCertExprired?: boolean; + readonly publicKey?: string; + readonly serviceToken?: string; + readonly version?: string; +} + +// @public +export interface IntegrationRuntimeConnectionInfos { + get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimeConnectionInfosGetOptionalParams): Promise; +} + +// @public +export interface IntegrationRuntimeConnectionInfosGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IntegrationRuntimeConnectionInfosGetResponse = IntegrationRuntimeConnectionInfo; + +// @public +export interface IntegrationRuntimeCredentials { + sync(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimeCredentialsSyncOptionalParams): Promise; +} + +// @public +export interface IntegrationRuntimeCredentialsSyncOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface IntegrationRuntimeCustomSetupScriptProperties { + blobContainerUri?: string; + sasToken?: SecureString; +} + +// @public +export interface IntegrationRuntimeDataFlowProperties { + [property: string]: any; + cleanup?: boolean; + computeType?: DataFlowComputeType; + coreCount?: number; + timeToLive?: number; +} + +// @public +export interface IntegrationRuntimeDataProxyProperties { + connectVia?: EntityReference; + path?: string; + stagingLinkedService?: EntityReference; +} + +// @public +export type IntegrationRuntimeEdition = string; + +// @public +export type IntegrationRuntimeEntityReferenceType = string; + +// @public +export type IntegrationRuntimeInternalChannelEncryptionMode = string; + +// @public +export type IntegrationRuntimeLicenseType = string; + +// @public +export interface IntegrationRuntimeListResponse { + nextLink?: string; + value: IntegrationRuntimeResource[]; +} + +// @public +export interface IntegrationRuntimeMonitoringData { + name?: string; + nodes?: IntegrationRuntimeNodeMonitoringData[]; +} + +// @public +export interface IntegrationRuntimeMonitoringDataListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IntegrationRuntimeMonitoringDataListResponse = IntegrationRuntimeMonitoringData; + +// @public +export interface IntegrationRuntimeMonitoringDataOperations { + list(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimeMonitoringDataListOptionalParams): Promise; +} + +// @public +export interface IntegrationRuntimeNodeIpAddress { + readonly ipAddress?: string; +} + +// @public +export interface IntegrationRuntimeNodeIpAddressGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IntegrationRuntimeNodeIpAddressGetResponse = IntegrationRuntimeNodeIpAddress; + +// @public +export interface IntegrationRuntimeNodeIpAddressOperations { + get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, nodeName: string, options?: IntegrationRuntimeNodeIpAddressGetOptionalParams): Promise; +} + +// @public +export interface IntegrationRuntimeNodeMonitoringData { + [property: string]: any; + readonly availableMemoryInMB?: number; + readonly concurrentJobsLimit?: number; + readonly concurrentJobsRunning?: number; + readonly cpuUtilization?: number; + readonly maxConcurrentJobs?: number; + readonly nodeName?: string; + readonly receivedBytes?: number; + readonly sentBytes?: number; +} + +// @public +export interface IntegrationRuntimeNodes { + delete(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, nodeName: string, options?: IntegrationRuntimeNodesDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, nodeName: string, options?: IntegrationRuntimeNodesGetOptionalParams): Promise; + update(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, nodeName: string, updateIntegrationRuntimeNodeRequest: UpdateIntegrationRuntimeNodeRequest, options?: IntegrationRuntimeNodesUpdateOptionalParams): Promise; +} + +// @public +export interface IntegrationRuntimeNodesDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface IntegrationRuntimeNodesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IntegrationRuntimeNodesGetResponse = SelfHostedIntegrationRuntimeNode; + +// @public +export interface IntegrationRuntimeNodesUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IntegrationRuntimeNodesUpdateResponse = SelfHostedIntegrationRuntimeNode; + +// @public +export interface IntegrationRuntimeObjectMetadata { + beginRefresh(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimeObjectMetadataRefreshOptionalParams): Promise, IntegrationRuntimeObjectMetadataRefreshResponse>>; + beginRefreshAndWait(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimeObjectMetadataRefreshOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimeObjectMetadataListOptionalParams): Promise; +} + +// @public +export interface IntegrationRuntimeObjectMetadataListOptionalParams extends coreClient.OperationOptions { + getMetadataRequest?: GetSsisObjectMetadataRequest; +} + +// @public +export type IntegrationRuntimeObjectMetadataListResponse = SsisObjectMetadataListResponse; + +// @public +export interface IntegrationRuntimeObjectMetadataRefreshOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type IntegrationRuntimeObjectMetadataRefreshResponse = SsisObjectMetadataStatusResponse; + +// @public +export interface IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint { + category?: string; + endpoints?: IntegrationRuntimeOutboundNetworkDependenciesEndpoint[]; +} + +// @public +export interface IntegrationRuntimeOutboundNetworkDependenciesEndpoint { + domainName?: string; + endpointDetails?: IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails[]; +} + +// @public +export interface IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails { + port?: number; +} + +// @public +export interface IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse { + value?: IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint[]; +} + +// @public +export interface IntegrationRuntimeRegenerateKeyParameters { + keyName?: IntegrationRuntimeAuthKeyName; +} + +// @public +export type IntegrationRuntimeResource = SubResource & { + properties: IntegrationRuntimeUnion; +}; + +// @public +export interface IntegrationRuntimes { + beginCreate(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, integrationRuntime: IntegrationRuntimeResource, options?: IntegrationRuntimesCreateOptionalParams): Promise, IntegrationRuntimesCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, integrationRuntime: IntegrationRuntimeResource, options?: IntegrationRuntimesCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesDeleteOptionalParams): Promise; + beginDisableInteractiveQuery(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesDisableInteractiveQueryOptionalParams): Promise, void>>; + beginDisableInteractiveQueryAndWait(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesDisableInteractiveQueryOptionalParams): Promise; + beginEnableInteractiveQuery(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesEnableInteractiveQueryOptionalParams): Promise, void>>; + beginEnableInteractiveQueryAndWait(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesEnableInteractiveQueryOptionalParams): Promise; + beginStart(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesStartOptionalParams): Promise, IntegrationRuntimesStartResponse>>; + beginStartAndWait(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesStartOptionalParams): Promise; + beginStop(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesStopOptionalParams): Promise, void>>; + beginStopAndWait(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesStopOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesGetOptionalParams): Promise; + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: IntegrationRuntimesListByWorkspaceOptionalParams): PagedAsyncIterableIterator; + listOutboundNetworkDependenciesEndpoints(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesListOutboundNetworkDependenciesEndpointsOptionalParams): Promise; + update(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, updateIntegrationRuntimeRequest: UpdateIntegrationRuntimeRequest, options?: IntegrationRuntimesUpdateOptionalParams): Promise; + upgrade(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimesUpgradeOptionalParams): Promise; +} + +// @public +export interface IntegrationRuntimesCreateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type IntegrationRuntimesCreateResponse = IntegrationRuntimeResource; + +// @public +export interface IntegrationRuntimesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface IntegrationRuntimesDisableInteractiveQueryOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface IntegrationRuntimesEnableInteractiveQueryOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface IntegrationRuntimesGetOptionalParams extends coreClient.OperationOptions { + ifNoneMatch?: string; +} + +// @public +export type IntegrationRuntimesGetResponse = IntegrationRuntimeResource; + +// @public +export interface IntegrationRuntimesListByWorkspaceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IntegrationRuntimesListByWorkspaceNextResponse = IntegrationRuntimeListResponse; + +// @public +export interface IntegrationRuntimesListByWorkspaceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IntegrationRuntimesListByWorkspaceResponse = IntegrationRuntimeListResponse; + +// @public +export interface IntegrationRuntimesListOutboundNetworkDependenciesEndpointsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IntegrationRuntimesListOutboundNetworkDependenciesEndpointsResponse = IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse; + +// @public +export interface IntegrationRuntimeSsisCatalogInfo { + [property: string]: any; + catalogAdminPassword?: SecureString; + catalogAdminUserName?: string; + catalogPricingTier?: IntegrationRuntimeSsisCatalogPricingTier; + catalogServerEndpoint?: string; +} + +// @public +export type IntegrationRuntimeSsisCatalogPricingTier = string; + +// @public +export interface IntegrationRuntimeSsisProperties { + [property: string]: any; + catalogInfo?: IntegrationRuntimeSsisCatalogInfo; + customSetupScriptProperties?: IntegrationRuntimeCustomSetupScriptProperties; + dataProxyProperties?: IntegrationRuntimeDataProxyProperties; + edition?: IntegrationRuntimeEdition; + expressCustomSetupProperties?: CustomSetupBaseUnion[]; + licenseType?: IntegrationRuntimeLicenseType; +} + +// @public +export interface IntegrationRuntimesStartOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type IntegrationRuntimesStartResponse = IntegrationRuntimeStatusResponse; + +// @public +export interface IntegrationRuntimesStopOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type IntegrationRuntimeState = string; + +// @public +export interface IntegrationRuntimeStatus { + [property: string]: any; + readonly dataFactoryName?: string; + readonly state?: IntegrationRuntimeState; + type: "Managed" | "SelfHosted"; +} + +// @public +export interface IntegrationRuntimeStatusGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IntegrationRuntimeStatusGetResponse = IntegrationRuntimeStatusResponse; + +// @public +export interface IntegrationRuntimeStatusOperations { + get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: IntegrationRuntimeStatusGetOptionalParams): Promise; +} + +// @public +export interface IntegrationRuntimeStatusResponse { + readonly name?: string; + properties: IntegrationRuntimeStatusUnion; +} + +// @public (undocumented) +export type IntegrationRuntimeStatusUnion = IntegrationRuntimeStatus | ManagedIntegrationRuntimeStatus | SelfHostedIntegrationRuntimeStatus; + +// @public +export interface IntegrationRuntimesUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IntegrationRuntimesUpdateResponse = IntegrationRuntimeResource; + +// @public +export interface IntegrationRuntimesUpgradeOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IntegrationRuntimeType = string; + +// @public (undocumented) +export type IntegrationRuntimeUnion = IntegrationRuntime | ManagedIntegrationRuntime | SelfHostedIntegrationRuntime; + +// @public +export type IntegrationRuntimeUpdateResult = string; + +// @public +export interface IntegrationRuntimeVNetProperties { + [property: string]: any; + publicIPs?: string[]; + subnet?: string; + subnetId?: string; + vNetId?: string; +} + +// @public +export type IotHubDataConnection = DataConnection & { + iotHubResourceId?: string; + consumerGroup?: string; + tableName?: string; + mappingRuleName?: string; + dataFormat?: IotHubDataFormat; + eventSystemProperties?: string[]; + sharedAccessPolicyName?: string; + readonly provisioningState?: ResourceProvisioningState; +}; + +// @public +export type IotHubDataFormat = string; + +// @public +export type IpFirewallRuleInfo = ProxyResource & { + endIpAddress?: string; + readonly provisioningState?: ProvisioningState; + startIpAddress?: string; +}; + +// @public +export interface IpFirewallRuleInfoListResult { + nextLink?: string; + value?: IpFirewallRuleInfo[]; +} + +// @public +export interface IpFirewallRuleProperties { + endIpAddress?: string; + readonly provisioningState?: ProvisioningState; + startIpAddress?: string; +} + +// @public +export interface IpFirewallRules { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, ruleName: string, ipFirewallRuleInfo: IpFirewallRuleInfo, options?: IpFirewallRulesCreateOrUpdateOptionalParams): Promise, IpFirewallRulesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, ruleName: string, ipFirewallRuleInfo: IpFirewallRuleInfo, options?: IpFirewallRulesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, ruleName: string, options?: IpFirewallRulesDeleteOptionalParams): Promise, IpFirewallRulesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, ruleName: string, options?: IpFirewallRulesDeleteOptionalParams): Promise; + beginReplaceAll(resourceGroupName: string, workspaceName: string, request: ReplaceAllIpFirewallRulesRequest, options?: IpFirewallRulesReplaceAllOptionalParams): Promise, IpFirewallRulesReplaceAllResponse>>; + beginReplaceAllAndWait(resourceGroupName: string, workspaceName: string, request: ReplaceAllIpFirewallRulesRequest, options?: IpFirewallRulesReplaceAllOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, ruleName: string, options?: IpFirewallRulesGetOptionalParams): Promise; + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: IpFirewallRulesListByWorkspaceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface IpFirewallRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type IpFirewallRulesCreateOrUpdateResponse = IpFirewallRuleInfo; + +// @public +export interface IpFirewallRulesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type IpFirewallRulesDeleteResponse = Record; + +// @public +export interface IpFirewallRulesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IpFirewallRulesGetResponse = IpFirewallRuleInfo; + +// @public +export interface IpFirewallRulesListByWorkspaceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IpFirewallRulesListByWorkspaceNextResponse = IpFirewallRuleInfoListResult; + +// @public +export interface IpFirewallRulesListByWorkspaceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type IpFirewallRulesListByWorkspaceResponse = IpFirewallRuleInfoListResult; + +// @public +export interface IpFirewallRulesReplaceAllOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type IpFirewallRulesReplaceAllResponse = ReplaceAllFirewallRulesOperationResponse; + +// @public +export interface KekIdentityProperties { + userAssignedIdentity?: string; + useSystemAssignedIdentity?: any; +} + +// @public +export type Key = ProxyResource & { + isActiveCMK?: boolean; + keyVaultUrl?: string; +}; + +// @public +export interface KeyInfoListResult { + nextLink?: string; + value?: Key[]; +} + +// @public +export interface Keys { + createOrUpdate(resourceGroupName: string, workspaceName: string, keyName: string, keyProperties: Key, options?: KeysCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, keyName: string, options?: KeysDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, keyName: string, options?: KeysGetOptionalParams): Promise; + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: KeysListByWorkspaceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface KeysCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KeysCreateOrUpdateResponse = Key; + +// @public +export interface KeysDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KeysDeleteResponse = Key; + +// @public +export interface KeysGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KeysGetResponse = Key; + +// @public +export interface KeysListByWorkspaceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KeysListByWorkspaceNextResponse = KeyInfoListResult; + +// @public +export interface KeysListByWorkspaceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KeysListByWorkspaceResponse = KeyInfoListResult; + +// @public +export type Kind = string; + +// @public +export enum KnownAzureADOnlyAuthenticationName { + // (undocumented) + Default = "default" +} + +// @public +export enum KnownAzureScaleType { + // (undocumented) + Automatic = "automatic", + // (undocumented) + Manual = "manual", + // (undocumented) + None = "none" +} + +// @public +export enum KnownBlobAuditingPolicyName { + // (undocumented) + Default = "default" +} + +// @public +export enum KnownBlobStorageEventType { + // (undocumented) + MicrosoftStorageBlobCreated = "Microsoft.Storage.BlobCreated", + // (undocumented) + MicrosoftStorageBlobRenamed = "Microsoft.Storage.BlobRenamed" +} + +// @public +export enum KnownClusterPrincipalRole { + // (undocumented) + AllDatabasesAdmin = "AllDatabasesAdmin", + // (undocumented) + AllDatabasesViewer = "AllDatabasesViewer" +} + +// @public +export enum KnownColumnDataType { + // (undocumented) + Bigint = "bigint", + // (undocumented) + Binary = "binary", + // (undocumented) + Bit = "bit", + // (undocumented) + Char = "char", + // (undocumented) + Date = "date", + // (undocumented) + Datetime = "datetime", + // (undocumented) + Datetime2 = "datetime2", + // (undocumented) + Datetimeoffset = "datetimeoffset", + // (undocumented) + Decimal = "decimal", + // (undocumented) + Float = "float", + // (undocumented) + Geography = "geography", + // (undocumented) + Geometry = "geometry", + // (undocumented) + Hierarchyid = "hierarchyid", + // (undocumented) + Image = "image", + // (undocumented) + Int = "int", + // (undocumented) + Money = "money", + // (undocumented) + Nchar = "nchar", + // (undocumented) + Ntext = "ntext", + // (undocumented) + Numeric = "numeric", + // (undocumented) + Nvarchar = "nvarchar", + // (undocumented) + Real = "real", + // (undocumented) + Smalldatetime = "smalldatetime", + // (undocumented) + Smallint = "smallint", + // (undocumented) + Smallmoney = "smallmoney", + // (undocumented) + SqlVariant = "sql_variant", + // (undocumented) + Sysname = "sysname", + // (undocumented) + Text = "text", + // (undocumented) + Time = "time", + // (undocumented) + Timestamp = "timestamp", + // (undocumented) + Tinyint = "tinyint", + // (undocumented) + Uniqueidentifier = "uniqueidentifier", + // (undocumented) + Varbinary = "varbinary", + // (undocumented) + Varchar = "varchar", + // (undocumented) + Xml = "xml" +} + +// @public +export enum KnownCompression { + // (undocumented) + GZip = "GZip", + // (undocumented) + None = "None" +} + +// @public +export enum KnownConfigurationType { + // (undocumented) + Artifact = "Artifact", + // (undocumented) + File = "File" +} + +// @public +export enum KnownConnectionPolicyName { + // (undocumented) + Default = "default" +} + +// @public +export enum KnownCreatedByType { + // (undocumented) + Application = "Application", + // (undocumented) + Key = "Key", + // (undocumented) + ManagedIdentity = "ManagedIdentity", + // (undocumented) + User = "User" +} + +// @public +export enum KnownCreateMode { + // (undocumented) + Default = "Default", + // (undocumented) + PointInTimeRestore = "PointInTimeRestore", + // (undocumented) + Recovery = "Recovery", + // (undocumented) + Restore = "Restore" +} + +// @public +export enum KnownDatabasePrincipalRole { + // (undocumented) + Admin = "Admin", + // (undocumented) + Ingestor = "Ingestor", + // (undocumented) + Monitor = "Monitor", + // (undocumented) + UnrestrictedViewer = "UnrestrictedViewer", + // (undocumented) + User = "User", + // (undocumented) + Viewer = "Viewer" +} + +// @public +export enum KnownDataConnectionKind { + // (undocumented) + EventGrid = "EventGrid", + // (undocumented) + EventHub = "EventHub", + // (undocumented) + IotHub = "IotHub" +} + +// @public +export enum KnownDataFlowComputeType { + // (undocumented) + ComputeOptimized = "ComputeOptimized", + // (undocumented) + General = "General", + // (undocumented) + MemoryOptimized = "MemoryOptimized" +} + +// @public +export enum KnownDataWarehouseUserActivityName { + // (undocumented) + Current = "current" +} + +// @public +export enum KnownDayOfWeek { + // (undocumented) + Friday = "Friday", + // (undocumented) + Monday = "Monday", + // (undocumented) + Saturday = "Saturday", + // (undocumented) + Sunday = "Sunday", + // (undocumented) + Thursday = "Thursday", + // (undocumented) + Tuesday = "Tuesday", + // (undocumented) + Wednesday = "Wednesday" +} + +// @public +export enum KnownDefaultPrincipalsModificationKind { + // (undocumented) + None = "None", + // (undocumented) + Replace = "Replace", + // (undocumented) + Union = "Union" +} + +// @public +export enum KnownEncryptionProtectorName { + // (undocumented) + Current = "current" +} + +// @public +export enum KnownEventGridDataFormat { + // (undocumented) + Apacheavro = "APACHEAVRO", + // (undocumented) + Avro = "AVRO", + // (undocumented) + CSV = "CSV", + // (undocumented) + Json = "JSON", + // (undocumented) + Multijson = "MULTIJSON", + // (undocumented) + ORC = "ORC", + // (undocumented) + Parquet = "PARQUET", + // (undocumented) + PSV = "PSV", + // (undocumented) + RAW = "RAW", + // (undocumented) + Scsv = "SCSV", + // (undocumented) + Singlejson = "SINGLEJSON", + // (undocumented) + Sohsv = "SOHSV", + // (undocumented) + TSV = "TSV", + // (undocumented) + Tsve = "TSVE", + // (undocumented) + TXT = "TXT", + // (undocumented) + W3Clogfile = "W3CLOGFILE" +} + +// @public +export enum KnownEventHubDataFormat { + // (undocumented) + Apacheavro = "APACHEAVRO", + // (undocumented) + Avro = "AVRO", + // (undocumented) + CSV = "CSV", + // (undocumented) + Json = "JSON", + // (undocumented) + Multijson = "MULTIJSON", + // (undocumented) + ORC = "ORC", + // (undocumented) + Parquet = "PARQUET", + // (undocumented) + PSV = "PSV", + // (undocumented) + RAW = "RAW", + // (undocumented) + Scsv = "SCSV", + // (undocumented) + Singlejson = "SINGLEJSON", + // (undocumented) + Sohsv = "SOHSV", + // (undocumented) + TSV = "TSV", + // (undocumented) + Tsve = "TSVE", + // (undocumented) + TXT = "TXT", + // (undocumented) + W3Clogfile = "W3CLOGFILE" +} + +// @public +export enum KnownGeoBackupPolicyName { + // (undocumented) + Default = "Default" +} + +// @public +export enum KnownIntegrationRuntimeAuthKeyName { + // (undocumented) + AuthKey1 = "authKey1", + // (undocumented) + AuthKey2 = "authKey2" +} + +// @public +export enum KnownIntegrationRuntimeAutoUpdate { + // (undocumented) + Off = "Off", + // (undocumented) + On = "On" +} + +// @public +export enum KnownIntegrationRuntimeEdition { + // (undocumented) + Enterprise = "Enterprise", + // (undocumented) + Standard = "Standard" +} + +// @public +export enum KnownIntegrationRuntimeEntityReferenceType { + // (undocumented) + IntegrationRuntimeReference = "IntegrationRuntimeReference", + // (undocumented) + LinkedServiceReference = "LinkedServiceReference" +} + +// @public +export enum KnownIntegrationRuntimeInternalChannelEncryptionMode { + // (undocumented) + NotEncrypted = "NotEncrypted", + // (undocumented) + NotSet = "NotSet", + // (undocumented) + SslEncrypted = "SslEncrypted" +} + +// @public +export enum KnownIntegrationRuntimeLicenseType { + // (undocumented) + BasePrice = "BasePrice", + // (undocumented) + LicenseIncluded = "LicenseIncluded" +} + +// @public +export enum KnownIntegrationRuntimeSsisCatalogPricingTier { + // (undocumented) + Basic = "Basic", + // (undocumented) + Premium = "Premium", + // (undocumented) + PremiumRS = "PremiumRS", + // (undocumented) + Standard = "Standard" +} + +// @public +export enum KnownIntegrationRuntimeState { + // (undocumented) + AccessDenied = "AccessDenied", + // (undocumented) + Initial = "Initial", + // (undocumented) + Limited = "Limited", + // (undocumented) + NeedRegistration = "NeedRegistration", + // (undocumented) + Offline = "Offline", + // (undocumented) + Online = "Online", + // (undocumented) + Started = "Started", + // (undocumented) + Starting = "Starting", + // (undocumented) + Stopped = "Stopped", + // (undocumented) + Stopping = "Stopping" +} + +// @public +export enum KnownIntegrationRuntimeType { + // (undocumented) + Managed = "Managed", + // (undocumented) + SelfHosted = "SelfHosted" +} + +// @public +export enum KnownIntegrationRuntimeUpdateResult { + // (undocumented) + Fail = "Fail", + // (undocumented) + None = "None", + // (undocumented) + Succeed = "Succeed" +} + +// @public +export enum KnownIotHubDataFormat { + // (undocumented) + Apacheavro = "APACHEAVRO", + // (undocumented) + Avro = "AVRO", + // (undocumented) + CSV = "CSV", + // (undocumented) + Json = "JSON", + // (undocumented) + Multijson = "MULTIJSON", + // (undocumented) + ORC = "ORC", + // (undocumented) + Parquet = "PARQUET", + // (undocumented) + PSV = "PSV", + // (undocumented) + RAW = "RAW", + // (undocumented) + Scsv = "SCSV", + // (undocumented) + Singlejson = "SINGLEJSON", + // (undocumented) + Sohsv = "SOHSV", + // (undocumented) + TSV = "TSV", + // (undocumented) + Tsve = "TSVE", + // (undocumented) + TXT = "TXT", + // (undocumented) + W3Clogfile = "W3CLOGFILE" +} + +// @public +export enum KnownKind { + // (undocumented) + ReadOnlyFollowing = "ReadOnlyFollowing", + // (undocumented) + ReadWrite = "ReadWrite" +} + +// @public +export enum KnownLanguageExtensionName { + // (undocumented) + Python = "PYTHON", + // (undocumented) + R = "R" +} + +// @public +export enum KnownManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState { + // (undocumented) + Disabled = "Disabled", + // (undocumented) + Disabling = "Disabling", + // (undocumented) + Enabled = "Enabled", + // (undocumented) + Enabling = "Enabling", + // (undocumented) + Unknown = "Unknown" +} + +// @public +export enum KnownManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState { + // (undocumented) + Disabled = "Disabled", + // (undocumented) + Enabled = "Enabled" +} + +// @public +export enum KnownManagedIntegrationRuntimeNodeStatus { + // (undocumented) + Available = "Available", + // (undocumented) + Recycling = "Recycling", + // (undocumented) + Starting = "Starting", + // (undocumented) + Unavailable = "Unavailable" +} + +// @public +export enum KnownManagementOperationState { + // (undocumented) + CancelInProgress = "CancelInProgress", + // (undocumented) + Cancelled = "Cancelled", + // (undocumented) + Failed = "Failed", + // (undocumented) + InProgress = "InProgress", + // (undocumented) + Pending = "Pending", + // (undocumented) + Succeeded = "Succeeded" +} + +// @public +export enum KnownNodeSize { + // (undocumented) + Large = "Large", + // (undocumented) + Medium = "Medium", + // (undocumented) + None = "None", + // (undocumented) + Small = "Small", + // (undocumented) + XLarge = "XLarge", + // (undocumented) + XXLarge = "XXLarge", + // (undocumented) + XXXLarge = "XXXLarge" +} + +// @public +export enum KnownNodeSizeFamily { + // (undocumented) + HardwareAcceleratedFpga = "HardwareAcceleratedFPGA", + // (undocumented) + HardwareAcceleratedGPU = "HardwareAcceleratedGPU", + // (undocumented) + MemoryOptimized = "MemoryOptimized", + // (undocumented) + None = "None" +} + +// @public +export enum KnownOperationStatus { + // (undocumented) + Canceled = "Canceled", + // (undocumented) + Failed = "Failed", + // (undocumented) + InProgress = "InProgress", + // (undocumented) + Succeeded = "Succeeded" +} + +// @public +export enum KnownPrincipalType { + // (undocumented) + App = "App", + // (undocumented) + Group = "Group", + // (undocumented) + User = "User" +} + +// @public +export enum KnownProvisioningState { + // (undocumented) + DeleteError = "DeleteError", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + Failed = "Failed", + // (undocumented) + Provisioning = "Provisioning", + // (undocumented) + Succeeded = "Succeeded" +} + +// @public +export enum KnownReason { + // (undocumented) + AlreadyExists = "AlreadyExists", + // (undocumented) + Invalid = "Invalid" +} + +// @public +export enum KnownReplicationState { + // (undocumented) + CatchUP = "CATCH_UP", + // (undocumented) + Pending = "PENDING", + // (undocumented) + Seeding = "SEEDING", + // (undocumented) + Suspended = "SUSPENDED" +} + +// @public +export enum KnownResourceProvisioningState { + // (undocumented) + Canceled = "Canceled", + // (undocumented) + Creating = "Creating", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + Failed = "Failed", + // (undocumented) + Moving = "Moving", + // (undocumented) + Running = "Running", + // (undocumented) + Succeeded = "Succeeded" +} + +// @public +export enum KnownSecurityAlertPolicyName { + // (undocumented) + Default = "default" +} + +// @public +export enum KnownSecurityAlertPolicyNameAutoGenerated { + // (undocumented) + Default = "Default" +} + +// @public +export enum KnownSelfHostedIntegrationRuntimeNodeStatus { + // (undocumented) + InitializeFailed = "InitializeFailed", + // (undocumented) + Initializing = "Initializing", + // (undocumented) + Limited = "Limited", + // (undocumented) + NeedRegistration = "NeedRegistration", + // (undocumented) + Offline = "Offline", + // (undocumented) + Online = "Online", + // (undocumented) + Upgrading = "Upgrading" +} + +// @public +export enum KnownServerKeyType { + // (undocumented) + AzureKeyVault = "AzureKeyVault", + // (undocumented) + ServiceManaged = "ServiceManaged" +} + +// @public +export enum KnownSkuName { + // (undocumented) + ComputeOptimized = "Compute optimized", + // (undocumented) + StorageOptimized = "Storage optimized" +} + +// @public +export enum KnownSkuSize { + // (undocumented) + ExtraSmall = "Extra small", + // (undocumented) + Large = "Large", + // (undocumented) + Medium = "Medium", + // (undocumented) + Small = "Small" +} + +// @public +export enum KnownSsisObjectMetadataType { + // (undocumented) + Environment = "Environment", + // (undocumented) + Folder = "Folder", + // (undocumented) + Package = "Package", + // (undocumented) + Project = "Project" +} + +// @public +export enum KnownState { + // (undocumented) + Creating = "Creating", + // (undocumented) + Deleted = "Deleted", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + Running = "Running", + // (undocumented) + Starting = "Starting", + // (undocumented) + Stopped = "Stopped", + // (undocumented) + Stopping = "Stopping", + // (undocumented) + Unavailable = "Unavailable", + // (undocumented) + Updating = "Updating" +} + +// @public +export enum KnownStateValue { + // (undocumented) + Consistent = "Consistent", + // (undocumented) + InConsistent = "InConsistent", + // (undocumented) + Updating = "Updating" +} + +// @public +export enum KnownStorageAccountType { + // (undocumented) + GRS = "GRS", + // (undocumented) + LRS = "LRS" +} + +// @public +export enum KnownTransparentDataEncryptionName { + // (undocumented) + Current = "current" +} + +// @public +export enum KnownVulnerabilityAssessmentName { + // (undocumented) + Default = "default" +} + +// @public +export enum KnownVulnerabilityAssessmentScanState { + // (undocumented) + Failed = "Failed", + // (undocumented) + FailedToRun = "FailedToRun", + // (undocumented) + InProgress = "InProgress", + // (undocumented) + Passed = "Passed" +} + +// @public +export enum KnownVulnerabilityAssessmentScanTriggerType { + // (undocumented) + OnDemand = "OnDemand", + // (undocumented) + Recurring = "Recurring" +} + +// @public +export enum KnownWorkspacePublicNetworkAccess { + // (undocumented) + Disabled = "Disabled", + // (undocumented) + Enabled = "Enabled" +} + +// @public +export interface KustoOperations { + list(options?: KustoOperationsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface KustoOperationsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoOperationsListNextResponse = OperationListResult; + +// @public +export interface KustoOperationsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoOperationsListResponse = OperationListResult; + +// @public +export type KustoPool = TrackedResource & { + sku: AzureSku; + readonly etag?: string; + readonly systemData?: SystemData; + readonly state?: State; + readonly provisioningState?: ResourceProvisioningState; + readonly uri?: string; + readonly dataIngestionUri?: string; + readonly stateReason?: string; + optimizedAutoscale?: OptimizedAutoscale; + enableStreamingIngest?: boolean; + enablePurge?: boolean; + readonly languageExtensions?: LanguageExtensionsList; + workspaceUID?: string; +}; + +// @public +export interface KustoPoolAttachedDatabaseConfigurations { + beginCreateOrUpdate(workspaceName: string, kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, parameters: AttachedDatabaseConfiguration, options?: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams): Promise, KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(workspaceName: string, kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, parameters: AttachedDatabaseConfiguration, options?: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams): Promise; + beginDelete(workspaceName: string, kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, options?: KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(workspaceName: string, kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, options?: KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams): Promise; + get(workspaceName: string, kustoPoolName: string, attachedDatabaseConfigurationName: string, resourceGroupName: string, options?: KustoPoolAttachedDatabaseConfigurationsGetOptionalParams): Promise; + listByKustoPool(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse = AttachedDatabaseConfiguration; + +// @public +export interface KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface KustoPoolAttachedDatabaseConfigurationsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoPoolAttachedDatabaseConfigurationsGetResponse = AttachedDatabaseConfiguration; + +// @public +export interface KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoPoolAttachedDatabaseConfigurationsListByKustoPoolResponse = AttachedDatabaseConfigurationListResult; + +// @public +export interface KustoPoolCheckNameRequest { + name: string; + type: "Microsoft.Synapse/workspaces/kustoPools"; +} + +// @public +export interface KustoPoolChildResource { + checkNameAvailability(workspaceName: string, kustoPoolName: string, resourceGroupName: string, resourceName: DatabaseCheckNameRequest, options?: KustoPoolChildResourceCheckNameAvailabilityOptionalParams): Promise; +} + +// @public +export interface KustoPoolChildResourceCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoPoolChildResourceCheckNameAvailabilityResponse = CheckNameResult; + +// @public +export interface KustoPoolDatabasePrincipalAssignments { + beginCreateOrUpdate(workspaceName: string, kustoPoolName: string, databaseName: string, principalAssignmentName: string, resourceGroupName: string, parameters: DatabasePrincipalAssignment, options?: KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams): Promise, KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(workspaceName: string, kustoPoolName: string, databaseName: string, principalAssignmentName: string, resourceGroupName: string, parameters: DatabasePrincipalAssignment, options?: KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams): Promise; + beginDelete(workspaceName: string, kustoPoolName: string, databaseName: string, principalAssignmentName: string, resourceGroupName: string, options?: KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(workspaceName: string, kustoPoolName: string, databaseName: string, principalAssignmentName: string, resourceGroupName: string, options?: KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams): Promise; + checkNameAvailability(workspaceName: string, kustoPoolName: string, databaseName: string, resourceGroupName: string, principalAssignmentName: DatabasePrincipalAssignmentCheckNameRequest, options?: KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityOptionalParams): Promise; + get(workspaceName: string, kustoPoolName: string, databaseName: string, principalAssignmentName: string, resourceGroupName: string, options?: KustoPoolDatabasePrincipalAssignmentsGetOptionalParams): Promise; + list(workspaceName: string, kustoPoolName: string, databaseName: string, resourceGroupName: string, options?: KustoPoolDatabasePrincipalAssignmentsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityResponse = CheckNameResult; + +// @public +export interface KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateResponse = DatabasePrincipalAssignment; + +// @public +export interface KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface KustoPoolDatabasePrincipalAssignmentsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoPoolDatabasePrincipalAssignmentsGetResponse = DatabasePrincipalAssignment; + +// @public +export interface KustoPoolDatabasePrincipalAssignmentsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoPoolDatabasePrincipalAssignmentsListResponse = DatabasePrincipalAssignmentListResult; + +// @public +export interface KustoPoolDatabases { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, parameters: DatabaseUnion, options?: KustoPoolDatabasesCreateOrUpdateOptionalParams): Promise, KustoPoolDatabasesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, parameters: DatabaseUnion, options?: KustoPoolDatabasesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, options?: KustoPoolDatabasesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, options?: KustoPoolDatabasesDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, parameters: DatabaseUnion, options?: KustoPoolDatabasesUpdateOptionalParams): Promise, KustoPoolDatabasesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, parameters: DatabaseUnion, options?: KustoPoolDatabasesUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, options?: KustoPoolDatabasesGetOptionalParams): Promise; + listByKustoPool(resourceGroupName: string, workspaceName: string, kustoPoolName: string, options?: KustoPoolDatabasesListByKustoPoolOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface KustoPoolDatabasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type KustoPoolDatabasesCreateOrUpdateResponse = DatabaseUnion; + +// @public +export interface KustoPoolDatabasesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface KustoPoolDatabasesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoPoolDatabasesGetResponse = DatabaseUnion; + +// @public +export interface KustoPoolDatabasesListByKustoPoolOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoPoolDatabasesListByKustoPoolResponse = DatabaseListResult; + +// @public +export interface KustoPoolDatabasesUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type KustoPoolDatabasesUpdateResponse = DatabaseUnion; + +// @public +export interface KustoPoolDataConnections { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, parameters: DataConnectionUnion, options?: KustoPoolDataConnectionsCreateOrUpdateOptionalParams): Promise, KustoPoolDataConnectionsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, parameters: DataConnectionUnion, options?: KustoPoolDataConnectionsCreateOrUpdateOptionalParams): Promise; + beginDataConnectionValidation(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, parameters: DataConnectionValidation, options?: KustoPoolDataConnectionsDataConnectionValidationOptionalParams): Promise, KustoPoolDataConnectionsDataConnectionValidationResponse>>; + beginDataConnectionValidationAndWait(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, parameters: DataConnectionValidation, options?: KustoPoolDataConnectionsDataConnectionValidationOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, options?: KustoPoolDataConnectionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, options?: KustoPoolDataConnectionsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, parameters: DataConnectionUnion, options?: KustoPoolDataConnectionsUpdateOptionalParams): Promise, KustoPoolDataConnectionsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, parameters: DataConnectionUnion, options?: KustoPoolDataConnectionsUpdateOptionalParams): Promise; + checkNameAvailability(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: DataConnectionCheckNameRequest, options?: KustoPoolDataConnectionsCheckNameAvailabilityOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, dataConnectionName: string, options?: KustoPoolDataConnectionsGetOptionalParams): Promise; + listByDatabase(resourceGroupName: string, workspaceName: string, kustoPoolName: string, databaseName: string, options?: KustoPoolDataConnectionsListByDatabaseOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface KustoPoolDataConnectionsCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoPoolDataConnectionsCheckNameAvailabilityResponse = CheckNameResult; + +// @public +export interface KustoPoolDataConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type KustoPoolDataConnectionsCreateOrUpdateResponse = DataConnectionUnion; + +// @public +export interface KustoPoolDataConnectionsDataConnectionValidationOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type KustoPoolDataConnectionsDataConnectionValidationResponse = DataConnectionValidationListResult; + +// @public +export interface KustoPoolDataConnectionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface KustoPoolDataConnectionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoPoolDataConnectionsGetResponse = DataConnectionUnion; + +// @public +export interface KustoPoolDataConnectionsListByDatabaseOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoPoolDataConnectionsListByDatabaseResponse = DataConnectionListResult; + +// @public +export interface KustoPoolDataConnectionsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type KustoPoolDataConnectionsUpdateResponse = DataConnectionUnion; + +// @public +export interface KustoPoolListResult { + value?: KustoPool[]; +} + +// @public +export interface KustoPoolPrincipalAssignments { + beginCreateOrUpdate(workspaceName: string, kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, parameters: ClusterPrincipalAssignment, options?: KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams): Promise, KustoPoolPrincipalAssignmentsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(workspaceName: string, kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, parameters: ClusterPrincipalAssignment, options?: KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams): Promise; + beginDelete(workspaceName: string, kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, options?: KustoPoolPrincipalAssignmentsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(workspaceName: string, kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, options?: KustoPoolPrincipalAssignmentsDeleteOptionalParams): Promise; + checkNameAvailability(workspaceName: string, kustoPoolName: string, resourceGroupName: string, principalAssignmentName: ClusterPrincipalAssignmentCheckNameRequest, options?: KustoPoolPrincipalAssignmentsCheckNameAvailabilityOptionalParams): Promise; + get(workspaceName: string, kustoPoolName: string, principalAssignmentName: string, resourceGroupName: string, options?: KustoPoolPrincipalAssignmentsGetOptionalParams): Promise; + list(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: KustoPoolPrincipalAssignmentsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface KustoPoolPrincipalAssignmentsCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoPoolPrincipalAssignmentsCheckNameAvailabilityResponse = CheckNameResult; + +// @public +export interface KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type KustoPoolPrincipalAssignmentsCreateOrUpdateResponse = ClusterPrincipalAssignment; + +// @public +export interface KustoPoolPrincipalAssignmentsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface KustoPoolPrincipalAssignmentsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoPoolPrincipalAssignmentsGetResponse = ClusterPrincipalAssignment; + +// @public +export interface KustoPoolPrincipalAssignmentsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoPoolPrincipalAssignmentsListResponse = ClusterPrincipalAssignmentListResult; + +// @public +export interface KustoPools { + beginAddLanguageExtensions(workspaceName: string, kustoPoolName: string, resourceGroupName: string, languageExtensionsToAdd: LanguageExtensionsList, options?: KustoPoolsAddLanguageExtensionsOptionalParams): Promise, void>>; + beginAddLanguageExtensionsAndWait(workspaceName: string, kustoPoolName: string, resourceGroupName: string, languageExtensionsToAdd: LanguageExtensionsList, options?: KustoPoolsAddLanguageExtensionsOptionalParams): Promise; + beginCreateOrUpdate(workspaceName: string, resourceGroupName: string, kustoPoolName: string, parameters: KustoPool, options?: KustoPoolsCreateOrUpdateOptionalParams): Promise, KustoPoolsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(workspaceName: string, resourceGroupName: string, kustoPoolName: string, parameters: KustoPool, options?: KustoPoolsCreateOrUpdateOptionalParams): Promise; + beginDelete(workspaceName: string, resourceGroupName: string, kustoPoolName: string, options?: KustoPoolsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(workspaceName: string, resourceGroupName: string, kustoPoolName: string, options?: KustoPoolsDeleteOptionalParams): Promise; + beginDetachFollowerDatabases(workspaceName: string, kustoPoolName: string, resourceGroupName: string, followerDatabaseToRemove: FollowerDatabaseDefinition, options?: KustoPoolsDetachFollowerDatabasesOptionalParams): Promise, void>>; + beginDetachFollowerDatabasesAndWait(workspaceName: string, kustoPoolName: string, resourceGroupName: string, followerDatabaseToRemove: FollowerDatabaseDefinition, options?: KustoPoolsDetachFollowerDatabasesOptionalParams): Promise; + beginRemoveLanguageExtensions(workspaceName: string, kustoPoolName: string, resourceGroupName: string, languageExtensionsToRemove: LanguageExtensionsList, options?: KustoPoolsRemoveLanguageExtensionsOptionalParams): Promise, void>>; + beginRemoveLanguageExtensionsAndWait(workspaceName: string, kustoPoolName: string, resourceGroupName: string, languageExtensionsToRemove: LanguageExtensionsList, options?: KustoPoolsRemoveLanguageExtensionsOptionalParams): Promise; + beginStart(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: KustoPoolsStartOptionalParams): Promise, void>>; + beginStartAndWait(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: KustoPoolsStartOptionalParams): Promise; + beginStop(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: KustoPoolsStopOptionalParams): Promise, void>>; + beginStopAndWait(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: KustoPoolsStopOptionalParams): Promise; + beginUpdate(workspaceName: string, resourceGroupName: string, kustoPoolName: string, parameters: KustoPoolUpdate, options?: KustoPoolsUpdateOptionalParams): Promise, KustoPoolsUpdateResponse>>; + beginUpdateAndWait(workspaceName: string, resourceGroupName: string, kustoPoolName: string, parameters: KustoPoolUpdate, options?: KustoPoolsUpdateOptionalParams): Promise; + checkNameAvailability(location: string, kustoPoolName: KustoPoolCheckNameRequest, options?: KustoPoolsCheckNameAvailabilityOptionalParams): Promise; + get(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: KustoPoolsGetOptionalParams): Promise; + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: KustoPoolsListByWorkspaceOptionalParams): Promise; + listFollowerDatabases(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: KustoPoolsListFollowerDatabasesOptionalParams): PagedAsyncIterableIterator; + listLanguageExtensions(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: KustoPoolsListLanguageExtensionsOptionalParams): PagedAsyncIterableIterator; + listSkus(options?: KustoPoolsListSkusOptionalParams): PagedAsyncIterableIterator; + listSkusByResource(workspaceName: string, kustoPoolName: string, resourceGroupName: string, options?: KustoPoolsListSkusByResourceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface KustoPoolsAddLanguageExtensionsOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface KustoPoolsCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoPoolsCheckNameAvailabilityResponse = CheckNameResult; + +// @public +export interface KustoPoolsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + ifNoneMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type KustoPoolsCreateOrUpdateResponse = KustoPool; + +// @public +export interface KustoPoolsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface KustoPoolsDetachFollowerDatabasesOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface KustoPoolsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoPoolsGetResponse = KustoPool; + +// @public +export interface KustoPoolsListByWorkspaceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoPoolsListByWorkspaceResponse = KustoPoolListResult; + +// @public +export interface KustoPoolsListFollowerDatabasesOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoPoolsListFollowerDatabasesResponse = FollowerDatabaseListResult; + +// @public +export interface KustoPoolsListLanguageExtensionsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoPoolsListLanguageExtensionsResponse = LanguageExtensionsList; + +// @public +export interface KustoPoolsListSkusByResourceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoPoolsListSkusByResourceResponse = ListResourceSkusResult; + +// @public +export interface KustoPoolsListSkusOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type KustoPoolsListSkusResponse = SkuDescriptionList; + +// @public +export interface KustoPoolsRemoveLanguageExtensionsOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface KustoPoolsStartOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface KustoPoolsStopOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface KustoPoolsUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type KustoPoolsUpdateResponse = KustoPool; + +// @public +export type KustoPoolUpdate = Resource & { + tags?: { + [propertyName: string]: string; + }; + sku?: AzureSku; + readonly state?: State; + readonly provisioningState?: ResourceProvisioningState; + readonly uri?: string; + readonly dataIngestionUri?: string; + readonly stateReason?: string; + optimizedAutoscale?: OptimizedAutoscale; + enableStreamingIngest?: boolean; + enablePurge?: boolean; + readonly languageExtensions?: LanguageExtensionsList; + workspaceUID?: string; +}; + +// @public +export interface LanguageExtension { + languageExtensionName?: LanguageExtensionName; +} + +// @public +export type LanguageExtensionName = string; + +// @public +export interface LanguageExtensionsList { + value?: LanguageExtension[]; +} + +// @public +export interface Libraries { + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: LibrariesListByWorkspaceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface LibrariesListByWorkspaceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type LibrariesListByWorkspaceNextResponse = LibraryListResponse; + +// @public +export interface LibrariesListByWorkspaceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type LibrariesListByWorkspaceResponse = LibraryListResponse; + +// @public +export interface Library { + get(resourceGroupName: string, libraryName: string, workspaceName: string, options?: LibraryGetOptionalParams): Promise; +} + +// @public +export interface LibraryGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type LibraryGetResponse = LibraryResource; + +// @public +export interface LibraryInfo { + containerName?: string; + readonly creatorId?: string; + name?: string; + path?: string; + readonly provisioningStatus?: string; + type?: string; + uploadedTimestamp?: Date; +} + +// @public +export interface LibraryListResponse { + nextLink?: string; + value: LibraryResource[]; +} + +// @public +export interface LibraryRequirements { + content?: string; + filename?: string; + readonly time?: Date; +} + +// @public +export type LibraryResource = SubResource & { + namePropertiesName?: string; + path?: string; + containerName?: string; + uploadedTimestamp?: Date; + typePropertiesType?: string; + readonly provisioningStatus?: string; + readonly creatorId?: string; +}; + +// @public +export interface LinkedIntegrationRuntime { + readonly createTime?: Date; + readonly dataFactoryLocation?: string; + readonly dataFactoryName?: string; + readonly name?: string; + readonly subscriptionId?: string; +} + +// @public +export type LinkedIntegrationRuntimeKeyAuthorization = LinkedIntegrationRuntimeType & { + authorizationType: "Key"; + key: SecureString; +}; + +// @public +export type LinkedIntegrationRuntimeRbacAuthorization = LinkedIntegrationRuntimeType & { + authorizationType: "RBAC"; + resourceId: string; +}; + +// @public +export interface LinkedIntegrationRuntimeType { + authorizationType: "Key" | "RBAC"; +} + +// @public (undocumented) +export type LinkedIntegrationRuntimeTypeUnion = LinkedIntegrationRuntimeType | LinkedIntegrationRuntimeKeyAuthorization | LinkedIntegrationRuntimeRbacAuthorization; + +// @public +export interface ListResourceSkusResult { + value?: AzureResourceSku[]; +} + +// @public +export interface ListSqlPoolSecurityAlertPolicies { + readonly nextLink?: string; + readonly value?: SqlPoolSecurityAlertPolicy[]; +} + +// @public +export type MaintenanceWindowOptions = ProxyResource & { + isEnabled?: boolean; + maintenanceWindowCycles?: MaintenanceWindowTimeRange[]; + minDurationInMinutes?: number; + defaultDurationInMinutes?: number; + minCycles?: number; + timeGranularityInMinutes?: number; + allowMultipleMaintenanceWindowsPerCycle?: boolean; +}; + +// @public +export type MaintenanceWindows = ProxyResource & { + timeRanges?: MaintenanceWindowTimeRange[]; +}; + +// @public +export interface MaintenanceWindowTimeRange { + dayOfWeek?: DayOfWeek; + duration?: string; + startTime?: string; +} + +// @public +export interface ManagedIdentity { + readonly principalId?: string; + readonly tenantId?: string; + type?: ResourceIdentityType; + userAssignedIdentities?: { + [propertyName: string]: UserAssignedManagedIdentity; + }; +} + +// @public +export type ManagedIdentitySqlControlSettingsModel = ProxyResource & { + grantSqlControlToManagedIdentity?: ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity; +}; + +// @public +export interface ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity { + readonly actualState?: ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState; + desiredState?: ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState; +} + +// @public +export type ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState = string; + +// @public +export type ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState = string; + +// @public +export type ManagedIntegrationRuntime = IntegrationRuntime & { + type: "Managed"; + readonly state?: IntegrationRuntimeState; + referenceName?: string; + typeManagedVirtualNetworkType?: string; + id?: string; + computeProperties?: IntegrationRuntimeComputeProperties; + ssisProperties?: IntegrationRuntimeSsisProperties; +}; + +// @public +export interface ManagedIntegrationRuntimeError { + [property: string]: any; + readonly code?: string; + readonly message?: string; + readonly parameters?: string[]; + readonly time?: Date; +} + +// @public +export interface ManagedIntegrationRuntimeNode { + [property: string]: any; + errors?: ManagedIntegrationRuntimeError[]; + readonly nodeId?: string; + readonly status?: ManagedIntegrationRuntimeNodeStatus; +} + +// @public +export type ManagedIntegrationRuntimeNodeStatus = string; + +// @public +export interface ManagedIntegrationRuntimeOperationResult { + [property: string]: any; + readonly activityId?: string; + readonly errorCode?: string; + readonly parameters?: string[]; + readonly result?: string; + readonly startTime?: Date; + readonly type?: string; +} + +// @public +export type ManagedIntegrationRuntimeStatus = IntegrationRuntimeStatus & { + type: "Managed"; + readonly createTime?: Date; + readonly nodes?: ManagedIntegrationRuntimeNode[]; + readonly otherErrors?: ManagedIntegrationRuntimeError[]; + readonly lastOperation?: ManagedIntegrationRuntimeOperationResult; +}; + +// @public +export interface ManagedVirtualNetworkSettings { + allowedAadTenantIdsForLinking?: string[]; + linkedAccessCheckOnTargetResource?: boolean; + preventDataExfiltration?: boolean; +} + +// @public +export type ManagementOperationState = string; + +// @public +export type MetadataSyncConfig = ProxyResource & { + enabled?: boolean; + syncIntervalInMinutes?: number; +}; + +// @public +export type NodeSize = string; + +// @public +export type NodeSizeFamily = string; + +// @public +export interface Operation { + display?: OperationDisplay; + name?: string; + origin?: string; + properties?: Record; +} + +// @public +export interface OperationDisplay { + description?: string; + operation?: string; + provider?: string; + resource?: string; +} + +// @public +export interface OperationListResult { + readonly nextLink?: string; + value?: Operation[]; +} + +// @public +export interface OperationMetaLogSpecification { + blobDuration?: string; + displayName?: string; + name?: string; +} + +// @public +export interface OperationMetaMetricDimensionSpecification { + displayName?: string; + name?: string; + toBeExportedForShoebox?: boolean; +} + +// @public +export interface OperationMetaMetricSpecification { + aggregationType?: string; + dimensions?: OperationMetaMetricDimensionSpecification[]; + displayDescription?: string; + displayName?: string; + enableRegionalMdmAccount?: boolean; + metricFilterPattern?: string; + name?: string; + sourceMdmAccount?: string; + sourceMdmNamespace?: string; + supportsInstanceLevelAggregation?: boolean; + unit?: string; +} + +// @public +export interface OperationMetaServiceSpecification { + logSpecifications?: OperationMetaLogSpecification[]; + metricSpecifications?: OperationMetaMetricSpecification[]; +} + +// @public +export interface OperationResource { + endTime?: Date; + error?: ErrorDetail; + id?: string; + name?: string; + percentComplete?: number; + properties?: Record; + startTime?: Date; + status?: OperationStatus; +} + +// @public +export interface Operations { + checkNameAvailability(request: CheckNameAvailabilityRequest, options?: OperationsCheckNameAvailabilityOptionalParams): Promise; + getAzureAsyncHeaderResult(resourceGroupName: string, workspaceName: string, operationId: string, options?: OperationsGetAzureAsyncHeaderResultOptionalParams): Promise; + getLocationHeaderResult(resourceGroupName: string, workspaceName: string, operationId: string, options?: OperationsGetLocationHeaderResultOptionalParams): Promise; + list(options?: OperationsListOptionalParams): Promise; +} + +// @public +export interface OperationsCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OperationsCheckNameAvailabilityResponse = CheckNameAvailabilityResponse; + +// @public +export interface OperationsGetAzureAsyncHeaderResultOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OperationsGetAzureAsyncHeaderResultResponse = OperationResource; + +// @public +export interface OperationsGetLocationHeaderResultOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface OperationsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OperationsListResponse = AvailableRpOperation[]; + +// @public +export type OperationStatus = string; + +// @public +export interface OptimizedAutoscale { + isEnabled: boolean; + maximum: number; + minimum: number; + version: number; +} + +// @public +export type PrincipalType = string; + +// @public +export interface PrivateEndpoint { + readonly id?: string; +} + +// @public +export type PrivateEndpointConnection = ProxyResource & { + privateEndpoint?: PrivateEndpoint; + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + readonly provisioningState?: string; +}; + +// @public (undocumented) +export type PrivateEndpointConnectionForPrivateLinkHub = PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated & { + name?: string; + type?: string; +}; + +// @public +export interface PrivateEndpointConnectionForPrivateLinkHubBasic { + readonly id?: string; + privateEndpoint?: PrivateEndpoint; + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + readonly provisioningState?: string; +} + +// @public (undocumented) +export interface PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated { + // (undocumented) + id?: string; + properties?: PrivateEndpointConnectionProperties; +} + +// @public (undocumented) +export interface PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse { + // (undocumented) + nextLink?: string; + // (undocumented) + value?: PrivateEndpointConnectionForPrivateLinkHub[]; +} + +// @public +export interface PrivateEndpointConnectionList { + readonly nextLink?: string; + readonly value?: PrivateEndpointConnection[]; +} + +// @public +export interface PrivateEndpointConnectionProperties { + privateEndpoint?: PrivateEndpoint; + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + readonly provisioningState?: string; +} + +// @public +export interface PrivateEndpointConnections { + beginCreate(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, request: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOptionalParams): Promise, PrivateEndpointConnectionsCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, request: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: PrivateEndpointConnectionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface PrivateEndpointConnectionsCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type PrivateEndpointConnectionsCreateResponse = PrivateEndpointConnection; + +// @public +export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; + +// @public +export interface PrivateEndpointConnectionsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsListNextResponse = PrivateEndpointConnectionList; + +// @public +export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionList; + +// @public +export interface PrivateEndpointConnectionsPrivateLinkHub { + get(resourceGroupName: string, privateLinkHubName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsPrivateLinkHubGetOptionalParams): Promise; + list(resourceGroupName: string, privateLinkHubName: string, options?: PrivateEndpointConnectionsPrivateLinkHubListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface PrivateEndpointConnectionsPrivateLinkHubGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsPrivateLinkHubGetResponse = PrivateEndpointConnectionForPrivateLinkHub; + +// @public +export interface PrivateEndpointConnectionsPrivateLinkHubListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsPrivateLinkHubListNextResponse = PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse; + +// @public +export interface PrivateEndpointConnectionsPrivateLinkHubListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsPrivateLinkHubListResponse = PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse; + +// @public +export type PrivateLinkHub = TrackedResource & { + provisioningState?: string; + readonly privateEndpointConnections?: PrivateEndpointConnectionForPrivateLinkHubBasic[]; +}; + +// @public +export interface PrivateLinkHubInfoListResult { + nextLink?: string; + value?: PrivateLinkHub[]; +} + +// @public +export interface PrivateLinkHubPatchInfo { + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export interface PrivateLinkHubPrivateLinkResources { + get(resourceGroupName: string, privateLinkHubName: string, privateLinkResourceName: string, options?: PrivateLinkHubPrivateLinkResourcesGetOptionalParams): Promise; + list(resourceGroupName: string, privateLinkHubName: string, options?: PrivateLinkHubPrivateLinkResourcesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface PrivateLinkHubPrivateLinkResourcesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateLinkHubPrivateLinkResourcesGetResponse = PrivateLinkResource; + +// @public +export interface PrivateLinkHubPrivateLinkResourcesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateLinkHubPrivateLinkResourcesListNextResponse = PrivateLinkResourceListResult; + +// @public +export interface PrivateLinkHubPrivateLinkResourcesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateLinkHubPrivateLinkResourcesListResponse = PrivateLinkResourceListResult; + +// @public +export interface PrivateLinkHubs { + beginDelete(resourceGroupName: string, privateLinkHubName: string, options?: PrivateLinkHubsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, privateLinkHubName: string, options?: PrivateLinkHubsDeleteOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, privateLinkHubName: string, privateLinkHubInfo: PrivateLinkHub, options?: PrivateLinkHubsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, privateLinkHubName: string, options?: PrivateLinkHubsGetOptionalParams): Promise; + list(options?: PrivateLinkHubsListOptionalParams): PagedAsyncIterableIterator; + listByResourceGroup(resourceGroupName: string, options?: PrivateLinkHubsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, privateLinkHubName: string, privateLinkHubPatchInfo: PrivateLinkHubPatchInfo, options?: PrivateLinkHubsUpdateOptionalParams): Promise; +} + +// @public +export interface PrivateLinkHubsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateLinkHubsCreateOrUpdateResponse = PrivateLinkHub; + +// @public +export interface PrivateLinkHubsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface PrivateLinkHubsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateLinkHubsGetResponse = PrivateLinkHub; + +// @public +export interface PrivateLinkHubsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateLinkHubsListByResourceGroupNextResponse = PrivateLinkHubInfoListResult; + +// @public +export interface PrivateLinkHubsListByResourceGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateLinkHubsListByResourceGroupResponse = PrivateLinkHubInfoListResult; + +// @public +export interface PrivateLinkHubsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateLinkHubsListNextResponse = PrivateLinkHubInfoListResult; + +// @public +export interface PrivateLinkHubsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateLinkHubsListResponse = PrivateLinkHubInfoListResult; + +// @public +export interface PrivateLinkHubsUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateLinkHubsUpdateResponse = PrivateLinkHub; + +// @public +export type PrivateLinkResource = ProxyResource & { + readonly properties?: PrivateLinkResourceProperties; +}; + +// @public +export interface PrivateLinkResourceListResult { + readonly nextLink?: string; + readonly value?: PrivateLinkResource[]; +} + +// @public +export interface PrivateLinkResourceProperties { + readonly groupId?: string; + readonly requiredMembers?: string[]; + readonly requiredZoneNames?: string[]; +} + +// @public +export interface PrivateLinkResources { + get(resourceGroupName: string, workspaceName: string, privateLinkResourceName: string, options?: PrivateLinkResourcesGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: PrivateLinkResourcesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface PrivateLinkResourcesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateLinkResourcesGetResponse = PrivateLinkResource; + +// @public +export interface PrivateLinkResourcesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateLinkResourcesListNextResponse = PrivateLinkResourceListResult; + +// @public +export interface PrivateLinkResourcesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; + +// @public +export interface PrivateLinkServiceConnectionState { + readonly actionsRequired?: string; + description?: string; + status?: string; +} + +// @public +export type ProvisioningState = string; + +// @public +export type ProxyResource = Resource & {}; + +// @public +export interface PurviewConfiguration { + purviewResourceId?: string; +} + +// @public +export type QueryAggregationFunction = "min" | "max" | "avg" | "sum"; + +// @public +export type QueryExecutionType = "any" | "regular" | "irregular" | "aborted" | "exception"; + +// @public +export interface QueryInterval { + readonly executionCount?: number; + readonly intervalStartTime?: Date; + readonly metrics?: QueryMetric[]; +} + +// @public +export interface QueryMetric { + readonly displayName?: string; + readonly name?: string; + readonly unit?: QueryMetricUnit; + readonly value?: number; +} + +// @public +export type QueryMetricUnit = "percentage" | "KB" | "microseconds"; + +// @public +export type QueryObservedMetricType = "cpu" | "io" | "logio" | "duration" | "executionCount"; + +// @public +export interface QueryStatistic { + readonly intervals?: QueryInterval[]; + readonly queryId?: string; +} + +// @public +export type ReadWriteDatabase = Database & { + readonly provisioningState?: ResourceProvisioningState; + softDeletePeriod?: string; + hotCachePeriod?: string; + readonly statistics?: DatabaseStatistics; + readonly isFollowed?: boolean; +}; + +// @public +export type Reason = string; + +// @public +export type RecommendedSensitivityLabelUpdate = ProxyResource & { + op?: RecommendedSensitivityLabelUpdateKind; + schema?: string; + table?: string; + column?: string; +}; + +// @public +export type RecommendedSensitivityLabelUpdateKind = "enable" | "disable"; + +// @public +export interface RecommendedSensitivityLabelUpdateList { + // (undocumented) + operations?: RecommendedSensitivityLabelUpdate[]; +} + +// @public +export type RecoverableSqlPool = ProxyResource & { + readonly edition?: string; + readonly serviceLevelObjective?: string; + readonly elasticPoolName?: string; + readonly lastAvailableBackupDate?: Date; +}; + +// @public +export interface RecoverableSqlPoolListResult { + readonly nextLink?: string; + readonly value?: RecoverableSqlPool[]; +} + +// @public +export interface ReplaceAllFirewallRulesOperationResponse { + operationId?: string; +} + +// @public +export interface ReplaceAllIpFirewallRulesRequest { + ipFirewallRules?: { + [propertyName: string]: IpFirewallRuleProperties; + }; +} + +// @public +export type ReplicationLink = ProxyResource & { + readonly location?: string; + readonly isTerminationAllowed?: boolean; + readonly replicationMode?: string; + readonly partnerServer?: string; + readonly partnerDatabase?: string; + readonly partnerLocation?: string; + readonly role?: ReplicationRole; + readonly partnerRole?: ReplicationRole; + readonly startTime?: Date; + readonly percentComplete?: number; + readonly replicationState?: ReplicationState; +}; + +// @public +export interface ReplicationLinkListResult { + readonly nextLink?: string; + value?: ReplicationLink[]; +} + +// @public +export type ReplicationRole = "Primary" | "Secondary" | "NonReadableSecondary" | "Source" | "Copy"; + +// @public +export type ReplicationState = string; + +// @public +export interface Resource { + readonly id?: string; + readonly name?: string; + readonly type?: string; +} + +// @public +export type ResourceIdentityType = "None" | "SystemAssigned" | "SystemAssigned,UserAssigned"; + +// @public +export interface ResourceMoveDefinition { + id: string; +} + +// @public +export type ResourceProvisioningState = string; + +// @public +export type RestorableDroppedSqlPool = ProxyResource & { + readonly location?: string; + readonly databaseName?: string; + readonly edition?: string; + readonly maxSizeBytes?: string; + readonly serviceLevelObjective?: string; + readonly elasticPoolName?: string; + readonly creationDate?: Date; + readonly deletionDate?: Date; + readonly earliestRestoreDate?: Date; +}; + +// @public +export interface RestorableDroppedSqlPoolListResult { + value: RestorableDroppedSqlPool[]; +} + +// @public +export interface RestorableDroppedSqlPools { + get(resourceGroupName: string, workspaceName: string, restorableDroppedSqlPoolId: string, options?: RestorableDroppedSqlPoolsGetOptionalParams): Promise; + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: RestorableDroppedSqlPoolsListByWorkspaceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface RestorableDroppedSqlPoolsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RestorableDroppedSqlPoolsGetResponse = RestorableDroppedSqlPool; + +// @public +export interface RestorableDroppedSqlPoolsListByWorkspaceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type RestorableDroppedSqlPoolsListByWorkspaceResponse = RestorableDroppedSqlPoolListResult; + +// @public +export type RestorePoint = ProxyResource & { + readonly location?: string; + readonly restorePointType?: RestorePointType; + readonly earliestRestoreDate?: Date; + readonly restorePointCreationDate?: Date; + readonly restorePointLabel?: string; +}; + +// @public +export interface RestorePointListResult { + readonly nextLink?: string; + readonly value?: RestorePoint[]; +} + +// @public +export type RestorePointType = "CONTINUOUS" | "DISCRETE"; + +// @public +export interface SecretBase { + type: "SecureString"; +} + +// @public (undocumented) +export type SecretBaseUnion = SecretBase | SecureString; + +// @public +export type SecureString = SecretBase & { + type: "SecureString"; + value: string; +}; + +// @public +export type SecurityAlertPolicyName = string; + +// @public +export type SecurityAlertPolicyNameAutoGenerated = string; + +// @public +export type SecurityAlertPolicyState = "New" | "Enabled" | "Disabled"; + +// @public +export type SelfHostedIntegrationRuntime = IntegrationRuntime & { + type: "SelfHosted"; + linkedInfo?: LinkedIntegrationRuntimeTypeUnion; +}; + +// @public +export interface SelfHostedIntegrationRuntimeNode { + [property: string]: any; + readonly capabilities?: { + [propertyName: string]: string; + }; + readonly concurrentJobsLimit?: number; + readonly expiryTime?: Date; + readonly hostServiceUri?: string; + readonly isActiveDispatcher?: boolean; + readonly lastConnectTime?: Date; + readonly lastEndUpdateTime?: Date; + readonly lastStartTime?: Date; + readonly lastStartUpdateTime?: Date; + readonly lastStopTime?: Date; + readonly lastUpdateResult?: IntegrationRuntimeUpdateResult; + readonly machineName?: string; + readonly maxConcurrentJobs?: number; + readonly nodeName?: string; + readonly registerTime?: Date; + readonly status?: SelfHostedIntegrationRuntimeNodeStatus; + readonly version?: string; + readonly versionStatus?: string; +} + +// @public +export type SelfHostedIntegrationRuntimeNodeStatus = string; + +// @public +export type SelfHostedIntegrationRuntimeStatus = IntegrationRuntimeStatus & { + type: "SelfHosted"; + readonly createTime?: Date; + readonly taskQueueId?: string; + readonly nodeCommunicationChannelEncryptionMode?: string; + readonly internalChannelEncryption?: IntegrationRuntimeInternalChannelEncryptionMode; + readonly version?: string; + nodes?: SelfHostedIntegrationRuntimeNode[]; + readonly scheduledUpdateDate?: Date; + readonly updateDelayOffset?: string; + readonly localTimeZoneOffset?: string; + readonly capabilities?: { + [propertyName: string]: string; + }; + readonly serviceUrls?: string[]; + readonly autoUpdate?: IntegrationRuntimeAutoUpdate; + readonly versionStatus?: string; + links?: LinkedIntegrationRuntime[]; + readonly pushedVersion?: string; + readonly latestVersion?: string; + readonly autoUpdateETA?: Date; + serviceRegion?: string; + newerVersions?: string[]; +}; + +// @public +export type SensitivityLabel = ProxyResource & { + readonly managedBy?: string; + readonly schemaName?: string; + readonly tableName?: string; + readonly columnName?: string; + labelName?: string; + labelId?: string; + informationType?: string; + informationTypeId?: string; + readonly isDisabled?: boolean; + rank?: SensitivityLabelRank; +}; + +// @public +export interface SensitivityLabelListResult { + readonly nextLink?: string; + readonly value?: SensitivityLabel[]; +} + +// @public +export type SensitivityLabelRank = "None" | "Low" | "Medium" | "High" | "Critical"; + +// @public +export type SensitivityLabelSource = "current" | "recommended"; + +// @public +export type SensitivityLabelUpdate = ProxyResource & { + op?: SensitivityLabelUpdateKind; + schema?: string; + table?: string; + column?: string; + sensitivityLabel?: SensitivityLabel; +}; + +// @public +export type SensitivityLabelUpdateKind = "set" | "remove"; + +// @public +export interface SensitivityLabelUpdateList { + // (undocumented) + operations?: SensitivityLabelUpdate[]; +} + +// @public +export type ServerBlobAuditingPolicy = ProxyResource & { + state?: BlobAuditingPolicyState; + storageEndpoint?: string; + storageAccountAccessKey?: string; + retentionDays?: number; + auditActionsAndGroups?: string[]; + storageAccountSubscriptionId?: string; + isStorageSecondaryKeyInUse?: boolean; + isAzureMonitorTargetEnabled?: boolean; + queueDelayMs?: number; + isDevopsAuditEnabled?: boolean; +}; + +// @public +export interface ServerBlobAuditingPolicyListResult { + readonly nextLink?: string; + readonly value?: ServerBlobAuditingPolicy[]; +} + +// @public +export type ServerKeyType = string; + +// @public +export type ServerSecurityAlertPolicy = ProxyResource & { + state?: SecurityAlertPolicyState; + disabledAlerts?: string[]; + emailAddresses?: string[]; + emailAccountAdmins?: boolean; + storageEndpoint?: string; + storageAccountAccessKey?: string; + retentionDays?: number; + readonly creationTime?: Date; +}; + +// @public +export interface ServerSecurityAlertPolicyListResult { + readonly nextLink?: string; + readonly value?: ServerSecurityAlertPolicy[]; +} + +// @public +export interface ServerUsage { + readonly currentValue?: number; + readonly displayName?: string; + readonly limit?: number; + readonly name?: string; + readonly nextResetTime?: Date; + readonly resourceName?: string; + readonly unit?: string; +} + +// @public +export interface ServerUsageListResult { + readonly nextLink?: string; + value: ServerUsage[]; +} + +// @public +export type ServerVulnerabilityAssessment = ProxyResource & { + storageContainerPath?: string; + storageContainerSasKey?: string; + storageAccountAccessKey?: string; + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; +}; + +// @public +export interface ServerVulnerabilityAssessmentListResult { + readonly nextLink?: string; + readonly value?: ServerVulnerabilityAssessment[]; +} + +// @public +export interface Sku { + capacity?: number; + name?: string; + tier?: string; +} + +// @public +export interface SkuDescription { + readonly locationInfo?: SkuLocationInfoItem[]; + readonly locations?: string[]; + readonly name?: string; + readonly resourceType?: string; + readonly restrictions?: Record[]; + readonly size?: string; +} + +// @public +export interface SkuDescriptionList { + readonly value?: SkuDescription[]; +} + +// @public +export interface SkuLocationInfoItem { + location: string; + zones?: string[]; +} + +// @public +export type SkuName = string; + +// @public +export type SkuSize = string; + +// @public +export interface SparkConfigProperties { + configurationType?: ConfigurationType; + content?: string; + filename?: string; + readonly time?: Date; +} + +// @public +export interface SparkConfiguration { + get(resourceGroupName: string, sparkConfigurationName: string, workspaceName: string, options?: SparkConfigurationGetOptionalParams): Promise; +} + +// @public +export interface SparkConfigurationGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SparkConfigurationGetResponse = SparkConfigurationResource; + +// @public +export interface SparkConfigurationListResponse { + nextLink?: string; + value: SparkConfigurationResource[]; +} + +// @public +export type SparkConfigurationResource = SubResource & { + description?: string; + configs: { + [propertyName: string]: string; + }; + annotations?: string[]; + notes?: string; + createdBy?: string; + created?: Date; +}; + +// @public +export interface SparkConfigurations { + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: SparkConfigurationsListByWorkspaceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SparkConfigurationsListByWorkspaceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SparkConfigurationsListByWorkspaceNextResponse = SparkConfigurationListResponse; + +// @public +export interface SparkConfigurationsListByWorkspaceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SparkConfigurationsListByWorkspaceResponse = SparkConfigurationListResponse; + +// @public +export type SqlPool = TrackedResource & { + sku?: Sku; + maxSizeBytes?: number; + collation?: string; + sourceDatabaseId?: string; + recoverableDatabaseId?: string; + provisioningState?: string; + readonly status?: string; + restorePointInTime?: Date; + createMode?: CreateMode; + readonly creationDate?: Date; + storageAccountType?: StorageAccountType; + sourceDatabaseDeletionDate?: Date; +}; + +// @public +export interface SqlPoolBlobAuditingPolicies { + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: SqlPoolBlobAuditingPolicy, options?: SqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolBlobAuditingPoliciesGetOptionalParams): Promise; + listBySqlPool(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolBlobAuditingPoliciesCreateOrUpdateResponse = SqlPoolBlobAuditingPolicy; + +// @public +export interface SqlPoolBlobAuditingPoliciesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolBlobAuditingPoliciesGetResponse = SqlPoolBlobAuditingPolicy; + +// @public +export interface SqlPoolBlobAuditingPoliciesListBySqlPoolNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolBlobAuditingPoliciesListBySqlPoolNextResponse = SqlPoolBlobAuditingPolicyListResult; + +// @public +export interface SqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolBlobAuditingPoliciesListBySqlPoolResponse = SqlPoolBlobAuditingPolicyListResult; + +// @public +export type SqlPoolBlobAuditingPolicy = ProxyResource & { + readonly kind?: string; + state?: BlobAuditingPolicyState; + storageEndpoint?: string; + storageAccountAccessKey?: string; + retentionDays?: number; + auditActionsAndGroups?: string[]; + storageAccountSubscriptionId?: string; + isStorageSecondaryKeyInUse?: boolean; + isAzureMonitorTargetEnabled?: boolean; +}; + +// @public +export interface SqlPoolBlobAuditingPolicyListResult { + readonly nextLink?: string; + readonly value?: SqlPoolBlobAuditingPolicy[]; +} + +// @public +export interface SqlPoolBlobAuditingPolicySqlPoolOperationListResult { + readonly nextLink?: string; + readonly value?: SqlPoolOperation[]; +} + +// @public +export type SqlPoolColumn = ProxyResource & { + columnType?: ColumnDataType; + readonly isComputed?: boolean; +}; + +// @public +export interface SqlPoolColumnListResult { + readonly nextLink?: string; + readonly value?: SqlPoolColumn[]; +} + +// @public +export interface SqlPoolColumns { + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, options?: SqlPoolColumnsGetOptionalParams): Promise; +} + +// @public +export interface SqlPoolColumnsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolColumnsGetResponse = SqlPoolColumn; + +// @public +export interface SqlPoolConnectionPolicies { + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, connectionPolicyName: ConnectionPolicyName, options?: SqlPoolConnectionPoliciesGetOptionalParams): Promise; +} + +// @public +export interface SqlPoolConnectionPoliciesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolConnectionPoliciesGetResponse = SqlPoolConnectionPolicy; + +// @public +export type SqlPoolConnectionPolicy = ProxyResource & { + readonly kind?: string; + readonly location?: string; + securityEnabledAccess?: string; + proxyDnsName?: string; + proxyPort?: string; + visibility?: string; + useServerDefault?: string; + redirectionState?: string; + state?: string; +}; + +// @public +export interface SqlPoolDataWarehouseUserActivities { + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, dataWarehouseUserActivityName: DataWarehouseUserActivityName, options?: SqlPoolDataWarehouseUserActivitiesGetOptionalParams): Promise; +} + +// @public +export interface SqlPoolDataWarehouseUserActivitiesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolDataWarehouseUserActivitiesGetResponse = DataWarehouseUserActivities; + +// @public +export interface SqlPoolGeoBackupPolicies { + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, geoBackupPolicyName: GeoBackupPolicyName, parameters: GeoBackupPolicy, options?: SqlPoolGeoBackupPoliciesCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, geoBackupPolicyName: GeoBackupPolicyName, options?: SqlPoolGeoBackupPoliciesGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolGeoBackupPoliciesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SqlPoolGeoBackupPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolGeoBackupPoliciesCreateOrUpdateResponse = GeoBackupPolicy; + +// @public +export interface SqlPoolGeoBackupPoliciesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolGeoBackupPoliciesGetResponse = GeoBackupPolicy; + +// @public +export interface SqlPoolGeoBackupPoliciesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolGeoBackupPoliciesListResponse = GeoBackupPolicyListResult; + +// @public +export interface SqlPoolInfoListResult { + nextLink?: string; + value?: SqlPool[]; +} + +// @public +export interface SqlPoolMaintenanceWindowOptions { + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, maintenanceWindowOptionsName: string, options?: SqlPoolMaintenanceWindowOptionsGetOptionalParams): Promise; +} + +// @public +export interface SqlPoolMaintenanceWindowOptionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolMaintenanceWindowOptionsGetResponse = MaintenanceWindowOptions; + +// @public +export interface SqlPoolMaintenanceWindows { + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, maintenanceWindowName: string, parameters: MaintenanceWindows, options?: SqlPoolMaintenanceWindowsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, maintenanceWindowName: string, options?: SqlPoolMaintenanceWindowsGetOptionalParams): Promise; +} + +// @public +export interface SqlPoolMaintenanceWindowsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface SqlPoolMaintenanceWindowsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolMaintenanceWindowsGetResponse = MaintenanceWindows; + +// @public +export interface SqlPoolMetadataSyncConfigs { + create(resourceGroupName: string, workspaceName: string, sqlPoolName: string, metadataSyncConfiguration: MetadataSyncConfig, options?: SqlPoolMetadataSyncConfigsCreateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolMetadataSyncConfigsGetOptionalParams): Promise; +} + +// @public +export interface SqlPoolMetadataSyncConfigsCreateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolMetadataSyncConfigsCreateResponse = MetadataSyncConfig; + +// @public +export interface SqlPoolMetadataSyncConfigsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolMetadataSyncConfigsGetResponse = MetadataSyncConfig; + +// @public +export type SqlPoolOperation = ProxyResource & { + readonly databaseName?: string; + readonly operation?: string; + readonly operationFriendlyName?: string; + readonly percentComplete?: number; + readonly serverName?: string; + readonly startTime?: Date; + readonly state?: ManagementOperationState; + readonly errorCode?: number; + readonly errorDescription?: string; + readonly errorSeverity?: number; + readonly isUserError?: boolean; + readonly estimatedCompletionTime?: Date; + readonly description?: string; + readonly isCancellable?: boolean; +}; + +// @public +export interface SqlPoolOperationResults { + getLocationHeaderResult(resourceGroupName: string, workspaceName: string, sqlPoolName: string, operationId: string, options?: SqlPoolOperationResultsGetLocationHeaderResultOptionalParams): Promise; +} + +// @public +export interface SqlPoolOperationResultsGetLocationHeaderResultOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolOperationResultsGetLocationHeaderResultResponse = Record; + +// @public +export interface SqlPoolOperations { + list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolOperationsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SqlPoolOperationsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolOperationsListNextResponse = SqlPoolBlobAuditingPolicySqlPoolOperationListResult; + +// @public +export interface SqlPoolOperationsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolOperationsListResponse = SqlPoolBlobAuditingPolicySqlPoolOperationListResult; + +// @public +export interface SqlPoolPatchInfo { + collation?: string; + createMode?: CreateMode; + readonly creationDate?: Date; + location?: string; + maxSizeBytes?: number; + provisioningState?: string; + recoverableDatabaseId?: string; + restorePointInTime?: Date; + sku?: Sku; + sourceDatabaseDeletionDate?: Date; + sourceDatabaseId?: string; + readonly status?: string; + storageAccountType?: StorageAccountType; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export interface SqlPoolRecommendedSensitivityLabels { + update(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: RecommendedSensitivityLabelUpdateList, options?: SqlPoolRecommendedSensitivityLabelsUpdateOptionalParams): Promise; +} + +// @public +export interface SqlPoolRecommendedSensitivityLabelsUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface SqlPoolReplicationLinks { + getByName(resourceGroupName: string, workspaceName: string, sqlPoolName: string, linkId: string, options?: SqlPoolReplicationLinksGetByNameOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolReplicationLinksListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SqlPoolReplicationLinksGetByNameOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolReplicationLinksGetByNameResponse = ReplicationLink; + +// @public +export interface SqlPoolReplicationLinksListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolReplicationLinksListNextResponse = ReplicationLinkListResult; + +// @public +export interface SqlPoolReplicationLinksListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolReplicationLinksListResponse = ReplicationLinkListResult; + +// @public +export interface SqlPoolRestorePoints { + beginCreate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: CreateSqlPoolRestorePointDefinition, options?: SqlPoolRestorePointsCreateOptionalParams): Promise, SqlPoolRestorePointsCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: CreateSqlPoolRestorePointDefinition, options?: SqlPoolRestorePointsCreateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, sqlPoolName: string, restorePointName: string, options?: SqlPoolRestorePointsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, restorePointName: string, options?: SqlPoolRestorePointsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolRestorePointsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SqlPoolRestorePointsCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type SqlPoolRestorePointsCreateResponse = RestorePoint; + +// @public +export interface SqlPoolRestorePointsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface SqlPoolRestorePointsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolRestorePointsGetResponse = RestorePoint; + +// @public +export interface SqlPoolRestorePointsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolRestorePointsListNextResponse = RestorePointListResult; + +// @public +export interface SqlPoolRestorePointsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolRestorePointsListResponse = RestorePointListResult; + +// @public +export interface SqlPools { + beginCreate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, sqlPoolInfo: SqlPool, options?: SqlPoolsCreateOptionalParams): Promise, SqlPoolsCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, sqlPoolInfo: SqlPool, options?: SqlPoolsCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolsDeleteOptionalParams): Promise, SqlPoolsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolsDeleteOptionalParams): Promise; + beginPause(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolsPauseOptionalParams): Promise, SqlPoolsPauseResponse>>; + beginPauseAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolsPauseOptionalParams): Promise; + beginResume(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolsResumeOptionalParams): Promise, SqlPoolsResumeResponse>>; + beginResumeAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolsResumeOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolsGetOptionalParams): Promise; + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: SqlPoolsListByWorkspaceOptionalParams): PagedAsyncIterableIterator; + rename(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: ResourceMoveDefinition, options?: SqlPoolsRenameOptionalParams): Promise; + update(resourceGroupName: string, workspaceName: string, sqlPoolName: string, sqlPoolInfo: SqlPoolPatchInfo, options?: SqlPoolsUpdateOptionalParams): Promise; +} + +// @public +export type SqlPoolSchema = ProxyResource & {}; + +// @public +export interface SqlPoolSchemaListResult { + readonly nextLink?: string; + readonly value?: SqlPoolSchema[]; +} + +// @public +export interface SqlPoolSchemas { + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, options?: SqlPoolSchemasGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolSchemasListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SqlPoolSchemasGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolSchemasGetResponse = SqlPoolSchema; + +// @public +export interface SqlPoolSchemasListNextOptionalParams extends coreClient.OperationOptions { + filter?: string; +} + +// @public +export type SqlPoolSchemasListNextResponse = SqlPoolSchemaListResult; + +// @public +export interface SqlPoolSchemasListOptionalParams extends coreClient.OperationOptions { + filter?: string; +} + +// @public +export type SqlPoolSchemasListResponse = SqlPoolSchemaListResult; + +// @public +export interface SqlPoolsCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type SqlPoolsCreateResponse = SqlPool; + +// @public +export interface SqlPoolsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type SqlPoolsDeleteResponse = Record; + +// @public +export interface SqlPoolSecurityAlertPolicies { + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: SqlPoolSecurityAlertPolicy, options?: SqlPoolSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, securityAlertPolicyName: SecurityAlertPolicyName, options?: SqlPoolSecurityAlertPoliciesGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolSecurityAlertPoliciesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SqlPoolSecurityAlertPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolSecurityAlertPoliciesCreateOrUpdateResponse = SqlPoolSecurityAlertPolicy; + +// @public +export interface SqlPoolSecurityAlertPoliciesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolSecurityAlertPoliciesGetResponse = SqlPoolSecurityAlertPolicy; + +// @public +export interface SqlPoolSecurityAlertPoliciesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolSecurityAlertPoliciesListNextResponse = ListSqlPoolSecurityAlertPolicies; + +// @public +export interface SqlPoolSecurityAlertPoliciesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolSecurityAlertPoliciesListResponse = ListSqlPoolSecurityAlertPolicies; + +// @public +export type SqlPoolSecurityAlertPolicy = ProxyResource & { + state?: SecurityAlertPolicyState; + disabledAlerts?: string[]; + emailAddresses?: string[]; + emailAccountAdmins?: boolean; + storageEndpoint?: string; + storageAccountAccessKey?: string; + retentionDays?: number; + readonly creationTime?: Date; +}; + +// @public +export interface SqlPoolSensitivityLabels { + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, parameters: SensitivityLabel, options?: SqlPoolSensitivityLabelsCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, options?: SqlPoolSensitivityLabelsDeleteOptionalParams): Promise; + disableRecommendation(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, options?: SqlPoolSensitivityLabelsDisableRecommendationOptionalParams): Promise; + enableRecommendation(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, options?: SqlPoolSensitivityLabelsEnableRecommendationOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, sensitivityLabelSource: SensitivityLabelSource, options?: SqlPoolSensitivityLabelsGetOptionalParams): Promise; + listCurrent(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolSensitivityLabelsListCurrentOptionalParams): PagedAsyncIterableIterator; + listRecommended(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolSensitivityLabelsListRecommendedOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: SensitivityLabelUpdateList, options?: SqlPoolSensitivityLabelsUpdateOptionalParams): Promise; +} + +// @public +export interface SqlPoolSensitivityLabelsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; + +// @public +export interface SqlPoolSensitivityLabelsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface SqlPoolSensitivityLabelsDisableRecommendationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface SqlPoolSensitivityLabelsEnableRecommendationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface SqlPoolSensitivityLabelsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolSensitivityLabelsGetResponse = SensitivityLabel; + +// @public +export interface SqlPoolSensitivityLabelsListCurrentNextOptionalParams extends coreClient.OperationOptions { + filter?: string; +} + +// @public +export type SqlPoolSensitivityLabelsListCurrentNextResponse = SensitivityLabelListResult; + +// @public +export interface SqlPoolSensitivityLabelsListCurrentOptionalParams extends coreClient.OperationOptions { + filter?: string; +} + +// @public +export type SqlPoolSensitivityLabelsListCurrentResponse = SensitivityLabelListResult; + +// @public +export interface SqlPoolSensitivityLabelsListRecommendedNextOptionalParams extends coreClient.OperationOptions { + filter?: string; + includeDisabledRecommendations?: boolean; + skipToken?: string; +} + +// @public +export type SqlPoolSensitivityLabelsListRecommendedNextResponse = SensitivityLabelListResult; + +// @public +export interface SqlPoolSensitivityLabelsListRecommendedOptionalParams extends coreClient.OperationOptions { + filter?: string; + includeDisabledRecommendations?: boolean; + skipToken?: string; +} + +// @public +export type SqlPoolSensitivityLabelsListRecommendedResponse = SensitivityLabelListResult; + +// @public +export interface SqlPoolSensitivityLabelsUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface SqlPoolsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolsGetResponse = SqlPool; + +// @public +export interface SqlPoolsListByWorkspaceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolsListByWorkspaceNextResponse = SqlPoolInfoListResult; + +// @public +export interface SqlPoolsListByWorkspaceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolsListByWorkspaceResponse = SqlPoolInfoListResult; + +// @public +export interface SqlPoolsPauseOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type SqlPoolsPauseResponse = Record; + +// @public +export interface SqlPoolsRenameOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface SqlPoolsResumeOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type SqlPoolsResumeResponse = Record; + +// @public +export interface SqlPoolsUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolsUpdateResponse = SqlPool; + +// @public +export type SqlPoolTable = ProxyResource & {}; + +// @public +export interface SqlPoolTableColumns { + listByTableName(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, options?: SqlPoolTableColumnsListByTableNameOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SqlPoolTableColumnsListByTableNameNextOptionalParams extends coreClient.OperationOptions { + filter?: string; +} + +// @public +export type SqlPoolTableColumnsListByTableNameNextResponse = SqlPoolColumnListResult; + +// @public +export interface SqlPoolTableColumnsListByTableNameOptionalParams extends coreClient.OperationOptions { + filter?: string; +} + +// @public +export type SqlPoolTableColumnsListByTableNameResponse = SqlPoolColumnListResult; + +// @public +export interface SqlPoolTableListResult { + readonly nextLink?: string; + readonly value?: SqlPoolTable[]; +} + +// @public +export interface SqlPoolTables { + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, options?: SqlPoolTablesGetOptionalParams): Promise; + listBySchema(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, options?: SqlPoolTablesListBySchemaOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SqlPoolTablesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolTablesGetResponse = SqlPoolTable; + +// @public +export interface SqlPoolTablesListBySchemaNextOptionalParams extends coreClient.OperationOptions { + filter?: string; +} + +// @public +export type SqlPoolTablesListBySchemaNextResponse = SqlPoolTableListResult; + +// @public +export interface SqlPoolTablesListBySchemaOptionalParams extends coreClient.OperationOptions { + filter?: string; +} + +// @public +export type SqlPoolTablesListBySchemaResponse = SqlPoolTableListResult; + +// @public +export interface SqlPoolTransparentDataEncryptions { + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, transparentDataEncryptionName: TransparentDataEncryptionName, parameters: TransparentDataEncryption, options?: SqlPoolTransparentDataEncryptionsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, transparentDataEncryptionName: TransparentDataEncryptionName, options?: SqlPoolTransparentDataEncryptionsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolTransparentDataEncryptionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SqlPoolTransparentDataEncryptionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolTransparentDataEncryptionsCreateOrUpdateResponse = TransparentDataEncryption; + +// @public +export interface SqlPoolTransparentDataEncryptionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolTransparentDataEncryptionsGetResponse = TransparentDataEncryption; + +// @public +export interface SqlPoolTransparentDataEncryptionsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolTransparentDataEncryptionsListNextResponse = TransparentDataEncryptionListResult; + +// @public +export interface SqlPoolTransparentDataEncryptionsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolTransparentDataEncryptionsListResponse = TransparentDataEncryptionListResult; + +// @public +export interface SqlPoolUsage { + readonly currentValue?: number; + readonly displayName?: string; + readonly limit?: number; + readonly name?: string; + readonly nextResetTime?: Date; + readonly resourceName?: string; + readonly unit?: string; +} + +// @public +export interface SqlPoolUsageListResult { + readonly nextLink?: string; + value: SqlPoolUsage[]; +} + +// @public +export interface SqlPoolUsages { + list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolUsagesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SqlPoolUsagesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolUsagesListNextResponse = SqlPoolUsageListResult; + +// @public +export interface SqlPoolUsagesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolUsagesListResponse = SqlPoolUsageListResult; + +// @public +export type SqlPoolVulnerabilityAssessment = ProxyResource & { + storageContainerPath?: string; + storageContainerSasKey?: string; + storageAccountAccessKey?: string; + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; +}; + +// @public +export interface SqlPoolVulnerabilityAssessmentListResult { + readonly nextLink?: string; + readonly value?: SqlPoolVulnerabilityAssessment[]; +} + +// @public +export type SqlPoolVulnerabilityAssessmentRuleBaseline = ProxyResource & { + baselineResults?: SqlPoolVulnerabilityAssessmentRuleBaselineItem[]; +}; + +// @public +export interface SqlPoolVulnerabilityAssessmentRuleBaselineItem { + result: string[]; +} + +// @public +export interface SqlPoolVulnerabilityAssessmentRuleBaselines { + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, parameters: SqlPoolVulnerabilityAssessmentRuleBaseline, options?: SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, options?: SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, ruleId: string, baselineName: VulnerabilityAssessmentPolicyBaselineName, options?: SqlPoolVulnerabilityAssessmentRuleBaselinesGetOptionalParams): Promise; +} + +// @public +export interface SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = SqlPoolVulnerabilityAssessmentRuleBaseline; + +// @public +export interface SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface SqlPoolVulnerabilityAssessmentRuleBaselinesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolVulnerabilityAssessmentRuleBaselinesGetResponse = SqlPoolVulnerabilityAssessmentRuleBaseline; + +// @public +export interface SqlPoolVulnerabilityAssessments { + createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, parameters: SqlPoolVulnerabilityAssessment, options?: SqlPoolVulnerabilityAssessmentsCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: SqlPoolVulnerabilityAssessmentsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: SqlPoolVulnerabilityAssessmentsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolVulnerabilityAssessmentsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SqlPoolVulnerabilityAssessmentScans { + beginInitiateScan(resourceGroupName: string, workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, options?: SqlPoolVulnerabilityAssessmentScansInitiateScanOptionalParams): Promise, void>>; + beginInitiateScanAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, options?: SqlPoolVulnerabilityAssessmentScansInitiateScanOptionalParams): Promise; + export(resourceGroupName: string, workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, options?: SqlPoolVulnerabilityAssessmentScansExportOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, scanId: string, options?: SqlPoolVulnerabilityAssessmentScansGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: SqlPoolVulnerabilityAssessmentScansListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export type SqlPoolVulnerabilityAssessmentScansExport = ProxyResource & { + readonly exportedReportLocation?: string; +}; + +// @public +export interface SqlPoolVulnerabilityAssessmentScansExportOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolVulnerabilityAssessmentScansExportResponse = SqlPoolVulnerabilityAssessmentScansExport; + +// @public +export interface SqlPoolVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord; + +// @public +export interface SqlPoolVulnerabilityAssessmentScansInitiateScanOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface SqlPoolVulnerabilityAssessmentScansListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolVulnerabilityAssessmentScansListNextResponse = VulnerabilityAssessmentScanRecordListResult; + +// @public +export interface SqlPoolVulnerabilityAssessmentScansListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolVulnerabilityAssessmentScansListResponse = VulnerabilityAssessmentScanRecordListResult; + +// @public +export interface SqlPoolVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolVulnerabilityAssessmentsCreateOrUpdateResponse = SqlPoolVulnerabilityAssessment; + +// @public +export interface SqlPoolVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface SqlPoolVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolVulnerabilityAssessmentsGetResponse = SqlPoolVulnerabilityAssessment; + +// @public +export interface SqlPoolVulnerabilityAssessmentsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolVulnerabilityAssessmentsListNextResponse = SqlPoolVulnerabilityAssessmentListResult; + +// @public +export interface SqlPoolVulnerabilityAssessmentsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolVulnerabilityAssessmentsListResponse = SqlPoolVulnerabilityAssessmentListResult; + +// @public +export interface SqlPoolWorkloadClassifier { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, parameters: WorkloadClassifier, options?: SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams): Promise, SqlPoolWorkloadClassifierCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, parameters: WorkloadClassifier, options?: SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, options?: SqlPoolWorkloadClassifierDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, options?: SqlPoolWorkloadClassifierDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, options?: SqlPoolWorkloadClassifierGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, options?: SqlPoolWorkloadClassifierListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type SqlPoolWorkloadClassifierCreateOrUpdateResponse = WorkloadClassifier; + +// @public +export interface SqlPoolWorkloadClassifierDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface SqlPoolWorkloadClassifierGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolWorkloadClassifierGetResponse = WorkloadClassifier; + +// @public +export interface SqlPoolWorkloadClassifierListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolWorkloadClassifierListNextResponse = WorkloadClassifierListResult; + +// @public +export interface SqlPoolWorkloadClassifierListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolWorkloadClassifierListResponse = WorkloadClassifierListResult; + +// @public +export interface SqlPoolWorkloadGroup { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, parameters: WorkloadGroup, options?: SqlPoolWorkloadGroupCreateOrUpdateOptionalParams): Promise, SqlPoolWorkloadGroupCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, parameters: WorkloadGroup, options?: SqlPoolWorkloadGroupCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, options?: SqlPoolWorkloadGroupDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, options?: SqlPoolWorkloadGroupDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, options?: SqlPoolWorkloadGroupGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: SqlPoolWorkloadGroupListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SqlPoolWorkloadGroupCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type SqlPoolWorkloadGroupCreateOrUpdateResponse = WorkloadGroup; + +// @public +export interface SqlPoolWorkloadGroupDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface SqlPoolWorkloadGroupGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolWorkloadGroupGetResponse = WorkloadGroup; + +// @public +export interface SqlPoolWorkloadGroupListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolWorkloadGroupListNextResponse = WorkloadGroupListResult; + +// @public +export interface SqlPoolWorkloadGroupListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SqlPoolWorkloadGroupListResponse = WorkloadGroupListResult; + +// @public +export type SsisEnvironment = SsisObjectMetadata & { + type: "Environment"; + folderId?: number; + variables?: SsisVariable[]; +}; + +// @public +export interface SsisEnvironmentReference { + environmentFolderName?: string; + environmentName?: string; + id?: number; + referenceType?: string; +} + +// @public +export type SsisFolder = SsisObjectMetadata & { + type: "Folder"; +}; + +// @public +export interface SsisObjectMetadata { + description?: string; + id?: number; + name?: string; + type: "Folder" | "Project" | "Package" | "Environment"; +} + +// @public +export interface SsisObjectMetadataListResponse { + nextLink?: string; + value?: SsisObjectMetadataUnion[]; +} + +// @public +export interface SsisObjectMetadataStatusResponse { + error?: string; + name?: string; + properties?: string; + status?: string; +} + +// @public +export type SsisObjectMetadataType = string; + +// @public (undocumented) +export type SsisObjectMetadataUnion = SsisObjectMetadata | SsisFolder | SsisProject | SsisPackage | SsisEnvironment; + +// @public +export type SsisPackage = SsisObjectMetadata & { + type: "Package"; + folderId?: number; + projectVersion?: number; + projectId?: number; + parameters?: SsisParameter[]; +}; + +// @public +export interface SsisParameter { + dataType?: string; + defaultValue?: string; + description?: string; + designDefaultValue?: string; + id?: number; + name?: string; + required?: boolean; + sensitive?: boolean; + sensitiveDefaultValue?: string; + valueSet?: boolean; + valueType?: string; + variable?: string; +} + +// @public +export type SsisProject = SsisObjectMetadata & { + type: "Project"; + folderId?: number; + version?: number; + environmentRefs?: SsisEnvironmentReference[]; + parameters?: SsisParameter[]; +}; + +// @public +export interface SsisVariable { + dataType?: string; + description?: string; + id?: number; + name?: string; + sensitive?: boolean; + sensitiveValue?: string; + value?: string; +} + +// @public +export type State = string; + +// @public +export type StateValue = string; + +// @public +export type StorageAccountType = string; + +// @public +export type SubResource = AzureEntityResource & {}; + +// @public (undocumented) +export class SynapseManagementClient extends coreClient.ServiceClient { + // (undocumented) + $host: string; + constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: SynapseManagementClientOptionalParams); + // (undocumented) + azureADOnlyAuthentications: AzureADOnlyAuthentications; + // (undocumented) + bigDataPools: BigDataPools; + // (undocumented) + dataMaskingPolicies: DataMaskingPolicies; + // (undocumented) + dataMaskingRules: DataMaskingRules; + // (undocumented) + extendedSqlPoolBlobAuditingPolicies: ExtendedSqlPoolBlobAuditingPolicies; + // (undocumented) + integrationRuntimeAuthKeysOperations: IntegrationRuntimeAuthKeysOperations; + // (undocumented) + integrationRuntimeConnectionInfos: IntegrationRuntimeConnectionInfos; + // (undocumented) + integrationRuntimeCredentials: IntegrationRuntimeCredentials; + // (undocumented) + integrationRuntimeMonitoringDataOperations: IntegrationRuntimeMonitoringDataOperations; + // (undocumented) + integrationRuntimeNodeIpAddressOperations: IntegrationRuntimeNodeIpAddressOperations; + // (undocumented) + integrationRuntimeNodes: IntegrationRuntimeNodes; + // (undocumented) + integrationRuntimeObjectMetadata: IntegrationRuntimeObjectMetadata; + // (undocumented) + integrationRuntimes: IntegrationRuntimes; + // (undocumented) + integrationRuntimeStatusOperations: IntegrationRuntimeStatusOperations; + // (undocumented) + ipFirewallRules: IpFirewallRules; + // (undocumented) + keys: Keys; + // (undocumented) + kustoOperations: KustoOperations; + // (undocumented) + kustoPoolAttachedDatabaseConfigurations: KustoPoolAttachedDatabaseConfigurations; + // (undocumented) + kustoPoolChildResource: KustoPoolChildResource; + // (undocumented) + kustoPoolDatabasePrincipalAssignments: KustoPoolDatabasePrincipalAssignments; + // (undocumented) + kustoPoolDatabases: KustoPoolDatabases; + // (undocumented) + kustoPoolDataConnections: KustoPoolDataConnections; + // (undocumented) + kustoPoolPrincipalAssignments: KustoPoolPrincipalAssignments; + // (undocumented) + kustoPools: KustoPools; + // (undocumented) + libraries: Libraries; + // (undocumented) + library: Library; + // (undocumented) + operations: Operations; + // (undocumented) + privateEndpointConnections: PrivateEndpointConnections; + // (undocumented) + privateEndpointConnectionsPrivateLinkHub: PrivateEndpointConnectionsPrivateLinkHub; + // (undocumented) + privateLinkHubPrivateLinkResources: PrivateLinkHubPrivateLinkResources; + // (undocumented) + privateLinkHubs: PrivateLinkHubs; + // (undocumented) + privateLinkResources: PrivateLinkResources; + // (undocumented) + restorableDroppedSqlPools: RestorableDroppedSqlPools; + // (undocumented) + sparkConfiguration: SparkConfiguration; + // (undocumented) + sparkConfigurations: SparkConfigurations; + // (undocumented) + sqlPoolBlobAuditingPolicies: SqlPoolBlobAuditingPolicies; + // (undocumented) + sqlPoolColumns: SqlPoolColumns; + // (undocumented) + sqlPoolConnectionPolicies: SqlPoolConnectionPolicies; + // (undocumented) + sqlPoolDataWarehouseUserActivities: SqlPoolDataWarehouseUserActivities; + // (undocumented) + sqlPoolGeoBackupPolicies: SqlPoolGeoBackupPolicies; + // (undocumented) + sqlPoolMaintenanceWindowOptions: SqlPoolMaintenanceWindowOptions; + // (undocumented) + sqlPoolMaintenanceWindows: SqlPoolMaintenanceWindows; + // (undocumented) + sqlPoolMetadataSyncConfigs: SqlPoolMetadataSyncConfigs; + // (undocumented) + sqlPoolOperationResults: SqlPoolOperationResults; + // (undocumented) + sqlPoolOperations: SqlPoolOperations; + // (undocumented) + sqlPoolRecommendedSensitivityLabels: SqlPoolRecommendedSensitivityLabels; + // (undocumented) + sqlPoolReplicationLinks: SqlPoolReplicationLinks; + // (undocumented) + sqlPoolRestorePoints: SqlPoolRestorePoints; + // (undocumented) + sqlPools: SqlPools; + // (undocumented) + sqlPoolSchemas: SqlPoolSchemas; + // (undocumented) + sqlPoolSecurityAlertPolicies: SqlPoolSecurityAlertPolicies; + // (undocumented) + sqlPoolSensitivityLabels: SqlPoolSensitivityLabels; + // (undocumented) + sqlPoolTableColumns: SqlPoolTableColumns; + // (undocumented) + sqlPoolTables: SqlPoolTables; + // (undocumented) + sqlPoolTransparentDataEncryptions: SqlPoolTransparentDataEncryptions; + // (undocumented) + sqlPoolUsages: SqlPoolUsages; + // (undocumented) + sqlPoolVulnerabilityAssessmentRuleBaselines: SqlPoolVulnerabilityAssessmentRuleBaselines; + // (undocumented) + sqlPoolVulnerabilityAssessments: SqlPoolVulnerabilityAssessments; + // (undocumented) + sqlPoolVulnerabilityAssessmentScans: SqlPoolVulnerabilityAssessmentScans; + // (undocumented) + sqlPoolWorkloadClassifier: SqlPoolWorkloadClassifier; + // (undocumented) + sqlPoolWorkloadGroup: SqlPoolWorkloadGroup; + // (undocumented) + subscriptionId: string; + // (undocumented) + workspaceAadAdmins: WorkspaceAadAdmins; + // (undocumented) + workspaceManagedIdentitySqlControlSettings: WorkspaceManagedIdentitySqlControlSettings; + // (undocumented) + workspaceManagedSqlServerBlobAuditingPolicies: WorkspaceManagedSqlServerBlobAuditingPolicies; + // (undocumented) + workspaceManagedSqlServerEncryptionProtector: WorkspaceManagedSqlServerEncryptionProtector; + // (undocumented) + workspaceManagedSqlServerExtendedBlobAuditingPolicies: WorkspaceManagedSqlServerExtendedBlobAuditingPolicies; + // (undocumented) + workspaceManagedSqlServerRecoverableSqlPools: WorkspaceManagedSqlServerRecoverableSqlPools; + // (undocumented) + workspaceManagedSqlServerSecurityAlertPolicy: WorkspaceManagedSqlServerSecurityAlertPolicy; + // (undocumented) + workspaceManagedSqlServerUsages: WorkspaceManagedSqlServerUsages; + // (undocumented) + workspaceManagedSqlServerVulnerabilityAssessments: WorkspaceManagedSqlServerVulnerabilityAssessments; + // (undocumented) + workspaces: Workspaces; + // (undocumented) + workspaceSqlAadAdmins: WorkspaceSqlAadAdmins; +} + +// @public +export interface SynapseManagementClientOptionalParams extends coreClient.ServiceClientOptions { + $host?: string; + endpoint?: string; +} + +// @public +export interface SystemData { + createdAt?: Date; + createdBy?: string; + createdByType?: CreatedByType; + lastModifiedAt?: Date; + lastModifiedBy?: string; + lastModifiedByType?: CreatedByType; +} + +// @public +export interface TableLevelSharingProperties { + externalTablesToExclude?: string[]; + externalTablesToInclude?: string[]; + materializedViewsToExclude?: string[]; + materializedViewsToInclude?: string[]; + tablesToExclude?: string[]; + tablesToInclude?: string[]; +} + +// @public +export interface TopQueries { + readonly aggregationFunction?: QueryAggregationFunction; + readonly executionType?: QueryExecutionType; + readonly intervalType?: string; + readonly numberOfTopQueries?: number; + readonly observationEndTime?: Date; + readonly observationStartTime?: Date; + readonly observedMetric?: QueryObservedMetricType; + readonly queries?: QueryStatistic[]; +} + +// @public +export interface TopQueriesListResult { + value: TopQueries[]; +} + +// @public +export type TrackedResource = Resource & { + tags?: { + [propertyName: string]: string; + }; + location: string; +}; + +// @public +export type TransparentDataEncryption = ProxyResource & { + readonly location?: string; + status?: TransparentDataEncryptionStatus; +}; + +// @public +export interface TransparentDataEncryptionListResult { + readonly nextLink?: string; + readonly value?: TransparentDataEncryption[]; +} + +// @public +export type TransparentDataEncryptionName = string; + +// @public +export type TransparentDataEncryptionStatus = "Enabled" | "Disabled"; + +// @public +export type Type = "Microsoft.Synapse/workspaces/kustoPools/databases" | "Microsoft.Synapse/workspaces/kustoPools/attachedDatabaseConfigurations"; + +// @public +export interface UpdateIntegrationRuntimeNodeRequest { + concurrentJobsLimit?: number; +} + +// @public +export interface UpdateIntegrationRuntimeRequest { + autoUpdate?: IntegrationRuntimeAutoUpdate; + updateDelayOffset?: string; +} + +// @public +export interface UserAssignedManagedIdentity { + readonly clientId?: string; + readonly principalId?: string; +} + +// @public +export interface VirtualNetworkProfile { + computeSubnetId?: string; +} + +// @public +export type VulnerabilityAssessmentName = string; + +// @public +export type VulnerabilityAssessmentPolicyBaselineName = "master" | "default"; + +// @public +export interface VulnerabilityAssessmentRecurringScansProperties { + emails?: string[]; + emailSubscriptionAdmins?: boolean; + isEnabled?: boolean; +} + +// @public +export interface VulnerabilityAssessmentScanError { + readonly code?: string; + readonly message?: string; +} + +// @public +export type VulnerabilityAssessmentScanRecord = ProxyResource & { + readonly scanId?: string; + readonly triggerType?: VulnerabilityAssessmentScanTriggerType; + readonly state?: VulnerabilityAssessmentScanState; + readonly startTime?: Date; + readonly endTime?: Date; + readonly errors?: VulnerabilityAssessmentScanError[]; + readonly storageContainerPath?: string; + readonly numberOfFailedSecurityChecks?: number; +}; + +// @public +export interface VulnerabilityAssessmentScanRecordListResult { + readonly nextLink?: string; + readonly value?: VulnerabilityAssessmentScanRecord[]; +} + +// @public +export type VulnerabilityAssessmentScanState = string; + +// @public +export type VulnerabilityAssessmentScanTriggerType = string; + +// @public +export type WorkloadClassifier = ProxyResource & { + memberName?: string; + label?: string; + context?: string; + startTime?: string; + endTime?: string; + importance?: string; +}; + +// @public +export interface WorkloadClassifierListResult { + readonly nextLink?: string; + readonly value?: WorkloadClassifier[]; +} + +// @public +export type WorkloadGroup = ProxyResource & { + minResourcePercent?: number; + maxResourcePercent?: number; + minResourcePercentPerRequest?: number; + maxResourcePercentPerRequest?: number; + importance?: string; + queryExecutionTimeout?: number; +}; + +// @public +export interface WorkloadGroupListResult { + readonly nextLink?: string; + readonly value?: WorkloadGroup[]; +} + +// @public +export type Workspace = TrackedResource & { + identity?: ManagedIdentity; + defaultDataLakeStorage?: DataLakeStorageAccountDetails; + sqlAdministratorLoginPassword?: string; + managedResourceGroupName?: string; + readonly provisioningState?: string; + sqlAdministratorLogin?: string; + virtualNetworkProfile?: VirtualNetworkProfile; + connectivityEndpoints?: { + [propertyName: string]: string; + }; + managedVirtualNetwork?: string; + privateEndpointConnections?: PrivateEndpointConnection[]; + encryption?: EncryptionDetails; + readonly workspaceUID?: string; + readonly extraProperties?: { + [propertyName: string]: Record; + }; + managedVirtualNetworkSettings?: ManagedVirtualNetworkSettings; + workspaceRepositoryConfiguration?: WorkspaceRepositoryConfiguration; + purviewConfiguration?: PurviewConfiguration; + readonly adlaResourceId?: string; + publicNetworkAccess?: WorkspacePublicNetworkAccess; + cspWorkspaceAdminProperties?: CspWorkspaceAdminProperties; + readonly settings?: { + [propertyName: string]: Record; + }; + azureADOnlyAuthentication?: boolean; + trustedServiceBypassEnabled?: boolean; +}; + +// @public +export type WorkspaceAadAdminInfo = ProxyResource & { + tenantId?: string; + login?: string; + administratorType?: string; + sid?: string; +}; + +// @public +export interface WorkspaceAadAdmins { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, aadAdminInfo: WorkspaceAadAdminInfo, options?: WorkspaceAadAdminsCreateOrUpdateOptionalParams): Promise, WorkspaceAadAdminsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, aadAdminInfo: WorkspaceAadAdminInfo, options?: WorkspaceAadAdminsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, options?: WorkspaceAadAdminsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspaceAadAdminsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, options?: WorkspaceAadAdminsGetOptionalParams): Promise; +} + +// @public +export interface WorkspaceAadAdminsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceAadAdminsCreateOrUpdateResponse = WorkspaceAadAdminInfo; + +// @public +export interface WorkspaceAadAdminsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface WorkspaceAadAdminsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceAadAdminsGetResponse = WorkspaceAadAdminInfo; + +// @public +export interface WorkspaceInfoListResult { + nextLink?: string; + value?: Workspace[]; +} + +// @public +export interface WorkspaceKeyDetails { + keyVaultUrl?: string; + name?: string; +} + +// @public +export interface WorkspaceManagedIdentitySqlControlSettings { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, managedIdentitySqlControlSettings: ManagedIdentitySqlControlSettingsModel, options?: WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams): Promise, WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, managedIdentitySqlControlSettings: ManagedIdentitySqlControlSettingsModel, options?: WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, options?: WorkspaceManagedIdentitySqlControlSettingsGetOptionalParams): Promise; +} + +// @public +export interface WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse = ManagedIdentitySqlControlSettingsModel; + +// @public +export interface WorkspaceManagedIdentitySqlControlSettingsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceManagedIdentitySqlControlSettingsGetResponse = ManagedIdentitySqlControlSettingsModel; + +// @public +export interface WorkspaceManagedSqlServerBlobAuditingPolicies { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, parameters: ServerBlobAuditingPolicy, options?: WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams): Promise, WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, parameters: ServerBlobAuditingPolicy, options?: WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, options?: WorkspaceManagedSqlServerBlobAuditingPoliciesGetOptionalParams): Promise; + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy; + +// @public +export interface WorkspaceManagedSqlServerBlobAuditingPoliciesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceManagedSqlServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy; + +// @public +export interface WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceNextResponse = ServerBlobAuditingPolicyListResult; + +// @public +export interface WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceResponse = ServerBlobAuditingPolicyListResult; + +// @public +export interface WorkspaceManagedSqlServerEncryptionProtector { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, encryptionProtectorName: EncryptionProtectorName, parameters: EncryptionProtector, options?: WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams): Promise, WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, encryptionProtectorName: EncryptionProtectorName, parameters: EncryptionProtector, options?: WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams): Promise; + beginRevalidate(resourceGroupName: string, workspaceName: string, encryptionProtectorName: EncryptionProtectorName, options?: WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams): Promise, void>>; + beginRevalidateAndWait(resourceGroupName: string, workspaceName: string, encryptionProtectorName: EncryptionProtectorName, options?: WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, encryptionProtectorName: EncryptionProtectorName, options?: WorkspaceManagedSqlServerEncryptionProtectorGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: WorkspaceManagedSqlServerEncryptionProtectorListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse = EncryptionProtector; + +// @public +export interface WorkspaceManagedSqlServerEncryptionProtectorGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceManagedSqlServerEncryptionProtectorGetResponse = EncryptionProtector; + +// @public +export interface WorkspaceManagedSqlServerEncryptionProtectorListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceManagedSqlServerEncryptionProtectorListNextResponse = EncryptionProtectorListResult; + +// @public +export interface WorkspaceManagedSqlServerEncryptionProtectorListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceManagedSqlServerEncryptionProtectorListResponse = EncryptionProtectorListResult; + +// @public +export interface WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface WorkspaceManagedSqlServerExtendedBlobAuditingPolicies { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, parameters: ExtendedServerBlobAuditingPolicy, options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams): Promise, WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, parameters: ExtendedServerBlobAuditingPolicy, options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, blobAuditingPolicyName: BlobAuditingPolicyName, options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetOptionalParams): Promise; + listByWorkspace(resourceGroupName: string, workspaceName: string, options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy; + +// @public +export interface WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy; + +// @public +export interface WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceNextResponse = ExtendedServerBlobAuditingPolicyListResult; + +// @public +export interface WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceResponse = ExtendedServerBlobAuditingPolicyListResult; + +// @public +export interface WorkspaceManagedSqlServerRecoverableSqlPools { + get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: WorkspaceManagedSqlServerRecoverableSqlPoolsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: WorkspaceManagedSqlServerRecoverableSqlPoolsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceManagedSqlServerRecoverableSqlPoolsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceManagedSqlServerRecoverableSqlPoolsGetResponse = RecoverableSqlPool; + +// @public +export interface WorkspaceManagedSqlServerRecoverableSqlPoolsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceManagedSqlServerRecoverableSqlPoolsListNextResponse = RecoverableSqlPoolListResult; + +// @public +export interface WorkspaceManagedSqlServerRecoverableSqlPoolsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceManagedSqlServerRecoverableSqlPoolsListResponse = RecoverableSqlPoolListResult; + +// @public +export interface WorkspaceManagedSqlServerSecurityAlertPolicy { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams): Promise, WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, options?: WorkspaceManagedSqlServerSecurityAlertPolicyGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: WorkspaceManagedSqlServerSecurityAlertPolicyListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse = ServerSecurityAlertPolicy; + +// @public +export interface WorkspaceManagedSqlServerSecurityAlertPolicyGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceManagedSqlServerSecurityAlertPolicyGetResponse = ServerSecurityAlertPolicy; + +// @public +export interface WorkspaceManagedSqlServerSecurityAlertPolicyListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceManagedSqlServerSecurityAlertPolicyListNextResponse = ServerSecurityAlertPolicyListResult; + +// @public +export interface WorkspaceManagedSqlServerSecurityAlertPolicyListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceManagedSqlServerSecurityAlertPolicyListResponse = ServerSecurityAlertPolicyListResult; + +// @public +export interface WorkspaceManagedSqlServerUsages { + list(resourceGroupName: string, workspaceName: string, options?: WorkspaceManagedSqlServerUsagesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceManagedSqlServerUsagesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceManagedSqlServerUsagesListNextResponse = ServerUsageListResult; + +// @public +export interface WorkspaceManagedSqlServerUsagesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceManagedSqlServerUsagesListResponse = ServerUsageListResult; + +// @public +export interface WorkspaceManagedSqlServerVulnerabilityAssessments { + createOrUpdate(resourceGroupName: string, workspaceName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, parameters: ServerVulnerabilityAssessment, options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, vulnerabilityAssessmentName: VulnerabilityAssessmentName, options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment; + +// @public +export interface WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceManagedSqlServerVulnerabilityAssessmentsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceManagedSqlServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment; + +// @public +export interface WorkspaceManagedSqlServerVulnerabilityAssessmentsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceManagedSqlServerVulnerabilityAssessmentsListNextResponse = ServerVulnerabilityAssessmentListResult; + +// @public +export interface WorkspaceManagedSqlServerVulnerabilityAssessmentsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceManagedSqlServerVulnerabilityAssessmentsListResponse = ServerVulnerabilityAssessmentListResult; + +// @public +export interface WorkspacePatchInfo { + encryption?: EncryptionDetails; + identity?: ManagedIdentity; + managedVirtualNetworkSettings?: ManagedVirtualNetworkSettings; + readonly provisioningState?: string; + publicNetworkAccess?: WorkspacePublicNetworkAccess; + purviewConfiguration?: PurviewConfiguration; + sqlAdministratorLoginPassword?: string; + tags?: { + [propertyName: string]: string; + }; + workspaceRepositoryConfiguration?: WorkspaceRepositoryConfiguration; +} + +// @public +export type WorkspacePublicNetworkAccess = string; + +// @public +export interface WorkspaceRepositoryConfiguration { + accountName?: string; + collaborationBranch?: string; + hostName?: string; + lastCommitId?: string; + projectName?: string; + repositoryName?: string; + rootFolder?: string; + tenantId?: string; + type?: string; +} + +// @public +export interface Workspaces { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, workspaceInfo: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise, WorkspacesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, workspaceInfo: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise, WorkspacesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, workspacePatchInfo: WorkspacePatchInfo, options?: WorkspacesUpdateOptionalParams): Promise, WorkspacesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, workspacePatchInfo: WorkspacePatchInfo, options?: WorkspacesUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, options?: WorkspacesGetOptionalParams): Promise; + list(options?: WorkspacesListOptionalParams): PagedAsyncIterableIterator; + listByResourceGroup(resourceGroupName: string, options?: WorkspacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspacesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspacesCreateOrUpdateResponse = Workspace; + +// @public +export interface WorkspacesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspacesDeleteResponse = Record; + +// @public +export interface WorkspacesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesGetResponse = Workspace; + +// @public +export interface WorkspacesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesListByResourceGroupNextResponse = WorkspaceInfoListResult; + +// @public +export interface WorkspacesListByResourceGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesListByResourceGroupResponse = WorkspaceInfoListResult; + +// @public +export interface WorkspacesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesListNextResponse = WorkspaceInfoListResult; + +// @public +export interface WorkspacesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesListResponse = WorkspaceInfoListResult; + +// @public +export interface WorkspaceSqlAadAdmins { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, aadAdminInfo: WorkspaceAadAdminInfo, options?: WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams): Promise, WorkspaceSqlAadAdminsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, aadAdminInfo: WorkspaceAadAdminInfo, options?: WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, options?: WorkspaceSqlAadAdminsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspaceSqlAadAdminsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, options?: WorkspaceSqlAadAdminsGetOptionalParams): Promise; +} + +// @public +export interface WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspaceSqlAadAdminsCreateOrUpdateResponse = WorkspaceAadAdminInfo; + +// @public +export interface WorkspaceSqlAadAdminsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface WorkspaceSqlAadAdminsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceSqlAadAdminsGetResponse = WorkspaceAadAdminInfo; + +// @public +export interface WorkspacesUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspacesUpdateResponse = Workspace; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/sdk/synapse/arm-synapse/rollup.config.js b/sdk/synapse/arm-synapse/rollup.config.js index 2de547b5a313..9be1955eb7f1 100644 --- a/sdk/synapse/arm-synapse/rollup.config.js +++ b/sdk/synapse/arm-synapse/rollup.config.js @@ -1,37 +1,188 @@ -import rollup from "rollup"; -import nodeResolve from "rollup-plugin-node-resolve"; -import sourcemaps from "rollup-plugin-sourcemaps"; - -/** - * @type {rollup.RollupFileOptions} - */ -const config = { - input: "./esm/synapseManagementClient.js", - external: [ - "@azure/ms-rest-js", - "@azure/ms-rest-azure-js" - ], - output: { - file: "./dist/arm-synapse.js", - format: "umd", - name: "Azure.ArmSynapse", - sourcemap: true, - globals: { - "@azure/ms-rest-js": "msRest", - "@azure/ms-rest-azure-js": "msRestAzure" - }, - banner: `/* +/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */` - }, - plugins: [ - nodeResolve({ mainFields: ['module', 'main'] }), - sourcemaps() - ] + */ + +import nodeResolve from "@rollup/plugin-node-resolve"; +import cjs from "@rollup/plugin-commonjs"; +import sourcemaps from "rollup-plugin-sourcemaps"; +import multiEntry from "@rollup/plugin-multi-entry"; +import json from "@rollup/plugin-json"; + +import nodeBuiltins from "builtin-modules"; + +/** + * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api. + * + * NOTE: this manual configuration is only needed because OpenTelemetry uses an + * __exportStar downleveled helper function to declare its exports which confuses + * rollup's automatic discovery mechanism. + * + * @returns an object reference that can be `...`'d into your cjs() configuration. + */ +export function openTelemetryCommonJs() { + const namedExports = {}; + + for (const key of [ + "@opentelemetry/api", + "@azure/core-tracing/node_modules/@opentelemetry/api" + ]) { + namedExports[key] = [ + "SpanKind", + "TraceFlags", + "getSpan", + "setSpan", + "SpanStatusCode", + "getSpanContext", + "setSpanContext" + ]; + } + + const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"]; + + for (const version of releasedOpenTelemetryVersions) { + namedExports[ + // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path. + `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js` + ] = [ + "SpanKind", + "TraceFlags", + "getSpan", + "setSpan", + "StatusCode", + "CanonicalCode", + "getSpanContext", + "setSpanContext" + ]; + } + + return namedExports; +} + +// #region Warning Handler + +/** + * A function that can determine whether a rollupwarning should be ignored. If + * the function returns `true`, then the warning will not be displayed. + */ + +function ignoreNiseSinonEvalWarnings(warning) { + return ( + warning.code === "EVAL" && + warning.id && + (warning.id.includes("node_modules/nise") || + warning.id.includes("node_modules/sinon")) === true + ); +} + +function ignoreChaiCircularDependencyWarnings(warning) { + return ( + warning.code === "CIRCULAR_DEPENDENCY" && + warning.importer && warning.importer.includes("node_modules/chai") === true + ); +} + +const warningInhibitors = [ + ignoreChaiCircularDependencyWarnings, + ignoreNiseSinonEvalWarnings +]; + +/** + * Construct a warning handler for the shared rollup configuration + * that ignores certain warnings that are not relevant to testing. + */ +function makeOnWarnForTesting() { + return (warning, warn) => { + // If every inhibitor returns false (i.e. no inhibitors), then show the warning + if (warningInhibitors.every((inhib) => !inhib(warning))) { + warn(warning); + } + }; +} + +// #endregion + +function makeBrowserTestConfig() { + const config = { + input: { + include: ["dist-esm/test/**/*.spec.js"], + exclude: ["dist-esm/test/**/node/**"] + }, + output: { + file: `dist-test/index.browser.js`, + format: "umd", + sourcemap: true + }, + preserveSymlinks: false, + plugins: [ + multiEntry({ exports: false }), + nodeResolve({ + mainFields: ["module", "browser"] + }), + cjs({ + namedExports: { + // Chai's strange internal architecture makes it impossible to statically + // analyze its exports. + chai: [ + "version", + "use", + "util", + "config", + "expect", + "should", + "assert" + ], + ...openTelemetryCommonJs() + } + }), + json(), + sourcemaps() + //viz({ filename: "dist-test/browser-stats.html", sourcemap: true }) + ], + onwarn: makeOnWarnForTesting(), + // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0, + // rollup started respecting the "sideEffects" field in package.json. Since + // our package.json sets "sideEffects=false", this also applies to test + // code, which causes all tests to be removed by tree-shaking. + treeshake: false + }; + + return config; +} + +const defaultConfigurationOptions = { + disableBrowserBundle: false }; -export default config; +export function makeConfig(pkg, options) { + options = { + ...defaultConfigurationOptions, + ...(options || {}) + }; + + const baseConfig = { + // Use the package's module field if it has one + input: pkg["module"] || "dist-esm/src/index.js", + external: [ + ...nodeBuiltins, + ...Object.keys(pkg.dependencies), + ...Object.keys(pkg.devDependencies) + ], + output: { file: "dist/index.js", format: "cjs", sourcemap: true }, + preserveSymlinks: false, + plugins: [sourcemaps(), nodeResolve(), cjs()] + }; + + const config = [baseConfig]; + + if (!options.disableBrowserBundle) { + config.push(makeBrowserTestConfig()); + } + + return config; +} + +export default makeConfig(require("./package.json")); diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolOperationResultsMappers.ts b/sdk/synapse/arm-synapse/src/index.ts similarity index 56% rename from sdk/synapse/arm-synapse/src/models/sqlPoolOperationResultsMappers.ts rename to sdk/synapse/arm-synapse/src/index.ts index a7622d01933a..1a6a8fc0465c 100644 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolOperationResultsMappers.ts +++ b/sdk/synapse/arm-synapse/src/index.ts @@ -6,9 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export { - discriminators, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse -} from "../models/mappers"; +/// +export * from "./models"; +export { SynapseManagementClient } from "./synapseManagementClient"; +export * from "./operationsInterfaces"; diff --git a/sdk/synapse/arm-synapse/src/lroImpl.ts b/sdk/synapse/arm-synapse/src/lroImpl.ts new file mode 100644 index 000000000000..518d5f053b4e --- /dev/null +++ b/sdk/synapse/arm-synapse/src/lroImpl.ts @@ -0,0 +1,34 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { LongRunningOperation, LroResponse } from "@azure/core-lro"; + +export class LroImpl implements LongRunningOperation { + constructor( + private sendOperationFn: (args: any, spec: any) => Promise>, + private args: Record, + private spec: { + readonly requestBody?: unknown; + readonly path?: string; + readonly httpMethod: string; + } & Record, + public requestPath: string = spec.path!, + public requestMethod: string = spec.httpMethod + ) {} + public async sendInitialRequest(): Promise> { + return this.sendOperationFn(this.args, this.spec); + } + public async sendPollRequest(path: string): Promise> { + const { requestBody, ...restSpec } = this.spec; + return this.sendOperationFn(this.args, { + ...restSpec, + path, + httpMethod: "GET" + }); + } +} diff --git a/sdk/synapse/arm-synapse/src/models/bigDataPoolsMappers.ts b/sdk/synapse/arm-synapse/src/models/bigDataPoolsMappers.ts deleted file mode 100644 index d4138198acad..000000000000 --- a/sdk/synapse/arm-synapse/src/models/bigDataPoolsMappers.ts +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolPatchInfo, - BigDataPoolResourceInfo, - BigDataPoolResourceInfoListResult, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/dataMaskingPoliciesMappers.ts b/sdk/synapse/arm-synapse/src/models/dataMaskingPoliciesMappers.ts deleted file mode 100644 index fa7be042dcd4..000000000000 --- a/sdk/synapse/arm-synapse/src/models/dataMaskingPoliciesMappers.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/dataMaskingRulesMappers.ts b/sdk/synapse/arm-synapse/src/models/dataMaskingRulesMappers.ts deleted file mode 100644 index b5e9b734020a..000000000000 --- a/sdk/synapse/arm-synapse/src/models/dataMaskingRulesMappers.ts +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataMaskingRuleListResult, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/extendedSqlPoolBlobAuditingPoliciesMappers.ts b/sdk/synapse/arm-synapse/src/models/extendedSqlPoolBlobAuditingPoliciesMappers.ts deleted file mode 100644 index 09b013d385f5..000000000000 --- a/sdk/synapse/arm-synapse/src/models/extendedSqlPoolBlobAuditingPoliciesMappers.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicyListResult, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/index.ts b/sdk/synapse/arm-synapse/src/models/index.ts index dd515f83cf7b..78efda821ace 100644 --- a/sdk/synapse/arm-synapse/src/models/index.ts +++ b/sdk/synapse/arm-synapse/src/models/index.ts @@ -6,9698 +6,7681 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; -import * as msRest from "@azure/ms-rest-js"; - -export { BaseResource, CloudError }; - -/** - * Auto-scaling properties of a Big Data pool powered by Apache Spark - * @summary Spark pool auto-scaling properties - */ -export interface AutoScaleProperties { - /** - * The minimum number of nodes the Big Data pool can support. - */ - minNodeCount?: number; - /** - * Whether automatic scaling is enabled for the Big Data pool. - */ - enabled?: boolean; - /** - * The maximum number of nodes the Big Data pool can support. - */ - maxNodeCount?: number; -} - -/** - * Auto-pausing properties of a Big Data pool powered by Apache Spark - * @summary Spark pool auto-pausing properties - */ -export interface AutoPauseProperties { - /** - * Number of minutes of idle time before the Big Data pool is automatically paused. - */ - delayInMinutes?: number; - /** - * Whether auto-pausing is enabled for the Big Data pool. - */ - enabled?: boolean; -} - -/** - * Dynamic Executor Allocation Properties - */ -export interface DynamicExecutorAllocation { - /** - * Indicates whether Dynamic Executor Allocation is enabled or not. - */ - enabled?: boolean; -} - -/** - * Library requirements for a Big Data pool powered by Apache Spark - * @summary Spark pool library version requirements - */ -export interface LibraryRequirements { - /** - * The last update time of the library requirements file. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly time?: Date; - /** - * The library requirements. - */ - content?: string; - /** - * The filename of the library requirements file. - */ - 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. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly uploadedTimestamp?: Date; - /** - * Type of the library. - */ - type?: string; - /** - * Provisioning status of the library/package. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningStatus?: string; - /** - * Creator Id of the library/package. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly creatorId?: string; -} - -/** - * Common fields that are returned in the response for all Azure Resource Manager resources - * @summary Resource - */ -export interface Resource extends BaseResource { - /** - * Fully qualified resource ID for the resource. Ex - - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - * **NOTE: This property will not be serialized. It can only be populated by the server.** +import * as coreClient from "@azure/core-client"; + +export type IntegrationRuntimeUnion = + | IntegrationRuntime + | ManagedIntegrationRuntime + | SelfHostedIntegrationRuntime; +export type SsisObjectMetadataUnion = + | SsisObjectMetadata + | SsisFolder + | SsisProject + | SsisPackage + | SsisEnvironment; +export type IntegrationRuntimeStatusUnion = + | IntegrationRuntimeStatus + | ManagedIntegrationRuntimeStatus + | SelfHostedIntegrationRuntimeStatus; +export type SecretBaseUnion = SecretBase | SecureString; +export type CustomSetupBaseUnion = + | CustomSetupBase + | CmdkeySetup + | EnvironmentVariableSetup + | ComponentSetup; +export type LinkedIntegrationRuntimeTypeUnion = + | LinkedIntegrationRuntimeType + | LinkedIntegrationRuntimeKeyAuthorization + | LinkedIntegrationRuntimeRbacAuthorization; +export type DatabaseUnion = Database | ReadWriteDatabase; +export type DataConnectionUnion = + | DataConnection + | EventHubDataConnection + | IotHubDataConnection + | EventGridDataConnection; + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; /** * The name of the resource - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - * "Microsoft.Storage/storageAccounts" - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; } -/** - * The resource model definition for an Azure Resource Manager tracked top level resource which has - * 'tags' and a 'location' - * @summary Tracked Resource - */ -export interface TrackedResource extends Resource { - /** - * Resource tags. - */ - tags?: { [propertyName: string]: string }; - /** - * The geo-location where the resource lives - */ - location: string; -} - -/** - * A Big Data pool - * @summary Big Data pool - */ -export interface BigDataPoolResourceInfo extends TrackedResource { - /** - * The state of the Big Data pool. - */ - provisioningState?: string; - /** - * Auto-scaling properties - */ - autoScale?: AutoScaleProperties; - /** - * The time when the Big Data pool was created. - */ - creationDate?: Date; - /** - * Auto-pausing properties - */ - autoPause?: AutoPauseProperties; - /** - * Whether compute isolation is required or not. - */ - isComputeIsolationEnabled?: boolean; - /** - * Whether session level packages enabled. - */ - sessionLevelPackagesEnabled?: boolean; - /** - * The cache size - */ - cacheSize?: number; - /** - * Dynamic Executor Allocation - */ - dynamicExecutorAllocation?: DynamicExecutorAllocation; - /** - * The Spark events folder - */ - sparkEventsFolder?: string; - /** - * The number of nodes in the Big Data pool. - */ - nodeCount?: number; - /** - * 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. - */ - sparkVersion?: string; - /** - * The default folder where Spark logs will be written. - */ - 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', 'XXXLarge' - */ - nodeSize?: NodeSize; - /** - * The kind of nodes that the Big Data pool provides. Possible values include: 'None', - * 'MemoryOptimized' - */ - nodeSizeFamily?: NodeSizeFamily; - /** - * The time when the Big Data pool was updated successfully. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastSucceededTimestamp?: Date; -} - -/** - * Properties patch for a Big Data pool - * @summary Patch for a Big Data pool - */ -export interface BigDataPoolPatchInfo { - /** - * Updated tags for the Big Data pool - */ - tags?: { [propertyName: string]: string }; -} - -/** - * The resource model definition for a Azure Resource Manager proxy resource. It will not have tags - * and a location - * @summary Proxy Resource - */ -export interface ProxyResource extends Resource { -} - -/** - * The resource model definition for an Azure Resource Manager resource with an etag. - * @summary Entity Resource - */ -export interface AzureEntityResource extends Resource { - /** - * Resource Etag. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly etag?: string; -} - -/** - * The resource management error additional info. - */ -export interface ErrorAdditionalInfo { - /** - * The additional info type. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * The additional info. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly info?: any; +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; } -/** - * The error detail. - */ +/** The error detail. */ export interface ErrorDetail { /** * The error code. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly code?: string; /** * The error message. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly message?: string; /** * The error target. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly target?: string; /** * The error details. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly details?: ErrorDetail[]; /** * The error additional info. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly additionalInfo?: ErrorAdditionalInfo[]; } -/** - * Common error response for all Azure Resource Manager APIs to return error details for failed - * operations. (This also follows the OData error response format.). - * @summary Error response - */ -export interface ErrorResponse { +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { /** - * The error object. + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - error?: ErrorDetail; + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; } -/** - * A request about whether a workspace name is available - * @summary Check name availability request - */ -export interface CheckNameAvailabilityRequest { +/** A list of active directory only authentications. */ +export interface AzureADOnlyAuthenticationListResult { /** - * Workspace name + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - name?: string; + readonly value?: AzureADOnlyAuthentication[]; /** - * Type: workspace + * 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; +} + +/** A request about whether a workspace name is available */ +export interface CheckNameAvailabilityRequest { + /** Workspace name */ + name?: string; + /** Type: workspace */ type?: string; } -/** - * A response saying whether the workspace name is available - * @summary Check name availability response - */ +/** A response saying whether the workspace name is available */ export interface CheckNameAvailabilityResponse { - /** - * Validation message - */ + /** Validation message */ message?: string; - /** - * Whether the workspace name is available - */ + /** Whether the workspace name is available */ available?: boolean; - /** - * Reason the workspace name is or is not available - */ + /** Reason the workspace name is or is not available */ reason?: string; - /** - * Workspace name - */ + /** Workspace name */ name?: string; } -/** - * IP firewall rule properties - */ -export interface IpFirewallRuleProperties { - /** - * The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to - * startIpAddress - */ - endIpAddress?: string; - /** - * Resource provisioning state. Possible values include: 'Provisioning', 'Succeeded', 'Deleting', - * 'Failed', 'DeleteError' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: ProvisioningState; - /** - * The start IP address of the firewall rule. Must be IPv4 format - */ - startIpAddress?: string; +/** List of IP firewall rules */ +export interface IpFirewallRuleInfoListResult { + /** Link to next page of results */ + nextLink?: string; + /** List of IP firewall rules */ + value?: IpFirewallRuleInfo[]; } -/** - * IP firewall rule - */ -export interface IpFirewallRuleInfo extends BaseResource { - /** - * The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to - * startIpAddress - */ +/** IP firewall rule properties */ +export interface IpFirewallRuleProperties { + /** The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress */ endIpAddress?: string; /** - * Resource provisioning state. Possible values include: 'Provisioning', 'Succeeded', 'Deleting', - * 'Failed', 'DeleteError' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Resource provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** - * The start IP address of the firewall rule. Must be IPv4 format - */ + /** The start IP address of the firewall rule. Must be IPv4 format */ startIpAddress?: string; } -/** - * Replace all IP firewall rules request - */ +/** Replace all IP firewall rules request */ export interface ReplaceAllIpFirewallRulesRequest { - /** - * IP firewall rule properties - */ + /** IP firewall rule properties */ ipFirewallRules?: { [propertyName: string]: IpFirewallRuleProperties }; } -/** - * An existing operation for replacing the firewall rules - */ +/** An existing operation for replacing the firewall rules */ export interface ReplaceAllFirewallRulesOperationResponse { - /** - * The operation ID - */ + /** The operation ID */ operationId?: string; } -/** - * Azure Synapse nested resource, which belongs to a workspace. - */ -export interface SubResource extends AzureEntityResource { +/** List of keys */ +export interface KeyInfoListResult { + /** Link to the next page of results */ + nextLink?: string; + /** List of keys */ + value?: Key[]; } -/** - * Contains the possible cases for IntegrationRuntime. - */ -export type IntegrationRuntimeUnion = IntegrationRuntime | ManagedIntegrationRuntime | SelfHostedIntegrationRuntime; +/** An operation that is available in this resource provider */ +export interface AvailableRpOperation { + /** Display properties of the operation */ + display?: AvailableRpOperationDisplayInfo; + /** Whether this operation is a data action */ + isDataAction?: string; + /** Operation name */ + name?: string; + /** Operation origin */ + origin?: string; + /** Operation service specification */ + serviceSpecification?: OperationMetaServiceSpecification; +} -/** - * Azure Synapse nested object which serves as a compute resource for activities. - */ -export interface IntegrationRuntime { +/** Description of an available operation */ +export interface AvailableRpOperationDisplayInfo { + /** Operation description */ + description?: string; + /** Resource type */ + resource?: string; + /** Resource provider name */ + provider?: string; + /** Operation name */ + operation?: string; +} + +/** What is this? */ +export interface OperationMetaServiceSpecification { + /** Service metric specifications */ + metricSpecifications?: OperationMetaMetricSpecification[]; + /** Service log specifications */ + logSpecifications?: OperationMetaLogSpecification[]; +} + +/** What is this? */ +export interface OperationMetaMetricSpecification { + /** The source MDM namespace */ + sourceMdmNamespace?: string; + /** Metric display name */ + displayName?: string; + /** Metric unique name */ + name?: string; + /** Metric aggregation type */ + aggregationType?: string; + /** Metric description */ + displayDescription?: string; + /** The source MDM account */ + sourceMdmAccount?: string; + /** Whether the regional MDM account is enabled */ + enableRegionalMdmAccount?: boolean; + /** Metric units */ + unit?: string; + /** Metric dimensions */ + dimensions?: OperationMetaMetricDimensionSpecification[]; + /** Whether the metric supports instance-level aggregation */ + supportsInstanceLevelAggregation?: boolean; + /** Metric filter */ + metricFilterPattern?: string; +} + +/** What is this? */ +export interface OperationMetaMetricDimensionSpecification { + /** Dimension display name */ + displayName?: string; + /** Dimension unique name */ + name?: string; + /** Whether this metric should be exported for Shoebox */ + toBeExportedForShoebox?: boolean; +} + +/** What is this? */ +export interface OperationMetaLogSpecification { + /** Log display name */ + displayName?: string; + /** Time range the log covers */ + blobDuration?: string; + /** Log unique name */ + name?: string; +} + +/** An operation */ +export interface OperationResource { + /** Operation ID */ + id?: string; + /** Operation name */ + name?: string; + /** Operation status */ + status?: OperationStatus; + /** Operation properties */ + properties?: Record; + /** Errors from the operation */ + error?: ErrorDetail; + /** Operation start time */ + startTime?: Date; + /** Operation start time */ + endTime?: Date; + /** Completion percentage of the operation */ + percentComplete?: number; +} + +/** Properties of a private endpoint connection. */ +export interface PrivateEndpointConnectionProperties { + /** The private endpoint which the connection belongs to. */ + privateEndpoint?: PrivateEndpoint; + /** Connection state of the private endpoint connection. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; /** - * Polymorphic Discriminator + * Provisioning state of the private endpoint connection. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - type: "IntegrationRuntime"; + readonly provisioningState?: string; +} + +/** Private endpoint details */ +export interface PrivateEndpoint { /** - * Integration runtime description. + * Resource id of the private endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly id?: string; +} + +/** Connection state details of the private endpoint */ +export interface PrivateLinkServiceConnectionState { + /** The private link service connection status. */ + status?: string; + /** The private link service connection description. */ description?: string; /** - * Describes unknown properties. The value of an unknown property can be of "any" type. + * The actions required for private link service connection. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - [property: string]: any; + readonly actionsRequired?: string; } -/** - * Data flow properties for managed integration runtime. - */ -export interface IntegrationRuntimeDataFlowProperties { +/** A list of private endpoint connections */ +export interface PrivateEndpointConnectionList { /** - * Compute type of the cluster which will execute data flow job. Possible values include: - * 'General', 'MemoryOptimized', 'ComputeOptimized' + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - computeType?: DataFlowComputeType; + readonly value?: PrivateEndpointConnection[]; /** - * Core count of the cluster which will execute data flow job. Supported values are: 8, 16, 32, - * 48, 80, 144 and 272. + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - coreCount?: number; + readonly nextLink?: string; +} + +/** A list of private link resources */ +export interface PrivateLinkResourceListResult { /** - * Time to live (in minutes) setting of the cluster which will execute data flow job. + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - timeToLive?: number; + readonly value?: PrivateLinkResource[]; /** - * Describes unknown properties. The value of an unknown property can be of "any" type. + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - [property: string]: any; + readonly nextLink?: string; } -/** - * VNet properties for managed integration runtime. - */ -export interface IntegrationRuntimeVNetProperties { - /** - * The ID of the VNet that this integration runtime will join. - */ - vNetId?: string; +/** Properties of a private link resource. */ +export interface PrivateLinkResourceProperties { /** - * The name of the subnet this integration runtime will join. + * The private link resource group id. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - subnet?: string; + readonly groupId?: string; /** - * Resource IDs of the public IP addresses that this integration runtime will use. + * The private link resource required member names. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - publicIPs?: string[]; + readonly requiredMembers?: string[]; /** - * Describes unknown properties. The value of an unknown property can be of "any" type. + * Required DNS zone names of the the private link resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - [property: string]: any; + readonly requiredZoneNames?: string[]; } -/** - * The compute resource properties for managed integration runtime. - */ -export interface IntegrationRuntimeComputeProperties { +/** List of privateLinkHubs */ +export interface PrivateLinkHubInfoListResult { + /** Link to the next page of results */ + nextLink?: string; + /** List of privateLinkHubs */ + value?: PrivateLinkHub[]; +} + +/** Private Endpoint Connection For Private Link Hub - Basic */ +export interface PrivateEndpointConnectionForPrivateLinkHubBasic { /** - * The location for managed integration runtime. The supported regions could be found on - * https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities + * identifier + * NOTE: This property will not be serialized. It can only be populated by the server. */ - location?: string; + readonly id?: string; + /** The private endpoint which the connection belongs to. */ + privateEndpoint?: PrivateEndpoint; + /** Connection state of the private endpoint connection. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; /** - * The node size requirement to managed integration runtime. + * Provisioning state of the private endpoint connection. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - nodeSize?: string; + readonly provisioningState?: string; +} + +/** PrivateLinkHub patch details */ +export interface PrivateLinkHubPatchInfo { + /** Resource tags */ + tags?: { [propertyName: string]: string }; +} + +export interface PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse { + value?: PrivateEndpointConnectionForPrivateLinkHub[]; + nextLink?: string; +} + +export interface PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated { + id?: string; + /** Properties of a private endpoint connection. */ + properties?: PrivateEndpointConnectionProperties; +} + +/** SQL pool SKU */ +export interface Sku { + /** The service tier */ + tier?: string; + /** The SKU name */ + name?: string; + /** If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. */ + capacity?: number; +} + +/** A SQL Analytics pool patch info */ +export interface SqlPoolPatchInfo { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The geo-location where the resource lives */ + location?: string; + /** SQL pool SKU */ + sku?: Sku; + /** Maximum size in bytes */ + maxSizeBytes?: number; + /** Collation mode */ + collation?: string; + /** Source database to create from */ + sourceDatabaseId?: string; + /** Backup database to restore from */ + recoverableDatabaseId?: string; + /** Resource state */ + provisioningState?: string; /** - * The required number of nodes for managed integration runtime. + * Resource status + * NOTE: This property will not be serialized. It can only be populated by the server. */ - numberOfNodes?: number; + readonly status?: string; + /** Snapshot time to restore */ + restorePointInTime?: Date; /** - * Maximum parallel executions count per node for managed integration runtime. + * Specifies the mode of sql pool creation. + * + * Default: regular sql pool creation. + * + * PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be specified. + * + * Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the recoverableDatabaseId to restore. + * + * Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified. */ - maxParallelExecutionsPerNode?: number; + createMode?: CreateMode; /** - * Data flow properties for managed integration runtime. + * Date the SQL pool was created + * NOTE: This property will not be serialized. It can only be populated by the server. */ - dataFlowProperties?: IntegrationRuntimeDataFlowProperties; + readonly creationDate?: Date; + /** The storage account type used to store backups for this sql pool. */ + storageAccountType?: StorageAccountType; + /** Specifies the time that the sql pool was deleted */ + sourceDatabaseDeletionDate?: Date; +} + +/** List of SQL pools */ +export interface SqlPoolInfoListResult { + /** Link to the next page of results */ + nextLink?: string; + /** List of SQL pools */ + value?: SqlPool[]; +} + +/** Contains the information necessary to perform a resource move (rename). */ +export interface ResourceMoveDefinition { + /** The target ID for the resource */ + id: string; +} + +/** The response to a list geo backup policies request. */ +export interface GeoBackupPolicyListResult { + /** The list of geo backup policies. */ + value?: GeoBackupPolicy[]; +} + +/** A list of long term retention backups. */ +export interface RestorePointListResult { /** - * VNet properties for managed integration runtime. + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - vNetProperties?: IntegrationRuntimeVNetProperties; + readonly value?: RestorePoint[]; /** - * Describes unknown properties. The value of an unknown property can be of "any" type. + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - [property: string]: any; + readonly nextLink?: string; } -/** - * Contains the possible cases for SecretBase. - */ -export type SecretBaseUnion = SecretBase | SecureString; +/** Contains the information necessary to perform a create Sql pool restore point operation. */ +export interface CreateSqlPoolRestorePointDefinition { + /** The restore point label to apply */ + restorePointLabel: string; +} -/** - * The base definition of a secret type. - */ -export interface SecretBase { +/** Represents the response to a List Sql pool replication link request. */ +export interface ReplicationLinkListResult { + /** The list of Sql pool replication links housed in the Sql pool. */ + value?: ReplicationLink[]; /** - * Polymorphic Discriminator + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - type: "SecretBase"; + readonly nextLink?: string; } -/** - * Azure Synapse secure string definition. The string value will be masked with asterisks '*' - * during Get or List API calls. - */ -export interface SecureString { +/** Maintenance window time range. */ +export interface MaintenanceWindowTimeRange { + /** Day of maintenance window. */ + dayOfWeek?: DayOfWeek; + /** Start time minutes offset from 12am. */ + startTime?: string; + /** Duration of maintenance window in minutes. */ + duration?: string; +} + +/** A list of transparent data encryption configurations. */ +export interface TransparentDataEncryptionListResult { /** - * Polymorphic Discriminator + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - type: "SecureString"; + readonly value?: TransparentDataEncryption[]; /** - * Value of secure string. + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - value: string; + readonly nextLink?: string; } -/** - * Catalog information for managed dedicated integration runtime. - */ -export interface IntegrationRuntimeSsisCatalogInfo { +/** The response to a list Sql pool operations request */ +export interface SqlPoolBlobAuditingPolicySqlPoolOperationListResult { /** - * The catalog database server URL. + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - catalogServerEndpoint?: string; + readonly value?: SqlPoolOperation[]; + /** + * 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; +} + +/** The response to a list Sql pool usages request. */ +export interface SqlPoolUsageListResult { + /** The list of usages for the Sql pool. */ + value: SqlPoolUsage[]; /** - * The administrator user name of catalog database. + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - catalogAdminUserName?: string; + readonly nextLink?: string; +} + +/** The Sql pool usages. */ +export interface SqlPoolUsage { /** - * The password of the administrator user account of the catalog database. + * The name of the usage metric. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - catalogAdminPassword?: SecureString; + readonly name?: string; /** - * The pricing tier for the catalog database. The valid values could be found in - * https://azure.microsoft.com/en-us/pricing/details/sql-database/. Possible values include: - * 'Basic', 'Standard', 'Premium', 'PremiumRS' + * The name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - catalogPricingTier?: IntegrationRuntimeSsisCatalogPricingTier; + readonly resourceName?: string; /** - * Describes unknown properties. The value of an unknown property can be of "any" type. + * The usage metric display name. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - [property: string]: any; -} - -/** - * Custom setup script properties for a managed dedicated integration runtime. - */ -export interface IntegrationRuntimeCustomSetupScriptProperties { + readonly displayName?: string; /** - * The URI of the Azure blob container that contains the custom setup script. + * The current value of the usage metric. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - blobContainerUri?: string; + readonly currentValue?: number; /** - * The SAS token of the Azure blob container. + * The current limit of the usage metric. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - sasToken?: SecureString; -} - -/** - * The entity reference. - */ -export interface EntityReference { + readonly limit?: number; /** - * The type of this referenced entity. Possible values include: 'IntegrationRuntimeReference', - * 'LinkedServiceReference' + * The units of the usage metric. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - type?: IntegrationRuntimeEntityReferenceType; + readonly unit?: string; /** - * The name of this referenced entity. + * The next reset time for the usage metric (ISO8601 format). + * NOTE: This property will not be serialized. It can only be populated by the server. */ - referenceName?: string; + readonly nextResetTime?: Date; } -/** - * Data proxy properties for a managed dedicated integration runtime. - */ -export interface IntegrationRuntimeDataProxyProperties { - /** - * The self-hosted integration runtime reference. - */ - connectVia?: EntityReference; +/** A list of sensitivity labels. */ +export interface SensitivityLabelListResult { /** - * The staging linked service reference. + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - stagingLinkedService?: EntityReference; + readonly value?: SensitivityLabel[]; /** - * The path to contain the staged data in the Blob storage. + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - path?: string; + readonly nextLink?: string; } -/** - * Contains the possible cases for CustomSetupBase. - */ -export type CustomSetupBaseUnion = CustomSetupBase | CmdkeySetup | EnvironmentVariableSetup | ComponentSetup; +/** A list of sensitivity label update operations. */ +export interface SensitivityLabelUpdateList { + operations?: SensitivityLabelUpdate[]; +} -/** - * The base definition of the custom setup. - */ -export interface CustomSetupBase { - /** - * Polymorphic Discriminator - */ - type: "CustomSetupBase"; +/** A list of recommended sensitivity label update operations. */ +export interface RecommendedSensitivityLabelUpdateList { + operations?: RecommendedSensitivityLabelUpdate[]; } -/** - * SSIS properties for managed integration runtime. - */ -export interface IntegrationRuntimeSsisProperties { - /** - * Catalog information for managed dedicated integration runtime. - */ - catalogInfo?: IntegrationRuntimeSsisCatalogInfo; - /** - * License type for bringing your own license scenario. Possible values include: 'BasePrice', - * 'LicenseIncluded' - */ - licenseType?: IntegrationRuntimeLicenseType; - /** - * Custom setup script properties for a managed dedicated integration runtime. - */ - customSetupScriptProperties?: IntegrationRuntimeCustomSetupScriptProperties; - /** - * Data proxy properties for a managed dedicated integration runtime. - */ - dataProxyProperties?: IntegrationRuntimeDataProxyProperties; - /** - * The edition for the SSIS Integration Runtime. Possible values include: 'Standard', - * 'Enterprise' - */ - edition?: IntegrationRuntimeEdition; +/** A list of Sql pool schemas. */ +export interface SqlPoolSchemaListResult { /** - * Custom setup without script properties for a SSIS integration runtime. + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - expressCustomSetupProperties?: CustomSetupBaseUnion[]; + readonly value?: SqlPoolSchema[]; /** - * Describes unknown properties. The value of an unknown property can be of "any" type. + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - [property: string]: any; + readonly nextLink?: string; } -/** - * Managed integration runtime, including managed elastic and managed dedicated integration - * runtimes. - */ -export interface ManagedIntegrationRuntime { +/** A list of Sql pool tables. */ +export interface SqlPoolTableListResult { /** - * Polymorphic Discriminator + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - type: "Managed"; - /** - * Integration runtime description. - */ - description?: string; + readonly value?: SqlPoolTable[]; /** - * Integration runtime state, only valid for managed dedicated integration runtime. Possible - * values include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration', - * 'Online', 'Limited', 'Offline', 'AccessDenied' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: IntegrationRuntimeState; + readonly nextLink?: string; +} + +/** A list of Sql pool columns. */ +export interface SqlPoolColumnListResult { /** - * The compute resource for managed integration runtime. + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - computeProperties?: IntegrationRuntimeComputeProperties; + readonly value?: SqlPoolColumn[]; /** - * SSIS properties for managed integration runtime. + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - ssisProperties?: IntegrationRuntimeSsisProperties; + readonly nextLink?: string; } -/** - * The custom setup of running cmdkey commands. - */ -export interface CmdkeySetup { +/** A list of the Sql pool's vulnerability assessments. */ +export interface SqlPoolVulnerabilityAssessmentListResult { /** - * Polymorphic Discriminator + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - type: "CmdkeySetup"; + readonly value?: SqlPoolVulnerabilityAssessment[]; /** - * The server name of data source access. + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - targetName: any; + readonly nextLink?: string; +} + +/** Properties of a Vulnerability Assessment recurring scans. */ +export interface VulnerabilityAssessmentRecurringScansProperties { + /** Recurring scans state. */ + isEnabled?: boolean; + /** Specifies that the schedule scan notification will be is sent to the subscription administrators. */ + emailSubscriptionAdmins?: boolean; + /** Specifies an array of e-mail addresses to which the scan notification is sent. */ + emails?: string[]; +} + +/** A list of vulnerability assessment scan records. */ +export interface VulnerabilityAssessmentScanRecordListResult { /** - * The user name of data source access. + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - userName: any; + readonly value?: VulnerabilityAssessmentScanRecord[]; /** - * The password of data source access. + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - password: SecretBaseUnion; + readonly nextLink?: string; } -/** - * The custom setup of setting environment variable. - */ -export interface EnvironmentVariableSetup { - /** - * Polymorphic Discriminator - */ - type: "EnvironmentVariableSetup"; +/** Properties of a vulnerability assessment scan error. */ +export interface VulnerabilityAssessmentScanError { /** - * The name of the environment variable. + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - variableName: string; + readonly code?: string; /** - * The value of the environment variable. + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - variableValue: string; + readonly message?: string; } -/** - * The custom setup of installing 3rd party components. - */ -export interface ComponentSetup { - /** - * Polymorphic Discriminator - */ - type: "ComponentSetup"; +/** A list of SQL pool security alert policies. */ +export interface ListSqlPoolSecurityAlertPolicies { /** - * The name of the 3rd party component. + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - componentName: string; + readonly value?: SqlPoolSecurityAlertPolicy[]; /** - * The license key to activate the component. + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - licenseKey?: SecretBaseUnion; + readonly nextLink?: string; } -/** - * Contains the possible cases for LinkedIntegrationRuntimeType. - */ -export type LinkedIntegrationRuntimeTypeUnion = LinkedIntegrationRuntimeType | LinkedIntegrationRuntimeKeyAuthorization | LinkedIntegrationRuntimeRbacAuthorization; - -/** - * The base definition of a linked integration runtime. - */ -export interface LinkedIntegrationRuntimeType { - /** - * Polymorphic Discriminator - */ - authorizationType: "LinkedIntegrationRuntimeType"; +/** Properties for an Sql pool vulnerability assessment rule baseline's result. */ +export interface SqlPoolVulnerabilityAssessmentRuleBaselineItem { + /** The rule baseline result */ + result: string[]; } -/** - * Self-hosted integration runtime. - */ -export interface SelfHostedIntegrationRuntime { - /** - * Polymorphic Discriminator - */ - type: "SelfHosted"; +/** A list of sql pool extended auditing settings. */ +export interface ExtendedSqlPoolBlobAuditingPolicyListResult { /** - * Integration runtime description. + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - description?: string; + readonly value?: ExtendedSqlPoolBlobAuditingPolicy[]; /** - * Linked integration runtime type from data factory + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - linkedInfo?: LinkedIntegrationRuntimeTypeUnion; + readonly nextLink?: string; } -/** - * The key authorization type integration runtime. - */ -export interface LinkedIntegrationRuntimeKeyAuthorization { - /** - * Polymorphic Discriminator - */ - authorizationType: "Key"; - /** - * The key used for authorization. - */ - key: SecureString; +/** The response to a list data masking rules request. */ +export interface DataMaskingRuleListResult { + /** The list of Sql pool data masking rules. */ + value?: DataMaskingRule[]; } -/** - * The role based access control (RBAC) authorization type integration runtime. - */ -export interface LinkedIntegrationRuntimeRbacAuthorization { +/** A list of Sql pool auditing settings. */ +export interface SqlPoolBlobAuditingPolicyListResult { /** - * Polymorphic Discriminator + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - authorizationType: "RBAC"; + readonly value?: SqlPoolBlobAuditingPolicy[]; /** - * The resource identifier of the integration runtime to be shared. + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - resourceId: string; + readonly nextLink?: string; } -/** - * Contains the possible cases for IntegrationRuntimeStatus. - */ -export type IntegrationRuntimeStatusUnion = IntegrationRuntimeStatus | ManagedIntegrationRuntimeStatus | SelfHostedIntegrationRuntimeStatus; - -/** - * Integration runtime status. - */ -export interface IntegrationRuntimeStatus { - /** - * Polymorphic Discriminator - */ - type: "IntegrationRuntimeStatus"; - /** - * The workspace name which the integration runtime belong to. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly dataFactoryName?: string; +/** A list of workload groups. */ +export interface WorkloadGroupListResult { /** - * The state of integration runtime. Possible values include: 'Initial', 'Stopped', 'Started', - * 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline', 'AccessDenied' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: IntegrationRuntimeState; + readonly value?: WorkloadGroup[]; /** - * Describes unknown properties. The value of an unknown property can be of "any" type. + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - [property: string]: any; + readonly nextLink?: string; } -/** - * Error definition for managed integration runtime. - */ -export interface ManagedIntegrationRuntimeError { - /** - * The time when the error occurred. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly time?: Date; - /** - * Error code. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly code?: string; - /** - * Managed integration runtime error parameters. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly parameters?: string[]; +/** A list of workload classifiers for a workload group. */ +export interface WorkloadClassifierListResult { /** - * Error message. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message?: string; + readonly value?: WorkloadClassifier[]; /** - * Describes unknown properties. The value of an unknown property can be of "any" type. + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - [property: string]: any; + readonly nextLink?: string; } -/** - * Properties of integration runtime node. - */ -export interface ManagedIntegrationRuntimeNode { +/** A list of server auditing settings. */ +export interface ServerBlobAuditingPolicyListResult { /** - * The managed integration runtime node id. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nodeId?: string; + readonly value?: ServerBlobAuditingPolicy[]; /** - * The managed integration runtime node status. Possible values include: 'Starting', 'Available', - * 'Recycling', 'Unavailable' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: ManagedIntegrationRuntimeNodeStatus; + readonly nextLink?: string; +} + +/** A list of server extended auditing settings. */ +export interface ExtendedServerBlobAuditingPolicyListResult { /** - * The errors that occurred on this integration runtime node. + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - errors?: ManagedIntegrationRuntimeError[]; + readonly value?: ExtendedServerBlobAuditingPolicy[]; /** - * Describes unknown properties. The value of an unknown property can be of "any" type. + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - [property: string]: any; + readonly nextLink?: string; } -/** - * Properties of managed integration runtime operation result. - */ -export interface ManagedIntegrationRuntimeOperationResult { +/** A list of the workspace managed sql server's security alert policies. */ +export interface ServerSecurityAlertPolicyListResult { /** - * The operation type. Could be start or stop. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly value?: ServerSecurityAlertPolicy[]; /** - * The start time of the operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTime?: Date; + readonly nextLink?: string; +} + +/** A list of the server's vulnerability assessments. */ +export interface ServerVulnerabilityAssessmentListResult { /** - * The operation result. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly result?: string; + readonly value?: ServerVulnerabilityAssessment[]; /** - * The error code. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errorCode?: string; + readonly nextLink?: string; +} + +/** A list of server encryption protectors. */ +export interface EncryptionProtectorListResult { /** - * Managed integration runtime error parameters. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly parameters?: string[]; + readonly value?: EncryptionProtector[]; /** - * The activity id for the operation request. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly activityId?: string; + readonly nextLink?: string; +} + +/** Represents the response to a list server metrics request. */ +export interface ServerUsageListResult { + /** The list of server metrics for the server. */ + value: ServerUsage[]; /** - * Describes unknown properties. The value of an unknown property can be of "any" type. + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - [property: string]: any; + readonly nextLink?: string; } -/** - * Managed integration runtime status. - */ -export interface ManagedIntegrationRuntimeStatus { +/** Represents server metrics. */ +export interface ServerUsage { /** - * Polymorphic Discriminator + * Name of the server usage metric. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - type: "Managed"; + readonly name?: string; /** - * The workspace name which the integration runtime belong to. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly dataFactoryName?: string; + readonly resourceName?: string; /** - * The state of integration runtime. Possible values include: 'Initial', 'Stopped', 'Started', - * 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline', 'AccessDenied' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The metric display name. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: IntegrationRuntimeState; + readonly displayName?: string; /** - * The time at which the integration runtime was created, in ISO8601 format. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The current value of the metric. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createTime?: Date; + readonly currentValue?: number; /** - * The list of nodes for managed integration runtime. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The current limit of the metric. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nodes?: ManagedIntegrationRuntimeNode[]; + readonly limit?: number; /** - * The errors that occurred on this integration runtime. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The units of the metric. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly otherErrors?: ManagedIntegrationRuntimeError[]; + readonly unit?: string; /** - * The last operation result that occurred on this integration runtime. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The next reset time for the metric (ISO8601 format). + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastOperation?: ManagedIntegrationRuntimeOperationResult; + readonly nextResetTime?: Date; } -/** - * Properties of Self-hosted integration runtime node. - */ -export interface SelfHostedIntegrationRuntimeNode { - /** - * Name of the integration runtime node. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nodeName?: string; +/** The response to a list recoverable sql pools request */ +export interface RecoverableSqlPoolListResult { /** - * Machine name of the integration runtime node. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A list of recoverable sql pool + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly machineName?: string; + readonly value?: RecoverableSqlPool[]; /** - * URI for the host machine of the integration runtime. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly hostServiceUri?: string; + readonly nextLink?: string; +} + +/** List of workspaces */ +export interface WorkspaceInfoListResult { + /** Link to the next page of results */ + nextLink?: string; + /** List of workspaces */ + value?: Workspace[]; +} + +/** Details of the data lake storage account associated with the workspace */ +export interface DataLakeStorageAccountDetails { + /** Account URL */ + accountUrl?: string; + /** Filesystem name */ + filesystem?: string; + /** ARM resource Id of this storage account */ + resourceId?: string; + /** Create managed private endpoint to this storage account or not */ + createManagedPrivateEndpoint?: boolean; +} + +/** Virtual Network Profile */ +export interface VirtualNetworkProfile { + /** Subnet ID used for computes in workspace */ + computeSubnetId?: string; +} + +/** Details of the encryption associated with the workspace */ +export interface EncryptionDetails { /** - * Status of the integration runtime node. Possible values include: 'NeedRegistration', 'Online', - * 'Limited', 'Offline', 'Upgrading', 'Initializing', 'InitializeFailed' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Double Encryption enabled + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: SelfHostedIntegrationRuntimeNodeStatus; + readonly doubleEncryptionEnabled?: boolean; + /** Customer Managed Key Details */ + cmk?: CustomerManagedKeyDetails; +} + +/** Details of the customer managed key associated with the workspace */ +export interface CustomerManagedKeyDetails { /** - * The integration runtime capabilities dictionary - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The customer managed key status on the workspace + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly capabilities?: { [propertyName: string]: string }; - /** - * Status of the integration runtime node version. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + readonly status?: string; + /** The key object of the workspace */ + key?: WorkspaceKeyDetails; + /** Key encryption key */ + kekIdentity?: KekIdentityProperties; +} + +/** Details of the customer managed key associated with the workspace */ +export interface WorkspaceKeyDetails { + /** Workspace Key sub-resource name */ + name?: string; + /** Workspace Key sub-resource key vault url */ + keyVaultUrl?: string; +} + +/** Key encryption key properties */ +export interface KekIdentityProperties { + /** User assigned identity resource Id */ + userAssignedIdentity?: string; + /** Boolean specifying whether to use system assigned identity or not */ + useSystemAssignedIdentity?: any; +} + +/** 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[]; +} + +/** Git integration settings */ +export interface WorkspaceRepositoryConfiguration { + /** Type of workspace repositoryID configuration. Example WorkspaceVSTSConfiguration, WorkspaceGitHubConfiguration */ + type?: string; + /** GitHub Enterprise host name. For example: https://github.mydomain.com */ + hostName?: string; + /** Account name */ + accountName?: string; + /** VSTS project name */ + projectName?: string; + /** Repository name */ + repositoryName?: string; + /** Collaboration branch */ + collaborationBranch?: string; + /** Root folder to use in the repository */ + rootFolder?: string; + /** The last commit ID */ + lastCommitId?: string; + /** The VSTS tenant ID */ + tenantId?: string; +} + +/** Purview Configuration */ +export interface PurviewConfiguration { + /** Purview Resource ID */ + purviewResourceId?: string; +} + +/** Initial workspace AAD admin properties for a CSP subscription */ +export interface CspWorkspaceAdminProperties { + /** AAD object ID of initial workspace admin */ + initialWorkspaceAdminObjectId?: string; +} + +/** The workspace managed identity */ +export interface ManagedIdentity { + /** + * The principal ID of the workspace managed identity + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; + /** + * The tenant ID of the workspace managed identity + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantId?: string; + /** The type of managed identity for the workspace */ + type?: ResourceIdentityType; + /** The user assigned managed identities. */ + userAssignedIdentities?: { + [propertyName: string]: UserAssignedManagedIdentity; + }; +} + +/** User Assigned Managed Identity */ +export interface UserAssignedManagedIdentity { + /** + * The client ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly clientId?: string; + /** + * The principal ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly principalId?: string; +} + +/** Workspace patch details */ +export interface WorkspacePatchInfo { + /** Resource tags */ + tags?: { [propertyName: string]: string }; + /** The identity of the workspace */ + identity?: ManagedIdentity; + /** SQL administrator login password */ + sqlAdministratorLoginPassword?: string; + /** Managed Virtual Network Settings */ + managedVirtualNetworkSettings?: ManagedVirtualNetworkSettings; + /** Git integration settings */ + workspaceRepositoryConfiguration?: WorkspaceRepositoryConfiguration; + /** Purview Configuration */ + purviewConfiguration?: PurviewConfiguration; + /** + * Resource provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** The encryption details of the workspace */ + encryption?: EncryptionDetails; + /** Enable or Disable public network access to workspace */ + publicNetworkAccess?: WorkspacePublicNetworkAccess; +} + +/** Grant sql control to managed identity */ +export interface ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity { + /** Desired state */ + desiredState?: ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState; + /** + * Actual state + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actualState?: ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState; +} + +/** The response to a list restorable dropped Sql pools request */ +export interface RestorableDroppedSqlPoolListResult { + /** A list of restorable dropped Sql pools */ + value: RestorableDroppedSqlPool[]; +} + +/** Auto-scaling properties of a Big Data pool powered by Apache Spark */ +export interface AutoScaleProperties { + /** The minimum number of nodes the Big Data pool can support. */ + minNodeCount?: number; + /** Whether automatic scaling is enabled for the Big Data pool. */ + enabled?: boolean; + /** The maximum number of nodes the Big Data pool can support. */ + maxNodeCount?: number; +} + +/** Auto-pausing properties of a Big Data pool powered by Apache Spark */ +export interface AutoPauseProperties { + /** Number of minutes of idle time before the Big Data pool is automatically paused. */ + delayInMinutes?: number; + /** Whether auto-pausing is enabled for the Big Data pool. */ + enabled?: boolean; +} + +/** Dynamic Executor Allocation Properties */ +export interface DynamicExecutorAllocation { + /** Indicates whether Dynamic Executor Allocation is enabled or not. */ + enabled?: boolean; + /** The minimum number of executors alloted */ + minExecutors?: number; + /** The maximum number of executors alloted */ + maxExecutors?: number; +} + +/** Library requirements for a Big Data pool powered by Apache Spark */ +export interface LibraryRequirements { + /** + * The last update time of the library requirements file. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly time?: Date; + /** The library requirements. */ + content?: string; + /** The filename of the library requirements file. */ + filename?: string; +} + +/** Library/package information of a Big Data pool powered by Apache Spark */ +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; + /** + * Provisioning status of the library/package. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatus?: string; + /** + * Creator Id of the library/package. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly creatorId?: string; +} + +/** SparkConfig Properties for a Big Data pool powered by Apache Spark */ +export interface SparkConfigProperties { + /** + * The last update time of the spark config properties file. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly time?: Date; + /** The spark config properties. */ + content?: string; + /** The filename of the spark config properties file. */ + filename?: string; + /** The type of the spark config properties file. */ + configurationType?: ConfigurationType; +} + +/** Properties patch for a Big Data pool */ +export interface BigDataPoolPatchInfo { + /** Updated tags for the Big Data pool */ + tags?: { [propertyName: string]: string }; +} + +/** Collection of Big Data pool information */ +export interface BigDataPoolResourceInfoListResult { + /** Link to the next page of results */ + nextLink?: string; + /** List of Big Data pools */ + value?: BigDataPoolResourceInfo[]; +} + +/** A list of Library resources. */ +export interface LibraryListResponse { + /** List of Library. */ + value: LibraryResource[]; + /** The link to the next page of results, if any remaining results exist. */ + nextLink?: string; +} + +/** Update integration runtime request. */ +export interface UpdateIntegrationRuntimeRequest { + /** Enables or disables the auto-update feature of the self-hosted integration runtime. See https://go.microsoft.com/fwlink/?linkid=854189. */ + autoUpdate?: IntegrationRuntimeAutoUpdate; + /** The time offset (in hours) in the day, e.g., PT03H is 3 hours. The integration runtime auto update will happen on that time. */ + updateDelayOffset?: string; +} + +/** Azure Synapse nested object which serves as a compute resource for activities. */ +export interface IntegrationRuntime { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "Managed" | "SelfHosted"; + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** Integration runtime description. */ + description?: string; +} + +/** The IP address of self-hosted integration runtime node. */ +export interface IntegrationRuntimeNodeIpAddress { + /** + * The IP address of self-hosted integration runtime node. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ipAddress?: string; +} + +/** The request payload of get SSIS object metadata. */ +export interface GetSsisObjectMetadataRequest { + /** Metadata path. */ + metadataPath?: string; +} + +/** A list of SSIS object metadata. */ +export interface SsisObjectMetadataListResponse { + /** List of SSIS object metadata. */ + value?: SsisObjectMetadataUnion[]; + /** The link to the next page of results, if any remaining results exist. */ + nextLink?: string; +} + +/** SSIS object metadata. */ +export interface SsisObjectMetadata { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "Folder" | "Project" | "Package" | "Environment"; + /** Metadata id. */ + id?: number; + /** Metadata name. */ + name?: string; + /** Metadata description. */ + description?: string; +} + +/** Properties of Self-hosted integration runtime node. */ +export interface SelfHostedIntegrationRuntimeNode { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** + * Name of the integration runtime node. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nodeName?: string; + /** + * Machine name of the integration runtime node. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly machineName?: string; + /** + * URI for the host machine of the integration runtime. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly hostServiceUri?: string; + /** + * Status of the integration runtime node. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: SelfHostedIntegrationRuntimeNodeStatus; + /** + * The integration runtime capabilities dictionary + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly capabilities?: { [propertyName: string]: string }; + /** + * Status of the integration runtime node version. + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly versionStatus?: string; /** * Version of the integration runtime node. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly version?: string; /** * The time at which the integration runtime node was registered in ISO8601 format. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly registerTime?: Date; /** * The most recent time at which the integration runtime was connected in ISO8601 format. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastConnectTime?: Date; /** * The time at which the integration runtime will expire in ISO8601 format. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly expiryTime?: Date; /** * The time the node last started up. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastStartTime?: Date; /** * The integration runtime node last stop time. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastStopTime?: Date; /** - * The result of the last integration runtime node update. Possible values include: 'None', - * 'Succeed', 'Fail' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The result of the last integration runtime node update. + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastUpdateResult?: IntegrationRuntimeUpdateResult; /** * The last time for the integration runtime node update start. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastStartUpdateTime?: Date; /** * The last time for the integration runtime node update end. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly lastEndUpdateTime?: Date; /** * Indicates whether this node is the active dispatcher for integration runtime requests. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isActiveDispatcher?: boolean; /** * Maximum concurrent jobs on the integration runtime node. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly concurrentJobsLimit?: number; /** * The maximum concurrent jobs in this integration runtime. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly maxConcurrentJobs?: number; - /** - * Describes unknown properties. The value of an unknown property can be of "any" type. - */ - [property: string]: any; } -/** - * The linked integration runtime information. - */ -export interface LinkedIntegrationRuntime { +/** Update integration runtime node request. */ +export interface UpdateIntegrationRuntimeNodeRequest { + /** The number of concurrent jobs permitted to run on the integration runtime node. Values between 1 and maxConcurrentJobs(inclusive) are allowed. */ + concurrentJobsLimit?: number; +} + +/** A list of integration runtime resources. */ +export interface IntegrationRuntimeListResponse { + /** List of integration runtimes. */ + value: IntegrationRuntimeResource[]; + /** The link to the next page of results, if any remaining results exist. */ + nextLink?: string; +} + +/** Connection information for encrypting the on-premises data source credentials. */ +export interface IntegrationRuntimeConnectionInfo { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; /** - * The name of the linked integration runtime. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The token generated in service. Callers use this token to authenticate to integration runtime. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly serviceToken?: string; /** - * The subscription ID for which the linked integration runtime belong to. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The integration runtime SSL certificate thumbprint. Click-Once application uses it to do server validation. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subscriptionId?: string; + readonly identityCertThumbprint?: string; /** - * The name of the workspace for which the linked integration runtime belong to. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The on-premises integration runtime host URL. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly dataFactoryName?: string; + readonly hostServiceUri?: string; /** - * The location of the workspace for which the linked integration runtime belong to. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The integration runtime version. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly dataFactoryLocation?: string; + readonly version?: string; /** - * The creating time of the linked integration runtime. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The public key for encrypting a credential when transferring the credential to the integration runtime. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createTime?: Date; + readonly publicKey?: string; + /** + * Whether the identity certificate is expired. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isIdentityCertExprired?: boolean; } -/** - * Self-hosted integration runtime status. - */ -export interface SelfHostedIntegrationRuntimeStatus { +/** Integration runtime status response. */ +export interface IntegrationRuntimeStatusResponse { /** - * Polymorphic Discriminator + * The integration runtime name. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - type: "SelfHosted"; + readonly name?: string; + /** Integration runtime properties. */ + properties: IntegrationRuntimeStatusUnion; +} + +/** Integration runtime status. */ +export interface IntegrationRuntimeStatus { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "Managed" | "SelfHosted"; + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; /** * The workspace name which the integration runtime belong to. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly dataFactoryName?: string; /** - * The state of integration runtime. Possible values include: 'Initial', 'Stopped', 'Started', - * 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline', 'AccessDenied' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The state of integration runtime. + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly state?: IntegrationRuntimeState; +} + +/** Parameters to regenerate the authentication key. */ +export interface IntegrationRuntimeRegenerateKeyParameters { + /** The name of the authentication key to regenerate. */ + keyName?: IntegrationRuntimeAuthKeyName; +} + +/** The integration runtime authentication keys. */ +export interface IntegrationRuntimeAuthKeys { + /** The primary integration runtime authentication key. */ + authKey1?: string; + /** The secondary integration runtime authentication key. */ + authKey2?: string; +} + +/** Get monitoring data response. */ +export interface IntegrationRuntimeMonitoringData { + /** Integration runtime name. */ + name?: string; + /** Integration runtime node monitoring data. */ + nodes?: IntegrationRuntimeNodeMonitoringData[]; +} + +/** Monitoring data for integration runtime node. */ +export interface IntegrationRuntimeNodeMonitoringData { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; /** - * The time at which the integration runtime was created, in ISO8601 format. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Name of the integration runtime node. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createTime?: Date; - /** - * The task queue id of the integration runtime. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly taskQueueId?: string; - /** - * The node communication Channel encryption mode - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nodeCommunicationChannelEncryptionMode?: string; - /** - * It is used to set the encryption mode for node-node communication channel (when more than 2 - * self-hosted integration runtime nodes exist). Possible values include: 'NotSet', - * 'SslEncrypted', 'NotEncrypted' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly internalChannelEncryption?: IntegrationRuntimeInternalChannelEncryptionMode; - /** - * Version of the integration runtime. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly version?: string; - /** - * The list of nodes for this integration runtime. - */ - nodes?: SelfHostedIntegrationRuntimeNode[]; - /** - * The date at which the integration runtime will be scheduled to update, in ISO8601 format. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly scheduledUpdateDate?: Date; - /** - * The time in the date scheduled by service to update the integration runtime, e.g., PT03H is 3 - * hours - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly updateDelayOffset?: string; - /** - * The local time zone offset in hours. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly localTimeZoneOffset?: string; + readonly nodeName?: string; /** - * Object with additional information about integration runtime capabilities. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Available memory (MB) on the integration runtime node. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly capabilities?: { [propertyName: string]: string }; + readonly availableMemoryInMB?: number; /** - * The URLs for the services used in integration runtime backend service. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * CPU percentage on the integration runtime node. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serviceUrls?: string[]; + readonly cpuUtilization?: number; /** - * Whether Self-hosted integration runtime auto update has been turned on. Possible values - * include: 'On', 'Off' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Maximum concurrent jobs on the integration runtime node. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly autoUpdate?: IntegrationRuntimeAutoUpdate; + readonly concurrentJobsLimit?: number; /** - * Status of the integration runtime version. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The number of jobs currently running on the integration runtime node. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly versionStatus?: string; + readonly concurrentJobsRunning?: number; /** - * The list of linked integration runtimes that are created to share with this integration - * runtime. + * The maximum concurrent jobs in this integration runtime. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - links?: LinkedIntegrationRuntime[]; + readonly maxConcurrentJobs?: number; /** - * The version that the integration runtime is going to update to. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Sent bytes on the integration runtime node. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly pushedVersion?: string; + readonly sentBytes?: number; /** - * The latest version on download center. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Received bytes on the integration runtime node. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly latestVersion?: string; + readonly receivedBytes?: number; +} + +/** The status of the operation. */ +export interface SsisObjectMetadataStatusResponse { + /** The status of the operation. */ + status?: string; + /** The operation name. */ + name?: string; + /** The operation properties. */ + properties?: string; + /** The operation error message. */ + error?: string; +} + +/** Azure-SSIS integration runtime outbound network dependency endpoints. */ +export interface IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse { + /** The list of outbound network dependency endpoints. */ + value?: IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint[]; +} + +/** Azure-SSIS integration runtime outbound network dependency endpoints for one category. */ +export interface IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint { + /** The category of outbound network dependency. */ + category?: string; + /** The endpoints for outbound network dependency. */ + endpoints?: IntegrationRuntimeOutboundNetworkDependenciesEndpoint[]; +} + +/** The endpoint for Azure-SSIS integration runtime outbound network dependency. */ +export interface IntegrationRuntimeOutboundNetworkDependenciesEndpoint { + /** The domain name of endpoint. */ + domainName?: string; + /** The details of endpoint. */ + endpointDetails?: IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails[]; +} + +/** The details of Azure-SSIS integration runtime outbound network dependency endpoint. */ +export interface IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails { + /** The port of endpoint. */ + port?: number; +} + +/** A list of SparkConfiguration resources. */ +export interface SparkConfigurationListResponse { + /** List of SparkConfiguration. */ + value: SparkConfigurationResource[]; + /** The link to the next page of results, if any remaining results exist. */ + nextLink?: string; +} + +/** Result of the request to list REST API operations. It contains a list of operations and a URL nextLink to get the next set of results. */ +export interface OperationListResult { + /** The list of operations supported by the resource provider. */ + value?: Operation[]; /** - * The estimated time when the self-hosted integration runtime will be updated. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The URL to get the next set of operation list results if there are any. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly autoUpdateETA?: Date; + readonly nextLink?: string; } -/** - * Connection information for encrypting the on-premises data source credentials. - */ -export interface IntegrationRuntimeConnectionInfo { +/** A REST API operation */ +export interface Operation { + /** This is of the format {provider}/{resource}/{operation}. */ + name?: string; + /** The object that describes the operation. */ + display?: OperationDisplay; + /** The intended executor of the operation. */ + origin?: string; + /** Any object */ + properties?: Record; +} + +/** The object that describes the operation. */ +export interface OperationDisplay { + /** Friendly name of the resource provider. */ + provider?: string; + /** For example: read, write, delete. */ + operation?: string; + /** The resource type on which the operation is performed. */ + resource?: string; + /** The friendly name of the operation. */ + description?: string; +} + +/** The list of the SKU descriptions */ +export interface SkuDescriptionList { /** - * The token generated in service. Callers use this token to authenticate to integration runtime. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * SKU descriptions + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serviceToken?: string; + readonly value?: SkuDescription[]; +} + +/** The Kusto SKU description of given resource type */ +export interface SkuDescription { /** - * The integration runtime SSL certificate thumbprint. Click-Once application uses it to do - * server validation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource type + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly identityCertThumbprint?: string; + readonly resourceType?: string; /** - * The on-premises integration runtime host URL. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The name of the SKU + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly hostServiceUri?: string; + readonly name?: string; /** - * The integration runtime version. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The size of the SKU + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly version?: string; + readonly size?: string; /** - * The public key for encrypting a credential when transferring the credential to the integration - * runtime. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The set of locations that the SKU is available + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly publicKey?: string; + readonly locations?: string[]; /** - * Whether the identity certificate is expired. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Locations and zones + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isIdentityCertExprired?: boolean; + readonly locationInfo?: SkuLocationInfoItem[]; /** - * Describes unknown properties. The value of an unknown property can be of "any" type. + * The restrictions because of which SKU cannot be used + * NOTE: This property will not be serialized. It can only be populated by the server. */ - [property: string]: any; + readonly restrictions?: Record[]; } -/** - * Parameters to regenerate the authentication key. - */ -export interface IntegrationRuntimeRegenerateKeyParameters { - /** - * The name of the authentication key to regenerate. Possible values include: 'authKey1', - * 'authKey2' - */ - keyName?: IntegrationRuntimeAuthKeyName; +/** The locations and zones info for SKU. */ +export interface SkuLocationInfoItem { + /** The available location of the SKU. */ + location: string; + /** The available zone of the SKU. */ + zones?: string[]; } -/** - * The integration runtime authentication keys. - */ -export interface IntegrationRuntimeAuthKeys { - /** - * The primary integration runtime authentication key. - */ - authKey1?: string; - /** - * The secondary integration runtime authentication key. - */ - authKey2?: string; +/** The object sent for a kusto pool check name availability request. */ +export interface KustoPoolCheckNameRequest { + /** Kusto Pool name. */ + name: string; + /** The type of resource, Microsoft.Synapse/workspaces/kustoPools. */ + type: "Microsoft.Synapse/workspaces/kustoPools"; } -/** - * Monitoring data for integration runtime node. - */ -export interface IntegrationRuntimeNodeMonitoringData { - /** - * Name of the integration runtime node. - * **NOTE: This property will not be serialized. It can only be populated by the server.** +/** The result returned from a check name availability request. */ +export interface CheckNameResult { + /** Specifies a Boolean value that indicates if the name is available. */ + nameAvailable?: boolean; + /** The name that was checked. */ + name?: string; + /** Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated. */ + message?: string; + /** Message providing the reason why the given name is invalid. */ + reason?: Reason; +} + +/** The list Kusto pools operation response. */ +export interface KustoPoolListResult { + /** The list of Kusto pools. */ + value?: KustoPool[]; +} + +/** Azure SKU definition. */ +export interface AzureSku { + /** SKU name. */ + name: SkuName; + /** The number of instances of the cluster. */ + capacity?: number; + /** SKU size. */ + size: SkuSize; +} + +/** A class that contains the optimized auto scale definition. */ +export interface OptimizedAutoscale { + /** The version of the template defined, for instance 1. */ + version: number; + /** A boolean value that indicate if the optimized autoscale feature is enabled or not. */ + isEnabled: boolean; + /** Minimum allowed instances count. */ + minimum: number; + /** Maximum allowed instances count. */ + maximum: number; +} + +/** The list of language extension objects. */ +export interface LanguageExtensionsList { + /** The list of language extensions. */ + value?: LanguageExtension[]; +} + +/** The language extension object. */ +export interface LanguageExtension { + /** The language extension name. */ + languageExtensionName?: LanguageExtensionName; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} + +/** List of available SKUs for a Kusto Pool. */ +export interface ListResourceSkusResult { + /** The collection of available SKUs for an existing resource. */ + value?: AzureResourceSku[]; +} + +/** Azure resource SKU definition. */ +export interface AzureResourceSku { + /** Resource Namespace and Type. */ + resourceType?: string; + /** The SKU details. */ + sku?: AzureSku; + /** The number of instances of the cluster. */ + capacity?: AzureCapacity; +} + +/** Azure capacity definition. */ +export interface AzureCapacity { + /** Scale type. */ + scaleType: AzureScaleType; + /** Minimum allowed capacity. */ + minimum: number; + /** Maximum allowed capacity. */ + maximum: number; + /** The default capacity that would be used. */ + default: number; +} + +/** The result returned from a database check name availability request. */ +export interface DatabaseCheckNameRequest { + /** Resource name. */ + name: string; + /** The type of resource, for instance Microsoft.Synapse/workspaces/kustoPools/databases. */ + type: Type; +} + +/** The list Kusto database principals operation response. */ +export interface FollowerDatabaseListResult { + /** The list of follower database result. */ + value?: FollowerDatabaseDefinition[]; +} + +/** A class representing follower database request. */ +export interface FollowerDatabaseDefinition { + /** Resource id of the cluster that follows a database owned by this cluster. */ + kustoPoolResourceId: string; + /** Resource name of the attached database configuration in the follower cluster. */ + attachedDatabaseConfigurationName: string; + /** + * The database name owned by this cluster that was followed. * in case following all databases. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nodeName?: string; + readonly databaseName?: string; +} + +/** The list attached database configurations operation response. */ +export interface AttachedDatabaseConfigurationListResult { + /** The list of attached database configurations. */ + value?: AttachedDatabaseConfiguration[]; +} + +/** Tables that will be included and excluded in the follower database */ +export interface TableLevelSharingProperties { + /** List of tables to include in the follower database */ + tablesToInclude?: string[]; + /** List of tables to exclude from the follower database */ + tablesToExclude?: string[]; + /** List of external tables to include in the follower database */ + externalTablesToInclude?: string[]; + /** List of external tables exclude from the follower database */ + externalTablesToExclude?: string[]; + /** List of materialized views to include in the follower database */ + materializedViewsToInclude?: string[]; + /** List of materialized views exclude from the follower database */ + materializedViewsToExclude?: string[]; +} + +/** The list Kusto databases operation response. */ +export interface DatabaseListResult { + /** The list of Kusto databases. */ + value?: DatabaseUnion[]; +} + +/** A data connection check name availability request. */ +export interface DataConnectionCheckNameRequest { + /** Data Connection name. */ + name: string; + /** The type of resource, Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections. */ + type: "Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections"; +} + +/** Class representing an data connection validation. */ +export interface DataConnectionValidation { + /** The name of the data connection. */ + dataConnectionName?: string; + /** The data connection properties to validate. */ + properties?: DataConnectionUnion; +} + +/** The list Kusto data connection validation result. */ +export interface DataConnectionValidationListResult { + /** The list of Kusto data connection validation errors. */ + value?: DataConnectionValidationResult[]; +} + +/** The result returned from a data connection validation request. */ +export interface DataConnectionValidationResult { + /** A message which indicates a problem in data connection validation. */ + errorMessage?: string; +} + +/** The list Kusto data connections operation response. */ +export interface DataConnectionListResult { + /** The list of Kusto data connections. */ + value?: DataConnectionUnion[]; +} + +/** A principal assignment check name availability request. */ +export interface ClusterPrincipalAssignmentCheckNameRequest { + /** Principal Assignment resource name. */ + name: string; + /** The type of resource, Microsoft.Synapse/workspaces/kustoPools/principalAssignments. */ + type: "Microsoft.Synapse/workspaces/kustoPools/principalAssignments"; +} + +/** The list Kusto cluster principal assignments operation response. */ +export interface ClusterPrincipalAssignmentListResult { + /** The list of Kusto cluster principal assignments. */ + value?: ClusterPrincipalAssignment[]; +} + +/** A principal assignment check name availability request. */ +export interface DatabasePrincipalAssignmentCheckNameRequest { + /** Principal Assignment resource name. */ + name: string; + /** The type of resource, Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments. */ + type: "Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments"; +} + +/** The list Kusto database principal assignments operation response. */ +export interface DatabasePrincipalAssignmentListResult { + /** The list of Kusto database principal assignments. */ + value?: DatabasePrincipalAssignment[]; +} + +/** A database query. */ +export interface TopQueries { /** - * Available memory (MB) on the integration runtime node. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The function that is used to aggregate each query's metrics. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly availableMemoryInMB?: number; + readonly aggregationFunction?: QueryAggregationFunction; /** - * CPU percentage on the integration runtime node. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The execution type that is used to filter the query instances that are returned. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly cpuUtilization?: number; + readonly executionType?: QueryExecutionType; /** - * Maximum concurrent jobs on the integration runtime node. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The duration of the interval (ISO8601 duration format). + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly concurrentJobsLimit?: number; + readonly intervalType?: string; /** - * The number of jobs currently running on the integration runtime node. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The number of requested queries. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly concurrentJobsRunning?: number; + readonly numberOfTopQueries?: number; /** - * The maximum concurrent jobs in this integration runtime. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The start time for queries that are returned (ISO8601 format) + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxConcurrentJobs?: number; + readonly observationStartTime?: Date; /** - * Sent bytes on the integration runtime node. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The end time for queries that are returned (ISO8601 format) + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly sentBytes?: number; + readonly observationEndTime?: Date; /** - * Received bytes on the integration runtime node. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The type of metric to use for ordering the top metrics. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly receivedBytes?: number; + readonly observedMetric?: QueryObservedMetricType; /** - * Describes unknown properties. The value of an unknown property can be of "any" type. + * The list of queries. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - [property: string]: any; + readonly queries?: QueryStatistic[]; } -/** - * Get monitoring data response. - */ -export interface IntegrationRuntimeMonitoringData { - /** - * Integration runtime name. - */ - name?: string; +/** A database query. */ +export interface QueryStatistic { /** - * Integration runtime node monitoring data. + * The id of the query + * NOTE: This property will not be serialized. It can only be populated by the server. */ - nodes?: IntegrationRuntimeNodeMonitoringData[]; -} - -/** - * The IP address of self-hosted integration runtime node. - */ -export interface IntegrationRuntimeNodeIpAddress { + readonly queryId?: string; /** - * The IP address of self-hosted integration runtime node. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The list of query intervals. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ipAddress?: string; + readonly intervals?: QueryInterval[]; } -/** - * Contains the possible cases for SsisObjectMetadata. - */ -export type SsisObjectMetadataUnion = SsisObjectMetadata | SsisFolder | SsisProject | SsisPackage | SsisEnvironment; - -/** - * SSIS object metadata. - */ -export interface SsisObjectMetadata { - /** - * Polymorphic Discriminator - */ - type: "SsisObjectMetadata"; - /** - * Metadata id. - */ - id?: number; - /** - * Metadata name. - */ - name?: string; +/** A database query. */ +export interface QueryInterval { /** - * Metadata description. + * The start time of the measurement interval (ISO8601 format). + * NOTE: This property will not be serialized. It can only be populated by the server. */ - description?: string; -} - -/** - * A list of SSIS object metadata. - */ -export interface SsisObjectMetadataListResponse { + readonly intervalStartTime?: Date; /** - * List of SSIS object metadata. + * The number of times the query was executed during this interval. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - value?: SsisObjectMetadataUnion[]; + readonly executionCount?: number; /** - * The link to the next page of results, if any remaining results exist. + * The list of query metrics during this interval. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - nextLink?: string; + readonly metrics?: QueryMetric[]; } -/** - * Ssis folder. - */ -export interface SsisFolder { +/** A database query. */ +export interface QueryMetric { /** - * Polymorphic Discriminator + * The name of the metric + * NOTE: This property will not be serialized. It can only be populated by the server. */ - type: "Folder"; + readonly name?: string; /** - * Metadata id. + * The name of the metric for display in user interface + * NOTE: This property will not be serialized. It can only be populated by the server. */ - id?: number; + readonly displayName?: string; /** - * Metadata name. + * The unit of measurement + * NOTE: This property will not be serialized. It can only be populated by the server. */ - name?: string; + readonly unit?: QueryMetricUnit; /** - * Metadata description. + * The measured value + * NOTE: This property will not be serialized. It can only be populated by the server. */ - description?: string; + readonly value?: number; } -/** - * Ssis environment reference. - */ -export interface SsisEnvironmentReference { - /** - * Environment reference id. - */ - id?: number; - /** - * Environment folder name. - */ - environmentFolderName?: string; - /** - * Environment name. - */ - environmentName?: string; - /** - * Reference type - */ - referenceType?: string; +/** Represents the response to a get top queries request. */ +export interface TopQueriesListResult { + /** The list of top queries. */ + value: TopQueries[]; } -/** - * Ssis parameter. - */ -export interface SsisParameter { +/** The compute resource properties for managed integration runtime. */ +export interface IntegrationRuntimeComputeProperties { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** The location for managed integration runtime. The supported regions could be found on https://docs.microsoft.com/en-us/azure/data-factory/data-factory-data-movement-activities */ + location?: string; + /** The node size requirement to managed integration runtime. */ + nodeSize?: string; + /** The required number of nodes for managed integration runtime. */ + numberOfNodes?: number; + /** Maximum parallel executions count per node for managed integration runtime. */ + maxParallelExecutionsPerNode?: number; + /** Data flow properties for managed integration runtime. */ + dataFlowProperties?: IntegrationRuntimeDataFlowProperties; + /** VNet properties for managed integration runtime. */ + vNetProperties?: IntegrationRuntimeVNetProperties; +} + +/** Data flow properties for managed integration runtime. */ +export interface IntegrationRuntimeDataFlowProperties { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** Compute type of the cluster which will execute data flow job. */ + computeType?: DataFlowComputeType; + /** Core count of the cluster which will execute data flow job. Supported values are: 8, 16, 32, 48, 80, 144 and 272. */ + coreCount?: number; + /** Time to live (in minutes) setting of the cluster which will execute data flow job. */ + timeToLive?: number; + /** Cluster will not be recycled and it will be used in next data flow activity run until TTL (time to live) is reached if this is set as false. Default is true. */ + cleanup?: boolean; +} + +/** VNet properties for managed integration runtime. */ +export interface IntegrationRuntimeVNetProperties { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** The ID of the VNet that this integration runtime will join. */ + vNetId?: string; + /** The name of the subnet this integration runtime will join. */ + subnet?: string; + /** Resource IDs of the public IP addresses that this integration runtime will use. */ + publicIPs?: string[]; + /** The ID of subnet, to which this Azure-SSIS integration runtime will be joined. */ + subnetId?: string; +} + +/** SSIS properties for managed integration runtime. */ +export interface IntegrationRuntimeSsisProperties { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** Catalog information for managed dedicated integration runtime. */ + catalogInfo?: IntegrationRuntimeSsisCatalogInfo; + /** License type for bringing your own license scenario. */ + licenseType?: IntegrationRuntimeLicenseType; + /** Custom setup script properties for a managed dedicated integration runtime. */ + customSetupScriptProperties?: IntegrationRuntimeCustomSetupScriptProperties; + /** Data proxy properties for a managed dedicated integration runtime. */ + dataProxyProperties?: IntegrationRuntimeDataProxyProperties; + /** The edition for the SSIS Integration Runtime */ + edition?: IntegrationRuntimeEdition; + /** Custom setup without script properties for a SSIS integration runtime. */ + expressCustomSetupProperties?: CustomSetupBaseUnion[]; +} + +/** Catalog information for managed dedicated integration runtime. */ +export interface IntegrationRuntimeSsisCatalogInfo { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** The catalog database server URL. */ + catalogServerEndpoint?: string; + /** The administrator user name of catalog database. */ + catalogAdminUserName?: string; + /** The password of the administrator user account of the catalog database. */ + catalogAdminPassword?: SecureString; + /** The pricing tier for the catalog database. The valid values could be found in https://azure.microsoft.com/en-us/pricing/details/sql-database/ */ + catalogPricingTier?: IntegrationRuntimeSsisCatalogPricingTier; +} + +/** The base definition of a secret type. */ +export interface SecretBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "SecureString"; +} + +/** Custom setup script properties for a managed dedicated integration runtime. */ +export interface IntegrationRuntimeCustomSetupScriptProperties { + /** The URI of the Azure blob container that contains the custom setup script. */ + blobContainerUri?: string; + /** The SAS token of the Azure blob container. */ + sasToken?: SecureString; +} + +/** Data proxy properties for a managed dedicated integration runtime. */ +export interface IntegrationRuntimeDataProxyProperties { + /** The self-hosted integration runtime reference. */ + connectVia?: EntityReference; + /** The staging linked service reference. */ + stagingLinkedService?: EntityReference; + /** The path to contain the staged data in the Blob storage. */ + path?: string; +} + +/** The entity reference. */ +export interface EntityReference { + /** The type of this referenced entity. */ + type?: IntegrationRuntimeEntityReferenceType; + /** The name of this referenced entity. */ + referenceName?: string; +} + +/** The base definition of the custom setup. */ +export interface CustomSetupBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "CmdkeySetup" | "EnvironmentVariableSetup" | "ComponentSetup"; +} + +/** The base definition of a linked integration runtime. */ +export interface LinkedIntegrationRuntimeType { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authorizationType: "Key" | "RBAC"; +} + +/** Properties of integration runtime node. */ +export interface ManagedIntegrationRuntimeNode { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; /** - * Parameter id. + * The managed integration runtime node id. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - id?: number; + readonly nodeId?: string; /** - * Parameter name. + * The managed integration runtime node status. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - name?: string; + readonly status?: ManagedIntegrationRuntimeNodeStatus; + /** The errors that occurred on this integration runtime node. */ + errors?: ManagedIntegrationRuntimeError[]; +} + +/** Error definition for managed integration runtime. */ +export interface ManagedIntegrationRuntimeError { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; /** - * Parameter description. + * The time when the error occurred. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - description?: string; + readonly time?: Date; /** - * Parameter type. + * Error code. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - dataType?: string; + readonly code?: string; /** - * Whether parameter is required. + * Managed integration runtime error parameters. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - required?: boolean; + readonly parameters?: string[]; /** - * Whether parameter is sensitive. + * Error message. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - sensitive?: boolean; + readonly message?: string; +} + +/** Properties of managed integration runtime operation result. */ +export interface ManagedIntegrationRuntimeOperationResult { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; /** - * Design default value of parameter. + * The operation type. Could be start or stop. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - designDefaultValue?: string; + readonly type?: string; /** - * Default value of parameter. + * The start time of the operation. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - defaultValue?: string; + readonly startTime?: Date; /** - * Default sensitive value of parameter. + * The operation result. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - sensitiveDefaultValue?: string; + readonly result?: string; /** - * Parameter value type. + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - valueType?: string; + readonly errorCode?: string; /** - * Parameter value set. + * Managed integration runtime error parameters. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - valueSet?: boolean; + readonly parameters?: string[]; /** - * Parameter reference variable. + * The activity id for the operation request. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - variable?: string; + readonly activityId?: string; } -/** - * Ssis project. - */ -export interface SsisProject { - /** - * Polymorphic Discriminator - */ - type: "Project"; - /** - * Metadata id. - */ - id?: number; - /** - * Metadata name. - */ - name?: string; +/** The linked integration runtime information. */ +export interface LinkedIntegrationRuntime { /** - * Metadata description. + * The name of the linked integration runtime. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - description?: string; + readonly name?: string; /** - * Folder id which contains project. + * The subscription ID for which the linked integration runtime belong to. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - folderId?: number; + readonly subscriptionId?: string; /** - * Project version. + * The name of the workspace for which the linked integration runtime belong to. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - version?: number; + readonly dataFactoryName?: string; /** - * Environment reference in project + * The location of the workspace for which the linked integration runtime belong to. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - environmentRefs?: SsisEnvironmentReference[]; + readonly dataFactoryLocation?: string; /** - * Parameters in project + * The creating time of the linked integration runtime. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - parameters?: SsisParameter[]; + readonly createTime?: Date; } -/** - * Ssis Package. - */ -export interface SsisPackage { - /** - * Polymorphic Discriminator - */ - type: "Package"; - /** - * Metadata id. - */ +/** Ssis environment reference. */ +export interface SsisEnvironmentReference { + /** Environment reference id. */ id?: number; - /** - * Metadata name. - */ + /** Environment folder name. */ + environmentFolderName?: string; + /** Environment name. */ + environmentName?: string; + /** Reference type */ + referenceType?: string; +} + +/** Ssis parameter. */ +export interface SsisParameter { + /** Parameter id. */ + id?: number; + /** Parameter name. */ name?: string; - /** - * Metadata description. - */ + /** Parameter description. */ description?: string; - /** - * Folder id which contains package. - */ - folderId?: number; - /** - * Project version which contains package. - */ - projectVersion?: number; - /** - * Project id which contains package. - */ - projectId?: number; - /** - * Parameters in package - */ - parameters?: SsisParameter[]; + /** Parameter type. */ + dataType?: string; + /** Whether parameter is required. */ + required?: boolean; + /** Whether parameter is sensitive. */ + sensitive?: boolean; + /** Design default value of parameter. */ + designDefaultValue?: string; + /** Default value of parameter. */ + defaultValue?: string; + /** Default sensitive value of parameter. */ + sensitiveDefaultValue?: string; + /** Parameter value type. */ + valueType?: string; + /** Parameter value set. */ + valueSet?: boolean; + /** Parameter reference variable. */ + variable?: string; } -/** - * Ssis variable. - */ +/** Ssis variable. */ export interface SsisVariable { - /** - * Variable id. - */ + /** Variable id. */ id?: number; - /** - * Variable name. - */ + /** Variable name. */ name?: string; - /** - * Variable description. - */ + /** Variable description. */ description?: string; - /** - * Variable type. - */ + /** Variable type. */ dataType?: string; - /** - * Whether variable is sensitive. - */ + /** Whether variable is sensitive. */ sensitive?: boolean; - /** - * Variable value. - */ + /** Variable value. */ value?: string; - /** - * Variable sensitive value. - */ + /** Variable sensitive value. */ sensitiveValue?: string; } -/** - * Ssis environment. - */ -export interface SsisEnvironment { - /** - * Polymorphic Discriminator - */ - type: "Environment"; +/** A class that contains database statistics information. */ +export interface DatabaseStatistics { + /** The database size - the total size of compressed data and index in bytes. */ + size?: number; +} + +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export type ProxyResource = Resource & {}; + +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export type TrackedResource = Resource & { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The geo-location where the resource lives */ + location: string; +}; + +/** The resource model definition for an Azure Resource Manager resource with an etag. */ +export type AzureEntityResource = Resource & { /** - * Metadata id. + * Resource Etag. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - id?: number; + readonly etag?: string; +}; + +/** Class representing an update to a Kusto kusto pool. */ +export type KustoPoolUpdate = Resource & { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The SKU of the kusto pool. */ + sku?: AzureSku; /** - * Metadata name. + * The state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - name?: string; + readonly state?: State; /** - * Metadata description. + * The provisioned state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - description?: string; + readonly provisioningState?: ResourceProvisioningState; /** - * Folder id which contains environment. + * The Kusto Pool URI. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - folderId?: number; + readonly uri?: string; /** - * Variable in environment + * The Kusto Pool data ingestion URI. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - variables?: SsisVariable[]; -} - -/** - * Update integration runtime request. - */ -export interface UpdateIntegrationRuntimeRequest { + readonly dataIngestionUri?: string; /** - * Enables or disables the auto-update feature of the self-hosted integration runtime. See - * https://go.microsoft.com/fwlink/?linkid=854189. Possible values include: 'On', 'Off' + * The reason for the Kusto Pool's current state. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - autoUpdate?: IntegrationRuntimeAutoUpdate; + readonly stateReason?: string; + /** Optimized auto scale definition. */ + optimizedAutoscale?: OptimizedAutoscale; + /** A boolean value that indicates if the streaming ingest is enabled. */ + enableStreamingIngest?: boolean; + /** A boolean value that indicates if the purge operations are enabled. */ + enablePurge?: boolean; /** - * The time offset (in hours) in the day, e.g., PT03H is 3 hours. The integration runtime auto - * update will happen on that time. + * List of the Kusto Pool's language extensions. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - updateDelayOffset?: string; -} + readonly languageExtensions?: LanguageExtensionsList; + /** The workspace unique identifier. */ + workspaceUID?: string; +}; -/** - * Integration runtime resource type. - */ -export interface IntegrationRuntimeResource extends SubResource { +export type PrivateEndpointConnectionForPrivateLinkHub = PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated & { + name?: string; + type?: string; +}; + +/** Managed integration runtime, including managed elastic and managed dedicated integration runtimes. */ +export type ManagedIntegrationRuntime = IntegrationRuntime & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "Managed"; /** - * Integration runtime properties. + * Integration runtime state, only valid for managed dedicated integration runtime. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - properties: IntegrationRuntimeUnion; -} - -/** - * The request payload of get SSIS object metadata. - */ -export interface GetSsisObjectMetadataRequest { - /** - * Metadata path. - */ - metadataPath?: string; -} + readonly state?: IntegrationRuntimeState; + /** The reference name of the managed virtual network. */ + referenceName?: string; + /** The type of the managed virtual network. */ + typeManagedVirtualNetworkType?: string; + /** The id of the managed virtual network. */ + id?: string; + /** The compute resource for managed integration runtime. */ + computeProperties?: IntegrationRuntimeComputeProperties; + /** SSIS properties for managed integration runtime. */ + ssisProperties?: IntegrationRuntimeSsisProperties; +}; -/** - * Update integration runtime node request. - */ -export interface UpdateIntegrationRuntimeNodeRequest { - /** - * The number of concurrent jobs permitted to run on the integration runtime node. Values between - * 1 and maxConcurrentJobs(inclusive) are allowed. - */ - concurrentJobsLimit?: number; -} +/** Self-hosted integration runtime. */ +export type SelfHostedIntegrationRuntime = IntegrationRuntime & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "SelfHosted"; + /** Linked integration runtime type from data factory */ + linkedInfo?: LinkedIntegrationRuntimeTypeUnion; +}; -/** - * Integration runtime status response. - */ -export interface IntegrationRuntimeStatusResponse { +/** Ssis folder. */ +export type SsisFolder = SsisObjectMetadata & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "Folder"; +}; + +/** Ssis project. */ +export type SsisProject = SsisObjectMetadata & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "Project"; + /** Folder id which contains project. */ + folderId?: number; + /** Project version. */ + version?: number; + /** Environment reference in project */ + environmentRefs?: SsisEnvironmentReference[]; + /** Parameters in project */ + parameters?: SsisParameter[]; +}; + +/** Ssis Package. */ +export type SsisPackage = SsisObjectMetadata & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "Package"; + /** Folder id which contains package. */ + folderId?: number; + /** Project version which contains package. */ + projectVersion?: number; + /** Project id which contains package. */ + projectId?: number; + /** Parameters in package */ + parameters?: SsisParameter[]; +}; + +/** Ssis environment. */ +export type SsisEnvironment = SsisObjectMetadata & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "Environment"; + /** Folder id which contains environment. */ + folderId?: number; + /** Variable in environment */ + variables?: SsisVariable[]; +}; + +/** Managed integration runtime status. */ +export type ManagedIntegrationRuntimeStatus = IntegrationRuntimeStatus & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "Managed"; /** - * The integration runtime name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The time at which the integration runtime was created, in ISO8601 format. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly createTime?: Date; /** - * Integration runtime properties. + * The list of nodes for managed integration runtime. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - properties: IntegrationRuntimeStatusUnion; -} - -/** - * The status of the operation. - */ -export interface SsisObjectMetadataStatusResponse { + readonly nodes?: ManagedIntegrationRuntimeNode[]; /** - * The status of the operation. + * The errors that occurred on this integration runtime. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - status?: string; + readonly otherErrors?: ManagedIntegrationRuntimeError[]; /** - * The operation name. + * The last operation result that occurred on this integration runtime. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - name?: string; + readonly lastOperation?: ManagedIntegrationRuntimeOperationResult; +}; + +/** Self-hosted integration runtime status. */ +export type SelfHostedIntegrationRuntimeStatus = IntegrationRuntimeStatus & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "SelfHosted"; /** - * The operation properties. + * The time at which the integration runtime was created, in ISO8601 format. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - properties?: string; + readonly createTime?: Date; /** - * The operation error message. + * The task queue id of the integration runtime. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - error?: string; -} - -/** - * A workspace key - */ -export interface Key extends ProxyResource { + readonly taskQueueId?: string; /** - * Used to activate the workspace after a customer managed key is provided. + * The node communication Channel encryption mode + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isActiveCMK?: boolean; + readonly nodeCommunicationChannelEncryptionMode?: string; /** - * The Key Vault Url of the workspace key. + * It is used to set the encryption mode for node-node communication channel (when more than 2 self-hosted integration runtime nodes exist). + * NOTE: This property will not be serialized. It can only be populated by the server. */ - keyVaultUrl?: string; -} - -/** - * Library response details - */ -export interface LibraryResource extends SubResource { + readonly internalChannelEncryption?: IntegrationRuntimeInternalChannelEncryptionMode; /** - * Name of the library. + * Version of the integration runtime. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - libraryResourceName?: string; + readonly version?: string; + /** The list of nodes for this integration runtime. */ + nodes?: SelfHostedIntegrationRuntimeNode[]; /** - * Storage blob path of library. + * The date at which the integration runtime will be scheduled to update, in ISO8601 format. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - path?: string; + readonly scheduledUpdateDate?: Date; /** - * Storage blob container name. + * The time in the date scheduled by service to update the integration runtime, e.g., PT03H is 3 hours + * NOTE: This property will not be serialized. It can only be populated by the server. */ - containerName?: string; + readonly updateDelayOffset?: string; /** - * The last update time of the library. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The local time zone offset in hours. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly uploadedTimestamp?: Date; + readonly localTimeZoneOffset?: string; /** - * Type of the library. + * Object with additional information about integration runtime capabilities. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - libraryResourceType?: string; + readonly capabilities?: { [propertyName: string]: string }; /** - * Provisioning status of the library/package. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The URLs for the services used in integration runtime backend service. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningStatus?: string; + readonly serviceUrls?: string[]; /** - * Creator Id of the library/package. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether Self-hosted integration runtime auto update has been turned on. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creatorId?: string; -} - -/** - * Description of an available operation - */ -export interface AvailableRpOperationDisplayInfo { + readonly autoUpdate?: IntegrationRuntimeAutoUpdate; /** - * Operation description + * Status of the integration runtime version. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - description?: string; + readonly versionStatus?: string; + /** The list of linked integration runtimes that are created to share with this integration runtime. */ + links?: LinkedIntegrationRuntime[]; /** - * Resource type + * The version that the integration runtime is going to update to. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - resource?: string; + readonly pushedVersion?: string; /** - * Resource provider name + * The latest version on download center. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - provider?: string; + readonly latestVersion?: string; /** - * Operation name + * The estimated time when the self-hosted integration runtime will be updated. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - operation?: string; -} + readonly autoUpdateETA?: Date; + /** The service region of the integration runtime */ + serviceRegion?: string; + /** The newer versions on download center. */ + newerVersions?: string[]; +}; -/** - * What is this? - */ -export interface OperationMetaMetricDimensionSpecification { +/** Azure Synapse secure string definition. The string value will be masked with asterisks '*' during Get or List API calls. */ +export type SecureString = SecretBase & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "SecureString"; + /** Value of secure string. */ + value: string; +}; + +/** The custom setup of running cmdkey commands. */ +export type CmdkeySetup = CustomSetupBase & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "CmdkeySetup"; + /** The server name of data source access. */ + targetName: Record; + /** The user name of data source access. */ + userName: Record; + /** The password of data source access. */ + password: SecretBaseUnion; +}; + +/** The custom setup of setting environment variable. */ +export type EnvironmentVariableSetup = CustomSetupBase & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "EnvironmentVariableSetup"; + /** The name of the environment variable. */ + variableName: string; + /** The value of the environment variable. */ + variableValue: string; +}; + +/** The custom setup of installing 3rd party components. */ +export type ComponentSetup = CustomSetupBase & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "ComponentSetup"; + /** The name of the 3rd party component. */ + componentName: string; + /** The license key to activate the component. */ + licenseKey?: SecretBaseUnion; +}; + +/** The key authorization type integration runtime. */ +export type LinkedIntegrationRuntimeKeyAuthorization = LinkedIntegrationRuntimeType & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authorizationType: "Key"; + /** The key used for authorization. */ + key: SecureString; +}; + +/** The role based access control (RBAC) authorization type integration runtime. */ +export type LinkedIntegrationRuntimeRbacAuthorization = LinkedIntegrationRuntimeType & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authorizationType: "RBAC"; + /** The resource identifier of the integration runtime to be shared. */ + resourceId: string; +}; + +/** Azure Active Directory Only Authentication Info */ +export type AzureADOnlyAuthentication = ProxyResource & { + /** Azure Active Directory only Authentication enabled. */ + azureADOnlyAuthentication?: boolean; /** - * Dimension display name + * property configuration state + * NOTE: This property will not be serialized. It can only be populated by the server. */ - displayName?: string; + readonly state?: StateValue; /** - * Dimension unique name + * property configuration date + * NOTE: This property will not be serialized. It can only be populated by the server. */ - name?: string; + readonly creationDate?: Date; +}; + +/** IP firewall rule */ +export type IpFirewallRuleInfo = ProxyResource & { + /** The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress */ + endIpAddress?: string; /** - * Whether this metric should be exported for Shoebox + * Resource provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. */ - toBeExportedForShoebox?: boolean; -} + readonly provisioningState?: ProvisioningState; + /** The start IP address of the firewall rule. Must be IPv4 format */ + startIpAddress?: string; +}; -/** - * What is this? - */ -export interface OperationMetaMetricSpecification { +/** A workspace key */ +export type Key = ProxyResource & { + /** Used to activate the workspace after a customer managed key is provided. */ + isActiveCMK?: boolean; + /** The Key Vault Url of the workspace key. */ + keyVaultUrl?: string; +}; + +/** A private endpoint connection */ +export type PrivateEndpointConnection = ProxyResource & { + /** The private endpoint which the connection belongs to. */ + privateEndpoint?: PrivateEndpoint; + /** Connection state of the private endpoint connection. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; /** - * The source MDM namespace + * Provisioning state of the private endpoint connection. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - sourceMdmNamespace?: string; + readonly provisioningState?: string; +}; + +/** A private link resource */ +export type PrivateLinkResource = ProxyResource & { /** - * Metric display name + * The private link resource properties. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - displayName?: string; + readonly properties?: PrivateLinkResourceProperties; +}; + +/** Configuration for metadata sync */ +export type MetadataSyncConfig = ProxyResource & { + /** Indicates whether the metadata sync is enabled or disabled */ + enabled?: boolean; + /** The Sync Interval in minutes. */ + syncIntervalInMinutes?: number; +}; + +/** A database geo backup policy. */ +export type GeoBackupPolicy = ProxyResource & { /** - * Metric unique name + * Kind of geo backup policy. This is metadata used for the Azure portal experience. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - name?: string; + readonly kind?: string; /** - * Metric aggregation type + * Backup policy location. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - aggregationType?: string; + readonly location?: string; + /** The state of the geo backup policy. */ + state: GeoBackupPolicyState; /** - * Metric description + * The storage type of the geo backup policy. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - displayDescription?: string; + readonly storageType?: string; +}; + +/** User activities of a data warehouse */ +export type DataWarehouseUserActivities = ProxyResource & { /** - * The source MDM account + * Count of running and suspended queries. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - sourceMdmAccount?: string; + readonly activeQueriesCount?: number; +}; + +/** Database restore points. */ +export type RestorePoint = ProxyResource & { /** - * Whether the regional MDM account is enabled + * Resource location. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - enableRegionalMdmAccount?: boolean; + readonly location?: string; /** - * Metric units + * The type of restore point + * NOTE: This property will not be serialized. It can only be populated by the server. */ - unit?: string; + readonly restorePointType?: RestorePointType; /** - * Metric dimensions + * The earliest time to which this database can be restored + * NOTE: This property will not be serialized. It can only be populated by the server. */ - dimensions?: OperationMetaMetricDimensionSpecification[]; + readonly earliestRestoreDate?: Date; /** - * Whether the metric supports instance-level aggregation + * The time the backup was taken + * NOTE: This property will not be serialized. It can only be populated by the server. */ - supportsInstanceLevelAggregation?: boolean; + readonly restorePointCreationDate?: Date; /** - * Metric filter + * The label of restore point for backup request by user + * NOTE: This property will not be serialized. It can only be populated by the server. */ - metricFilterPattern?: string; -} + readonly restorePointLabel?: string; +}; -/** - * What is this? - */ -export interface OperationMetaLogSpecification { +/** Represents a Sql pool replication link. */ +export type ReplicationLink = ProxyResource & { /** - * Log display name + * Location of the workspace that contains this firewall rule. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - displayName?: string; + readonly location?: string; /** - * Time range the log covers + * Legacy value indicating whether termination is allowed. Currently always returns true. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - blobDuration?: string; + readonly isTerminationAllowed?: boolean; /** - * Log unique name + * Replication mode of this replication link. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - name?: string; -} - -/** - * What is this? - */ -export interface OperationMetaServiceSpecification { + readonly replicationMode?: string; /** - * Service metric specifications + * The name of the workspace hosting the partner Sql pool. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - metricSpecifications?: OperationMetaMetricSpecification[]; + readonly partnerServer?: string; /** - * Service log specifications + * The name of the partner Sql pool. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - logSpecifications?: OperationMetaLogSpecification[]; -} - -/** - * An operation that is available in this resource provider - */ -export interface AvailableRpOperation { + readonly partnerDatabase?: string; /** - * Display properties of the operation + * The Azure Region of the partner Sql pool. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - display?: AvailableRpOperationDisplayInfo; + readonly partnerLocation?: string; /** - * Whether this operation is a data action + * The role of the Sql pool in the replication link. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isDataAction?: string; + readonly role?: ReplicationRole; /** - * Operation name + * The role of the partner Sql pool in the replication link. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - name?: string; + readonly partnerRole?: ReplicationRole; /** - * Operation service specification + * The start time for the replication link. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - serviceSpecification?: OperationMetaServiceSpecification; + readonly startTime?: Date; + /** + * The percentage of seeding complete for the replication link. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly percentComplete?: number; /** - * Operation origin + * The replication state for the replication link. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - origin?: string; -} + readonly replicationState?: ReplicationState; +}; -/** - * An operation - */ -export interface OperationResource { +/** Maintenance windows. */ +export type MaintenanceWindows = ProxyResource & { + timeRanges?: MaintenanceWindowTimeRange[]; +}; + +/** Maintenance window options. */ +export type MaintenanceWindowOptions = ProxyResource & { + /** Whether maintenance windows are enabled for the database. */ + isEnabled?: boolean; + /** Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, 24*60}. */ + maintenanceWindowCycles?: MaintenanceWindowTimeRange[]; + /** Minimum duration of maintenance window. */ + minDurationInMinutes?: number; + /** Default duration for maintenance window. */ + defaultDurationInMinutes?: number; + /** Minimum number of maintenance windows cycles to be set on the database. */ + minCycles?: number; + /** Time granularity in minutes for maintenance windows. */ + timeGranularityInMinutes?: number; + /** Whether we allow multiple maintenance windows per cycle. */ + allowMultipleMaintenanceWindowsPerCycle?: boolean; +}; + +/** Represents a Sql pool transparent data encryption configuration. */ +export type TransparentDataEncryption = ProxyResource & { /** - * Operation ID + * Resource location. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - id?: string; + readonly location?: string; + /** The status of the database transparent data encryption. */ + status?: TransparentDataEncryptionStatus; +}; + +/** A Sql pool blob auditing policy. */ +export type SqlPoolBlobAuditingPolicy = ProxyResource & { /** - * Operation name + * Resource kind. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - name?: string; + readonly kind?: string; + /** Specifies the state of the policy. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ + state?: BlobAuditingPolicyState; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state is Enabled, storageEndpoint is required. */ + storageEndpoint?: string; + /** Specifies the identifier key of the auditing storage account. If state is Enabled and storageEndpoint is specified, storageAccountAccessKey is required. */ + storageAccountAccessKey?: string; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * Operation status. Possible values include: 'InProgress', 'Succeeded', 'Failed', 'Canceled' + * 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) */ - status?: OperationStatus; + auditActionsAndGroups?: string[]; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * Operation properties + * 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) + * */ - properties?: any; + isAzureMonitorTargetEnabled?: boolean; +}; + +/** A Sql pool operation. */ +export type SqlPoolOperation = ProxyResource & { /** - * Errors from the operation + * The name of the Sql pool the operation is being performed on. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - error?: ErrorDetail; + readonly databaseName?: string; /** - * Operation start time + * The name of operation. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - startTime?: Date; + readonly operation?: string; /** - * Operation start time + * The friendly name of operation. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - endTime?: Date; + readonly operationFriendlyName?: string; /** - * Completion percentage of the operation + * The percentage of the operation completed. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - percentComplete?: number; -} - -/** - * Connection state details of the private endpoint - */ -export interface PrivateLinkServiceConnectionState { + readonly percentComplete?: number; /** - * The private link service connection status. + * The name of the server. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - status?: string; + readonly serverName?: string; /** - * The private link service connection description. + * The operation start time. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - description?: string; + readonly startTime?: Date; /** - * The actions required for private link service connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The operation state. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly actionsRequired?: string; -} - -/** - * Private endpoint details - */ -export interface PrivateEndpoint extends BaseResource { + readonly state?: ManagementOperationState; /** - * Resource id of the private endpoint. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The operation error code. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; -} - -/** - * A private endpoint connection - */ -export interface PrivateEndpointConnection extends ProxyResource { + readonly errorCode?: number; /** - * The private endpoint which the connection belongs to. + * The operation error description. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - privateEndpoint?: PrivateEndpoint; + readonly errorDescription?: string; /** - * Connection state of the private endpoint connection. + * The operation error severity. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + readonly errorSeverity?: number; /** - * Provisioning state of the private endpoint connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether or not the error is a user error. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; -} - -/** - * Properties of a private link resource. - */ -export interface PrivateLinkResourceProperties { + readonly isUserError?: boolean; /** - * The private link resource group id. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The estimated completion time of the operation. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly groupId?: string; + readonly estimatedCompletionTime?: Date; /** - * The private link resource required member names. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The operation description. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requiredMembers?: string[]; + readonly description?: string; /** - * Required DNS zone names of the the private link resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether the operation can be cancelled. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requiredZoneNames?: string[]; -} + readonly isCancellable?: boolean; +}; -/** - * A private link resource - */ -export interface PrivateLinkResource extends ProxyResource { +/** A sensitivity label. */ +export type SensitivityLabel = ProxyResource & { /** - * The private link resource properties. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * managed by + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly properties?: PrivateLinkResourceProperties; -} - -/** - * Private Endpoint Connection For Private Link Hub - Basic - */ -export interface PrivateEndpointConnectionForPrivateLinkHubBasic { + readonly managedBy?: string; /** - * identifier - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The schema name. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly schemaName?: string; /** - * The private endpoint which the connection belongs to. + * The table name. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - privateEndpoint?: PrivateEndpoint; + readonly tableName?: string; /** - * Connection state of the private endpoint connection. + * The column name. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + readonly columnName?: string; + /** The label name. */ + labelName?: string; + /** The label ID. */ + labelId?: string; + /** The information type. */ + informationType?: string; + /** The information type ID. */ + informationTypeId?: string; /** - * Provisioning state of the private endpoint connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; -} + readonly isDisabled?: boolean; + rank?: SensitivityLabelRank; +}; -/** - * A privateLinkHub - */ -export interface PrivateLinkHub extends TrackedResource { +/** A sensitivity label update operation. */ +export type SensitivityLabelUpdate = ProxyResource & { + op?: SensitivityLabelUpdateKind; + /** Schema name of the column to update. */ + schema?: string; + /** Table name of the column to update. */ + table?: string; + /** Column name to update. */ + column?: string; + /** The sensitivity label information to apply on a column. */ + sensitivityLabel?: SensitivityLabel; +}; + +/** A recommended sensitivity label update operation. */ +export type RecommendedSensitivityLabelUpdate = ProxyResource & { + op?: RecommendedSensitivityLabelUpdateKind; + /** Schema name of the column to update. */ + schema?: string; + /** Table name of the column to update. */ + table?: string; + /** Column name to update. */ + column?: string; +}; + +/** A Sql pool schema resource. */ +export type SqlPoolSchema = ProxyResource & {}; + +/** A Sql pool table resource. */ +export type SqlPoolTable = ProxyResource & {}; + +/** A Sql pool column resource. */ +export type SqlPoolColumn = ProxyResource & { + /** The column data type. */ + columnType?: ColumnDataType; /** - * PrivateLinkHub provisioning state + * Indicates whether column value is computed or not + * NOTE: This property will not be serialized. It can only be populated by the server. */ - provisioningState?: string; + readonly isComputed?: boolean; +}; + +/** A Sql pool connection policy. */ +export type SqlPoolConnectionPolicy = ProxyResource & { /** - * List of private endpoint connections - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Resource kind. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointConnections?: PrivateEndpointConnectionForPrivateLinkHubBasic[]; -} - -/** - * PrivateLinkHub patch details - */ -export interface PrivateLinkHubPatchInfo { + readonly kind?: string; /** - * Resource tags + * Resource location. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - tags?: { [propertyName: string]: string }; -} + readonly location?: string; + /** The state of security access. */ + securityEnabledAccess?: string; + /** The fully qualified host name of the auditing proxy. */ + proxyDnsName?: string; + /** The port number of the auditing proxy. */ + proxyPort?: string; + /** The visibility of the auditing proxy. */ + visibility?: string; + /** Whether server default is enabled or disabled. */ + useServerDefault?: string; + /** The state of proxy redirection. */ + redirectionState?: string; + /** The connection policy state. */ + state?: string; +}; -/** - * An interface representing PrivateEndpointConnectionForPrivateLinkHub. - */ -export interface PrivateEndpointConnectionForPrivateLinkHub extends PrivateEndpointConnectionForPrivateLinkHubBasic { - name?: string; - type?: string; -} +/** A Sql pool vulnerability assessment. */ +export type SqlPoolVulnerabilityAssessment = ProxyResource & { + /** A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy doesn't set */ + storageContainerPath?: string; + /** A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. */ + storageContainerSasKey?: string; + /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. */ + storageAccountAccessKey?: string; + /** The recurring scans settings */ + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; +}; -/** - * SQL pool SKU - * @summary Sku - */ -export interface Sku { +/** A vulnerability assessment scan record. */ +export type VulnerabilityAssessmentScanRecord = ProxyResource & { /** - * The service tier + * The scan ID. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - tier?: string; + readonly scanId?: string; /** - * The SKU name + * The scan trigger type. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - name?: string; + readonly triggerType?: VulnerabilityAssessmentScanTriggerType; /** - * If the SKU supports scale out/in then the capacity integer should be included. If scale out/in - * is not possible for the resource this may be omitted. + * The scan status. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - capacity?: number; -} - -/** - * A SQL Analytics pool - * @summary SQL pool - */ -export interface SqlPool extends TrackedResource { + readonly state?: VulnerabilityAssessmentScanState; /** - * SQL pool SKU + * The scan start time (UTC). + * NOTE: This property will not be serialized. It can only be populated by the server. */ - sku?: Sku; + readonly startTime?: Date; /** - * Maximum size in bytes + * The scan end time (UTC). + * NOTE: This property will not be serialized. It can only be populated by the server. */ - maxSizeBytes?: number; + readonly endTime?: Date; /** - * Collation mode + * The scan errors. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - collation?: string; + readonly errors?: VulnerabilityAssessmentScanError[]; /** - * Source database to create from + * The scan results storage container path. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - sourceDatabaseId?: string; + readonly storageContainerPath?: string; /** - * Backup database to restore from + * The number of failed security checks. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - recoverableDatabaseId?: string; + readonly numberOfFailedSecurityChecks?: number; +}; + +/** A Sql pool Vulnerability Assessment scan export resource. */ +export type SqlPoolVulnerabilityAssessmentScansExport = ProxyResource & { /** - * Resource state + * Location of the exported report (e.g. https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). + * NOTE: This property will not be serialized. It can only be populated by the server. */ - provisioningState?: string; + readonly exportedReportLocation?: string; +}; + +/** A Sql pool security alert policy. */ +export type SqlPoolSecurityAlertPolicy = ProxyResource & { + /** Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific Sql pool. */ + state?: SecurityAlertPolicyState; + /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action */ + disabledAlerts?: string[]; + /** Specifies an array of e-mail addresses to which the alert is sent. */ + emailAddresses?: string[]; + /** Specifies that the alert is sent to the account administrators. */ + emailAccountAdmins?: boolean; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ + storageEndpoint?: string; + /** Specifies the identifier key of the Threat Detection audit storage account. */ + storageAccountAccessKey?: string; + /** Specifies the number of days to keep in the Threat Detection audit logs. */ + retentionDays?: number; /** - * Resource status + * Specifies the UTC creation time of the policy. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - status?: string; + readonly creationTime?: Date; +}; + +/** A Sql pool vulnerability assessment rule baseline. */ +export type SqlPoolVulnerabilityAssessmentRuleBaseline = ProxyResource & { + /** The rule baseline result */ + baselineResults?: SqlPoolVulnerabilityAssessmentRuleBaselineItem[]; +}; + +/** An extended Sql pool blob auditing policy. */ +export type ExtendedSqlPoolBlobAuditingPolicy = 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. */ + 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; /** - * Snapshot time to restore + * 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) */ - restorePointInTime?: Date; + storageAccountAccessKey?: string; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * What is this? + * 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) */ - createMode?: string; + auditActionsAndGroups?: string[]; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * Date the SQL pool was created + * 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) + * */ - creationDate?: Date; + isAzureMonitorTargetEnabled?: boolean; /** - * The storage account type used to store backups for this sql pool. Possible values include: - * 'GRS', 'LRS', 'ZRS' + * 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. */ - storageAccountType?: StorageAccountType; -} + queueDelayMs?: number; +}; -/** - * A SQL Analytics pool patch info - * @summary SQL pool patch info - */ -export interface SqlPoolPatchInfo { +export type DataMaskingPolicy = ProxyResource & { /** - * Resource tags. + * The location of the data masking policy. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - tags?: { [propertyName: string]: string }; + readonly location?: string; /** - * The geo-location where the resource lives + * 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. */ - location?: string; + readonly kind?: string; /** - * SQL pool SKU + * Fully qualified resource ID of the sql pool + * NOTE: This property will not be serialized. It can only be populated by the server. */ - sku?: Sku; + readonly managedBy?: string; + /** The state of the data masking policy. */ + 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; /** - * Maximum size in bytes + * 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. */ - maxSizeBytes?: number; + readonly applicationPrincipals?: string; /** - * Collation mode + * 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. */ - collation?: string; + readonly maskingLevel?: string; +}; + +/** Represents a Sql pool data masking rule. */ +export type DataMaskingRule = ProxyResource & { /** - * Source database to create from + * The location of the data masking rule. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - sourceDatabaseId?: string; + readonly location?: string; /** - * Backup database to restore from + * 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. */ - recoverableDatabaseId?: string; + readonly kind?: string; /** - * Resource state + * The rule Id. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - provisioningState?: string; + readonly idPropertiesId?: 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. */ + 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. */ + 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; +}; + +/** Workload group operations for a sql pool */ +export type WorkloadGroup = ProxyResource & { + /** The workload group minimum percentage resource. */ + minResourcePercent?: number; + /** The workload group cap percentage resource. */ + maxResourcePercent?: number; + /** The workload group request minimum grant percentage. */ + minResourcePercentPerRequest?: number; + /** The workload group request maximum grant percentage. */ + maxResourcePercentPerRequest?: number; + /** The workload group importance level. */ + importance?: string; + /** The workload group query execution timeout. */ + queryExecutionTimeout?: number; +}; + +/** Workload classifier operations for a data warehouse */ +export type WorkloadClassifier = ProxyResource & { + /** The workload classifier member name. */ + memberName?: string; + /** The workload classifier label. */ + label?: string; + /** The workload classifier context. */ + context?: string; + /** The workload classifier start time for classification. */ + startTime?: string; + /** The workload classifier end time for classification. */ + endTime?: string; + /** The workload classifier importance. */ + importance?: string; +}; + +/** A server blob auditing policy. */ +export type ServerBlobAuditingPolicy = ProxyResource & { + /** Specifies the state of the policy. If state is Enabled, storageEndpoint or isAzureMonitorTargetEnabled are required. */ + 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; /** - * Resource status + * 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) */ - status?: string; + storageAccountAccessKey?: string; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * Snapshot time to restore + * 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) */ - restorePointInTime?: Date; + auditActionsAndGroups?: string[]; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * What is this? + * 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) + * */ - createMode?: string; + isAzureMonitorTargetEnabled?: boolean; /** - * Date the SQL pool was created + * 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. */ - creationDate?: Date; + queueDelayMs?: number; /** - * The storage account type used to store backups for this sql pool. Possible values include: - * 'GRS', 'LRS', 'ZRS' + * Specifies the state of devops audit. If state is Enabled, devops logs will be sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should also be created. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/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) + * */ - storageAccountType?: StorageAccountType; -} + isDevopsAuditEnabled?: boolean; +}; -/** - * Configuration for metadata sync - * @summary Metadata sync configuration - */ -export interface MetadataSyncConfig extends BaseResource { +/** An extended server blob auditing policy. */ +export type ExtendedServerBlobAuditingPolicy = 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. */ + 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; /** - * Indicates whether the metadata sync is enabled or disabled - */ - enabled?: boolean; - /** - * The Sync Interval in minutes. - */ - syncIntervalInMinutes?: number; -} - -/** - * A database geo backup policy. - */ -export interface GeoBackupPolicy extends ProxyResource { - /** - * The state of the geo backup policy. Possible values include: 'Disabled', 'Enabled' - */ - state: GeoBackupPolicyState; - /** - * The storage type of the geo backup policy. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly storageType?: string; - /** - * Kind of geo backup policy. This is metadata used for the Azure portal experience. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly kind?: string; - /** - * Backup policy location. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly location?: string; -} - -/** - * A database query. - */ -export interface QueryMetric { - /** - * The name of the metric - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * The name of the metric for display in user interface - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly displayName?: string; - /** - * The unit of measurement. Possible values include: 'percentage', 'KB', 'microseconds' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly unit?: QueryMetricUnit; - /** - * The measured value - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly value?: number; -} - -/** - * A database query. - */ -export interface QueryInterval { - /** - * The start time of the measurement interval (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly intervalStartTime?: Date; - /** - * The number of times the query was executed during this interval. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly executionCount?: number; - /** - * The list of query metrics during this interval. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly metrics?: QueryMetric[]; -} - -/** - * A database query. - */ -export interface QueryStatistic { - /** - * The id of the query - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly queryId?: string; - /** - * The list of query intervals. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly intervals?: QueryInterval[]; -} - -/** - * A database query. - */ -export interface TopQueries { - /** - * The function that is used to aggregate each query's metrics. Possible values include: 'min', - * 'max', 'avg', 'sum' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly aggregationFunction?: QueryAggregationFunction; - /** - * The execution type that is used to filter the query instances that are returned. Possible - * values include: 'any', 'regular', 'irregular', 'aborted', 'exception' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly executionType?: QueryExecutionType; - /** - * The duration of the interval (ISO8601 duration format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly intervalType?: string; - /** - * The number of requested queries. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly numberOfTopQueries?: number; - /** - * The start time for queries that are returned (ISO8601 format) - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly observationStartTime?: Date; - /** - * The end time for queries that are returned (ISO8601 format) - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly observationEndTime?: Date; - /** - * The type of metric to use for ordering the top metrics. Possible values include: 'cpu', 'io', - * 'logio', 'duration', 'executionCount' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly observedMetric?: QueryObservedMetricType; - /** - * The list of queries. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly queries?: QueryStatistic[]; -} - -/** - * Represents the response to a get top queries request. - */ -export interface TopQueriesListResult { - /** - * The list of top queries. - */ - value: TopQueries[]; -} - -/** - * User activities of a data warehouse - */ -export interface DataWarehouseUserActivities extends ProxyResource { - /** - * Count of running and suspended queries. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly activeQueriesCount?: number; -} - -/** - * Database restore points. - */ -export interface RestorePoint extends ProxyResource { - /** - * Resource location. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly location?: string; - /** - * The type of restore point. Possible values include: 'CONTINUOUS', 'DISCRETE' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly restorePointType?: RestorePointType; - /** - * The earliest time to which this database can be restored - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly earliestRestoreDate?: Date; - /** - * The time the backup was taken - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly restorePointCreationDate?: Date; - /** - * The label of restore point for backup request by user - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly restorePointLabel?: string; -} - -/** - * Represents a Sql pool replication link. - */ -export interface ReplicationLink extends ProxyResource { - /** - * Location of the workspace that contains this firewall rule. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly location?: string; - /** - * Legacy value indicating whether termination is allowed. Currently always returns true. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly isTerminationAllowed?: boolean; - /** - * Replication mode of this replication link. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly replicationMode?: string; - /** - * The name of the workspace hosting the partner Sql pool. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly partnerServer?: string; - /** - * The name of the partner Sql pool. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly partnerDatabase?: string; - /** - * The Azure Region of the partner Sql pool. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly partnerLocation?: string; - /** - * The role of the Sql pool in the replication link. Possible values include: 'Primary', - * 'Secondary', 'NonReadableSecondary', 'Source', 'Copy' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly role?: ReplicationRole; - /** - * The role of the partner Sql pool in the replication link. Possible values include: 'Primary', - * 'Secondary', 'NonReadableSecondary', 'Source', 'Copy' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly partnerRole?: ReplicationRole; - /** - * The start time for the replication link. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly startTime?: Date; - /** - * The percentage of seeding complete for the replication link. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly percentComplete?: number; - /** - * The replication state for the replication link. Possible values include: 'PENDING', 'SEEDING', - * 'CATCH_UP', 'SUSPENDED' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly replicationState?: ReplicationState; -} - -/** - * Maintenance window time range. - */ -export interface MaintenanceWindowTimeRange { - /** - * Day of maintenance window. Possible values include: 'Sunday', 'Monday', 'Tuesday', - * 'Wednesday', 'Thursday', 'Friday', 'Saturday' - */ - dayOfWeek?: DayOfWeek; - /** - * Start time minutes offset from 12am. - */ - startTime?: string; - /** - * Duration of maintenance window in minutes. - */ - duration?: string; -} - -/** - * Maintenance window options. - */ -export interface MaintenanceWindowOptions extends ProxyResource { - /** - * Whether maintenance windows are enabled for the database. - */ - isEnabled?: boolean; - /** - * Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, 24*60}. - */ - maintenanceWindowCycles?: MaintenanceWindowTimeRange[]; - /** - * Minimum duration of maintenance window. - */ - minDurationInMinutes?: number; - /** - * Default duration for maintenance window. - */ - defaultDurationInMinutes?: number; - /** - * Minimum number of maintenance windows cycles to be set on the database. - */ - minCycles?: number; - /** - * Time granularity in minutes for maintenance windows. - */ - timeGranularityInMinutes?: number; - /** - * Whether we allow multiple maintenance windows per cycle. - */ - allowMultipleMaintenanceWindowsPerCycle?: boolean; -} - -/** - * Maintenance windows. - */ -export interface MaintenanceWindows extends ProxyResource { - timeRanges?: MaintenanceWindowTimeRange[]; -} - -/** - * Represents a Sql pool transparent data encryption configuration. - */ -export interface TransparentDataEncryption extends ProxyResource { - /** - * Resource location. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly location?: string; - /** - * The status of the database transparent data encryption. Possible values include: 'Enabled', - * 'Disabled' - */ - status?: TransparentDataEncryptionStatus; -} - -/** - * A Sql pool blob auditing policy. - */ -export interface SqlPoolBlobAuditingPolicy extends ProxyResource { - /** - * Resource kind. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly kind?: string; - /** - * Specifies the state of the policy. If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' - */ - state: BlobAuditingPolicyState; - /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state - * is Enabled, storageEndpoint is required. - */ - storageEndpoint?: string; - /** - * Specifies the identifier key of the auditing storage account. If state is Enabled and - * storageEndpoint is specified, storageAccountAccessKey is required. - */ - 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; -} - -/** - * A Sql pool operation. - */ -export interface SqlPoolOperation extends ProxyResource { - /** - * The name of the Sql pool the operation is being performed on. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly databaseName?: string; - /** - * The name of operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly operation?: string; - /** - * The friendly name of operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly operationFriendlyName?: string; - /** - * The percentage of the operation completed. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly percentComplete?: number; - /** - * The name of the server. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly serverName?: string; - /** - * The operation start time. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly startTime?: Date; - /** - * The operation state. Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', - * 'CancelInProgress', 'Cancelled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly state?: ManagementOperationState; - /** - * The operation error code. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly errorCode?: number; - /** - * The operation error description. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly errorDescription?: string; - /** - * The operation error severity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly errorSeverity?: number; - /** - * Whether or not the error is a user error. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly isUserError?: boolean; - /** - * The estimated completion time of the operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly estimatedCompletionTime?: Date; - /** - * The operation description. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly description?: string; - /** - * Whether the operation can be cancelled. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly isCancellable?: boolean; -} - -/** - * The Sql pool usages. - */ -export interface SqlPoolUsage { - /** - * The name of the usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * The name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly resourceName?: string; - /** - * The usage metric display name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly displayName?: string; - /** - * The current value of the usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly currentValue?: number; - /** - * The current limit of the usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly limit?: number; - /** - * The units of the usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly unit?: string; - /** - * The next reset time for the usage metric (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextResetTime?: Date; -} - -/** - * A sensitivity label. - */ -export interface SensitivityLabel extends ProxyResource { - /** - * The schema name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly schemaName?: string; - /** - * The table name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly tableName?: string; - /** - * The column name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly columnName?: string; - /** - * The label name. - */ - labelName?: string; - /** - * The label ID. - */ - labelId?: string; - /** - * The information type. - */ - informationType?: string; - /** - * The information type ID. - */ - informationTypeId?: string; - /** - * Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. - * Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or - * not. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly isDisabled?: boolean; - /** - * Possible values include: 'None', 'Low', 'Medium', 'High', 'Critical' - */ - rank?: SensitivityLabelRank; - /** - * managed by - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly managedBy?: string; -} - -/** - * A Sql pool schema resource. - */ -export interface SqlPoolSchema extends ProxyResource { -} - -/** - * A Sql pool table resource. - */ -export interface SqlPoolTable extends ProxyResource { -} - -/** - * A Sql pool column resource. - */ -export interface SqlPoolColumn extends ProxyResource { - /** - * The column data type. Possible values include: 'image', 'text', 'uniqueidentifier', 'date', - * 'time', 'datetime2', 'datetimeoffset', 'tinyint', 'smallint', 'int', 'smalldatetime', 'real', - * 'money', 'datetime', 'float', 'sql_variant', 'ntext', 'bit', 'decimal', 'numeric', - * 'smallmoney', 'bigint', 'hierarchyid', 'geometry', 'geography', 'varbinary', 'varchar', - * 'binary', 'char', 'timestamp', 'nvarchar', 'nchar', 'xml', 'sysname' - */ - columnType?: ColumnDataType; - /** - * Indicates whether column value is computed or not - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly isComputed?: boolean; -} - -/** - * A Sql pool connection policy. - */ -export interface SqlPoolConnectionPolicy extends ProxyResource { - /** - * Resource kind. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly kind?: string; - /** - * Resource location. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly location?: string; - /** - * The state of security access. - */ - securityEnabledAccess?: string; - /** - * The fully qualified host name of the auditing proxy. - */ - proxyDnsName?: string; - /** - * The port number of the auditing proxy. - */ - proxyPort?: string; - /** - * The visibility of the auditing proxy. - */ - visibility?: string; - /** - * Whether server default is enabled or disabled. - */ - useServerDefault?: string; - /** - * The state of proxy redirection. - */ - redirectionState?: string; - /** - * The connection policy state. - */ - state?: string; -} - -/** - * Properties of a Vulnerability Assessment recurring scans. - */ -export interface VulnerabilityAssessmentRecurringScansProperties { - /** - * Recurring scans state. - */ - isEnabled?: boolean; - /** - * Specifies that the schedule scan notification will be is sent to the subscription - * administrators. Default value: true. - */ - emailSubscriptionAdmins?: boolean; - /** - * Specifies an array of e-mail addresses to which the scan notification is sent. - */ - emails?: string[]; -} - -/** - * A Sql pool vulnerability assessment. - */ -export interface SqlPoolVulnerabilityAssessment extends ProxyResource { - /** - * A blob storage container path to hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). It is required if server level - * vulnerability assessment policy doesn't set - */ - storageContainerPath?: string; - /** - * A shared access signature (SAS Key) that has write access to the blob container specified in - * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, - * StorageContainerSasKey is required. - */ - storageContainerSasKey?: string; - /** - * Specifies the identifier key of the storage account for vulnerability assessment scan results. - * If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. - */ - storageAccountAccessKey?: string; - /** - * The recurring scans settings - */ - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -} - -/** - * Properties of a vulnerability assessment scan error. - */ -export interface VulnerabilityAssessmentScanError { - /** - * The error code. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly code?: string; - /** - * The error message. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly message?: string; -} - -/** - * A vulnerability assessment scan record. - */ -export interface VulnerabilityAssessmentScanRecord extends ProxyResource { - /** - * The scan ID. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly scanId?: string; - /** - * The scan trigger type. Possible values include: 'OnDemand', 'Recurring' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly triggerType?: VulnerabilityAssessmentScanTriggerType; - /** - * The scan status. Possible values include: 'Passed', 'Failed', 'FailedToRun', 'InProgress' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly state?: VulnerabilityAssessmentScanState; - /** - * The scan start time (UTC). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly startTime?: Date; - /** - * The scan end time (UTC). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly endTime?: Date; - /** - * The scan errors. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly errors?: VulnerabilityAssessmentScanError[]; - /** - * The scan results storage container path. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly storageContainerPath?: string; - /** - * The number of failed security checks. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly numberOfFailedSecurityChecks?: number; -} - -/** - * A Sql pool security alert policy. - */ -export interface SqlPoolSecurityAlertPolicy extends ProxyResource { - /** - * Specifies the state of the policy, whether it is enabled or disabled or a policy has not been - * applied yet on the specific Sql pool. Possible values include: 'New', 'Enabled', 'Disabled' - */ - state: SecurityAlertPolicyState; - /** - * Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, - * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action - */ - disabledAlerts?: string[]; - /** - * Specifies an array of e-mail addresses to which the alert is sent. - */ - emailAddresses?: string[]; - /** - * Specifies that the alert is sent to the account administrators. - */ - emailAccountAdmins?: boolean; - /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob - * storage will hold all Threat Detection audit logs. - */ - storageEndpoint?: string; - /** - * Specifies the identifier key of the Threat Detection audit storage account. - */ - storageAccountAccessKey?: string; - /** - * Specifies the number of days to keep in the Threat Detection audit logs. - */ - retentionDays?: number; - /** - * Specifies the UTC creation time of the policy. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly creationTime?: Date; -} - -/** - * Properties for an Sql pool vulnerability assessment rule baseline's result. - */ -export interface SqlPoolVulnerabilityAssessmentRuleBaselineItem { - /** - * The rule baseline result - */ - result: string[]; -} - -/** - * A Sql pool vulnerability assessment rule baseline. - */ -export interface SqlPoolVulnerabilityAssessmentRuleBaseline extends ProxyResource { - /** - * The rule baseline result - */ - baselineResults: SqlPoolVulnerabilityAssessmentRuleBaselineItem[]; -} - -/** - * A Sql pool Vulnerability Assessment scan export resource. - */ -export interface SqlPoolVulnerabilityAssessmentScansExport extends ProxyResource { - /** - * Location of the exported report (e.g. - * https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly exportedReportLocation?: string; -} - -/** - * Contains the information necessary to perform a resource move (rename). - */ -export interface ResourceMoveDefinition { - /** - * The target ID for the resource - */ - id: string; -} - -/** - * Contains the information necessary to perform a create Sql pool restore point operation. - */ -export interface CreateSqlPoolRestorePointDefinition { - /** - * The restore point label to apply - */ - restorePointLabel: string; -} - -/** - * Workload group operations for a sql pool - */ -export interface WorkloadGroup extends ProxyResource { - /** - * The workload group minimum percentage resource. - */ - minResourcePercent: number; - /** - * The workload group cap percentage resource. - */ - maxResourcePercent: number; - /** - * The workload group request minimum grant percentage. - */ - minResourcePercentPerRequest: number; - /** - * The workload group request maximum grant percentage. - */ - maxResourcePercentPerRequest?: number; - /** - * The workload group importance level. - */ - importance?: string; - /** - * The workload group query execution timeout. - */ - queryExecutionTimeout?: number; -} - -/** - * Workload classifier operations for a data warehouse - */ -export interface WorkloadClassifier extends ProxyResource { - /** - * The workload classifier member name. - */ - memberName: string; - /** - * The workload classifier label. - */ - label?: string; - /** - * The workload classifier context. - */ - context?: string; - /** - * The workload classifier start time for classification. - */ - startTime?: string; - /** - * The workload classifier end time for classification. - */ - endTime?: string; - /** - * The workload classifier importance. - */ - importance?: string; -} - -/** - * An interface representing DataMaskingPolicy. - */ -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; - /** - * Fully qualified resource ID of the sql pool - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly managedBy?: 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 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; -} - -/** - * A sensitivity label update operation. - */ -export interface SensitivityLabelUpdate extends ProxyResource { - /** - * Possible values include: 'set', 'remove' - */ - op: SensitivityLabelUpdateKind; - /** - * Schema name of the column to update. - */ - schema: string; - /** - * Table name of the column to update. - */ - table: string; - /** - * Column name to update. - */ - column: string; - /** - * The sensitivity label information to apply on a column. - */ - sensitivityLabel?: SensitivityLabel; -} - -/** - * A list of sensitivity label update operations. - */ -export interface SensitivityLabelUpdateList { - operations?: SensitivityLabelUpdate[]; -} - -/** - * A recommended sensitivity label update operation. - */ -export interface RecommendedSensitivityLabelUpdate extends ProxyResource { - /** - * Possible values include: 'enable', 'disable' - */ - op: RecommendedSensitivityLabelUpdateKind; - /** - * Schema name of the column to update. - */ - schema: string; - /** - * Table name of the column to update. - */ - table: string; - /** - * Column name to update. - */ - column: string; -} - -/** - * A list of recommended sensitivity label update operations. - */ -export interface RecommendedSensitivityLabelUpdateList { - operations?: RecommendedSensitivityLabelUpdate[]; -} - -/** - * A server blob auditing policy. - */ -export interface ServerBlobAuditingPolicy extends ProxyResource { - /** - * 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; -} - -/** - * An extended server blob auditing policy. - */ -export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { - /** - * Specifies condition of where clause when creating an audit. - */ - predicateExpression?: string; - /** - * Specifies the state of the policy. If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' - */ - state: BlobAuditingPolicyState; - /** - * 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; -} - -/** - * Workspace managed Sql server security alert policy. - */ -export interface ServerSecurityAlertPolicy extends ProxyResource { - /** - * Specifies the state of the policy, whether it is enabled or disabled or a policy has not been - * applied yet on the specific server. Possible values include: 'New', 'Enabled', 'Disabled' - */ - state: SecurityAlertPolicyState; - /** - * Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, - * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action - */ - disabledAlerts?: string[]; - /** - * Specifies an array of e-mail addresses to which the alert is sent. - */ - emailAddresses?: string[]; - /** - * Specifies that the alert is sent to the account administrators. - */ - emailAccountAdmins?: boolean; - /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob - * storage will hold all Threat Detection audit logs. - */ - storageEndpoint?: string; - /** - * Specifies the identifier key of the Threat Detection audit storage account. - */ - storageAccountAccessKey?: string; - /** - * Specifies the number of days to keep in the Threat Detection audit logs. - */ - retentionDays?: number; - /** - * Specifies the UTC creation time of the policy. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly creationTime?: Date; -} - -/** - * A server vulnerability assessment. - */ -export interface ServerVulnerabilityAssessment extends ProxyResource { - /** - * A blob storage container path to hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). - */ - storageContainerPath: string; - /** - * A shared access signature (SAS Key) that has read and write access to the blob container - * specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, - * StorageContainerSasKey is required. - */ - storageContainerSasKey?: string; - /** - * Specifies the identifier key of the storage account for vulnerability assessment scan results. - * If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. - */ - storageAccountAccessKey?: string; - /** - * The recurring scans settings - */ - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -} - -/** - * The server encryption protector. - */ -export interface EncryptionProtector extends ProxyResource { - /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly kind?: string; - /** - * Resource location. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly location?: string; - /** - * Subregion of the encryption protector. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly subregion?: string; - /** - * The name of the server key. - */ - serverKeyName?: string; - /** - * The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: - * 'ServiceManaged', 'AzureKeyVault' - */ - serverKeyType: ServerKeyType; - /** - * The URI of the server key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly uri?: string; - /** - * Thumbprint of the server key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly thumbprint?: string; -} - -/** - * Represents server metrics. - */ -export interface ServerUsage { - /** - * Name of the server usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * The name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly resourceName?: string; - /** - * The metric display name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly displayName?: string; - /** - * The current value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly currentValue?: number; - /** - * The current limit of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly limit?: number; - /** - * The units of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly unit?: string; - /** - * The next reset time for the metric (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextResetTime?: Date; -} - -/** - * A recoverable sql pool - */ -export interface RecoverableSqlPool extends ProxyResource { - /** - * The edition of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly edition?: string; - /** - * The service level objective name of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly serviceLevelObjective?: string; - /** - * The elastic pool name of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly elasticPoolName?: string; - /** - * The last available backup date of the database (ISO8601 format) - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastAvailableBackupDate?: Date; -} - -/** - * Details of the data lake storage account associated with the workspace - */ -export interface DataLakeStorageAccountDetails { - /** - * Account URL - */ - accountUrl?: string; - /** - * Filesystem name - */ - filesystem?: string; -} - -/** - * Virtual Network Profile - */ -export interface VirtualNetworkProfile { - /** - * Subnet ID used for computes in workspace - */ - computeSubnetId?: string; -} - -/** - * Details of the customer managed key associated with the workspace - */ -export interface WorkspaceKeyDetails { - /** - * Workspace Key sub-resource name - */ - name?: string; - /** - * Workspace Key sub-resource key vault url - */ - keyVaultUrl?: string; -} - -/** - * Details of the customer managed key associated with the workspace - */ -export interface CustomerManagedKeyDetails { - /** - * The customer managed key status on the workspace - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly status?: string; - /** - * The key object of the workspace - */ - key?: WorkspaceKeyDetails; -} - -/** - * Details of the encryption associated with the workspace - */ -export interface EncryptionDetails { - /** - * Double Encryption enabled - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly doubleEncryptionEnabled?: boolean; - /** - * Customer Managed Key Details - */ - cmk?: CustomerManagedKeyDetails; -} - -/** - * 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[]; -} - -/** - * Git integration settings - */ -export interface WorkspaceRepositoryConfiguration { - /** - * Type of workspace repositoryID configuration. Example WorkspaceVSTSConfiguration, - * WorkspaceGitHubConfiguration - */ - type?: string; - /** - * GitHub Enterprise host name. For example: https://github.mydomain.com - */ - hostName?: string; - /** - * Account name - */ - accountName?: string; - /** - * VSTS project name - */ - projectName?: string; - /** - * Repository name - */ - repositoryName?: string; - /** - * Collaboration branch - */ - collaborationBranch?: string; - /** - * Root folder to use in the repository - */ - rootFolder?: string; - /** - * The last commit ID - */ - lastCommitId?: string; - /** - * The VSTS tenant ID - */ - tenantId?: string; -} - -/** - * Purview Configuration - */ -export interface PurviewConfiguration { - /** - * Purview Resource ID - */ - purviewResourceId?: string; -} - -/** - * The workspace managed identity - */ -export interface ManagedIdentity { - /** - * The principal ID of the workspace managed identity - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly principalId?: string; - /** - * The tenant ID of the workspace managed identity - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly tenantId?: string; - /** - * The type of managed identity for the workspace. Possible values include: 'None', - * 'SystemAssigned' - */ - type?: ResourceIdentityType; -} - -/** - * A workspace - */ -export interface Workspace extends TrackedResource { - /** - * Workspace default data lake storage account details - */ - defaultDataLakeStorage?: DataLakeStorageAccountDetails; - /** - * SQL administrator login password - */ - sqlAdministratorLoginPassword?: string; - /** - * Workspace managed resource group. The resource group name uniquely identifies the resource - * group within the user subscriptionId. The resource group name must be no longer than 90 - * characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', - * '(', ')' and'.'. Note that the name cannot end with '.' - */ - managedResourceGroupName?: string; - /** - * Resource provisioning state - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: string; - /** - * Login for workspace SQL active directory administrator - */ - sqlAdministratorLogin?: string; - /** - * Virtual Network profile - */ - virtualNetworkProfile?: VirtualNetworkProfile; - /** - * Connectivity endpoints - */ - connectivityEndpoints?: { [propertyName: string]: string }; - /** - * Setting this to 'default' will ensure that all compute for this workspace is in a virtual - * network managed on behalf of the user. - */ - managedVirtualNetwork?: string; - /** - * Private endpoint connections to the workspace - */ - privateEndpointConnections?: PrivateEndpointConnection[]; - /** - * The encryption details of the workspace - */ - encryption?: EncryptionDetails; - /** - * The workspace unique identifier - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly workspaceUID?: string; - /** - * Workspace level configs and feature flags - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly extraProperties?: { [propertyName: string]: any }; - /** - * Managed Virtual Network Settings - */ - managedVirtualNetworkSettings?: ManagedVirtualNetworkSettings; - /** - * Git integration settings - */ - workspaceRepositoryConfiguration?: WorkspaceRepositoryConfiguration; - /** - * Purview Configuration - */ - purviewConfiguration?: PurviewConfiguration; - /** - * The ADLA resource ID. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly adlaResourceId?: string; - /** - * Enable or Disable pubic network access to workspace. Possible values include: 'Enabled', - * 'Disabled' - */ - publicNetworkAccess?: WorkspacePublicNetworkAccess; - /** - * Identity of the workspace + * 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) */ - identity?: ManagedIdentity; -} - -/** - * Workspace active directory administrator - */ -export interface WorkspaceAadAdminInfo extends BaseResource { + storageAccountAccessKey?: string; + /** Specifies the number of days to keep in the audit logs in the storage account. */ + retentionDays?: number; /** - * Tenant ID of the workspace active directory administrator + * 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) */ - tenantId?: string; + auditActionsAndGroups?: string[]; + /** Specifies the blob storage subscription Id. */ + storageAccountSubscriptionId?: string; + /** Specifies whether storageAccountAccessKey value is the storage's secondary key. */ + isStorageSecondaryKeyInUse?: boolean; /** - * Login of the workspace active directory administrator + * 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) + * */ - login?: string; + isAzureMonitorTargetEnabled?: boolean; /** - * Workspace active directory administrator type + * 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. */ - administratorType?: string; + queueDelayMs?: number; /** - * Object ID of the workspace active directory administrator + * Specifies the state of devops audit. If state is Enabled, devops logs will be sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled', 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true + * + * When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs category on the master database should also be created. + * + * Diagnostic Settings URI format: + * PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/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) + * */ - sid?: string; -} + isDevopsAuditEnabled?: boolean; +}; -/** - * Workspace patch details - */ -export interface WorkspacePatchInfo { - /** - * Resource tags - */ - tags?: { [propertyName: string]: string }; +/** Workspace managed Sql server security alert policy. */ +export type ServerSecurityAlertPolicy = ProxyResource & { + /** Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific server */ + state?: SecurityAlertPolicyState; + /** Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action */ + disabledAlerts?: string[]; + /** Specifies an array of e-mail addresses to which the alert is sent. */ + emailAddresses?: string[]; + /** Specifies that the alert is sent to the account administrators. */ + emailAccountAdmins?: boolean; + /** Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. */ + storageEndpoint?: string; + /** Specifies the identifier key of the Threat Detection audit storage account. */ + storageAccountAccessKey?: string; + /** Specifies the number of days to keep in the Threat Detection audit logs. */ + retentionDays?: number; /** - * The identity of the workspace + * Specifies the UTC creation time of the policy. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - identity?: ManagedIdentity; + readonly creationTime?: Date; +}; + +/** A server vulnerability assessment. */ +export type ServerVulnerabilityAssessment = ProxyResource & { + /** A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). */ + storageContainerPath?: string; + /** A shared access signature (SAS Key) that has read and write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. */ + storageContainerSasKey?: string; + /** Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. */ + storageAccountAccessKey?: string; + /** The recurring scans settings */ + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; +}; + +/** The server encryption protector. */ +export type EncryptionProtector = ProxyResource & { /** - * SQL administrator login password + * Kind of encryption protector. This is metadata used for the Azure portal experience. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - sqlAdministratorLoginPassword?: string; + readonly kind?: string; /** - * Managed Virtual Network Settings + * Resource location. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - managedVirtualNetworkSettings?: ManagedVirtualNetworkSettings; + readonly location?: string; /** - * Git integration settings + * Subregion of the encryption protector. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - workspaceRepositoryConfiguration?: WorkspaceRepositoryConfiguration; + readonly subregion?: string; + /** The name of the server key. */ + serverKeyName?: string; + /** The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. */ + serverKeyType?: ServerKeyType; /** - * Purview Configuration + * The URI of the server key. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - purviewConfiguration?: PurviewConfiguration; + readonly uri?: string; /** - * Resource provisioning state - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Thumbprint of the server key. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: string; + readonly thumbprint?: string; +}; + +/** A recoverable sql pool */ +export type RecoverableSqlPool = ProxyResource & { /** - * The encryption details of the workspace + * The edition of the database + * NOTE: This property will not be serialized. It can only be populated by the server. */ - encryption?: EncryptionDetails; + readonly edition?: string; /** - * Enable or Disable pubic network access to workspace. Possible values include: 'Enabled', - * 'Disabled' + * The service level objective name of the database + * NOTE: This property will not be serialized. It can only be populated by the server. */ - publicNetworkAccess?: WorkspacePublicNetworkAccess; -} - -/** - * Grant sql control to managed identity - */ -export interface ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity { + readonly serviceLevelObjective?: string; /** - * Desired state. Possible values include: 'Enabled', 'Disabled' + * The elastic pool name of the database + * NOTE: This property will not be serialized. It can only be populated by the server. */ - desiredState?: DesiredState; + readonly elasticPoolName?: string; /** - * Actual state. Possible values include: 'Enabling', 'Enabled', 'Disabling', 'Disabled', - * 'Unknown' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The last available backup date of the database (ISO8601 format) + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly actualState?: ActualState; -} + readonly lastAvailableBackupDate?: Date; +}; -/** - * Sql Control Settings for workspace managed identity - * @summary Managed Identity Sql Control Settings - */ -export interface ManagedIdentitySqlControlSettingsModel extends ProxyResource { - /** - * Grant sql control to managed identity - */ +/** Workspace active directory administrator */ +export type WorkspaceAadAdminInfo = ProxyResource & { + /** Tenant ID of the workspace active directory administrator */ + tenantId?: string; + /** Login of the workspace active directory administrator */ + login?: string; + /** Workspace active directory administrator type */ + administratorType?: string; + /** Object ID of the workspace active directory administrator */ + sid?: string; +}; + +/** Sql Control Settings for workspace managed identity */ +export type ManagedIdentitySqlControlSettingsModel = ProxyResource & { + /** Grant sql control to managed identity */ grantSqlControlToManagedIdentity?: ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity; -} +}; -/** - * A restorable dropped Sql pool - */ -export interface RestorableDroppedSqlPool extends ProxyResource { +/** A restorable dropped Sql pool */ +export type RestorableDroppedSqlPool = ProxyResource & { /** * The geo-location where the resource lives - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly location?: string; /** * The name of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly databaseName?: string; /** * The edition of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly edition?: string; /** * The max size in bytes of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly maxSizeBytes?: string; /** * The service level objective name of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly serviceLevelObjective?: string; /** * The elastic pool name of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly elasticPoolName?: string; /** * The creation date of the database (ISO8601 format) - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly creationDate?: Date; /** * The deletion date of the database (ISO8601 format) - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly deletionDate?: Date; /** * The earliest restore date of the database (ISO8601 format) - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly earliestRestoreDate?: Date; -} - -/** - * Optional Parameters. - */ -export interface BigDataPoolsCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { - /** - * Whether to stop any running jobs in the Big Data pool. Default value: false. - */ - force?: boolean; -} - -/** - * Optional Parameters. - */ -export interface BigDataPoolsBeginCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { - /** - * Whether to stop any running jobs in the Big Data pool. Default value: false. - */ - force?: boolean; -} - -/** - * Optional Parameters. - */ -export interface IntegrationRuntimesGetOptionalParams extends msRest.RequestOptionsBase { - /** - * ETag of the integration runtime entity. Should only be specified for get. If the ETag matches - * the existing entity tag, or if * was provided, then no content will be returned. - */ - ifNoneMatch?: string; -} - -/** - * Optional Parameters. - */ -export interface IntegrationRuntimesCreateOptionalParams extends msRest.RequestOptionsBase { - /** - * ETag of the integration runtime entity. Should only be specified for update, for which it - * should match existing entity or can be * for unconditional update. - */ - ifMatch?: string; -} - -/** - * Optional Parameters. - */ -export interface IntegrationRuntimesBeginCreateOptionalParams extends msRest.RequestOptionsBase { - /** - * ETag of the integration runtime entity. Should only be specified for update, for which it - * should match existing entity or can be * for unconditional update. - */ - ifMatch?: string; -} - -/** - * Optional Parameters. - */ -export interface IntegrationRuntimeObjectMetadataListOptionalParams extends msRest.RequestOptionsBase { - /** - * The parameters for getting a SSIS object metadata. - */ - getMetadataRequest?: GetSsisObjectMetadataRequest; -} - -/** - * Optional Parameters. - */ -export interface SqlPoolSensitivityLabelsListCurrentOptionalParams extends msRest.RequestOptionsBase { - /** - * An OData filter expression that filters elements in the collection. - */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface SqlPoolSensitivityLabelsListRecommendedOptionalParams extends msRest.RequestOptionsBase { - /** - * Specifies whether to include disabled recommendations or not. - */ - includeDisabledRecommendations?: boolean; - /** - * An OData query option to indicate how many elements to skip in the collection. - */ - skipToken?: string; - /** - * An OData filter expression that filters elements in the collection. - */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface SqlPoolSensitivityLabelsListCurrentNextOptionalParams extends msRest.RequestOptionsBase { - /** - * An OData filter expression that filters elements in the collection. - */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface SqlPoolSensitivityLabelsListRecommendedNextOptionalParams extends msRest.RequestOptionsBase { - /** - * Specifies whether to include disabled recommendations or not. - */ - includeDisabledRecommendations?: boolean; - /** - * An OData query option to indicate how many elements to skip in the collection. - */ - skipToken?: string; - /** - * An OData filter expression that filters elements in the collection. - */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface SqlPoolSchemasListOptionalParams extends msRest.RequestOptionsBase { - /** - * An OData filter expression that filters elements in the collection. - */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface SqlPoolSchemasListNextOptionalParams extends msRest.RequestOptionsBase { - /** - * An OData filter expression that filters elements in the collection. - */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface SqlPoolTablesListBySchemaOptionalParams extends msRest.RequestOptionsBase { - /** - * An OData filter expression that filters elements in the collection. - */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface SqlPoolTablesListBySchemaNextOptionalParams extends msRest.RequestOptionsBase { - /** - * An OData filter expression that filters elements in the collection. - */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface SqlPoolTableColumnsListByTableNameOptionalParams extends msRest.RequestOptionsBase { - /** - * An OData filter expression that filters elements in the collection. - */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface SqlPoolTableColumnsListByTableNameNextOptionalParams extends msRest.RequestOptionsBase { - /** - * An OData filter expression that filters elements in the collection. - */ - filter?: string; -} - -/** - * An interface representing SynapseManagementClientOptions. - */ -export interface SynapseManagementClientOptions extends AzureServiceClientOptions { - baseUri?: string; -} - -/** - * @interface - * Collection of Big Data pool information - * @summary Collection of Big Data pools - * @extends Array - */ -export interface BigDataPoolResourceInfoListResult extends Array { - /** - * Link to the next page of results - */ - nextLink?: string; -} - -/** - * @interface - * List of IP firewall rules - * @extends Array - */ -export interface IpFirewallRuleInfoListResult extends Array { - /** - * Link to next page of results - */ - nextLink?: string; -} - -/** - * @interface - * A list of integration runtime resources. - * @extends Array - */ -export interface IntegrationRuntimeListResponse extends Array { - /** - * The link to the next page of results, if any remaining results exist. - */ - nextLink?: string; -} - -/** - * @interface - * List of keys - * @extends Array - */ -export interface KeyInfoListResult extends Array { - /** - * Link to the next page of results - */ - nextLink?: string; -} - -/** - * @interface - * A list of Library resources. - * @extends Array - */ -export interface LibraryListResponse extends Array { - /** - * The link to the next page of results, if any remaining results exist. - */ - nextLink?: string; -} +}; -/** - * @interface - * A list of private endpoint connections - * @extends Array - */ -export interface PrivateEndpointConnectionList extends Array { +/** Class representing an attached database configuration. */ +export type AttachedDatabaseConfiguration = ProxyResource & { + /** Resource location. */ + location?: string; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of private link resources - * @extends Array - */ -export interface PrivateLinkResourceListResult extends Array { + readonly systemData?: SystemData; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The provisioned state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** - * @interface - * List of privateLinkHubs - * @extends Array - */ -export interface PrivateLinkHubInfoListResult extends Array { + readonly provisioningState?: ResourceProvisioningState; + /** The name of the database which you would like to attach, use * if you want to follow all current and future databases. */ + databaseName?: string; + /** The resource id of the kusto pool where the databases you would like to attach reside. */ + kustoPoolResourceId?: string; /** - * Link to the next page of results + * The list of databases from the clusterResourceId which are currently attached to the kusto pool. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - nextLink?: string; -} - -/** - * @interface - * An interface representing the - * PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse. - * @extends Array - */ -export interface PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse extends Array { - nextLink?: string; -} + readonly attachedDatabaseNames?: string[]; + /** The default principals modification kind */ + defaultPrincipalsModificationKind?: DefaultPrincipalsModificationKind; + /** Table level sharing specifications */ + tableLevelSharingProperties?: TableLevelSharingProperties; +}; -/** - * @interface - * List of SQL pools - * @summary SQL pool collection - * @extends Array - */ -export interface SqlPoolInfoListResult extends Array { +/** Class representing a Kusto database. */ +export type Database = ProxyResource & { + /** Resource location. */ + location?: string; + /** Kind of the database */ + kind: Kind; /** - * Link to the next page of results + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - nextLink?: string; -} - -/** - * @interface - * The response to a list geo backup policies request. - * @extends Array - */ -export interface GeoBackupPolicyListResult extends Array { -} + readonly systemData?: SystemData; +}; -/** - * @interface - * A list of long term retention backups. - * @extends Array - */ -export interface RestorePointListResult extends Array { +/** Class representing a data connection. */ +export type DataConnection = ProxyResource & { + /** Resource location. */ + location?: string; + /** Kind of the endpoint for the data connection */ + kind: DataConnectionKind; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} + readonly systemData?: SystemData; +}; -/** - * @interface - * Represents the response to a List Sql pool replication link request. - * @extends Array - */ -export interface ReplicationLinkListResult extends Array { +/** Class representing a cluster principal assignment. */ +export type ClusterPrincipalAssignment = ProxyResource & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of transparent data encryption configurations. - * @extends Array - */ -export interface TransparentDataEncryptionListResult extends Array { + readonly systemData?: SystemData; + /** The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name. */ + principalId?: string; + /** Cluster principal role. */ + role?: ClusterPrincipalRole; + /** The tenant id of the principal */ + tenantId?: string; + /** Principal type. */ + principalType?: PrincipalType; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The tenant name of the principal + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of Sql pool auditing settings. - * @extends Array - */ -export interface SqlPoolBlobAuditingPolicyListResult extends Array { + readonly tenantName?: string; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The principal name + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** - * @interface - * The response to a list Sql pool operations request - * @extends Array - */ -export interface SqlPoolBlobAuditingPolicySqlPoolOperationListResult extends Array { + readonly principalName?: string; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The provisioned state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} + readonly provisioningState?: ResourceProvisioningState; +}; -/** - * @interface - * The response to a list Sql pool usages request. - * @extends Array - */ -export interface SqlPoolUsageListResult extends Array { +/** Class representing a database principal assignment. */ +export type DatabasePrincipalAssignment = ProxyResource & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of sensitivity labels. - * @extends Array - */ -export interface SensitivityLabelListResult extends Array { + readonly systemData?: SystemData; + /** The principal ID assigned to the database principal. It can be a user email, application ID, or security group name. */ + principalId?: string; + /** Database principal role. */ + role?: DatabasePrincipalRole; + /** The tenant id of the principal */ + tenantId?: string; + /** Principal type. */ + principalType?: PrincipalType; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The tenant name of the principal + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of Sql pool schemas. - * @extends Array - */ -export interface SqlPoolSchemaListResult extends Array { + readonly tenantName?: string; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The principal name + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of Sql pool tables. - * @extends Array - */ -export interface SqlPoolTableListResult extends Array { + readonly principalName?: string; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The provisioned state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} + readonly provisioningState?: ResourceProvisioningState; +}; -/** - * @interface - * A list of Sql pool columns. - * @extends Array - */ -export interface SqlPoolColumnListResult extends Array { +/** A privateLinkHub */ +export type PrivateLinkHub = TrackedResource & { + /** PrivateLinkHub provisioning state */ + provisioningState?: string; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * List of private endpoint connections + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} + readonly privateEndpointConnections?: PrivateEndpointConnectionForPrivateLinkHubBasic[]; +}; -/** - * @interface - * A list of the Sql pool's vulnerability assessments. - * @extends Array - */ -export interface SqlPoolVulnerabilityAssessmentListResult extends Array { +/** A SQL Analytics pool */ +export type SqlPool = TrackedResource & { + /** SQL pool SKU */ + sku?: Sku; + /** Maximum size in bytes */ + maxSizeBytes?: number; + /** Collation mode */ + collation?: string; + /** Source database to create from */ + sourceDatabaseId?: string; + /** Backup database to restore from */ + recoverableDatabaseId?: string; + /** Resource state */ + provisioningState?: string; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Resource status + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of vulnerability assessment scan records. - * @extends Array - */ -export interface VulnerabilityAssessmentScanRecordListResult extends Array { + readonly status?: string; + /** Snapshot time to restore */ + restorePointInTime?: Date; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the mode of sql pool creation. + * + * Default: regular sql pool creation. + * + * PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be specified. + * + * Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the recoverableDatabaseId to restore. + * + * Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified. */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of SQL pool security alert policies. - * @extends Array - */ -export interface ListSqlPoolSecurityAlertPolicies extends Array { + createMode?: CreateMode; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Date the SQL pool was created + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} + readonly creationDate?: Date; + /** The storage account type used to store backups for this sql pool. */ + storageAccountType?: StorageAccountType; + /** Specifies the time that the sql pool was deleted */ + sourceDatabaseDeletionDate?: Date; +}; -/** - * @interface - * A list of sql pool extended auditing settings. - * @extends Array - */ -export interface ExtendedSqlPoolBlobAuditingPolicyListResult extends Array { +/** A workspace */ +export type Workspace = TrackedResource & { + /** Identity of the workspace */ + identity?: ManagedIdentity; + /** Workspace default data lake storage account details */ + defaultDataLakeStorage?: DataLakeStorageAccountDetails; + /** SQL administrator login password */ + sqlAdministratorLoginPassword?: string; + /** Workspace managed resource group. The resource group name uniquely identifies the resource group within the user subscriptionId. The resource group name must be no longer than 90 characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', '(', ')' and'.'. Note that the name cannot end with '.' */ + managedResourceGroupName?: string; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Resource provisioning state + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** - * @interface - * The response to a list data masking rules request. - * @extends Array - */ -export interface DataMaskingRuleListResult extends Array { -} - -/** - * @interface - * A list of workload groups. - * @extends Array - */ -export interface WorkloadGroupListResult extends Array { + readonly provisioningState?: string; + /** Login for workspace SQL active directory administrator */ + sqlAdministratorLogin?: string; + /** Virtual Network profile */ + virtualNetworkProfile?: VirtualNetworkProfile; + /** Connectivity endpoints */ + connectivityEndpoints?: { [propertyName: string]: string }; + /** Setting this to 'default' will ensure that all compute for this workspace is in a virtual network managed on behalf of the user. */ + managedVirtualNetwork?: string; + /** Private endpoint connections to the workspace */ + privateEndpointConnections?: PrivateEndpointConnection[]; + /** The encryption details of the workspace */ + encryption?: EncryptionDetails; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The workspace unique identifier + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of workload classifiers for a workload group. - * @extends Array - */ -export interface WorkloadClassifierListResult extends Array { + readonly workspaceUID?: string; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Workspace level configs and feature flags + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of server auditing settings. - * @extends Array - */ -export interface ServerBlobAuditingPolicyListResult extends Array { + readonly extraProperties?: { + [propertyName: string]: Record; + }; + /** Managed Virtual Network Settings */ + managedVirtualNetworkSettings?: ManagedVirtualNetworkSettings; + /** Git integration settings */ + workspaceRepositoryConfiguration?: WorkspaceRepositoryConfiguration; + /** Purview Configuration */ + purviewConfiguration?: PurviewConfiguration; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The ADLA resource ID. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of server extended auditing settings. - * @extends Array - */ -export interface ExtendedServerBlobAuditingPolicyListResult extends Array { + readonly adlaResourceId?: string; + /** Enable or Disable public network access to workspace */ + publicNetworkAccess?: WorkspacePublicNetworkAccess; + /** Initial workspace AAD admin properties for a CSP subscription */ + cspWorkspaceAdminProperties?: CspWorkspaceAdminProperties; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Workspace settings + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} + readonly settings?: { [propertyName: string]: Record }; + /** Enable or Disable AzureADOnlyAuthentication on All Workspace subresource */ + azureADOnlyAuthentication?: boolean; + /** Is trustedServiceBypassEnabled for the workspace */ + trustedServiceBypassEnabled?: boolean; +}; -/** - * @interface - * A list of the workspace managed sql server's security alert policies. - * @extends Array - */ -export interface ServerSecurityAlertPolicyListResult extends Array { +/** A Big Data pool */ +export type BigDataPoolResourceInfo = TrackedResource & { + /** The state of the Big Data pool. */ + provisioningState?: string; + /** Auto-scaling properties */ + autoScale?: AutoScaleProperties; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The time when the Big Data pool was created. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** - * @interface - * A list of the server's vulnerability assessments. - * @extends Array - */ -export interface ServerVulnerabilityAssessmentListResult extends Array { + readonly creationDate?: Date; + /** Auto-pausing properties */ + autoPause?: AutoPauseProperties; + /** Whether compute isolation is required or not. */ + isComputeIsolationEnabled?: boolean; + /** Whether session level packages enabled. */ + sessionLevelPackagesEnabled?: boolean; + /** The cache size */ + cacheSize?: number; + /** Dynamic Executor Allocation */ + dynamicExecutorAllocation?: DynamicExecutorAllocation; + /** The Spark events folder */ + sparkEventsFolder?: string; + /** The number of nodes in the Big Data pool. */ + nodeCount?: number; + /** 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?: SparkConfigProperties; + /** The Apache Spark version. */ + sparkVersion?: string; + /** The default folder where Spark logs will be written. */ + defaultSparkLogFolder?: string; + /** The level of compute power that each node in the Big Data pool has. */ + nodeSize?: NodeSize; + /** The kind of nodes that the Big Data pool provides. */ + nodeSizeFamily?: NodeSizeFamily; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The time when the Big Data pool was updated successfully. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} + readonly lastSucceededTimestamp?: Date; +}; -/** - * @interface - * A list of server encryption protectors. - * @extends Array - */ -export interface EncryptionProtectorListResult extends Array { +/** Class representing a Kusto kusto pool. */ +export type KustoPool = TrackedResource & { + /** The SKU of the kusto pool. */ + sku: AzureSku; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A unique read-only string that changes whenever the resource is updated. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** - * @interface - * Represents the response to a list server metrics request. - * @extends Array - */ -export interface ServerUsageListResult extends Array { + readonly etag?: string; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** - * @interface - * The response to a list recoverable sql pools request - * @extends Array - */ -export interface RecoverableSqlPoolListResult extends Array { + readonly systemData?: SystemData; /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** - * @interface - * List of workspaces - * @extends Array - */ -export interface WorkspaceInfoListResult extends Array { + readonly state?: State; /** - * Link to the next page of results + * The provisioned state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - nextLink?: string; -} - -/** - * @interface - * The response to a list restorable dropped Sql pools request - * @extends Array - */ -export interface RestorableDroppedSqlPoolListResult extends Array { -} - -/** - * Defines values for NodeSize. - * Possible values include: 'None', 'Small', 'Medium', 'Large', 'XLarge', 'XXLarge', 'XXXLarge' - * @readonly - * @enum {string} - */ -export type NodeSize = 'None' | 'Small' | 'Medium' | 'Large' | 'XLarge' | 'XXLarge' | 'XXXLarge'; - -/** - * Defines values for NodeSizeFamily. - * Possible values include: 'None', 'MemoryOptimized' - * @readonly - * @enum {string} - */ -export type NodeSizeFamily = 'None' | 'MemoryOptimized'; - -/** - * Defines values for ProvisioningState. - * Possible values include: 'Provisioning', 'Succeeded', 'Deleting', 'Failed', 'DeleteError' - * @readonly - * @enum {string} - */ -export type ProvisioningState = 'Provisioning' | 'Succeeded' | 'Deleting' | 'Failed' | 'DeleteError'; + readonly provisioningState?: ResourceProvisioningState; + /** + * The Kusto Pool URI. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly uri?: string; + /** + * The Kusto Pool data ingestion URI. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dataIngestionUri?: string; + /** + * The reason for the Kusto Pool's current state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly stateReason?: string; + /** Optimized auto scale definition. */ + optimizedAutoscale?: OptimizedAutoscale; + /** A boolean value that indicates if the streaming ingest is enabled. */ + enableStreamingIngest?: boolean; + /** A boolean value that indicates if the purge operations are enabled. */ + enablePurge?: boolean; + /** + * List of the Kusto Pool's language extensions. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly languageExtensions?: LanguageExtensionsList; + /** The workspace unique identifier. */ + workspaceUID?: string; +}; + +/** Azure Synapse nested resource, which belongs to a workspace. */ +export type SubResource = AzureEntityResource & {}; + +/** Class representing a read write database. */ +export type ReadWriteDatabase = Database & { + /** + * The provisioned state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ResourceProvisioningState; + /** The time the data should be kept before it stops being accessible to queries in TimeSpan. */ + softDeletePeriod?: string; + /** The time the data should be kept in cache for fast queries in TimeSpan. */ + hotCachePeriod?: string; + /** + * The statistics of the database. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly statistics?: DatabaseStatistics; + /** + * Indicates whether the database is followed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isFollowed?: boolean; +}; + +/** Class representing an event hub data connection. */ +export type EventHubDataConnection = DataConnection & { + /** The resource ID of the event hub to be used to create a data connection. */ + eventHubResourceId?: string; + /** The event hub consumer group. */ + consumerGroup?: string; + /** The table where the data should be ingested. Optionally the table information can be added to each message. */ + tableName?: string; + /** The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message. */ + mappingRuleName?: string; + /** The data format of the message. Optionally the data format can be added to each message. */ + dataFormat?: EventHubDataFormat; + /** System properties of the event hub */ + eventSystemProperties?: string[]; + /** The event hub messages compression type */ + compression?: Compression; + /** + * The provisioned state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ResourceProvisioningState; + /** The resource ID of a managed identity (system or user assigned) to be used to authenticate with event hub. */ + managedIdentityResourceId?: string; +}; + +/** Class representing an iot hub data connection. */ +export type IotHubDataConnection = DataConnection & { + /** The resource ID of the Iot hub to be used to create a data connection. */ + iotHubResourceId?: string; + /** The iot hub consumer group. */ + consumerGroup?: string; + /** The table where the data should be ingested. Optionally the table information can be added to each message. */ + tableName?: string; + /** The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message. */ + mappingRuleName?: string; + /** The data format of the message. Optionally the data format can be added to each message. */ + dataFormat?: IotHubDataFormat; + /** System properties of the iot hub */ + eventSystemProperties?: string[]; + /** The name of the share access policy */ + sharedAccessPolicyName?: string; + /** + * The provisioned state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ResourceProvisioningState; +}; + +/** Class representing an Event Grid data connection. */ +export type EventGridDataConnection = DataConnection & { + /** The resource ID of the storage account where the data resides. */ + storageAccountResourceId?: string; + /** The resource ID where the event grid is configured to send events. */ + eventHubResourceId?: string; + /** The event hub consumer group. */ + consumerGroup?: string; + /** The table where the data should be ingested. Optionally the table information can be added to each message. */ + tableName?: string; + /** The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message. */ + mappingRuleName?: string; + /** The data format of the message. Optionally the data format can be added to each message. */ + dataFormat?: EventGridDataFormat; + /** A Boolean value that, if set to true, indicates that ingestion should ignore the first record of every file */ + ignoreFirstRecord?: boolean; + /** The name of blob storage event type to process. */ + blobStorageEventType?: BlobStorageEventType; + /** + * The provisioned state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ResourceProvisioningState; +}; + +/** Library response details */ +export type LibraryResource = SubResource & { + /** Name of the library. */ + namePropertiesName?: 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. */ + typePropertiesType?: string; + /** + * Provisioning status of the library/package. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatus?: string; + /** + * Creator Id of the library/package. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly creatorId?: string; +}; -/** - * Defines values for IntegrationRuntimeType. - * Possible values include: 'Managed', 'SelfHosted' - * @readonly - * @enum {string} - */ -export type IntegrationRuntimeType = 'Managed' | 'SelfHosted'; +/** Integration runtime resource type. */ +export type IntegrationRuntimeResource = SubResource & { + /** Integration runtime properties. */ + properties: IntegrationRuntimeUnion; +}; -/** - * Defines values for IntegrationRuntimeState. - * Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', - * 'NeedRegistration', 'Online', 'Limited', 'Offline', 'AccessDenied' - * @readonly - * @enum {string} - */ -export type IntegrationRuntimeState = 'Initial' | 'Stopped' | 'Started' | 'Starting' | 'Stopping' | 'NeedRegistration' | 'Online' | 'Limited' | 'Offline' | 'AccessDenied'; +/** SparkConfiguration response details */ +export type SparkConfigurationResource = SubResource & { + /** Description about the SparkConfiguration. */ + description?: string; + /** SparkConfiguration configs. */ + configs: { [propertyName: string]: string }; + /** Annotations for SparkConfiguration. */ + annotations?: string[]; + /** additional Notes. */ + notes?: string; + /** The identity that created the resource. */ + createdBy?: string; + /** The timestamp of resource creation. */ + created?: Date; +}; -/** - * Defines values for DataFlowComputeType. - * Possible values include: 'General', 'MemoryOptimized', 'ComputeOptimized' - * @readonly - * @enum {string} - */ -export type DataFlowComputeType = 'General' | 'MemoryOptimized' | 'ComputeOptimized'; +/** Known values of {@link AzureADOnlyAuthenticationName} that the service accepts. */ +export enum KnownAzureADOnlyAuthenticationName { + Default = "default" +} /** - * Defines values for IntegrationRuntimeSsisCatalogPricingTier. - * Possible values include: 'Basic', 'Standard', 'Premium', 'PremiumRS' - * @readonly - * @enum {string} + * Defines values for AzureADOnlyAuthenticationName. \ + * {@link KnownAzureADOnlyAuthenticationName} can be used interchangeably with AzureADOnlyAuthenticationName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **default** */ -export type IntegrationRuntimeSsisCatalogPricingTier = 'Basic' | 'Standard' | 'Premium' | 'PremiumRS'; +export type AzureADOnlyAuthenticationName = string; -/** - * Defines values for IntegrationRuntimeLicenseType. - * Possible values include: 'BasePrice', 'LicenseIncluded' - * @readonly - * @enum {string} - */ -export type IntegrationRuntimeLicenseType = 'BasePrice' | 'LicenseIncluded'; +/** Known values of {@link StateValue} that the service accepts. */ +export enum KnownStateValue { + Consistent = "Consistent", + InConsistent = "InConsistent", + Updating = "Updating" +} /** - * Defines values for IntegrationRuntimeEntityReferenceType. - * Possible values include: 'IntegrationRuntimeReference', 'LinkedServiceReference' - * @readonly - * @enum {string} + * Defines values for StateValue. \ + * {@link KnownStateValue} can be used interchangeably with StateValue, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Consistent** \ + * **InConsistent** \ + * **Updating** */ -export type IntegrationRuntimeEntityReferenceType = 'IntegrationRuntimeReference' | 'LinkedServiceReference'; +export type StateValue = string; -/** - * Defines values for IntegrationRuntimeEdition. - * Possible values include: 'Standard', 'Enterprise' - * @readonly - * @enum {string} - */ -export type IntegrationRuntimeEdition = 'Standard' | 'Enterprise'; +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + Provisioning = "Provisioning", + Succeeded = "Succeeded", + Deleting = "Deleting", + Failed = "Failed", + DeleteError = "DeleteError" +} /** - * Defines values for ManagedIntegrationRuntimeNodeStatus. - * Possible values include: 'Starting', 'Available', 'Recycling', 'Unavailable' - * @readonly - * @enum {string} + * Defines values for ProvisioningState. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Provisioning** \ + * **Succeeded** \ + * **Deleting** \ + * **Failed** \ + * **DeleteError** */ -export type ManagedIntegrationRuntimeNodeStatus = 'Starting' | 'Available' | 'Recycling' | 'Unavailable'; +export type ProvisioningState = string; -/** - * Defines values for IntegrationRuntimeInternalChannelEncryptionMode. - * Possible values include: 'NotSet', 'SslEncrypted', 'NotEncrypted' - * @readonly - * @enum {string} - */ -export type IntegrationRuntimeInternalChannelEncryptionMode = 'NotSet' | 'SslEncrypted' | 'NotEncrypted'; +/** Known values of {@link OperationStatus} that the service accepts. */ +export enum KnownOperationStatus { + InProgress = "InProgress", + Succeeded = "Succeeded", + Failed = "Failed", + Canceled = "Canceled" +} /** - * Defines values for SelfHostedIntegrationRuntimeNodeStatus. - * Possible values include: 'NeedRegistration', 'Online', 'Limited', 'Offline', 'Upgrading', - * 'Initializing', 'InitializeFailed' - * @readonly - * @enum {string} + * Defines values for OperationStatus. \ + * {@link KnownOperationStatus} can be used interchangeably with OperationStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **InProgress** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** */ -export type SelfHostedIntegrationRuntimeNodeStatus = 'NeedRegistration' | 'Online' | 'Limited' | 'Offline' | 'Upgrading' | 'Initializing' | 'InitializeFailed'; +export type OperationStatus = string; -/** - * Defines values for IntegrationRuntimeUpdateResult. - * Possible values include: 'None', 'Succeed', 'Fail' - * @readonly - * @enum {string} - */ -export type IntegrationRuntimeUpdateResult = 'None' | 'Succeed' | 'Fail'; +/** Known values of {@link CreateMode} that the service accepts. */ +export enum KnownCreateMode { + Default = "Default", + PointInTimeRestore = "PointInTimeRestore", + Recovery = "Recovery", + Restore = "Restore" +} /** - * Defines values for IntegrationRuntimeAutoUpdate. - * Possible values include: 'On', 'Off' - * @readonly - * @enum {string} + * Defines values for CreateMode. \ + * {@link KnownCreateMode} can be used interchangeably with CreateMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default** \ + * **PointInTimeRestore** \ + * **Recovery** \ + * **Restore** */ -export type IntegrationRuntimeAutoUpdate = 'On' | 'Off'; +export type CreateMode = string; + +/** Known values of {@link StorageAccountType} that the service accepts. */ +export enum KnownStorageAccountType { + GRS = "GRS", + LRS = "LRS" +} /** - * Defines values for IntegrationRuntimeAuthKeyName. - * Possible values include: 'authKey1', 'authKey2' - * @readonly - * @enum {string} + * Defines values for StorageAccountType. \ + * {@link KnownStorageAccountType} can be used interchangeably with StorageAccountType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **GRS** \ + * **LRS** */ -export type IntegrationRuntimeAuthKeyName = 'authKey1' | 'authKey2'; +export type StorageAccountType = string; + +/** Known values of {@link GeoBackupPolicyName} that the service accepts. */ +export enum KnownGeoBackupPolicyName { + Default = "Default" +} /** - * Defines values for SsisObjectMetadataType. - * Possible values include: 'Folder', 'Project', 'Package', 'Environment' - * @readonly - * @enum {string} + * Defines values for GeoBackupPolicyName. \ + * {@link KnownGeoBackupPolicyName} can be used interchangeably with GeoBackupPolicyName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default** */ -export type SsisObjectMetadataType = 'Folder' | 'Project' | 'Package' | 'Environment'; +export type GeoBackupPolicyName = string; + +/** Known values of {@link DataWarehouseUserActivityName} that the service accepts. */ +export enum KnownDataWarehouseUserActivityName { + Current = "current" +} /** - * Defines values for OperationStatus. - * Possible values include: 'InProgress', 'Succeeded', 'Failed', 'Canceled' - * @readonly - * @enum {string} + * Defines values for DataWarehouseUserActivityName. \ + * {@link KnownDataWarehouseUserActivityName} can be used interchangeably with DataWarehouseUserActivityName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **current** */ -export type OperationStatus = 'InProgress' | 'Succeeded' | 'Failed' | 'Canceled'; +export type DataWarehouseUserActivityName = string; -/** - * Defines values for StorageAccountType. - * Possible values include: 'GRS', 'LRS', 'ZRS' - * @readonly - * @enum {string} +/** Known values of {@link ReplicationState} that the service accepts. */ +export enum KnownReplicationState { + Pending = "PENDING", + Seeding = "SEEDING", + CatchUP = "CATCH_UP", + Suspended = "SUSPENDED" +} + +/** + * Defines values for ReplicationState. \ + * {@link KnownReplicationState} can be used interchangeably with ReplicationState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PENDING** \ + * **SEEDING** \ + * **CATCH_UP** \ + * **SUSPENDED** + */ +export type ReplicationState = string; + +/** Known values of {@link DayOfWeek} that the service accepts. */ +export enum KnownDayOfWeek { + Sunday = "Sunday", + Monday = "Monday", + Tuesday = "Tuesday", + Wednesday = "Wednesday", + Thursday = "Thursday", + Friday = "Friday", + Saturday = "Saturday" +} + +/** + * Defines values for DayOfWeek. \ + * {@link KnownDayOfWeek} can be used interchangeably with DayOfWeek, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Sunday** \ + * **Monday** \ + * **Tuesday** \ + * **Wednesday** \ + * **Thursday** \ + * **Friday** \ + * **Saturday** + */ +export type DayOfWeek = string; + +/** Known values of {@link TransparentDataEncryptionName} that the service accepts. */ +export enum KnownTransparentDataEncryptionName { + Current = "current" +} + +/** + * Defines values for TransparentDataEncryptionName. \ + * {@link KnownTransparentDataEncryptionName} can be used interchangeably with TransparentDataEncryptionName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **current** + */ +export type TransparentDataEncryptionName = string; + +/** Known values of {@link ManagementOperationState} that the service accepts. */ +export enum KnownManagementOperationState { + Pending = "Pending", + InProgress = "InProgress", + Succeeded = "Succeeded", + Failed = "Failed", + CancelInProgress = "CancelInProgress", + Cancelled = "Cancelled" +} + +/** + * Defines values for ManagementOperationState. \ + * {@link KnownManagementOperationState} can be used interchangeably with ManagementOperationState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Pending** \ + * **InProgress** \ + * **Succeeded** \ + * **Failed** \ + * **CancelInProgress** \ + * **Cancelled** + */ +export type ManagementOperationState = string; + +/** Known values of {@link ColumnDataType} that the service accepts. */ +export enum KnownColumnDataType { + Image = "image", + Text = "text", + Uniqueidentifier = "uniqueidentifier", + Date = "date", + Time = "time", + Datetime2 = "datetime2", + Datetimeoffset = "datetimeoffset", + Tinyint = "tinyint", + Smallint = "smallint", + Int = "int", + Smalldatetime = "smalldatetime", + Real = "real", + Money = "money", + Datetime = "datetime", + Float = "float", + SqlVariant = "sql_variant", + Ntext = "ntext", + Bit = "bit", + Decimal = "decimal", + Numeric = "numeric", + Smallmoney = "smallmoney", + Bigint = "bigint", + Hierarchyid = "hierarchyid", + Geometry = "geometry", + Geography = "geography", + Varbinary = "varbinary", + Varchar = "varchar", + Binary = "binary", + Char = "char", + Timestamp = "timestamp", + Nvarchar = "nvarchar", + Nchar = "nchar", + Xml = "xml", + Sysname = "sysname" +} + +/** + * Defines values for ColumnDataType. \ + * {@link KnownColumnDataType} can be used interchangeably with ColumnDataType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **image** \ + * **text** \ + * **uniqueidentifier** \ + * **date** \ + * **time** \ + * **datetime2** \ + * **datetimeoffset** \ + * **tinyint** \ + * **smallint** \ + * **int** \ + * **smalldatetime** \ + * **real** \ + * **money** \ + * **datetime** \ + * **float** \ + * **sql_variant** \ + * **ntext** \ + * **bit** \ + * **decimal** \ + * **numeric** \ + * **smallmoney** \ + * **bigint** \ + * **hierarchyid** \ + * **geometry** \ + * **geography** \ + * **varbinary** \ + * **varchar** \ + * **binary** \ + * **char** \ + * **timestamp** \ + * **nvarchar** \ + * **nchar** \ + * **xml** \ + * **sysname** + */ +export type ColumnDataType = string; + +/** Known values of {@link ConnectionPolicyName} that the service accepts. */ +export enum KnownConnectionPolicyName { + Default = "default" +} + +/** + * Defines values for ConnectionPolicyName. \ + * {@link KnownConnectionPolicyName} can be used interchangeably with ConnectionPolicyName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **default** + */ +export type ConnectionPolicyName = string; + +/** Known values of {@link VulnerabilityAssessmentName} that the service accepts. */ +export enum KnownVulnerabilityAssessmentName { + Default = "default" +} + +/** + * Defines values for VulnerabilityAssessmentName. \ + * {@link KnownVulnerabilityAssessmentName} can be used interchangeably with VulnerabilityAssessmentName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **default** + */ +export type VulnerabilityAssessmentName = string; + +/** Known values of {@link VulnerabilityAssessmentScanTriggerType} that the service accepts. */ +export enum KnownVulnerabilityAssessmentScanTriggerType { + OnDemand = "OnDemand", + Recurring = "Recurring" +} + +/** + * Defines values for VulnerabilityAssessmentScanTriggerType. \ + * {@link KnownVulnerabilityAssessmentScanTriggerType} can be used interchangeably with VulnerabilityAssessmentScanTriggerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **OnDemand** \ + * **Recurring** */ -export type StorageAccountType = 'GRS' | 'LRS' | 'ZRS'; +export type VulnerabilityAssessmentScanTriggerType = string; + +/** Known values of {@link VulnerabilityAssessmentScanState} that the service accepts. */ +export enum KnownVulnerabilityAssessmentScanState { + Passed = "Passed", + Failed = "Failed", + FailedToRun = "FailedToRun", + InProgress = "InProgress" +} /** - * Defines values for GeoBackupPolicyState. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} + * Defines values for VulnerabilityAssessmentScanState. \ + * {@link KnownVulnerabilityAssessmentScanState} can be used interchangeably with VulnerabilityAssessmentScanState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Passed** \ + * **Failed** \ + * **FailedToRun** \ + * **InProgress** */ -export type GeoBackupPolicyState = 'Disabled' | 'Enabled'; +export type VulnerabilityAssessmentScanState = string; + +/** Known values of {@link SecurityAlertPolicyName} that the service accepts. */ +export enum KnownSecurityAlertPolicyName { + Default = "default" +} /** - * Defines values for QueryAggregationFunction. - * Possible values include: 'min', 'max', 'avg', 'sum' - * @readonly - * @enum {string} + * Defines values for SecurityAlertPolicyName. \ + * {@link KnownSecurityAlertPolicyName} can be used interchangeably with SecurityAlertPolicyName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **default** */ -export type QueryAggregationFunction = 'min' | 'max' | 'avg' | 'sum'; +export type SecurityAlertPolicyName = string; + +/** Known values of {@link BlobAuditingPolicyName} that the service accepts. */ +export enum KnownBlobAuditingPolicyName { + Default = "default" +} /** - * Defines values for QueryExecutionType. - * Possible values include: 'any', 'regular', 'irregular', 'aborted', 'exception' - * @readonly - * @enum {string} + * Defines values for BlobAuditingPolicyName. \ + * {@link KnownBlobAuditingPolicyName} can be used interchangeably with BlobAuditingPolicyName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **default** */ -export type QueryExecutionType = 'any' | 'regular' | 'irregular' | 'aborted' | 'exception'; +export type BlobAuditingPolicyName = string; + +/** Known values of {@link SecurityAlertPolicyNameAutoGenerated} that the service accepts. */ +export enum KnownSecurityAlertPolicyNameAutoGenerated { + Default = "Default" +} /** - * Defines values for QueryObservedMetricType. - * Possible values include: 'cpu', 'io', 'logio', 'duration', 'executionCount' - * @readonly - * @enum {string} + * Defines values for SecurityAlertPolicyNameAutoGenerated. \ + * {@link KnownSecurityAlertPolicyNameAutoGenerated} can be used interchangeably with SecurityAlertPolicyNameAutoGenerated, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default** */ -export type QueryObservedMetricType = 'cpu' | 'io' | 'logio' | 'duration' | 'executionCount'; +export type SecurityAlertPolicyNameAutoGenerated = string; + +/** Known values of {@link EncryptionProtectorName} that the service accepts. */ +export enum KnownEncryptionProtectorName { + Current = "current" +} /** - * Defines values for QueryMetricUnit. - * Possible values include: 'percentage', 'KB', 'microseconds' - * @readonly - * @enum {string} + * Defines values for EncryptionProtectorName. \ + * {@link KnownEncryptionProtectorName} can be used interchangeably with EncryptionProtectorName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **current** */ -export type QueryMetricUnit = 'percentage' | 'KB' | 'microseconds'; +export type EncryptionProtectorName = string; + +/** Known values of {@link ServerKeyType} that the service accepts. */ +export enum KnownServerKeyType { + ServiceManaged = "ServiceManaged", + AzureKeyVault = "AzureKeyVault" +} /** - * Defines values for RestorePointType. - * Possible values include: 'CONTINUOUS', 'DISCRETE' - * @readonly - * @enum {string} + * Defines values for ServerKeyType. \ + * {@link KnownServerKeyType} can be used interchangeably with ServerKeyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ServiceManaged** \ + * **AzureKeyVault** */ -export type RestorePointType = 'CONTINUOUS' | 'DISCRETE'; +export type ServerKeyType = string; + +/** Known values of {@link WorkspacePublicNetworkAccess} that the service accepts. */ +export enum KnownWorkspacePublicNetworkAccess { + Enabled = "Enabled", + Disabled = "Disabled" +} /** - * Defines values for ReplicationRole. - * Possible values include: 'Primary', 'Secondary', 'NonReadableSecondary', 'Source', 'Copy' - * @readonly - * @enum {string} + * Defines values for WorkspacePublicNetworkAccess. \ + * {@link KnownWorkspacePublicNetworkAccess} can be used interchangeably with WorkspacePublicNetworkAccess, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** */ -export type ReplicationRole = 'Primary' | 'Secondary' | 'NonReadableSecondary' | 'Source' | 'Copy'; +export type WorkspacePublicNetworkAccess = string; + +/** Known values of {@link ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState} that the service accepts. */ +export enum KnownManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState { + Enabled = "Enabled", + Disabled = "Disabled" +} /** - * Defines values for ReplicationState. - * Possible values include: 'PENDING', 'SEEDING', 'CATCH_UP', 'SUSPENDED' - * @readonly - * @enum {string} + * Defines values for ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState. \ + * {@link KnownManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState} can be used interchangeably with ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** */ -export type ReplicationState = 'PENDING' | 'SEEDING' | 'CATCH_UP' | 'SUSPENDED'; +export type ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityDesiredState = string; + +/** Known values of {@link ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState} that the service accepts. */ +export enum KnownManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState { + Enabling = "Enabling", + Enabled = "Enabled", + Disabling = "Disabling", + Disabled = "Disabled", + Unknown = "Unknown" +} /** - * Defines values for DayOfWeek. - * Possible values include: 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', - * 'Saturday' - * @readonly - * @enum {string} + * Defines values for ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState. \ + * {@link KnownManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState} can be used interchangeably with ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabling** \ + * **Enabled** \ + * **Disabling** \ + * **Disabled** \ + * **Unknown** */ -export type DayOfWeek = 'Sunday' | 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday'; +export type ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentityActualState = string; + +/** Known values of {@link ConfigurationType} that the service accepts. */ +export enum KnownConfigurationType { + File = "File", + Artifact = "Artifact" +} /** - * Defines values for TransparentDataEncryptionStatus. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Defines values for ConfigurationType. \ + * {@link KnownConfigurationType} can be used interchangeably with ConfigurationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **File** \ + * **Artifact** */ -export type TransparentDataEncryptionStatus = 'Enabled' | 'Disabled'; +export type ConfigurationType = string; + +/** Known values of {@link NodeSize} that the service accepts. */ +export enum KnownNodeSize { + None = "None", + Small = "Small", + Medium = "Medium", + Large = "Large", + XLarge = "XLarge", + XXLarge = "XXLarge", + XXXLarge = "XXXLarge" +} /** - * Defines values for BlobAuditingPolicyState. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Defines values for NodeSize. \ + * {@link KnownNodeSize} can be used interchangeably with NodeSize, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **Small** \ + * **Medium** \ + * **Large** \ + * **XLarge** \ + * **XXLarge** \ + * **XXXLarge** */ -export type BlobAuditingPolicyState = 'Enabled' | 'Disabled'; +export type NodeSize = string; + +/** Known values of {@link NodeSizeFamily} that the service accepts. */ +export enum KnownNodeSizeFamily { + None = "None", + MemoryOptimized = "MemoryOptimized", + HardwareAcceleratedFpga = "HardwareAcceleratedFPGA", + HardwareAcceleratedGPU = "HardwareAcceleratedGPU" +} /** - * Defines values for ManagementOperationState. - * Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', 'CancelInProgress', - * 'Cancelled' - * @readonly - * @enum {string} + * Defines values for NodeSizeFamily. \ + * {@link KnownNodeSizeFamily} can be used interchangeably with NodeSizeFamily, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **MemoryOptimized** \ + * **HardwareAcceleratedFPGA** \ + * **HardwareAcceleratedGPU** */ -export type ManagementOperationState = 'Pending' | 'InProgress' | 'Succeeded' | 'Failed' | 'CancelInProgress' | 'Cancelled'; +export type NodeSizeFamily = string; -/** - * Defines values for SensitivityLabelRank. - * Possible values include: 'None', 'Low', 'Medium', 'High', 'Critical' - * @readonly - * @enum {string} +/** Known values of {@link IntegrationRuntimeAutoUpdate} that the service accepts. */ +export enum KnownIntegrationRuntimeAutoUpdate { + On = "On", + Off = "Off" +} + +/** + * Defines values for IntegrationRuntimeAutoUpdate. \ + * {@link KnownIntegrationRuntimeAutoUpdate} can be used interchangeably with IntegrationRuntimeAutoUpdate, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **On** \ + * **Off** */ -export type SensitivityLabelRank = 'None' | 'Low' | 'Medium' | 'High' | 'Critical'; +export type IntegrationRuntimeAutoUpdate = string; + +/** Known values of {@link IntegrationRuntimeType} that the service accepts. */ +export enum KnownIntegrationRuntimeType { + Managed = "Managed", + SelfHosted = "SelfHosted" +} + +/** + * Defines values for IntegrationRuntimeType. \ + * {@link KnownIntegrationRuntimeType} can be used interchangeably with IntegrationRuntimeType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Managed** \ + * **SelfHosted** + */ +export type IntegrationRuntimeType = string; + +/** Known values of {@link SsisObjectMetadataType} that the service accepts. */ +export enum KnownSsisObjectMetadataType { + Folder = "Folder", + Project = "Project", + Package = "Package", + Environment = "Environment" +} + +/** + * Defines values for SsisObjectMetadataType. \ + * {@link KnownSsisObjectMetadataType} can be used interchangeably with SsisObjectMetadataType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Folder** \ + * **Project** \ + * **Package** \ + * **Environment** + */ +export type SsisObjectMetadataType = string; + +/** Known values of {@link SelfHostedIntegrationRuntimeNodeStatus} that the service accepts. */ +export enum KnownSelfHostedIntegrationRuntimeNodeStatus { + NeedRegistration = "NeedRegistration", + Online = "Online", + Limited = "Limited", + Offline = "Offline", + Upgrading = "Upgrading", + Initializing = "Initializing", + InitializeFailed = "InitializeFailed" +} /** - * Defines values for ColumnDataType. - * Possible values include: 'image', 'text', 'uniqueidentifier', 'date', 'time', 'datetime2', - * 'datetimeoffset', 'tinyint', 'smallint', 'int', 'smalldatetime', 'real', 'money', 'datetime', - * 'float', 'sql_variant', 'ntext', 'bit', 'decimal', 'numeric', 'smallmoney', 'bigint', - * 'hierarchyid', 'geometry', 'geography', 'varbinary', 'varchar', 'binary', 'char', 'timestamp', - * 'nvarchar', 'nchar', 'xml', 'sysname' - * @readonly - * @enum {string} + * Defines values for SelfHostedIntegrationRuntimeNodeStatus. \ + * {@link KnownSelfHostedIntegrationRuntimeNodeStatus} can be used interchangeably with SelfHostedIntegrationRuntimeNodeStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NeedRegistration** \ + * **Online** \ + * **Limited** \ + * **Offline** \ + * **Upgrading** \ + * **Initializing** \ + * **InitializeFailed** */ -export type ColumnDataType = 'image' | 'text' | 'uniqueidentifier' | 'date' | 'time' | 'datetime2' | 'datetimeoffset' | 'tinyint' | 'smallint' | 'int' | 'smalldatetime' | 'real' | 'money' | 'datetime' | 'float' | 'sql_variant' | 'ntext' | 'bit' | 'decimal' | 'numeric' | 'smallmoney' | 'bigint' | 'hierarchyid' | 'geometry' | 'geography' | 'varbinary' | 'varchar' | 'binary' | 'char' | 'timestamp' | 'nvarchar' | 'nchar' | 'xml' | 'sysname'; +export type SelfHostedIntegrationRuntimeNodeStatus = string; + +/** Known values of {@link IntegrationRuntimeUpdateResult} that the service accepts. */ +export enum KnownIntegrationRuntimeUpdateResult { + None = "None", + Succeed = "Succeed", + Fail = "Fail" +} /** - * Defines values for VulnerabilityAssessmentScanTriggerType. - * Possible values include: 'OnDemand', 'Recurring' - * @readonly - * @enum {string} + * Defines values for IntegrationRuntimeUpdateResult. \ + * {@link KnownIntegrationRuntimeUpdateResult} can be used interchangeably with IntegrationRuntimeUpdateResult, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **Succeed** \ + * **Fail** */ -export type VulnerabilityAssessmentScanTriggerType = 'OnDemand' | 'Recurring'; +export type IntegrationRuntimeUpdateResult = string; + +/** Known values of {@link IntegrationRuntimeState} that the service accepts. */ +export enum KnownIntegrationRuntimeState { + Initial = "Initial", + Stopped = "Stopped", + Started = "Started", + Starting = "Starting", + Stopping = "Stopping", + NeedRegistration = "NeedRegistration", + Online = "Online", + Limited = "Limited", + Offline = "Offline", + AccessDenied = "AccessDenied" +} /** - * Defines values for VulnerabilityAssessmentScanState. - * Possible values include: 'Passed', 'Failed', 'FailedToRun', 'InProgress' - * @readonly - * @enum {string} + * Defines values for IntegrationRuntimeState. \ + * {@link KnownIntegrationRuntimeState} can be used interchangeably with IntegrationRuntimeState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Initial** \ + * **Stopped** \ + * **Started** \ + * **Starting** \ + * **Stopping** \ + * **NeedRegistration** \ + * **Online** \ + * **Limited** \ + * **Offline** \ + * **AccessDenied** + */ +export type IntegrationRuntimeState = string; + +/** Known values of {@link IntegrationRuntimeAuthKeyName} that the service accepts. */ +export enum KnownIntegrationRuntimeAuthKeyName { + AuthKey1 = "authKey1", + AuthKey2 = "authKey2" +} + +/** + * Defines values for IntegrationRuntimeAuthKeyName. \ + * {@link KnownIntegrationRuntimeAuthKeyName} can be used interchangeably with IntegrationRuntimeAuthKeyName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **authKey1** \ + * **authKey2** + */ +export type IntegrationRuntimeAuthKeyName = string; + +/** Known values of {@link Reason} that the service accepts. */ +export enum KnownReason { + Invalid = "Invalid", + AlreadyExists = "AlreadyExists" +} + +/** + * Defines values for Reason. \ + * {@link KnownReason} can be used interchangeably with Reason, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Invalid** \ + * **AlreadyExists** + */ +export type Reason = string; + +/** Known values of {@link SkuName} that the service accepts. */ +export enum KnownSkuName { + ComputeOptimized = "Compute optimized", + StorageOptimized = "Storage optimized" +} + +/** + * Defines values for SkuName. \ + * {@link KnownSkuName} can be used interchangeably with SkuName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Compute optimized** \ + * **Storage optimized** + */ +export type SkuName = string; + +/** Known values of {@link SkuSize} that the service accepts. */ +export enum KnownSkuSize { + ExtraSmall = "Extra small", + Small = "Small", + Medium = "Medium", + Large = "Large" +} + +/** + * Defines values for SkuSize. \ + * {@link KnownSkuSize} can be used interchangeably with SkuSize, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Extra small** \ + * **Small** \ + * **Medium** \ + * **Large** + */ +export type SkuSize = string; + +/** Known values of {@link State} that the service accepts. */ +export enum KnownState { + Creating = "Creating", + Unavailable = "Unavailable", + Running = "Running", + Deleting = "Deleting", + Deleted = "Deleted", + Stopping = "Stopping", + Stopped = "Stopped", + Starting = "Starting", + Updating = "Updating" +} + +/** + * Defines values for State. \ + * {@link KnownState} can be used interchangeably with State, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Unavailable** \ + * **Running** \ + * **Deleting** \ + * **Deleted** \ + * **Stopping** \ + * **Stopped** \ + * **Starting** \ + * **Updating** */ -export type VulnerabilityAssessmentScanState = 'Passed' | 'Failed' | 'FailedToRun' | 'InProgress'; +export type State = string; + +/** Known values of {@link ResourceProvisioningState} that the service accepts. */ +export enum KnownResourceProvisioningState { + Running = "Running", + Creating = "Creating", + Deleting = "Deleting", + Succeeded = "Succeeded", + Failed = "Failed", + Moving = "Moving", + Canceled = "Canceled" +} /** - * Defines values for SecurityAlertPolicyState. - * Possible values include: 'New', 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Defines values for ResourceProvisioningState. \ + * {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Running** \ + * **Creating** \ + * **Deleting** \ + * **Succeeded** \ + * **Failed** \ + * **Moving** \ + * **Canceled** */ -export type SecurityAlertPolicyState = 'New' | 'Enabled' | 'Disabled'; +export type ResourceProvisioningState = string; + +/** Known values of {@link LanguageExtensionName} that the service accepts. */ +export enum KnownLanguageExtensionName { + Python = "PYTHON", + R = "R" +} /** - * Defines values for DataMaskingState. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} + * Defines values for LanguageExtensionName. \ + * {@link KnownLanguageExtensionName} can be used interchangeably with LanguageExtensionName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PYTHON** \ + * **R** */ -export type DataMaskingState = 'Disabled' | 'Enabled'; +export type LanguageExtensionName = string; + +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + User = "User", + Application = "Application", + ManagedIdentity = "ManagedIdentity", + Key = "Key" +} /** - * Defines values for DataMaskingRuleState. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** */ -export type DataMaskingRuleState = 'Disabled' | 'Enabled'; +export type CreatedByType = string; + +/** Known values of {@link AzureScaleType} that the service accepts. */ +export enum KnownAzureScaleType { + Automatic = "automatic", + Manual = "manual", + None = "none" +} /** - * Defines values for DataMaskingFunction. - * Possible values include: 'Default', 'CCN', 'Email', 'Number', 'SSN', 'Text' - * @readonly - * @enum {string} + * Defines values for AzureScaleType. \ + * {@link KnownAzureScaleType} can be used interchangeably with AzureScaleType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **automatic** \ + * **manual** \ + * **none** */ -export type DataMaskingFunction = 'Default' | 'CCN' | 'Email' | 'Number' | 'SSN' | 'Text'; +export type AzureScaleType = string; + +/** Known values of {@link DefaultPrincipalsModificationKind} that the service accepts. */ +export enum KnownDefaultPrincipalsModificationKind { + Union = "Union", + Replace = "Replace", + None = "None" +} /** - * Defines values for SensitivityLabelUpdateKind. - * Possible values include: 'set', 'remove' - * @readonly - * @enum {string} + * Defines values for DefaultPrincipalsModificationKind. \ + * {@link KnownDefaultPrincipalsModificationKind} can be used interchangeably with DefaultPrincipalsModificationKind, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Union** \ + * **Replace** \ + * **None** */ -export type SensitivityLabelUpdateKind = 'set' | 'remove'; +export type DefaultPrincipalsModificationKind = string; + +/** Known values of {@link Kind} that the service accepts. */ +export enum KnownKind { + ReadWrite = "ReadWrite", + ReadOnlyFollowing = "ReadOnlyFollowing" +} /** - * Defines values for RecommendedSensitivityLabelUpdateKind. - * Possible values include: 'enable', 'disable' - * @readonly - * @enum {string} + * Defines values for Kind. \ + * {@link KnownKind} can be used interchangeably with Kind, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ReadWrite** \ + * **ReadOnlyFollowing** */ -export type RecommendedSensitivityLabelUpdateKind = 'enable' | 'disable'; +export type Kind = string; + +/** Known values of {@link DataConnectionKind} that the service accepts. */ +export enum KnownDataConnectionKind { + EventHub = "EventHub", + EventGrid = "EventGrid", + IotHub = "IotHub" +} /** - * Defines values for ServerKeyType. - * Possible values include: 'ServiceManaged', 'AzureKeyVault' - * @readonly - * @enum {string} + * Defines values for DataConnectionKind. \ + * {@link KnownDataConnectionKind} can be used interchangeably with DataConnectionKind, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **EventHub** \ + * **EventGrid** \ + * **IotHub** */ -export type ServerKeyType = 'ServiceManaged' | 'AzureKeyVault'; +export type DataConnectionKind = string; + +/** Known values of {@link ClusterPrincipalRole} that the service accepts. */ +export enum KnownClusterPrincipalRole { + AllDatabasesAdmin = "AllDatabasesAdmin", + AllDatabasesViewer = "AllDatabasesViewer" +} /** - * Defines values for WorkspacePublicNetworkAccess. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Defines values for ClusterPrincipalRole. \ + * {@link KnownClusterPrincipalRole} can be used interchangeably with ClusterPrincipalRole, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AllDatabasesAdmin** \ + * **AllDatabasesViewer** */ -export type WorkspacePublicNetworkAccess = 'Enabled' | 'Disabled'; +export type ClusterPrincipalRole = string; + +/** Known values of {@link PrincipalType} that the service accepts. */ +export enum KnownPrincipalType { + App = "App", + Group = "Group", + User = "User" +} /** - * Defines values for ResourceIdentityType. - * Possible values include: 'None', 'SystemAssigned' - * @readonly - * @enum {string} + * Defines values for PrincipalType. \ + * {@link KnownPrincipalType} can be used interchangeably with PrincipalType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **App** \ + * **Group** \ + * **User** */ -export type ResourceIdentityType = 'None' | 'SystemAssigned'; +export type PrincipalType = string; + +/** Known values of {@link DatabasePrincipalRole} that the service accepts. */ +export enum KnownDatabasePrincipalRole { + Admin = "Admin", + Ingestor = "Ingestor", + Monitor = "Monitor", + User = "User", + UnrestrictedViewer = "UnrestrictedViewer", + Viewer = "Viewer" +} /** - * Defines values for SensitivityLabelSource. - * Possible values include: 'current', 'recommended' - * @readonly - * @enum {string} + * Defines values for DatabasePrincipalRole. \ + * {@link KnownDatabasePrincipalRole} can be used interchangeably with DatabasePrincipalRole, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Admin** \ + * **Ingestor** \ + * **Monitor** \ + * **User** \ + * **UnrestrictedViewer** \ + * **Viewer** */ -export type SensitivityLabelSource = 'current' | 'recommended'; +export type DatabasePrincipalRole = string; + +/** Known values of {@link DataFlowComputeType} that the service accepts. */ +export enum KnownDataFlowComputeType { + General = "General", + MemoryOptimized = "MemoryOptimized", + ComputeOptimized = "ComputeOptimized" +} /** - * Defines values for VulnerabilityAssessmentPolicyBaselineName. - * Possible values include: 'master', 'default' - * @readonly - * @enum {string} + * Defines values for DataFlowComputeType. \ + * {@link KnownDataFlowComputeType} can be used interchangeably with DataFlowComputeType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **General** \ + * **MemoryOptimized** \ + * **ComputeOptimized** */ -export type VulnerabilityAssessmentPolicyBaselineName = 'master' | 'default'; +export type DataFlowComputeType = string; + +/** Known values of {@link IntegrationRuntimeSsisCatalogPricingTier} that the service accepts. */ +export enum KnownIntegrationRuntimeSsisCatalogPricingTier { + Basic = "Basic", + Standard = "Standard", + Premium = "Premium", + PremiumRS = "PremiumRS" +} /** - * Defines values for DesiredState. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Defines values for IntegrationRuntimeSsisCatalogPricingTier. \ + * {@link KnownIntegrationRuntimeSsisCatalogPricingTier} can be used interchangeably with IntegrationRuntimeSsisCatalogPricingTier, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Basic** \ + * **Standard** \ + * **Premium** \ + * **PremiumRS** */ -export type DesiredState = 'Enabled' | 'Disabled'; +export type IntegrationRuntimeSsisCatalogPricingTier = string; + +/** Known values of {@link IntegrationRuntimeLicenseType} that the service accepts. */ +export enum KnownIntegrationRuntimeLicenseType { + BasePrice = "BasePrice", + LicenseIncluded = "LicenseIncluded" +} /** - * Defines values for ActualState. - * Possible values include: 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Unknown' - * @readonly - * @enum {string} + * Defines values for IntegrationRuntimeLicenseType. \ + * {@link KnownIntegrationRuntimeLicenseType} can be used interchangeably with IntegrationRuntimeLicenseType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **BasePrice** \ + * **LicenseIncluded** */ -export type ActualState = 'Enabling' | 'Enabled' | 'Disabling' | 'Disabled' | 'Unknown'; +export type IntegrationRuntimeLicenseType = string; -/** - * Contains response data for the get operation. +/** Known values of {@link IntegrationRuntimeEntityReferenceType} that the service accepts. */ +export enum KnownIntegrationRuntimeEntityReferenceType { + IntegrationRuntimeReference = "IntegrationRuntimeReference", + LinkedServiceReference = "LinkedServiceReference" +} + +/** + * Defines values for IntegrationRuntimeEntityReferenceType. \ + * {@link KnownIntegrationRuntimeEntityReferenceType} can be used interchangeably with IntegrationRuntimeEntityReferenceType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **IntegrationRuntimeReference** \ + * **LinkedServiceReference** + */ +export type IntegrationRuntimeEntityReferenceType = string; + +/** Known values of {@link IntegrationRuntimeEdition} that the service accepts. */ +export enum KnownIntegrationRuntimeEdition { + Standard = "Standard", + Enterprise = "Enterprise" +} + +/** + * Defines values for IntegrationRuntimeEdition. \ + * {@link KnownIntegrationRuntimeEdition} can be used interchangeably with IntegrationRuntimeEdition, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Standard** \ + * **Enterprise** */ -export type BigDataPoolsGetResponse = BigDataPoolResourceInfo & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type IntegrationRuntimeEdition = string; + +/** Known values of {@link ManagedIntegrationRuntimeNodeStatus} that the service accepts. */ +export enum KnownManagedIntegrationRuntimeNodeStatus { + Starting = "Starting", + Available = "Available", + Recycling = "Recycling", + Unavailable = "Unavailable" +} + +/** + * Defines values for ManagedIntegrationRuntimeNodeStatus. \ + * {@link KnownManagedIntegrationRuntimeNodeStatus} can be used interchangeably with ManagedIntegrationRuntimeNodeStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Starting** \ + * **Available** \ + * **Recycling** \ + * **Unavailable** + */ +export type ManagedIntegrationRuntimeNodeStatus = string; + +/** Known values of {@link IntegrationRuntimeInternalChannelEncryptionMode} that the service accepts. */ +export enum KnownIntegrationRuntimeInternalChannelEncryptionMode { + NotSet = "NotSet", + SslEncrypted = "SslEncrypted", + NotEncrypted = "NotEncrypted" +} + +/** + * Defines values for IntegrationRuntimeInternalChannelEncryptionMode. \ + * {@link KnownIntegrationRuntimeInternalChannelEncryptionMode} can be used interchangeably with IntegrationRuntimeInternalChannelEncryptionMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotSet** \ + * **SslEncrypted** \ + * **NotEncrypted** + */ +export type IntegrationRuntimeInternalChannelEncryptionMode = string; + +/** Known values of {@link EventHubDataFormat} that the service accepts. */ +export enum KnownEventHubDataFormat { + Multijson = "MULTIJSON", + Json = "JSON", + CSV = "CSV", + TSV = "TSV", + Scsv = "SCSV", + Sohsv = "SOHSV", + PSV = "PSV", + TXT = "TXT", + RAW = "RAW", + Singlejson = "SINGLEJSON", + Avro = "AVRO", + Tsve = "TSVE", + Parquet = "PARQUET", + ORC = "ORC", + Apacheavro = "APACHEAVRO", + W3Clogfile = "W3CLOGFILE" +} + +/** + * Defines values for EventHubDataFormat. \ + * {@link KnownEventHubDataFormat} can be used interchangeably with EventHubDataFormat, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **MULTIJSON** \ + * **JSON** \ + * **CSV** \ + * **TSV** \ + * **SCSV** \ + * **SOHSV** \ + * **PSV** \ + * **TXT** \ + * **RAW** \ + * **SINGLEJSON** \ + * **AVRO** \ + * **TSVE** \ + * **PARQUET** \ + * **ORC** \ + * **APACHEAVRO** \ + * **W3CLOGFILE** + */ +export type EventHubDataFormat = string; + +/** Known values of {@link Compression} that the service accepts. */ +export enum KnownCompression { + None = "None", + GZip = "GZip" +} + +/** + * Defines values for Compression. \ + * {@link KnownCompression} can be used interchangeably with Compression, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **GZip** + */ +export type Compression = string; + +/** Known values of {@link IotHubDataFormat} that the service accepts. */ +export enum KnownIotHubDataFormat { + Multijson = "MULTIJSON", + Json = "JSON", + CSV = "CSV", + TSV = "TSV", + Scsv = "SCSV", + Sohsv = "SOHSV", + PSV = "PSV", + TXT = "TXT", + RAW = "RAW", + Singlejson = "SINGLEJSON", + Avro = "AVRO", + Tsve = "TSVE", + Parquet = "PARQUET", + ORC = "ORC", + Apacheavro = "APACHEAVRO", + W3Clogfile = "W3CLOGFILE" +} + +/** + * Defines values for IotHubDataFormat. \ + * {@link KnownIotHubDataFormat} can be used interchangeably with IotHubDataFormat, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **MULTIJSON** \ + * **JSON** \ + * **CSV** \ + * **TSV** \ + * **SCSV** \ + * **SOHSV** \ + * **PSV** \ + * **TXT** \ + * **RAW** \ + * **SINGLEJSON** \ + * **AVRO** \ + * **TSVE** \ + * **PARQUET** \ + * **ORC** \ + * **APACHEAVRO** \ + * **W3CLOGFILE** + */ +export type IotHubDataFormat = string; + +/** Known values of {@link EventGridDataFormat} that the service accepts. */ +export enum KnownEventGridDataFormat { + Multijson = "MULTIJSON", + Json = "JSON", + CSV = "CSV", + TSV = "TSV", + Scsv = "SCSV", + Sohsv = "SOHSV", + PSV = "PSV", + TXT = "TXT", + RAW = "RAW", + Singlejson = "SINGLEJSON", + Avro = "AVRO", + Tsve = "TSVE", + Parquet = "PARQUET", + ORC = "ORC", + Apacheavro = "APACHEAVRO", + W3Clogfile = "W3CLOGFILE" +} + +/** + * Defines values for EventGridDataFormat. \ + * {@link KnownEventGridDataFormat} can be used interchangeably with EventGridDataFormat, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **MULTIJSON** \ + * **JSON** \ + * **CSV** \ + * **TSV** \ + * **SCSV** \ + * **SOHSV** \ + * **PSV** \ + * **TXT** \ + * **RAW** \ + * **SINGLEJSON** \ + * **AVRO** \ + * **TSVE** \ + * **PARQUET** \ + * **ORC** \ + * **APACHEAVRO** \ + * **W3CLOGFILE** + */ +export type EventGridDataFormat = string; + +/** Known values of {@link BlobStorageEventType} that the service accepts. */ +export enum KnownBlobStorageEventType { + MicrosoftStorageBlobCreated = "Microsoft.Storage.BlobCreated", + MicrosoftStorageBlobRenamed = "Microsoft.Storage.BlobRenamed" +} + +/** + * Defines values for BlobStorageEventType. \ + * {@link KnownBlobStorageEventType} can be used interchangeably with BlobStorageEventType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Microsoft.Storage.BlobCreated** \ + * **Microsoft.Storage.BlobRenamed** + */ +export type BlobStorageEventType = string; +/** Defines values for GeoBackupPolicyState. */ +export type GeoBackupPolicyState = "Disabled" | "Enabled"; +/** Defines values for RestorePointType. */ +export type RestorePointType = "CONTINUOUS" | "DISCRETE"; +/** Defines values for ReplicationRole. */ +export type ReplicationRole = + | "Primary" + | "Secondary" + | "NonReadableSecondary" + | "Source" + | "Copy"; +/** Defines values for TransparentDataEncryptionStatus. */ +export type TransparentDataEncryptionStatus = "Enabled" | "Disabled"; +/** Defines values for BlobAuditingPolicyState. */ +export type BlobAuditingPolicyState = "Enabled" | "Disabled"; +/** Defines values for SensitivityLabelRank. */ +export type SensitivityLabelRank = + | "None" + | "Low" + | "Medium" + | "High" + | "Critical"; +/** Defines values for SensitivityLabelUpdateKind. */ +export type SensitivityLabelUpdateKind = "set" | "remove"; +/** Defines values for RecommendedSensitivityLabelUpdateKind. */ +export type RecommendedSensitivityLabelUpdateKind = "enable" | "disable"; +/** Defines values for SensitivityLabelSource. */ +export type SensitivityLabelSource = "current" | "recommended"; +/** Defines values for SecurityAlertPolicyState. */ +export type SecurityAlertPolicyState = "New" | "Enabled" | "Disabled"; +/** Defines values for VulnerabilityAssessmentPolicyBaselineName. */ +export type VulnerabilityAssessmentPolicyBaselineName = "master" | "default"; +/** Defines values for DataMaskingState. */ +export type DataMaskingState = "Disabled" | "Enabled"; +/** Defines values for DataMaskingRuleState. */ +export type DataMaskingRuleState = "Disabled" | "Enabled"; +/** Defines values for DataMaskingFunction. */ +export type DataMaskingFunction = + | "Default" + | "CCN" + | "Email" + | "Number" + | "SSN" + | "Text"; +/** Defines values for ResourceIdentityType. */ +export type ResourceIdentityType = + | "None" + | "SystemAssigned" + | "SystemAssigned,UserAssigned"; +/** Defines values for Type. */ +export type Type = + | "Microsoft.Synapse/workspaces/kustoPools/databases" + | "Microsoft.Synapse/workspaces/kustoPools/attachedDatabaseConfigurations"; +/** Defines values for QueryAggregationFunction. */ +export type QueryAggregationFunction = "min" | "max" | "avg" | "sum"; +/** Defines values for QueryExecutionType. */ +export type QueryExecutionType = + | "any" + | "regular" + | "irregular" + | "aborted" + | "exception"; +/** Defines values for QueryObservedMetricType. */ +export type QueryObservedMetricType = + | "cpu" + | "io" + | "logio" + | "duration" + | "executionCount"; +/** Defines values for QueryMetricUnit. */ +export type QueryMetricUnit = "percentage" | "KB" | "microseconds"; + +/** Optional parameters. */ +export interface AzureADOnlyAuthenticationsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AzureADOnlyAuthenticationsGetResponse = AzureADOnlyAuthentication; + +/** Optional parameters. */ +export interface AzureADOnlyAuthenticationsCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the create operation. */ +export type AzureADOnlyAuthenticationsCreateResponse = AzureADOnlyAuthentication; + +/** Optional parameters. */ +export interface AzureADOnlyAuthenticationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type AzureADOnlyAuthenticationsListResponse = AzureADOnlyAuthenticationListResult; + +/** Optional parameters. */ +export interface AzureADOnlyAuthenticationsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type AzureADOnlyAuthenticationsListNextResponse = AzureADOnlyAuthenticationListResult; + +/** Optional parameters. */ +export interface OperationsCheckNameAvailabilityOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the checkNameAvailability operation. */ +export type OperationsCheckNameAvailabilityResponse = CheckNameAvailabilityResponse; + +/** Optional parameters. */ +export interface OperationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type OperationsListResponse = AvailableRpOperation[]; + +/** Optional parameters. */ +export interface OperationsGetLocationHeaderResultOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface OperationsGetAzureAsyncHeaderResultOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getAzureAsyncHeaderResult operation. */ +export type OperationsGetAzureAsyncHeaderResultResponse = OperationResource; + +/** Optional parameters. */ +export interface IpFirewallRulesListByWorkspaceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByWorkspace operation. */ +export type IpFirewallRulesListByWorkspaceResponse = IpFirewallRuleInfoListResult; + +/** Optional parameters. */ +export interface IpFirewallRulesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type IpFirewallRulesCreateOrUpdateResponse = IpFirewallRuleInfo; + +/** Optional parameters. */ +export interface IpFirewallRulesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: BigDataPoolResourceInfo; - }; -}; +/** Contains response data for the delete operation. */ +export type IpFirewallRulesDeleteResponse = Record; -/** - * Contains response data for the update operation. - */ -export type BigDataPoolsUpdateResponse = BigDataPoolResourceInfo & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface IpFirewallRulesGetOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: BigDataPoolResourceInfo; - }; -}; +/** Contains response data for the get operation. */ +export type IpFirewallRulesGetResponse = IpFirewallRuleInfo; -/** - * Contains response data for the createOrUpdate operation. - */ -export type BigDataPoolsCreateOrUpdateResponse = BigDataPoolResourceInfo & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface IpFirewallRulesReplaceAllOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: BigDataPoolResourceInfo; - }; -}; +/** Contains response data for the replaceAll operation. */ +export type IpFirewallRulesReplaceAllResponse = ReplaceAllFirewallRulesOperationResponse; -/** - * Contains response data for the deleteMethod operation. - */ -export type BigDataPoolsDeleteMethodResponse = { - /** - * The parsed response body. - */ - body: any; +/** Optional parameters. */ +export interface IpFirewallRulesListByWorkspaceNextOptionalParams + extends coreClient.OperationOptions {} - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listByWorkspaceNext operation. */ +export type IpFirewallRulesListByWorkspaceNextResponse = IpFirewallRuleInfoListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; +/** Optional parameters. */ +export interface KeysListByWorkspaceOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listByWorkspace operation. - */ -export type BigDataPoolsListByWorkspaceResponse = BigDataPoolResourceInfoListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listByWorkspace operation. */ +export type KeysListByWorkspaceResponse = KeyInfoListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: BigDataPoolResourceInfoListResult; - }; -}; +/** Optional parameters. */ +export interface KeysGetOptionalParams extends coreClient.OperationOptions {} -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type BigDataPoolsBeginCreateOrUpdateResponse = BigDataPoolResourceInfo & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type KeysGetResponse = Key; - /** - * The response body as parsed JSON or XML - */ - parsedBody: BigDataPoolResourceInfo; - }; -}; +/** Optional parameters. */ +export interface KeysCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the beginDeleteMethod operation. - */ -export type BigDataPoolsBeginDeleteMethodResponse = { - /** - * The parsed response body. - */ - body: any; +/** Contains response data for the createOrUpdate operation. */ +export type KeysCreateOrUpdateResponse = Key; - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface KeysDeleteOptionalParams extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; +/** Contains response data for the delete operation. */ +export type KeysDeleteResponse = Key; -/** - * Contains response data for the listByWorkspaceNext operation. - */ -export type BigDataPoolsListByWorkspaceNextResponse = BigDataPoolResourceInfoListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface KeysListByWorkspaceNextOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: BigDataPoolResourceInfoListResult; - }; -}; +/** Contains response data for the listByWorkspaceNext operation. */ +export type KeysListByWorkspaceNextResponse = KeyInfoListResult; -/** - * Contains response data for the checkNameAvailability operation. - */ -export type OperationsCheckNameAvailabilityResponse = CheckNameAvailabilityResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface PrivateEndpointConnectionsGetOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: CheckNameAvailabilityResponse; - }; -}; +/** Contains response data for the get operation. */ +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; -/** - * Contains response data for the list operation. - */ -export type OperationsListResponse = Array & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface PrivateEndpointConnectionsCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: AvailableRpOperation[]; - }; -}; +/** Contains response data for the create operation. */ +export type PrivateEndpointConnectionsCreateResponse = PrivateEndpointConnection; -/** - * Contains response data for the getAzureAsyncHeaderResult operation. - */ -export type OperationsGetAzureAsyncHeaderResultResponse = OperationResource & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface PrivateEndpointConnectionsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationResource; - }; -}; +/** Optional parameters. */ +export interface PrivateEndpointConnectionsListOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listByWorkspace operation. - */ -export type IpFirewallRulesListByWorkspaceResponse = IpFirewallRuleInfoListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the list operation. */ +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionList; - /** - * The response body as parsed JSON or XML - */ - parsedBody: IpFirewallRuleInfoListResult; - }; -}; +/** Optional parameters. */ +export interface PrivateEndpointConnectionsListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the createOrUpdate operation. - */ -export type IpFirewallRulesCreateOrUpdateResponse = IpFirewallRuleInfo & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type PrivateEndpointConnectionsListNextResponse = PrivateEndpointConnectionList; - /** - * The response body as parsed JSON or XML - */ - parsedBody: IpFirewallRuleInfo; - }; -}; +/** Optional parameters. */ +export interface PrivateLinkResourcesListOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the deleteMethod operation. - */ -export type IpFirewallRulesDeleteMethodResponse = { - /** - * The parsed response body. - */ - body: any; +/** Contains response data for the list operation. */ +export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface PrivateLinkResourcesGetOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; +/** Contains response data for the get operation. */ +export type PrivateLinkResourcesGetResponse = PrivateLinkResource; -/** - * Contains response data for the get operation. - */ -export type IpFirewallRulesGetResponse = IpFirewallRuleInfo & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface PrivateLinkResourcesListNextOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: IpFirewallRuleInfo; - }; -}; +/** Contains response data for the listNext operation. */ +export type PrivateLinkResourcesListNextResponse = PrivateLinkResourceListResult; -/** - * Contains response data for the replaceAll operation. - */ -export type IpFirewallRulesReplaceAllResponse = ReplaceAllFirewallRulesOperationResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface PrivateLinkHubPrivateLinkResourcesListOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ReplaceAllFirewallRulesOperationResponse; - }; -}; +/** Contains response data for the list operation. */ +export type PrivateLinkHubPrivateLinkResourcesListResponse = PrivateLinkResourceListResult; -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type IpFirewallRulesBeginCreateOrUpdateResponse = IpFirewallRuleInfo & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface PrivateLinkHubPrivateLinkResourcesGetOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: IpFirewallRuleInfo; - }; -}; +/** Contains response data for the get operation. */ +export type PrivateLinkHubPrivateLinkResourcesGetResponse = PrivateLinkResource; -/** - * Contains response data for the beginDeleteMethod operation. - */ -export type IpFirewallRulesBeginDeleteMethodResponse = { - /** - * The parsed response body. - */ - body: any; +/** Optional parameters. */ +export interface PrivateLinkHubPrivateLinkResourcesListNextOptionalParams + extends coreClient.OperationOptions {} - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type PrivateLinkHubPrivateLinkResourcesListNextResponse = PrivateLinkResourceListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; +/** Optional parameters. */ +export interface PrivateLinkHubsListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the beginReplaceAll operation. - */ -export type IpFirewallRulesBeginReplaceAllResponse = ReplaceAllFirewallRulesOperationResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listByResourceGroup operation. */ +export type PrivateLinkHubsListByResourceGroupResponse = PrivateLinkHubInfoListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ReplaceAllFirewallRulesOperationResponse; - }; -}; +/** Optional parameters. */ +export interface PrivateLinkHubsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listByWorkspaceNext operation. - */ -export type IpFirewallRulesListByWorkspaceNextResponse = IpFirewallRuleInfoListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type PrivateLinkHubsGetResponse = PrivateLinkHub; - /** - * The response body as parsed JSON or XML - */ - parsedBody: IpFirewallRuleInfoListResult; - }; -}; +/** Optional parameters. */ +export interface PrivateLinkHubsUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the update operation. - */ -export type IntegrationRuntimesUpdateResponse = IntegrationRuntimeResource & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the update operation. */ +export type PrivateLinkHubsUpdateResponse = PrivateLinkHub; - /** - * The response body as parsed JSON or XML - */ - parsedBody: IntegrationRuntimeResource; - }; -}; +/** Optional parameters. */ +export interface PrivateLinkHubsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type IntegrationRuntimesGetResponse = IntegrationRuntimeResource & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the createOrUpdate operation. */ +export type PrivateLinkHubsCreateOrUpdateResponse = PrivateLinkHub; - /** - * The response body as parsed JSON or XML - */ - parsedBody: IntegrationRuntimeResource; - }; -}; +/** Optional parameters. */ +export interface PrivateLinkHubsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the create operation. - */ -export type IntegrationRuntimesCreateResponse = IntegrationRuntimeResource & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface PrivateLinkHubsListOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: IntegrationRuntimeResource; - }; -}; +/** Contains response data for the list operation. */ +export type PrivateLinkHubsListResponse = PrivateLinkHubInfoListResult; -/** - * Contains response data for the listByWorkspace operation. - */ -export type IntegrationRuntimesListByWorkspaceResponse = IntegrationRuntimeListResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface PrivateLinkHubsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: IntegrationRuntimeListResponse; - }; -}; +/** Contains response data for the listByResourceGroupNext operation. */ +export type PrivateLinkHubsListByResourceGroupNextResponse = PrivateLinkHubInfoListResult; -/** - * Contains response data for the start operation. - */ -export type IntegrationRuntimesStartResponse = IntegrationRuntimeStatusResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface PrivateLinkHubsListNextOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: IntegrationRuntimeStatusResponse; - }; -}; +/** Contains response data for the listNext operation. */ +export type PrivateLinkHubsListNextResponse = PrivateLinkHubInfoListResult; -/** - * Contains response data for the beginCreate operation. - */ -export type IntegrationRuntimesBeginCreateResponse = IntegrationRuntimeResource & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface PrivateEndpointConnectionsPrivateLinkHubListOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: IntegrationRuntimeResource; - }; -}; +/** Contains response data for the list operation. */ +export type PrivateEndpointConnectionsPrivateLinkHubListResponse = PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse; -/** - * Contains response data for the beginStart operation. - */ -export type IntegrationRuntimesBeginStartResponse = IntegrationRuntimeStatusResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface PrivateEndpointConnectionsPrivateLinkHubGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type PrivateEndpointConnectionsPrivateLinkHubGetResponse = PrivateEndpointConnectionForPrivateLinkHub; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsPrivateLinkHubListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type PrivateEndpointConnectionsPrivateLinkHubListNextResponse = PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse; + +/** Optional parameters. */ +export interface SqlPoolsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SqlPoolsGetResponse = SqlPool; + +/** Optional parameters. */ +export interface SqlPoolsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type SqlPoolsUpdateResponse = SqlPool; + +/** Optional parameters. */ +export interface SqlPoolsCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the create operation. */ +export type SqlPoolsCreateResponse = SqlPool; + +/** Optional parameters. */ +export interface SqlPoolsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the delete operation. */ +export type SqlPoolsDeleteResponse = Record; + +/** Optional parameters. */ +export interface SqlPoolsListByWorkspaceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByWorkspace operation. */ +export type SqlPoolsListByWorkspaceResponse = SqlPoolInfoListResult; + +/** Optional parameters. */ +export interface SqlPoolsPauseOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the pause operation. */ +export type SqlPoolsPauseResponse = Record; + +/** Optional parameters. */ +export interface SqlPoolsResumeOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the resume operation. */ +export type SqlPoolsResumeResponse = Record; + +/** Optional parameters. */ +export interface SqlPoolsRenameOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface SqlPoolsListByWorkspaceNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByWorkspaceNext operation. */ +export type SqlPoolsListByWorkspaceNextResponse = SqlPoolInfoListResult; + +/** Optional parameters. */ +export interface SqlPoolMetadataSyncConfigsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SqlPoolMetadataSyncConfigsGetResponse = MetadataSyncConfig; + +/** Optional parameters. */ +export interface SqlPoolMetadataSyncConfigsCreateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the create operation. */ +export type SqlPoolMetadataSyncConfigsCreateResponse = MetadataSyncConfig; + +/** Optional parameters. */ +export interface SqlPoolOperationResultsGetLocationHeaderResultOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getLocationHeaderResult operation. */ +export type SqlPoolOperationResultsGetLocationHeaderResultResponse = Record< + string, + unknown +>; + +/** Optional parameters. */ +export interface SqlPoolGeoBackupPoliciesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type SqlPoolGeoBackupPoliciesListResponse = GeoBackupPolicyListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: IntegrationRuntimeStatusResponse; - }; -}; +/** Optional parameters. */ +export interface SqlPoolGeoBackupPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listByWorkspaceNext operation. - */ -export type IntegrationRuntimesListByWorkspaceNextResponse = IntegrationRuntimeListResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the createOrUpdate operation. */ +export type SqlPoolGeoBackupPoliciesCreateOrUpdateResponse = GeoBackupPolicy; - /** - * The response body as parsed JSON or XML - */ - parsedBody: IntegrationRuntimeListResponse; - }; -}; +/** Optional parameters. */ +export interface SqlPoolGeoBackupPoliciesGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type IntegrationRuntimeNodeIpAddressGetResponse = IntegrationRuntimeNodeIpAddress & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type SqlPoolGeoBackupPoliciesGetResponse = GeoBackupPolicy; - /** - * The response body as parsed JSON or XML - */ - parsedBody: IntegrationRuntimeNodeIpAddress; - }; -}; +/** Optional parameters. */ +export interface SqlPoolDataWarehouseUserActivitiesGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the list operation. - */ -export type IntegrationRuntimeObjectMetadataListResponse = SsisObjectMetadataListResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type SqlPoolDataWarehouseUserActivitiesGetResponse = DataWarehouseUserActivities; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SsisObjectMetadataListResponse; - }; -}; +/** Optional parameters. */ +export interface SqlPoolRestorePointsListOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the refresh operation. - */ -export type IntegrationRuntimeObjectMetadataRefreshResponse = SsisObjectMetadataStatusResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the list operation. */ +export type SqlPoolRestorePointsListResponse = RestorePointListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SsisObjectMetadataStatusResponse; - }; -}; +/** Optional parameters. */ +export interface SqlPoolRestorePointsCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the beginRefresh operation. - */ -export type IntegrationRuntimeObjectMetadataBeginRefreshResponse = SsisObjectMetadataStatusResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the create operation. */ +export type SqlPoolRestorePointsCreateResponse = RestorePoint; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SsisObjectMetadataStatusResponse; - }; -}; +/** Optional parameters. */ +export interface SqlPoolRestorePointsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type IntegrationRuntimeNodesGetResponse = SelfHostedIntegrationRuntimeNode & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type SqlPoolRestorePointsGetResponse = RestorePoint; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SelfHostedIntegrationRuntimeNode; - }; -}; +/** Optional parameters. */ +export interface SqlPoolRestorePointsDeleteOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the update operation. - */ -export type IntegrationRuntimeNodesUpdateResponse = SelfHostedIntegrationRuntimeNode & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolRestorePointsListNextOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: SelfHostedIntegrationRuntimeNode; - }; -}; +/** Contains response data for the listNext operation. */ +export type SqlPoolRestorePointsListNextResponse = RestorePointListResult; -/** - * Contains response data for the get operation. - */ -export type IntegrationRuntimeConnectionInfosGetResponse = IntegrationRuntimeConnectionInfo & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolReplicationLinksListOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: IntegrationRuntimeConnectionInfo; - }; -}; +/** Contains response data for the list operation. */ +export type SqlPoolReplicationLinksListResponse = ReplicationLinkListResult; -/** - * Contains response data for the regenerate operation. - */ -export type IntegrationRuntimeAuthKeysRegenerateResponse = IntegrationRuntimeAuthKeys & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolReplicationLinksGetByNameOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: IntegrationRuntimeAuthKeys; - }; -}; +/** Contains response data for the getByName operation. */ +export type SqlPoolReplicationLinksGetByNameResponse = ReplicationLink; -/** - * Contains response data for the list operation. - */ -export type IntegrationRuntimeAuthKeysListResponse = IntegrationRuntimeAuthKeys & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolReplicationLinksListNextOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: IntegrationRuntimeAuthKeys; - }; -}; +/** Contains response data for the listNext operation. */ +export type SqlPoolReplicationLinksListNextResponse = ReplicationLinkListResult; -/** - * Contains response data for the list operation. - */ -export type IntegrationRuntimeMonitoringDataListResponse = IntegrationRuntimeMonitoringData & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolMaintenanceWindowsGetOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: IntegrationRuntimeMonitoringData; - }; -}; +/** Contains response data for the get operation. */ +export type SqlPoolMaintenanceWindowsGetResponse = MaintenanceWindows; -/** - * Contains response data for the get operation. - */ -export type IntegrationRuntimeStatusGetResponse = IntegrationRuntimeStatusResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolMaintenanceWindowsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: IntegrationRuntimeStatusResponse; - }; -}; +/** Optional parameters. */ +export interface SqlPoolMaintenanceWindowOptionsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listByWorkspace operation. - */ -export type KeysListByWorkspaceResponse = KeyInfoListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type SqlPoolMaintenanceWindowOptionsGetResponse = MaintenanceWindowOptions; - /** - * The response body as parsed JSON or XML - */ - parsedBody: KeyInfoListResult; - }; -}; +/** Optional parameters. */ +export interface SqlPoolTransparentDataEncryptionsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type KeysGetResponse = Key & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type SqlPoolTransparentDataEncryptionsGetResponse = TransparentDataEncryption; - /** - * The response body as parsed JSON or XML - */ - parsedBody: Key; - }; -}; +/** Optional parameters. */ +export interface SqlPoolTransparentDataEncryptionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the createOrUpdate operation. - */ -export type KeysCreateOrUpdateResponse = Key & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the createOrUpdate operation. */ +export type SqlPoolTransparentDataEncryptionsCreateOrUpdateResponse = TransparentDataEncryption; - /** - * The response body as parsed JSON or XML - */ - parsedBody: Key; - }; -}; +/** Optional parameters. */ +export interface SqlPoolTransparentDataEncryptionsListOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the deleteMethod operation. - */ -export type KeysDeleteMethodResponse = Key & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the list operation. */ +export type SqlPoolTransparentDataEncryptionsListResponse = TransparentDataEncryptionListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: Key; - }; -}; +/** Optional parameters. */ +export interface SqlPoolTransparentDataEncryptionsListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listByWorkspaceNext operation. - */ -export type KeysListByWorkspaceNextResponse = KeyInfoListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type SqlPoolTransparentDataEncryptionsListNextResponse = TransparentDataEncryptionListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: KeyInfoListResult; - }; -}; +/** Optional parameters. */ +export interface SqlPoolBlobAuditingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type LibraryGetResponse = LibraryResource & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type SqlPoolBlobAuditingPoliciesGetResponse = SqlPoolBlobAuditingPolicy; - /** - * The response body as parsed JSON or XML - */ - parsedBody: LibraryResource; - }; -}; +/** Optional parameters. */ +export interface SqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listByWorkspace operation. - */ -export type LibrariesListByWorkspaceResponse = LibraryListResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the createOrUpdate operation. */ +export type SqlPoolBlobAuditingPoliciesCreateOrUpdateResponse = SqlPoolBlobAuditingPolicy; - /** - * The response body as parsed JSON or XML - */ - parsedBody: LibraryListResponse; - }; -}; +/** Optional parameters. */ +export interface SqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listByWorkspaceNext operation. - */ -export type LibrariesListByWorkspaceNextResponse = LibraryListResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listBySqlPool operation. */ +export type SqlPoolBlobAuditingPoliciesListBySqlPoolResponse = SqlPoolBlobAuditingPolicyListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: LibraryListResponse; - }; -}; +/** Optional parameters. */ +export interface SqlPoolBlobAuditingPoliciesListBySqlPoolNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listBySqlPoolNext operation. */ +export type SqlPoolBlobAuditingPoliciesListBySqlPoolNextResponse = SqlPoolBlobAuditingPolicyListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateEndpointConnection; - }; -}; +/** Optional parameters. */ +export interface SqlPoolOperationsListOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the create operation. - */ -export type PrivateEndpointConnectionsCreateResponse = PrivateEndpointConnection & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the list operation. */ +export type SqlPoolOperationsListResponse = SqlPoolBlobAuditingPolicySqlPoolOperationListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateEndpointConnection; - }; -}; +/** Optional parameters. */ +export interface SqlPoolOperationsListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the deleteMethod operation. - */ -export type PrivateEndpointConnectionsDeleteMethodResponse = OperationResource & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type SqlPoolOperationsListNextResponse = SqlPoolBlobAuditingPolicySqlPoolOperationListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationResource; - }; -}; +/** Optional parameters. */ +export interface SqlPoolUsagesListOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the list operation. - */ -export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the list operation. */ +export type SqlPoolUsagesListResponse = SqlPoolUsageListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateEndpointConnectionList; - }; -}; +/** Optional parameters. */ +export interface SqlPoolUsagesListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the beginCreate operation. - */ -export type PrivateEndpointConnectionsBeginCreateResponse = PrivateEndpointConnection & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type SqlPoolUsagesListNextResponse = SqlPoolUsageListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateEndpointConnection; - }; -}; +/** Optional parameters. */ +export interface SqlPoolSensitivityLabelsListCurrentOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} -/** - * Contains response data for the beginDeleteMethod operation. - */ -export type PrivateEndpointConnectionsBeginDeleteMethodResponse = OperationResource & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listCurrent operation. */ +export type SqlPoolSensitivityLabelsListCurrentResponse = SensitivityLabelListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationResource; - }; -}; +/** Optional parameters. */ +export interface SqlPoolSensitivityLabelsUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listNext operation. - */ -export type PrivateEndpointConnectionsListNextResponse = PrivateEndpointConnectionList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolSensitivityLabelsListRecommendedOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + /** Specifies whether to include disabled recommendations or not. */ + includeDisabledRecommendations?: boolean; + /** An OData query option to indicate how many elements to skip in the collection. */ + skipToken?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateEndpointConnectionList; - }; -}; +/** Contains response data for the listRecommended operation. */ +export type SqlPoolSensitivityLabelsListRecommendedResponse = SensitivityLabelListResult; -/** - * Contains response data for the list operation. - */ -export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolSensitivityLabelsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateLinkResourceListResult; - }; -}; +/** Contains response data for the createOrUpdate operation. */ +export type SqlPoolSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel; -/** - * Contains response data for the get operation. - */ -export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolSensitivityLabelsDeleteOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateLinkResource; - }; -}; +/** Optional parameters. */ +export interface SqlPoolSensitivityLabelsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listNext operation. - */ -export type PrivateLinkResourcesListNextResponse = PrivateLinkResourceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type SqlPoolSensitivityLabelsGetResponse = SensitivityLabel; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateLinkResourceListResult; - }; -}; +/** Optional parameters. */ +export interface SqlPoolSensitivityLabelsEnableRecommendationOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the list operation. - */ -export type PrivateLinkHubPrivateLinkResourcesListResponse = PrivateLinkResourceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolSensitivityLabelsDisableRecommendationOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateLinkResourceListResult; - }; -}; +/** Optional parameters. */ +export interface SqlPoolSensitivityLabelsListCurrentNextOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} -/** - * Contains response data for the get operation. - */ -export type PrivateLinkHubPrivateLinkResourcesGetResponse = PrivateLinkResource & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listCurrentNext operation. */ +export type SqlPoolSensitivityLabelsListCurrentNextResponse = SensitivityLabelListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateLinkResource; - }; -}; +/** Optional parameters. */ +export interface SqlPoolSensitivityLabelsListRecommendedNextOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; + /** Specifies whether to include disabled recommendations or not. */ + includeDisabledRecommendations?: boolean; + /** An OData query option to indicate how many elements to skip in the collection. */ + skipToken?: string; +} -/** - * Contains response data for the listNext operation. - */ -export type PrivateLinkHubPrivateLinkResourcesListNextResponse = PrivateLinkResourceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listRecommendedNext operation. */ +export type SqlPoolSensitivityLabelsListRecommendedNextResponse = SensitivityLabelListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateLinkResourceListResult; - }; -}; +/** Optional parameters. */ +export interface SqlPoolRecommendedSensitivityLabelsUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listByResourceGroup operation. - */ -export type PrivateLinkHubsListByResourceGroupResponse = PrivateLinkHubInfoListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolSchemasListOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateLinkHubInfoListResult; - }; -}; +/** Contains response data for the list operation. */ +export type SqlPoolSchemasListResponse = SqlPoolSchemaListResult; -/** - * Contains response data for the get operation. - */ -export type PrivateLinkHubsGetResponse = PrivateLinkHub & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolSchemasGetOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateLinkHub; - }; -}; +/** Contains response data for the get operation. */ +export type SqlPoolSchemasGetResponse = SqlPoolSchema; -/** - * Contains response data for the update operation. - */ -export type PrivateLinkHubsUpdateResponse = PrivateLinkHub & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolSchemasListNextOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateLinkHub; - }; -}; +/** Contains response data for the listNext operation. */ +export type SqlPoolSchemasListNextResponse = SqlPoolSchemaListResult; -/** - * Contains response data for the createOrUpdate operation. - */ -export type PrivateLinkHubsCreateOrUpdateResponse = PrivateLinkHub & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolTablesListBySchemaOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateLinkHub; - }; -}; +/** Contains response data for the listBySchema operation. */ +export type SqlPoolTablesListBySchemaResponse = SqlPoolTableListResult; -/** - * Contains response data for the list operation. - */ -export type PrivateLinkHubsListResponse = PrivateLinkHubInfoListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolTablesGetOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateLinkHubInfoListResult; - }; -}; +/** Contains response data for the get operation. */ +export type SqlPoolTablesGetResponse = SqlPoolTable; -/** - * Contains response data for the listByResourceGroupNext operation. - */ -export type PrivateLinkHubsListByResourceGroupNextResponse = PrivateLinkHubInfoListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolTablesListBySchemaNextOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateLinkHubInfoListResult; - }; -}; +/** Contains response data for the listBySchemaNext operation. */ +export type SqlPoolTablesListBySchemaNextResponse = SqlPoolTableListResult; -/** - * Contains response data for the listNext operation. - */ -export type PrivateLinkHubsListNextResponse = PrivateLinkHubInfoListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolTableColumnsListByTableNameOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateLinkHubInfoListResult; - }; -}; +/** Contains response data for the listByTableName operation. */ +export type SqlPoolTableColumnsListByTableNameResponse = SqlPoolColumnListResult; -/** - * Contains response data for the list operation. - */ -export type PrivateEndpointConnectionsPrivateLinkHubListResponse = PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolTableColumnsListByTableNameNextOptionalParams + extends coreClient.OperationOptions { + /** An OData filter expression that filters elements in the collection. */ + filter?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse; - }; -}; +/** Contains response data for the listByTableNameNext operation. */ +export type SqlPoolTableColumnsListByTableNameNextResponse = SqlPoolColumnListResult; -/** - * Contains response data for the listNext operation. - */ -export type PrivateEndpointConnectionsPrivateLinkHubListNextResponse = PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolConnectionPoliciesGetOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse; - }; -}; +/** Contains response data for the get operation. */ +export type SqlPoolConnectionPoliciesGetResponse = SqlPoolConnectionPolicy; -/** - * Contains response data for the get operation. - */ -export type SqlPoolsGetResponse = SqlPool & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolVulnerabilityAssessmentsListOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPool; - }; -}; +/** Contains response data for the list operation. */ +export type SqlPoolVulnerabilityAssessmentsListResponse = SqlPoolVulnerabilityAssessmentListResult; -/** - * Contains response data for the update operation. - */ -export type SqlPoolsUpdateResponse = SqlPool & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolVulnerabilityAssessmentsGetOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPool; - }; -}; +/** Contains response data for the get operation. */ +export type SqlPoolVulnerabilityAssessmentsGetResponse = SqlPoolVulnerabilityAssessment; -/** - * Contains response data for the create operation. - */ -export type SqlPoolsCreateResponse = SqlPool & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolVulnerabilityAssessmentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPool; - }; -}; +/** Contains response data for the createOrUpdate operation. */ +export type SqlPoolVulnerabilityAssessmentsCreateOrUpdateResponse = SqlPoolVulnerabilityAssessment; -/** - * Contains response data for the deleteMethod operation. - */ -export type SqlPoolsDeleteMethodResponse = { - /** - * The parsed response body. - */ - body: any; +/** Optional parameters. */ +export interface SqlPoolVulnerabilityAssessmentsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface SqlPoolVulnerabilityAssessmentsListNextOptionalParams + extends coreClient.OperationOptions {} - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type SqlPoolVulnerabilityAssessmentsListNextResponse = SqlPoolVulnerabilityAssessmentListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; +/** Optional parameters. */ +export interface SqlPoolVulnerabilityAssessmentScansListOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listByWorkspace operation. - */ -export type SqlPoolsListByWorkspaceResponse = SqlPoolInfoListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the list operation. */ +export type SqlPoolVulnerabilityAssessmentScansListResponse = VulnerabilityAssessmentScanRecordListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolInfoListResult; - }; -}; +/** Optional parameters. */ +export interface SqlPoolVulnerabilityAssessmentScansInitiateScanOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the pause operation. - */ -export type SqlPoolsPauseResponse = { - /** - * The parsed response body. - */ - body: any; +/** Optional parameters. */ +export interface SqlPoolVulnerabilityAssessmentScansExportOptionalParams + extends coreClient.OperationOptions {} - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the export operation. */ +export type SqlPoolVulnerabilityAssessmentScansExportResponse = SqlPoolVulnerabilityAssessmentScansExport; - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; +/** Optional parameters. */ +export interface SqlPoolVulnerabilityAssessmentScansGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the resume operation. - */ -export type SqlPoolsResumeResponse = { - /** - * The parsed response body. - */ - body: any; +/** 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; +/** Optional parameters. */ +export interface SqlPoolVulnerabilityAssessmentScansListNextOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; +/** Contains response data for the listNext operation. */ +export type SqlPoolVulnerabilityAssessmentScansListNextResponse = VulnerabilityAssessmentScanRecordListResult; -/** - * Contains response data for the beginCreate operation. - */ -export type SqlPoolsBeginCreateResponse = SqlPool & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolSecurityAlertPoliciesListOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPool; - }; -}; +/** Contains response data for the list operation. */ +export type SqlPoolSecurityAlertPoliciesListResponse = ListSqlPoolSecurityAlertPolicies; -/** - * Contains response data for the beginDeleteMethod operation. - */ -export type SqlPoolsBeginDeleteMethodResponse = { - /** - * The parsed response body. - */ - body: any; +/** Optional parameters. */ +export interface SqlPoolSecurityAlertPoliciesGetOptionalParams + extends coreClient.OperationOptions {} - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type SqlPoolSecurityAlertPoliciesGetResponse = SqlPoolSecurityAlertPolicy; - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; +/** Optional parameters. */ +export interface SqlPoolSecurityAlertPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the beginPause operation. - */ -export type SqlPoolsBeginPauseResponse = { - /** - * The parsed response body. - */ - body: any; +/** Contains response data for the createOrUpdate operation. */ +export type SqlPoolSecurityAlertPoliciesCreateOrUpdateResponse = SqlPoolSecurityAlertPolicy; - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolSecurityAlertPoliciesListNextOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; +/** Contains response data for the listNext operation. */ +export type SqlPoolSecurityAlertPoliciesListNextResponse = ListSqlPoolSecurityAlertPolicies; -/** - * Contains response data for the beginResume operation. - */ -export type SqlPoolsBeginResumeResponse = { - /** - * The parsed response body. - */ - body: any; +/** Optional parameters. */ +export interface SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the createOrUpdate operation. */ +export type SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = SqlPoolVulnerabilityAssessmentRuleBaseline; - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; +/** Optional parameters. */ +export interface SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listByWorkspaceNext operation. - */ -export type SqlPoolsListByWorkspaceNextResponse = SqlPoolInfoListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolVulnerabilityAssessmentRuleBaselinesGetOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolInfoListResult; - }; -}; +/** Contains response data for the get operation. */ +export type SqlPoolVulnerabilityAssessmentRuleBaselinesGetResponse = SqlPoolVulnerabilityAssessmentRuleBaseline; -/** - * Contains response data for the get operation. - */ -export type SqlPoolMetadataSyncConfigsGetResponse = MetadataSyncConfig & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface ExtendedSqlPoolBlobAuditingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: MetadataSyncConfig; - }; -}; +/** Contains response data for the get operation. */ +export type ExtendedSqlPoolBlobAuditingPoliciesGetResponse = ExtendedSqlPoolBlobAuditingPolicy; -/** - * Contains response data for the create operation. - */ -export type SqlPoolMetadataSyncConfigsCreateResponse = MetadataSyncConfig & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: MetadataSyncConfig; - }; -}; +/** Contains response data for the createOrUpdate operation. */ +export type ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedSqlPoolBlobAuditingPolicy; -/** - * Contains response data for the getLocationHeaderResult operation. - */ -export type SqlPoolOperationResultsGetLocationHeaderResultResponse = { - /** - * The parsed response body. - */ - body: any; +/** Optional parameters. */ +export interface ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams + extends coreClient.OperationOptions {} - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listBySqlPool operation. */ +export type ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolResponse = ExtendedSqlPoolBlobAuditingPolicyListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; +/** Optional parameters. */ +export interface ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the list operation. - */ -export type SqlPoolGeoBackupPoliciesListResponse = GeoBackupPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listBySqlPoolNext operation. */ +export type ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolNextResponse = ExtendedSqlPoolBlobAuditingPolicyListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: GeoBackupPolicyListResult; - }; -}; +/** Optional parameters. */ +export interface DataMaskingPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the createOrUpdate operation. - */ -export type SqlPoolGeoBackupPoliciesCreateOrUpdateResponse = GeoBackupPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the createOrUpdate operation. */ +export type DataMaskingPoliciesCreateOrUpdateResponse = DataMaskingPolicy; - /** - * The response body as parsed JSON or XML - */ - parsedBody: GeoBackupPolicy; - }; -}; +/** Optional parameters. */ +export interface DataMaskingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type SqlPoolGeoBackupPoliciesGetResponse = GeoBackupPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type DataMaskingPoliciesGetResponse = DataMaskingPolicy; - /** - * The response body as parsed JSON or XML - */ - parsedBody: GeoBackupPolicy; - }; -}; +/** Optional parameters. */ +export interface DataMaskingRulesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type SqlPoolDataWarehouseUserActivitiesGetResponse = DataWarehouseUserActivities & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the createOrUpdate operation. */ +export type DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DataWarehouseUserActivities; - }; -}; +/** Optional parameters. */ +export interface DataMaskingRulesGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the list operation. - */ -export type SqlPoolRestorePointsListResponse = RestorePointListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type DataMaskingRulesGetResponse = DataMaskingRule; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorePointListResult; - }; -}; +/** Optional parameters. */ +export interface DataMaskingRulesListBySqlPoolOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the create operation. - */ -export type SqlPoolRestorePointsCreateResponse = RestorePoint & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listBySqlPool operation. */ +export type DataMaskingRulesListBySqlPoolResponse = DataMaskingRuleListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorePoint; - }; -}; +/** Optional parameters. */ +export interface SqlPoolColumnsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type SqlPoolRestorePointsGetResponse = RestorePoint & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type SqlPoolColumnsGetResponse = SqlPoolColumn; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorePoint; - }; -}; +/** Optional parameters. */ +export interface SqlPoolWorkloadGroupGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the beginCreate operation. - */ -export type SqlPoolRestorePointsBeginCreateResponse = RestorePoint & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type SqlPoolWorkloadGroupGetResponse = WorkloadGroup; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorePoint; - }; -}; +/** Optional parameters. */ +export interface SqlPoolWorkloadGroupCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the listNext operation. - */ -export type SqlPoolRestorePointsListNextResponse = RestorePointListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the createOrUpdate operation. */ +export type SqlPoolWorkloadGroupCreateOrUpdateResponse = WorkloadGroup; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorePointListResult; - }; -}; +/** Optional parameters. */ +export interface SqlPoolWorkloadGroupDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the list operation. - */ -export type SqlPoolReplicationLinksListResponse = ReplicationLinkListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolWorkloadGroupListOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ReplicationLinkListResult; - }; -}; +/** Contains response data for the list operation. */ +export type SqlPoolWorkloadGroupListResponse = WorkloadGroupListResult; -/** - * Contains response data for the getByName operation. - */ -export type SqlPoolReplicationLinksGetByNameResponse = ReplicationLink & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolWorkloadGroupListNextOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ReplicationLink; - }; -}; +/** Contains response data for the listNext operation. */ +export type SqlPoolWorkloadGroupListNextResponse = WorkloadGroupListResult; -/** - * Contains response data for the listNext operation. - */ -export type SqlPoolReplicationLinksListNextResponse = ReplicationLinkListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolWorkloadClassifierGetOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ReplicationLinkListResult; - }; -}; +/** Contains response data for the get operation. */ +export type SqlPoolWorkloadClassifierGetResponse = WorkloadClassifier; -/** - * Contains response data for the get operation. - */ -export type SqlPoolMaintenanceWindowsGetResponse = MaintenanceWindows & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: MaintenanceWindows; - }; -}; +/** Contains response data for the createOrUpdate operation. */ +export type SqlPoolWorkloadClassifierCreateOrUpdateResponse = WorkloadClassifier; -/** - * Contains response data for the get operation. - */ -export type SqlPoolMaintenanceWindowOptionsGetResponse = MaintenanceWindowOptions & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface SqlPoolWorkloadClassifierDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: MaintenanceWindowOptions; - }; -}; +/** Optional parameters. */ +export interface SqlPoolWorkloadClassifierListOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type SqlPoolTransparentDataEncryptionsGetResponse = TransparentDataEncryption & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the list operation. */ +export type SqlPoolWorkloadClassifierListResponse = WorkloadClassifierListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: TransparentDataEncryption; - }; -}; +/** Optional parameters. */ +export interface SqlPoolWorkloadClassifierListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the createOrUpdate operation. - */ -export type SqlPoolTransparentDataEncryptionsCreateOrUpdateResponse = TransparentDataEncryption & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type SqlPoolWorkloadClassifierListNextResponse = WorkloadClassifierListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: TransparentDataEncryption; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerBlobAuditingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the list operation. - */ -export type SqlPoolTransparentDataEncryptionsListResponse = TransparentDataEncryptionListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type WorkspaceManagedSqlServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy; - /** - * The response body as parsed JSON or XML - */ - parsedBody: TransparentDataEncryptionListResult; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the listNext operation. - */ -export type SqlPoolTransparentDataEncryptionsListNextResponse = TransparentDataEncryptionListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy; - /** - * The response body as parsed JSON or XML - */ - parsedBody: TransparentDataEncryptionListResult; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type SqlPoolBlobAuditingPoliciesGetResponse = SqlPoolBlobAuditingPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listByWorkspace operation. */ +export type WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceResponse = ServerBlobAuditingPolicyListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolBlobAuditingPolicy; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the createOrUpdate operation. - */ -export type SqlPoolBlobAuditingPoliciesCreateOrUpdateResponse = SqlPoolBlobAuditingPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listByWorkspaceNext operation. */ +export type WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceNextResponse = ServerBlobAuditingPolicyListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolBlobAuditingPolicy; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the get operation. */ +export type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolBlobAuditingPolicyListResult; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * 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; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolBlobAuditingPolicyListResult; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the list operation. - */ -export type SqlPoolOperationsListResponse = SqlPoolBlobAuditingPolicySqlPoolOperationListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listByWorkspace operation. */ +export type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceResponse = ExtendedServerBlobAuditingPolicyListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolBlobAuditingPolicySqlPoolOperationListResult; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listNext operation. - */ -export type SqlPoolOperationsListNextResponse = SqlPoolBlobAuditingPolicySqlPoolOperationListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listByWorkspaceNext operation. */ +export type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceNextResponse = ExtendedServerBlobAuditingPolicyListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolBlobAuditingPolicySqlPoolOperationListResult; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerSecurityAlertPolicyGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the list operation. - */ -export type SqlPoolUsagesListResponse = SqlPoolUsageListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type WorkspaceManagedSqlServerSecurityAlertPolicyGetResponse = ServerSecurityAlertPolicy; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolUsageListResult; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the listNext operation. - */ -export type SqlPoolUsagesListNextResponse = SqlPoolUsageListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse = ServerSecurityAlertPolicy; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolUsageListResult; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerSecurityAlertPolicyListOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listCurrent operation. - */ -export type SqlPoolSensitivityLabelsListCurrentResponse = SensitivityLabelListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the list operation. */ +export type WorkspaceManagedSqlServerSecurityAlertPolicyListResponse = ServerSecurityAlertPolicyListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SensitivityLabelListResult; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerSecurityAlertPolicyListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listRecommended operation. - */ -export type SqlPoolSensitivityLabelsListRecommendedResponse = SensitivityLabelListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type WorkspaceManagedSqlServerSecurityAlertPolicyListNextResponse = ServerSecurityAlertPolicyListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SensitivityLabelListResult; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerVulnerabilityAssessmentsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the createOrUpdate operation. - */ -export type SqlPoolSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type WorkspaceManagedSqlServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SensitivityLabel; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SensitivityLabel; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listCurrentNext operation. - */ -export type SqlPoolSensitivityLabelsListCurrentNextResponse = SensitivityLabelListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerVulnerabilityAssessmentsListOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: SensitivityLabelListResult; - }; -}; +/** Contains response data for the list operation. */ +export type WorkspaceManagedSqlServerVulnerabilityAssessmentsListResponse = ServerVulnerabilityAssessmentListResult; -/** - * Contains response data for the listRecommendedNext operation. - */ -export type SqlPoolSensitivityLabelsListRecommendedNextResponse = SensitivityLabelListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerVulnerabilityAssessmentsListNextOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: SensitivityLabelListResult; - }; -}; +/** Contains response data for the listNext operation. */ +export type WorkspaceManagedSqlServerVulnerabilityAssessmentsListNextResponse = ServerVulnerabilityAssessmentListResult; -/** - * Contains response data for the list operation. - */ -export type SqlPoolSchemasListResponse = SqlPoolSchemaListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerEncryptionProtectorGetOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolSchemaListResult; - }; -}; +/** Contains response data for the get operation. */ +export type WorkspaceManagedSqlServerEncryptionProtectorGetResponse = EncryptionProtector; -/** - * 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; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolSchema; - }; -}; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse = EncryptionProtector; -/** - * Contains response data for the listNext operation. - */ -export type SqlPoolSchemasListNextResponse = SqlPoolSchemaListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerEncryptionProtectorListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type WorkspaceManagedSqlServerEncryptionProtectorListResponse = EncryptionProtectorListResult; + +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolSchemaListResult; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerEncryptionProtectorListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listBySchema operation. - */ -export type SqlPoolTablesListBySchemaResponse = SqlPoolTableListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type WorkspaceManagedSqlServerEncryptionProtectorListNextResponse = EncryptionProtectorListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolTableListResult; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerUsagesListOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the list operation. */ +export type WorkspaceManagedSqlServerUsagesListResponse = ServerUsageListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolTable; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerUsagesListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listBySchemaNext operation. - */ -export type SqlPoolTablesListBySchemaNextResponse = SqlPoolTableListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type WorkspaceManagedSqlServerUsagesListNextResponse = ServerUsageListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolTableListResult; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerRecoverableSqlPoolsListOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listByTableName operation. - */ -export type SqlPoolTableColumnsListByTableNameResponse = SqlPoolColumnListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the list operation. */ +export type WorkspaceManagedSqlServerRecoverableSqlPoolsListResponse = RecoverableSqlPoolListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolColumnListResult; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerRecoverableSqlPoolsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listByTableNameNext operation. - */ -export type SqlPoolTableColumnsListByTableNameNextResponse = SqlPoolColumnListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type WorkspaceManagedSqlServerRecoverableSqlPoolsGetResponse = RecoverableSqlPool; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolColumnListResult; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedSqlServerRecoverableSqlPoolsListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type SqlPoolConnectionPoliciesGetResponse = SqlPoolConnectionPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type WorkspaceManagedSqlServerRecoverableSqlPoolsListNextResponse = RecoverableSqlPoolListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolConnectionPolicy; - }; -}; +/** Optional parameters. */ +export interface WorkspacesListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the list operation. - */ -export type SqlPoolVulnerabilityAssessmentsListResponse = SqlPoolVulnerabilityAssessmentListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listByResourceGroup operation. */ +export type WorkspacesListByResourceGroupResponse = WorkspaceInfoListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolVulnerabilityAssessmentListResult; - }; -}; +/** Optional parameters. */ +export interface WorkspacesGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type SqlPoolVulnerabilityAssessmentsGetResponse = SqlPoolVulnerabilityAssessment & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type WorkspacesGetResponse = Workspace; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolVulnerabilityAssessment; - }; -}; +/** Optional parameters. */ +export interface WorkspacesUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the createOrUpdate operation. - */ -export type SqlPoolVulnerabilityAssessmentsCreateOrUpdateResponse = SqlPoolVulnerabilityAssessment & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the update operation. */ +export type WorkspacesUpdateResponse = Workspace; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolVulnerabilityAssessment; - }; -}; +/** Optional parameters. */ +export interface WorkspacesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the listNext operation. - */ -export type SqlPoolVulnerabilityAssessmentsListNextResponse = SqlPoolVulnerabilityAssessmentListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspacesCreateOrUpdateResponse = Workspace; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolVulnerabilityAssessmentListResult; - }; -}; +/** Optional parameters. */ +export interface WorkspacesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the list operation. - */ -export type SqlPoolVulnerabilityAssessmentScansListResponse = VulnerabilityAssessmentScanRecordListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the delete operation. */ +export type WorkspacesDeleteResponse = Record; - /** - * The response body as parsed JSON or XML - */ - parsedBody: VulnerabilityAssessmentScanRecordListResult; - }; -}; +/** Optional parameters. */ +export interface WorkspacesListOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the exportMethod operation. - */ -export type SqlPoolVulnerabilityAssessmentScansExportMethodResponse = SqlPoolVulnerabilityAssessmentScansExport & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the list operation. */ +export type WorkspacesListResponse = WorkspaceInfoListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolVulnerabilityAssessmentScansExport; - }; -}; +/** Optional parameters. */ +export interface WorkspacesListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the listByResourceGroupNext operation. */ +export type WorkspacesListByResourceGroupNextResponse = WorkspaceInfoListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: VulnerabilityAssessmentScanRecord; - }; -}; +/** Optional parameters. */ +export interface WorkspacesListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listNext operation. - */ -export type SqlPoolVulnerabilityAssessmentScansListNextResponse = VulnerabilityAssessmentScanRecordListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type WorkspacesListNextResponse = WorkspaceInfoListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: VulnerabilityAssessmentScanRecordListResult; - }; -}; +/** Optional parameters. */ +export interface WorkspaceAadAdminsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the list operation. - */ -export type SqlPoolSecurityAlertPoliciesListResponse = ListSqlPoolSecurityAlertPolicies & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type WorkspaceAadAdminsGetResponse = WorkspaceAadAdminInfo; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListSqlPoolSecurityAlertPolicies; - }; -}; +/** Optional parameters. */ +export interface WorkspaceAadAdminsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the get operation. - */ -export type SqlPoolSecurityAlertPoliciesGetResponse = SqlPoolSecurityAlertPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceAadAdminsCreateOrUpdateResponse = WorkspaceAadAdminInfo; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolSecurityAlertPolicy; - }; -}; +/** Optional parameters. */ +export interface WorkspaceAadAdminsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the createOrUpdate operation. - */ -export type SqlPoolSecurityAlertPoliciesCreateOrUpdateResponse = SqlPoolSecurityAlertPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface WorkspaceSqlAadAdminsGetOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolSecurityAlertPolicy; - }; -}; +/** Contains response data for the get operation. */ +export type WorkspaceSqlAadAdminsGetResponse = WorkspaceAadAdminInfo; -/** - * Contains response data for the listNext operation. - */ -export type SqlPoolSecurityAlertPoliciesListNextResponse = ListSqlPoolSecurityAlertPolicies & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListSqlPoolSecurityAlertPolicies; - }; -}; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceSqlAadAdminsCreateOrUpdateResponse = WorkspaceAadAdminInfo; -/** - * Contains response data for the createOrUpdate operation. - */ -export type SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = SqlPoolVulnerabilityAssessmentRuleBaseline & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface WorkspaceSqlAadAdminsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolVulnerabilityAssessmentRuleBaseline; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedIdentitySqlControlSettingsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the get operation. */ +export type WorkspaceManagedIdentitySqlControlSettingsGetResponse = ManagedIdentitySqlControlSettingsModel; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolVulnerabilityAssessmentRuleBaseline; - }; -}; +/** Optional parameters. */ +export interface WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * 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; +/** Contains response data for the createOrUpdate operation. */ +export type WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse = ManagedIdentitySqlControlSettingsModel; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ExtendedSqlPoolBlobAuditingPolicy; - }; -}; +/** Optional parameters. */ +export interface RestorableDroppedSqlPoolsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the get operation. */ +export type RestorableDroppedSqlPoolsGetResponse = RestorableDroppedSqlPool; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ExtendedSqlPoolBlobAuditingPolicy; - }; -}; +/** Optional parameters. */ +export interface RestorableDroppedSqlPoolsListByWorkspaceOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the listByWorkspace operation. */ +export type RestorableDroppedSqlPoolsListByWorkspaceResponse = RestorableDroppedSqlPoolListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ExtendedSqlPoolBlobAuditingPolicyListResult; - }; -}; +/** Optional parameters. */ +export interface BigDataPoolsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the get operation. */ +export type BigDataPoolsGetResponse = BigDataPoolResourceInfo; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ExtendedSqlPoolBlobAuditingPolicyListResult; - }; -}; +/** Optional parameters. */ +export interface BigDataPoolsUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the update operation. */ +export type BigDataPoolsUpdateResponse = BigDataPoolResourceInfo; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DataMaskingPolicy; - }; -}; +/** Optional parameters. */ +export interface BigDataPoolsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Whether to stop any running jobs in the Big Data pool */ + force?: boolean; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * 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; +/** Contains response data for the createOrUpdate operation. */ +export type BigDataPoolsCreateOrUpdateResponse = BigDataPoolResourceInfo; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DataMaskingPolicy; - }; -}; +/** Optional parameters. */ +export interface BigDataPoolsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * 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; +/** Contains response data for the delete operation. */ +export type BigDataPoolsDeleteResponse = Record; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DataMaskingRule; - }; -}; +/** Optional parameters. */ +export interface BigDataPoolsListByWorkspaceOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type DataMaskingRulesGetResponse = DataMaskingRule & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listByWorkspace operation. */ +export type BigDataPoolsListByWorkspaceResponse = BigDataPoolResourceInfoListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DataMaskingRule; - }; -}; +/** Optional parameters. */ +export interface BigDataPoolsListByWorkspaceNextOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the listByWorkspaceNext operation. */ +export type BigDataPoolsListByWorkspaceNextResponse = BigDataPoolResourceInfoListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DataMaskingRuleListResult; - }; -}; +/** Optional parameters. */ +export interface LibraryGetOptionalParams extends coreClient.OperationOptions {} -/** - * 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; +/** Contains response data for the get operation. */ +export type LibraryGetResponse = LibraryResource; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SqlPoolColumn; - }; -}; +/** Optional parameters. */ +export interface LibrariesListByWorkspaceOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type SqlPoolWorkloadGroupGetResponse = WorkloadGroup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listByWorkspace operation. */ +export type LibrariesListByWorkspaceResponse = LibraryListResponse; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkloadGroup; - }; -}; +/** Optional parameters. */ +export interface LibrariesListByWorkspaceNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the createOrUpdate operation. - */ -export type SqlPoolWorkloadGroupCreateOrUpdateResponse = WorkloadGroup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listByWorkspaceNext operation. */ +export type LibrariesListByWorkspaceNextResponse = LibraryListResponse; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkloadGroup; - }; -}; +/** Optional parameters. */ +export interface IntegrationRuntimesUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the list operation. - */ -export type SqlPoolWorkloadGroupListResponse = WorkloadGroupListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the update operation. */ +export type IntegrationRuntimesUpdateResponse = IntegrationRuntimeResource; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkloadGroupListResult; - }; -}; +/** Optional parameters. */ +export interface IntegrationRuntimesGetOptionalParams + extends coreClient.OperationOptions { + /** ETag of the integration runtime entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. */ + ifNoneMatch?: string; +} -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type SqlPoolWorkloadGroupBeginCreateOrUpdateResponse = WorkloadGroup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type IntegrationRuntimesGetResponse = IntegrationRuntimeResource; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkloadGroup; - }; -}; +/** Optional parameters. */ +export interface IntegrationRuntimesCreateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the integration runtime entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. */ + ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the listNext operation. - */ -export type SqlPoolWorkloadGroupListNextResponse = WorkloadGroupListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the create operation. */ +export type IntegrationRuntimesCreateResponse = IntegrationRuntimeResource; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkloadGroupListResult; - }; -}; +/** Optional parameters. */ +export interface IntegrationRuntimesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the get operation. - */ -export type SqlPoolWorkloadClassifierGetResponse = WorkloadClassifier & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface IntegrationRuntimesUpgradeOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkloadClassifier; - }; -}; +/** Optional parameters. */ +export interface IntegrationRuntimesListByWorkspaceOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the createOrUpdate operation. - */ -export type SqlPoolWorkloadClassifierCreateOrUpdateResponse = WorkloadClassifier & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listByWorkspace operation. */ +export type IntegrationRuntimesListByWorkspaceResponse = IntegrationRuntimeListResponse; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkloadClassifier; - }; -}; +/** Optional parameters. */ +export interface IntegrationRuntimesStartOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the list operation. - */ -export type SqlPoolWorkloadClassifierListResponse = WorkloadClassifierListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the start operation. */ +export type IntegrationRuntimesStartResponse = IntegrationRuntimeStatusResponse; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkloadClassifierListResult; - }; -}; +/** Optional parameters. */ +export interface IntegrationRuntimesStopOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type SqlPoolWorkloadClassifierBeginCreateOrUpdateResponse = WorkloadClassifier & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface IntegrationRuntimesListOutboundNetworkDependenciesEndpointsOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkloadClassifier; - }; -}; +/** Contains response data for the listOutboundNetworkDependenciesEndpoints operation. */ +export type IntegrationRuntimesListOutboundNetworkDependenciesEndpointsResponse = IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse; -/** - * Contains response data for the listNext operation. - */ -export type SqlPoolWorkloadClassifierListNextResponse = WorkloadClassifierListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface IntegrationRuntimesEnableInteractiveQueryOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkloadClassifierListResult; - }; -}; +/** Optional parameters. */ +export interface IntegrationRuntimesDisableInteractiveQueryOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the get operation. - */ -export type WorkspaceManagedSqlServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface IntegrationRuntimesListByWorkspaceNextOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerBlobAuditingPolicy; - }; -}; +/** Contains response data for the listByWorkspaceNext operation. */ +export type IntegrationRuntimesListByWorkspaceNextResponse = IntegrationRuntimeListResponse; -/** - * Contains response data for the createOrUpdate operation. - */ -export type WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface IntegrationRuntimeNodeIpAddressGetOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerBlobAuditingPolicy; - }; -}; +/** Contains response data for the get operation. */ +export type IntegrationRuntimeNodeIpAddressGetResponse = IntegrationRuntimeNodeIpAddress; -/** - * Contains response data for the listByWorkspace operation. - */ -export type WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceResponse = ServerBlobAuditingPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface IntegrationRuntimeObjectMetadataListOptionalParams + extends coreClient.OperationOptions { + /** The parameters for getting a SSIS object metadata. */ + getMetadataRequest?: GetSsisObjectMetadataRequest; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerBlobAuditingPolicyListResult; - }; -}; +/** Contains response data for the list operation. */ +export type IntegrationRuntimeObjectMetadataListResponse = SsisObjectMetadataListResponse; -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type WorkspaceManagedSqlServerBlobAuditingPoliciesBeginCreateOrUpdateResponse = ServerBlobAuditingPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface IntegrationRuntimeObjectMetadataRefreshOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerBlobAuditingPolicy; - }; -}; +/** Contains response data for the refresh operation. */ +export type IntegrationRuntimeObjectMetadataRefreshResponse = SsisObjectMetadataStatusResponse; -/** - * Contains response data for the listByWorkspaceNext operation. - */ -export type WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceNextResponse = ServerBlobAuditingPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface IntegrationRuntimeNodesGetOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerBlobAuditingPolicyListResult; - }; -}; +/** Contains response data for the get operation. */ +export type IntegrationRuntimeNodesGetResponse = SelfHostedIntegrationRuntimeNode; -/** - * Contains response data for the get operation. - */ -export type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface IntegrationRuntimeNodesUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type IntegrationRuntimeNodesUpdateResponse = SelfHostedIntegrationRuntimeNode; + +/** Optional parameters. */ +export interface IntegrationRuntimeNodesDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface IntegrationRuntimeCredentialsSyncOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ExtendedServerBlobAuditingPolicy; - }; -}; +/** Optional parameters. */ +export interface IntegrationRuntimeConnectionInfosGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the createOrUpdate operation. - */ -export type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type IntegrationRuntimeConnectionInfosGetResponse = IntegrationRuntimeConnectionInfo; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ExtendedServerBlobAuditingPolicy; - }; -}; +/** Optional parameters. */ +export interface IntegrationRuntimeAuthKeysRegenerateOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listByWorkspace operation. - */ -export type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceResponse = ExtendedServerBlobAuditingPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the regenerate operation. */ +export type IntegrationRuntimeAuthKeysRegenerateResponse = IntegrationRuntimeAuthKeys; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ExtendedServerBlobAuditingPolicyListResult; - }; -}; +/** Optional parameters. */ +export interface IntegrationRuntimeAuthKeysListOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesBeginCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the list operation. */ +export type IntegrationRuntimeAuthKeysListResponse = IntegrationRuntimeAuthKeys; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ExtendedServerBlobAuditingPolicy; - }; -}; +/** Optional parameters. */ +export interface IntegrationRuntimeMonitoringDataListOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listByWorkspaceNext operation. - */ -export type WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceNextResponse = ExtendedServerBlobAuditingPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the list operation. */ +export type IntegrationRuntimeMonitoringDataListResponse = IntegrationRuntimeMonitoringData; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ExtendedServerBlobAuditingPolicyListResult; - }; -}; +/** Optional parameters. */ +export interface IntegrationRuntimeStatusGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type WorkspaceManagedSqlServerSecurityAlertPolicyGetResponse = ServerSecurityAlertPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type IntegrationRuntimeStatusGetResponse = IntegrationRuntimeStatusResponse; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerSecurityAlertPolicy; - }; -}; +/** Optional parameters. */ +export interface SparkConfigurationGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the createOrUpdate operation. - */ -export type WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse = ServerSecurityAlertPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type SparkConfigurationGetResponse = SparkConfigurationResource; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerSecurityAlertPolicy; - }; -}; +/** Optional parameters. */ +export interface SparkConfigurationsListByWorkspaceOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the list operation. - */ -export type WorkspaceManagedSqlServerSecurityAlertPolicyListResponse = ServerSecurityAlertPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listByWorkspace operation. */ +export type SparkConfigurationsListByWorkspaceResponse = SparkConfigurationListResponse; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerSecurityAlertPolicyListResult; - }; -}; +/** Optional parameters. */ +export interface SparkConfigurationsListByWorkspaceNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type WorkspaceManagedSqlServerSecurityAlertPolicyBeginCreateOrUpdateResponse = ServerSecurityAlertPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listByWorkspaceNext operation. */ +export type SparkConfigurationsListByWorkspaceNextResponse = SparkConfigurationListResponse; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerSecurityAlertPolicy; - }; -}; +/** Optional parameters. */ +export interface KustoOperationsListOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listNext operation. - */ -export type WorkspaceManagedSqlServerSecurityAlertPolicyListNextResponse = ServerSecurityAlertPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the list operation. */ +export type KustoOperationsListResponse = OperationListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerSecurityAlertPolicyListResult; - }; -}; +/** Optional parameters. */ +export interface KustoOperationsListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type WorkspaceManagedSqlServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type KustoOperationsListNextResponse = OperationListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerVulnerabilityAssessment; - }; -}; +/** Optional parameters. */ +export interface KustoPoolsListSkusOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the createOrUpdate operation. - */ -export type WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listSkus operation. */ +export type KustoPoolsListSkusResponse = SkuDescriptionList; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerVulnerabilityAssessment; - }; -}; +/** Optional parameters. */ +export interface KustoPoolsCheckNameAvailabilityOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the list operation. - */ -export type WorkspaceManagedSqlServerVulnerabilityAssessmentsListResponse = ServerVulnerabilityAssessmentListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the checkNameAvailability operation. */ +export type KustoPoolsCheckNameAvailabilityResponse = CheckNameResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerVulnerabilityAssessmentListResult; - }; -}; +/** Optional parameters. */ +export interface KustoPoolsListByWorkspaceOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listNext operation. - */ -export type WorkspaceManagedSqlServerVulnerabilityAssessmentsListNextResponse = ServerVulnerabilityAssessmentListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listByWorkspace operation. */ +export type KustoPoolsListByWorkspaceResponse = KustoPoolListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerVulnerabilityAssessmentListResult; - }; -}; +/** Optional parameters. */ +export interface KustoPoolsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type WorkspaceManagedSqlServerEncryptionProtectorGetResponse = EncryptionProtector & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type KustoPoolsGetResponse = KustoPool; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EncryptionProtector; - }; -}; +/** Optional parameters. */ +export interface KustoPoolsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Set to '*' to allow a new Kusto Pool to be created, but to prevent updating an existing Kusto Pool. Other values will result in a 412 Pre-condition Failed response. */ + ifNoneMatch?: string; + /** The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. */ + ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the createOrUpdate operation. - */ -export type WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse = EncryptionProtector & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the createOrUpdate operation. */ +export type KustoPoolsCreateOrUpdateResponse = KustoPool; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EncryptionProtector; - }; -}; +/** Optional parameters. */ +export interface KustoPoolsUpdateOptionalParams + extends coreClient.OperationOptions { + /** The ETag of the Kusto Pool. Omit this value to always overwrite the current Kusto Pool. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes. */ + ifMatch?: string; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the list operation. - */ -export type WorkspaceManagedSqlServerEncryptionProtectorListResponse = EncryptionProtectorListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the update operation. */ +export type KustoPoolsUpdateResponse = KustoPool; - /** - * The response body as parsed JSON or XML - */ - parsedBody: EncryptionProtectorListResult; - }; -}; +/** Optional parameters. */ +export interface KustoPoolsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type WorkspaceManagedSqlServerEncryptionProtectorBeginCreateOrUpdateResponse = EncryptionProtector & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface KustoPoolsStopOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: EncryptionProtector; - }; -}; +/** Optional parameters. */ +export interface KustoPoolsStartOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the listNext operation. - */ -export type WorkspaceManagedSqlServerEncryptionProtectorListNextResponse = EncryptionProtectorListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface KustoPoolsListSkusByResourceOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: EncryptionProtectorListResult; - }; -}; +/** Contains response data for the listSkusByResource operation. */ +export type KustoPoolsListSkusByResourceResponse = ListResourceSkusResult; -/** - * Contains response data for the list operation. - */ -export type WorkspaceManagedSqlServerUsagesListResponse = ServerUsageListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface KustoPoolsListLanguageExtensionsOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerUsageListResult; - }; -}; +/** Contains response data for the listLanguageExtensions operation. */ +export type KustoPoolsListLanguageExtensionsResponse = LanguageExtensionsList; -/** - * Contains response data for the listNext operation. - */ -export type WorkspaceManagedSqlServerUsagesListNextResponse = ServerUsageListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface KustoPoolsAddLanguageExtensionsOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerUsageListResult; - }; -}; +/** Optional parameters. */ +export interface KustoPoolsRemoveLanguageExtensionsOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the list operation. - */ -export type WorkspaceManagedSqlServerRecoverableSqlPoolsListResponse = RecoverableSqlPoolListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface KustoPoolsListFollowerDatabasesOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: RecoverableSqlPoolListResult; - }; -}; +/** Contains response data for the listFollowerDatabases operation. */ +export type KustoPoolsListFollowerDatabasesResponse = FollowerDatabaseListResult; -/** - * Contains response data for the get operation. - */ -export type WorkspaceManagedSqlServerRecoverableSqlPoolsGetResponse = RecoverableSqlPool & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface KustoPoolsDetachFollowerDatabasesOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: RecoverableSqlPool; - }; -}; +/** Optional parameters. */ +export interface KustoPoolChildResourceCheckNameAvailabilityOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listNext operation. - */ -export type WorkspaceManagedSqlServerRecoverableSqlPoolsListNextResponse = RecoverableSqlPoolListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the checkNameAvailability operation. */ +export type KustoPoolChildResourceCheckNameAvailabilityResponse = CheckNameResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RecoverableSqlPoolListResult; - }; -}; +/** Optional parameters. */ +export interface KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listByResourceGroup operation. - */ -export type WorkspacesListByResourceGroupResponse = WorkspaceInfoListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listByKustoPool operation. */ +export type KustoPoolAttachedDatabaseConfigurationsListByKustoPoolResponse = AttachedDatabaseConfigurationListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkspaceInfoListResult; - }; -}; +/** Optional parameters. */ +export interface KustoPoolAttachedDatabaseConfigurationsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type WorkspacesGetResponse = Workspace & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type KustoPoolAttachedDatabaseConfigurationsGetResponse = AttachedDatabaseConfiguration; - /** - * The response body as parsed JSON or XML - */ - parsedBody: Workspace; - }; -}; +/** Optional parameters. */ +export interface KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the update operation. - */ -export type WorkspacesUpdateResponse = Workspace & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the createOrUpdate operation. */ +export type KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse = AttachedDatabaseConfiguration; - /** - * The response body as parsed JSON or XML - */ - parsedBody: Workspace; - }; -}; +/** Optional parameters. */ +export interface KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the createOrUpdate operation. - */ -export type WorkspacesCreateOrUpdateResponse = Workspace & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface KustoPoolDatabasesListByKustoPoolOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: Workspace; - }; -}; +/** Contains response data for the listByKustoPool operation. */ +export type KustoPoolDatabasesListByKustoPoolResponse = DatabaseListResult; -/** - * Contains response data for the deleteMethod operation. - */ -export type WorkspacesDeleteMethodResponse = { - /** - * The parsed response body. - */ - body: any; +/** Optional parameters. */ +export interface KustoPoolDatabasesGetOptionalParams + extends coreClient.OperationOptions {} - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type KustoPoolDatabasesGetResponse = DatabaseUnion; - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; +/** Optional parameters. */ +export interface KustoPoolDatabasesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the list operation. - */ -export type WorkspacesListResponse = WorkspaceInfoListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the createOrUpdate operation. */ +export type KustoPoolDatabasesCreateOrUpdateResponse = DatabaseUnion; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkspaceInfoListResult; - }; -}; +/** Optional parameters. */ +export interface KustoPoolDatabasesUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the beginUpdate operation. - */ -export type WorkspacesBeginUpdateResponse = Workspace & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the update operation. */ +export type KustoPoolDatabasesUpdateResponse = DatabaseUnion; - /** - * The response body as parsed JSON or XML - */ - parsedBody: Workspace; - }; -}; +/** Optional parameters. */ +export interface KustoPoolDatabasesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type WorkspacesBeginCreateOrUpdateResponse = Workspace & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface KustoPoolDataConnectionsCheckNameAvailabilityOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: Workspace; - }; -}; +/** Contains response data for the checkNameAvailability operation. */ +export type KustoPoolDataConnectionsCheckNameAvailabilityResponse = CheckNameResult; -/** - * Contains response data for the beginDeleteMethod operation. - */ -export type WorkspacesBeginDeleteMethodResponse = { - /** - * The parsed response body. - */ - body: any; +/** Optional parameters. */ +export interface KustoPoolDataConnectionsDataConnectionValidationOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the dataConnectionValidation operation. */ +export type KustoPoolDataConnectionsDataConnectionValidationResponse = DataConnectionValidationListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; +/** Optional parameters. */ +export interface KustoPoolDataConnectionsListByDatabaseOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listByResourceGroupNext operation. - */ -export type WorkspacesListByResourceGroupNextResponse = WorkspaceInfoListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listByDatabase operation. */ +export type KustoPoolDataConnectionsListByDatabaseResponse = DataConnectionListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkspaceInfoListResult; - }; -}; +/** Optional parameters. */ +export interface KustoPoolDataConnectionsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listNext operation. - */ -export type WorkspacesListNextResponse = WorkspaceInfoListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type KustoPoolDataConnectionsGetResponse = DataConnectionUnion; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkspaceInfoListResult; - }; -}; +/** Optional parameters. */ +export interface KustoPoolDataConnectionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the get operation. - */ -export type WorkspaceAadAdminsGetResponse = WorkspaceAadAdminInfo & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the createOrUpdate operation. */ +export type KustoPoolDataConnectionsCreateOrUpdateResponse = DataConnectionUnion; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkspaceAadAdminInfo; - }; -}; +/** Optional parameters. */ +export interface KustoPoolDataConnectionsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the createOrUpdate operation. - */ -export type WorkspaceAadAdminsCreateOrUpdateResponse = WorkspaceAadAdminInfo & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the update operation. */ +export type KustoPoolDataConnectionsUpdateResponse = DataConnectionUnion; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkspaceAadAdminInfo; - }; -}; +/** Optional parameters. */ +export interface KustoPoolDataConnectionsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type WorkspaceAadAdminsBeginCreateOrUpdateResponse = WorkspaceAadAdminInfo & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface KustoPoolPrincipalAssignmentsCheckNameAvailabilityOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkspaceAadAdminInfo; - }; -}; +/** Contains response data for the checkNameAvailability operation. */ +export type KustoPoolPrincipalAssignmentsCheckNameAvailabilityResponse = CheckNameResult; -/** - * Contains response data for the get operation. - */ -export type WorkspaceSqlAadAdminsGetResponse = WorkspaceAadAdminInfo & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface KustoPoolPrincipalAssignmentsListOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkspaceAadAdminInfo; - }; -}; +/** Contains response data for the list operation. */ +export type KustoPoolPrincipalAssignmentsListResponse = ClusterPrincipalAssignmentListResult; -/** - * Contains response data for the createOrUpdate operation. - */ -export type WorkspaceSqlAadAdminsCreateOrUpdateResponse = WorkspaceAadAdminInfo & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface KustoPoolPrincipalAssignmentsGetOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkspaceAadAdminInfo; - }; -}; +/** Contains response data for the get operation. */ +export type KustoPoolPrincipalAssignmentsGetResponse = ClusterPrincipalAssignment; -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type WorkspaceSqlAadAdminsBeginCreateOrUpdateResponse = WorkspaceAadAdminInfo & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkspaceAadAdminInfo; - }; -}; +/** Contains response data for the createOrUpdate operation. */ +export type KustoPoolPrincipalAssignmentsCreateOrUpdateResponse = ClusterPrincipalAssignment; -/** - * Contains response data for the get operation. - */ -export type WorkspaceManagedIdentitySqlControlSettingsGetResponse = ManagedIdentitySqlControlSettingsModel & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface KustoPoolPrincipalAssignmentsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedIdentitySqlControlSettingsModel; - }; -}; +/** Optional parameters. */ +export interface KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the createOrUpdate operation. - */ -export type WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse = ManagedIdentitySqlControlSettingsModel & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the checkNameAvailability operation. */ +export type KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityResponse = CheckNameResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedIdentitySqlControlSettingsModel; - }; -}; +/** Optional parameters. */ +export interface KustoPoolDatabasePrincipalAssignmentsListOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type WorkspaceManagedIdentitySqlControlSettingsBeginCreateOrUpdateResponse = ManagedIdentitySqlControlSettingsModel & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the list operation. */ +export type KustoPoolDatabasePrincipalAssignmentsListResponse = DatabasePrincipalAssignmentListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ManagedIdentitySqlControlSettingsModel; - }; -}; +/** Optional parameters. */ +export interface KustoPoolDatabasePrincipalAssignmentsGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type RestorableDroppedSqlPoolsGetResponse = RestorableDroppedSqlPool & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the get operation. */ +export type KustoPoolDatabasePrincipalAssignmentsGetResponse = DatabasePrincipalAssignment; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableDroppedSqlPool; - }; -}; +/** Optional parameters. */ +export interface KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the listByWorkspace operation. - */ -export type RestorableDroppedSqlPoolsListByWorkspaceResponse = RestorableDroppedSqlPoolListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the createOrUpdate operation. */ +export type KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateResponse = DatabasePrincipalAssignment; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RestorableDroppedSqlPoolListResult; - }; -}; +/** Optional parameters. */ +export interface KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface SynapseManagementClientOptionalParams + extends coreClient.ServiceClientOptions { + /** server parameter */ + $host?: string; + /** Overrides client endpoint. */ + endpoint?: string; +} diff --git a/sdk/synapse/arm-synapse/src/models/integrationRuntimeAuthKeysOperationsMappers.ts b/sdk/synapse/arm-synapse/src/models/integrationRuntimeAuthKeysOperationsMappers.ts deleted file mode 100644 index 658b8d94a1b8..000000000000 --- a/sdk/synapse/arm-synapse/src/models/integrationRuntimeAuthKeysOperationsMappers.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - IntegrationRuntimeAuthKeys, - IntegrationRuntimeRegenerateKeyParameters -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/integrationRuntimeConnectionInfosMappers.ts b/sdk/synapse/arm-synapse/src/models/integrationRuntimeConnectionInfosMappers.ts deleted file mode 100644 index 062234b05e46..000000000000 --- a/sdk/synapse/arm-synapse/src/models/integrationRuntimeConnectionInfosMappers.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - IntegrationRuntimeConnectionInfo -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/integrationRuntimeCredentialsMappers.ts b/sdk/synapse/arm-synapse/src/models/integrationRuntimeCredentialsMappers.ts deleted file mode 100644 index a7622d01933a..000000000000 --- a/sdk/synapse/arm-synapse/src/models/integrationRuntimeCredentialsMappers.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/integrationRuntimeMonitoringDataOperationsMappers.ts b/sdk/synapse/arm-synapse/src/models/integrationRuntimeMonitoringDataOperationsMappers.ts deleted file mode 100644 index 97adf20070a7..000000000000 --- a/sdk/synapse/arm-synapse/src/models/integrationRuntimeMonitoringDataOperationsMappers.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - IntegrationRuntimeMonitoringData, - IntegrationRuntimeNodeMonitoringData -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/integrationRuntimeNodeIpAddressOperationsMappers.ts b/sdk/synapse/arm-synapse/src/models/integrationRuntimeNodeIpAddressOperationsMappers.ts deleted file mode 100644 index 0c4c0c168b03..000000000000 --- a/sdk/synapse/arm-synapse/src/models/integrationRuntimeNodeIpAddressOperationsMappers.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - IntegrationRuntimeNodeIpAddress -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/integrationRuntimeNodesMappers.ts b/sdk/synapse/arm-synapse/src/models/integrationRuntimeNodesMappers.ts deleted file mode 100644 index 70b3b068a76e..000000000000 --- a/sdk/synapse/arm-synapse/src/models/integrationRuntimeNodesMappers.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - SelfHostedIntegrationRuntimeNode, - UpdateIntegrationRuntimeNodeRequest -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/integrationRuntimeObjectMetadataMappers.ts b/sdk/synapse/arm-synapse/src/models/integrationRuntimeObjectMetadataMappers.ts deleted file mode 100644 index df51415f3b69..000000000000 --- a/sdk/synapse/arm-synapse/src/models/integrationRuntimeObjectMetadataMappers.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - GetSsisObjectMetadataRequest, - SsisEnvironment, - SsisEnvironmentReference, - SsisFolder, - SsisObjectMetadata, - SsisObjectMetadataListResponse, - SsisObjectMetadataStatusResponse, - SsisPackage, - SsisParameter, - SsisProject, - SsisVariable -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/integrationRuntimeStatusOperationsMappers.ts b/sdk/synapse/arm-synapse/src/models/integrationRuntimeStatusOperationsMappers.ts deleted file mode 100644 index 08774271084f..000000000000 --- a/sdk/synapse/arm-synapse/src/models/integrationRuntimeStatusOperationsMappers.ts +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - IntegrationRuntimeStatus, - IntegrationRuntimeStatusResponse, - LinkedIntegrationRuntime, - ManagedIntegrationRuntimeError, - ManagedIntegrationRuntimeNode, - ManagedIntegrationRuntimeOperationResult, - ManagedIntegrationRuntimeStatus, - SelfHostedIntegrationRuntimeNode, - SelfHostedIntegrationRuntimeStatus -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/integrationRuntimesMappers.ts b/sdk/synapse/arm-synapse/src/models/integrationRuntimesMappers.ts deleted file mode 100644 index 85e13516226c..000000000000 --- a/sdk/synapse/arm-synapse/src/models/integrationRuntimesMappers.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeListResponse, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeStatus, - IntegrationRuntimeStatusResponse, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntime, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedIntegrationRuntimeError, - ManagedIntegrationRuntimeNode, - ManagedIntegrationRuntimeOperationResult, - ManagedIntegrationRuntimeStatus, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SelfHostedIntegrationRuntimeNode, - SelfHostedIntegrationRuntimeStatus, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - UpdateIntegrationRuntimeRequest, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/ipFirewallRulesMappers.ts b/sdk/synapse/arm-synapse/src/models/ipFirewallRulesMappers.ts deleted file mode 100644 index 6451c7c198fa..000000000000 --- a/sdk/synapse/arm-synapse/src/models/ipFirewallRulesMappers.ts +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - IpFirewallRuleInfoListResult, - IpFirewallRuleProperties, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplaceAllFirewallRulesOperationResponse, - ReplaceAllIpFirewallRulesRequest, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/keysMappers.ts b/sdk/synapse/arm-synapse/src/models/keysMappers.ts deleted file mode 100644 index f6f1d834711a..000000000000 --- a/sdk/synapse/arm-synapse/src/models/keysMappers.ts +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - KeyInfoListResult, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/librariesMappers.ts b/sdk/synapse/arm-synapse/src/models/librariesMappers.ts deleted file mode 100644 index eef5ae83fab3..000000000000 --- a/sdk/synapse/arm-synapse/src/models/librariesMappers.ts +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryListResponse, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/libraryMappers.ts b/sdk/synapse/arm-synapse/src/models/libraryMappers.ts deleted file mode 100644 index fa7be042dcd4..000000000000 --- a/sdk/synapse/arm-synapse/src/models/libraryMappers.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/mappers.ts b/sdk/synapse/arm-synapse/src/models/mappers.ts index 13bf88187ac0..6d7bbeee3389 100644 --- a/sdk/synapse/arm-synapse/src/models/mappers.ts +++ b/sdk/synapse/arm-synapse/src/models/mappers.ts @@ -6,99 +6,155 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; -import * as msRest from "@azure/ms-rest-js"; +import * as coreClient from "@azure/core-client"; -export const CloudError = CloudErrorMapper; -export const BaseResource = BaseResourceMapper; - -export const AutoScaleProperties: msRest.CompositeMapper = { - serializedName: "AutoScaleProperties", +export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoScaleProperties", + className: "Resource", modelProperties: { - minNodeCount: { - serializedName: "minNodeCount", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Number" + name: "String" } }, - enabled: { - serializedName: "enabled", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - maxNodeCount: { - serializedName: "maxNodeCount", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const AutoPauseProperties: msRest.CompositeMapper = { - serializedName: "AutoPauseProperties", +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoPauseProperties", + className: "ErrorResponse", modelProperties: { - delayInMinutes: { - serializedName: "delayInMinutes", - type: { - name: "Number" - } - }, - enabled: { - serializedName: "enabled", + error: { + serializedName: "error", type: { - name: "Boolean" + name: "Composite", + className: "ErrorDetail" } } } } }; -export const DynamicExecutorAllocation: msRest.CompositeMapper = { - serializedName: "DynamicExecutorAllocation", +export const ErrorDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DynamicExecutorAllocation", + className: "ErrorDetail", modelProperties: { - enabled: { - serializedName: "enabled", + code: { + serializedName: "code", + readOnly: true, type: { - name: "Boolean" + name: "String" + } + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String" + } + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String" + } + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } } } } } }; -export const LibraryRequirements: msRest.CompositeMapper = { - serializedName: "LibraryRequirements", +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LibraryRequirements", + className: "ErrorAdditionalInfo", modelProperties: { - time: { + type: { + serializedName: "type", readOnly: true, - serializedName: "time", type: { - name: "DateTime" + name: "String" } }, - content: { - serializedName: "content", + info: { + serializedName: "info", + readOnly: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } + } + } + } + } +}; + +export const AzureADOnlyAuthenticationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureADOnlyAuthenticationListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureADOnlyAuthentication" + } + } } }, - filename: { - serializedName: "filename", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -107,11 +163,10 @@ export const LibraryRequirements: msRest.CompositeMapper = { } }; -export const LibraryInfo: msRest.CompositeMapper = { - serializedName: "LibraryInfo", +export const CheckNameAvailabilityRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LibraryInfo", + className: "CheckNameAvailabilityRequest", modelProperties: { name: { serializedName: "name", @@ -119,72 +174,96 @@ export const LibraryInfo: msRest.CompositeMapper = { name: "String" } }, - path: { - serializedName: "path", + type: { + serializedName: "type", type: { name: "String" } - }, - containerName: { - serializedName: "containerName", + } + } + } +}; + +export const CheckNameAvailabilityResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CheckNameAvailabilityResponse", + modelProperties: { + message: { + serializedName: "message", type: { name: "String" } }, - uploadedTimestamp: { - readOnly: true, - serializedName: "uploadedTimestamp", + available: { + serializedName: "available", type: { - name: "DateTime" + name: "Boolean" } }, - type: { - serializedName: "type", + reason: { + serializedName: "reason", type: { name: "String" } }, - provisioningStatus: { - readOnly: true, - serializedName: "provisioningStatus", + name: { + serializedName: "name", type: { name: "String" } - }, - creatorId: { - readOnly: true, - serializedName: "creatorId", + } + } + } +}; + +export const IpFirewallRuleInfoListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpFirewallRuleInfoListResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", type: { name: "String" } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpFirewallRuleInfo" + } + } + } } } } }; -export const Resource: msRest.CompositeMapper = { - serializedName: "Resource", +export const IpFirewallRuleProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Resource", + className: "IpFirewallRuleProperties", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + endIpAddress: { + serializedName: "endIpAddress", type: { name: "String" } }, - name: { + provisioningState: { + serializedName: "provisioningState", readOnly: true, - serializedName: "name", type: { name: "String" } }, - type: { - readOnly: true, - serializedName: "type", + startIpAddress: { + serializedName: "startIpAddress", type: { name: "String" } @@ -193,27 +272,31 @@ export const Resource: msRest.CompositeMapper = { } }; -export const TrackedResource: msRest.CompositeMapper = { - serializedName: "TrackedResource", +export const ReplaceAllIpFirewallRulesRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrackedResource", + className: "ReplaceAllIpFirewallRulesRequest", modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", + ipFirewallRules: { + serializedName: "ipFirewallRules", type: { name: "Dictionary", value: { - type: { - name: "String" - } + type: { name: "Composite", className: "IpFirewallRuleProperties" } } } - }, - location: { - required: true, - serializedName: "location", + } + } + } +}; + +export const ReplaceAllFirewallRulesOperationResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ReplaceAllFirewallRulesOperationResponse", + modelProperties: { + operationId: { + serializedName: "operationId", type: { name: "String" } @@ -222,333 +305,356 @@ export const TrackedResource: msRest.CompositeMapper = { } }; -export const BigDataPoolResourceInfo: msRest.CompositeMapper = { - serializedName: "BigDataPoolResourceInfo", +export const KeyInfoListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BigDataPoolResourceInfo", + className: "KeyInfoListResult", modelProperties: { - ...TrackedResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - autoScale: { - serializedName: "properties.autoScale", + value: { + serializedName: "value", type: { - name: "Composite", - className: "AutoScaleProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Key" + } + } } - }, - creationDate: { - serializedName: "properties.creationDate", - type: { - name: "DateTime" - } - }, - autoPause: { - serializedName: "properties.autoPause", + } + } + } +}; + +export const AvailableRpOperation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AvailableRpOperation", + modelProperties: { + display: { + serializedName: "display", type: { name: "Composite", - className: "AutoPauseProperties" + className: "AvailableRpOperationDisplayInfo" } }, - isComputeIsolationEnabled: { - serializedName: "properties.isComputeIsolationEnabled", + isDataAction: { + serializedName: "isDataAction", type: { - name: "Boolean" + name: "String" } }, - sessionLevelPackagesEnabled: { - serializedName: "properties.sessionLevelPackagesEnabled", + name: { + serializedName: "name", type: { - name: "Boolean" + name: "String" } }, - cacheSize: { - serializedName: "properties.cacheSize", + origin: { + serializedName: "origin", type: { - name: "Number" + name: "String" } }, - dynamicExecutorAllocation: { - serializedName: "properties.dynamicExecutorAllocation", + serviceSpecification: { + serializedName: "properties.serviceSpecification", type: { name: "Composite", - className: "DynamicExecutorAllocation" + className: "OperationMetaServiceSpecification" + } + } + } + } +}; + +export const AvailableRpOperationDisplayInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AvailableRpOperationDisplayInfo", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" } }, - sparkEventsFolder: { - serializedName: "properties.sparkEventsFolder", + resource: { + serializedName: "resource", type: { name: "String" } }, - nodeCount: { - serializedName: "properties.nodeCount", + provider: { + serializedName: "provider", type: { - name: "Number" + name: "String" } }, - libraryRequirements: { - serializedName: "properties.libraryRequirements", + operation: { + serializedName: "operation", type: { - name: "Composite", - className: "LibraryRequirements" + name: "String" + } + } + } + } +}; + +export const OperationMetaServiceSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationMetaServiceSpecification", + modelProperties: { + metricSpecifications: { + serializedName: "metricSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationMetaMetricSpecification" + } + } } }, - customLibraries: { - serializedName: "properties.customLibraries", + logSpecifications: { + serializedName: "logSpecifications", type: { name: "Sequence", element: { type: { name: "Composite", - className: "LibraryInfo" + className: "OperationMetaLogSpecification" } } } + } + } + } +}; + +export const OperationMetaMetricSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationMetaMetricSpecification", + modelProperties: { + sourceMdmNamespace: { + serializedName: "sourceMdmNamespace", + type: { + name: "String" + } }, - sparkConfigProperties: { - serializedName: "properties.sparkConfigProperties", + displayName: { + serializedName: "displayName", type: { - name: "Composite", - className: "LibraryRequirements" + name: "String" } }, - sparkVersion: { - serializedName: "properties.sparkVersion", + name: { + serializedName: "name", type: { name: "String" } }, - defaultSparkLogFolder: { - serializedName: "properties.defaultSparkLogFolder", + aggregationType: { + serializedName: "aggregationType", type: { name: "String" } }, - nodeSize: { - serializedName: "properties.nodeSize", + displayDescription: { + serializedName: "displayDescription", type: { name: "String" } }, - nodeSizeFamily: { - serializedName: "properties.nodeSizeFamily", + sourceMdmAccount: { + serializedName: "sourceMdmAccount", type: { name: "String" } }, - lastSucceededTimestamp: { - readOnly: true, - serializedName: "properties.lastSucceededTimestamp", + enableRegionalMdmAccount: { + serializedName: "enableRegionalMdmAccount", type: { - name: "DateTime" + name: "Boolean" } - } - } - } -}; - -export const BigDataPoolPatchInfo: msRest.CompositeMapper = { - serializedName: "BigDataPoolPatchInfo", - type: { - name: "Composite", - className: "BigDataPoolPatchInfo", - modelProperties: { - tags: { - serializedName: "tags", + }, + unit: { + serializedName: "unit", type: { - name: "Dictionary", - value: { + name: "String" + } + }, + dimensions: { + serializedName: "dimensions", + type: { + name: "Sequence", + element: { type: { - name: "String" + name: "Composite", + className: "OperationMetaMetricDimensionSpecification" } } } + }, + supportsInstanceLevelAggregation: { + serializedName: "supportsInstanceLevelAggregation", + type: { + name: "Boolean" + } + }, + metricFilterPattern: { + serializedName: "metricFilterPattern", + type: { + name: "String" + } } } } }; -export const ProxyResource: msRest.CompositeMapper = { - serializedName: "ProxyResource", - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties - } - } -}; - -export const AzureEntityResource: msRest.CompositeMapper = { - serializedName: "AzureEntityResource", +export const OperationMetaMetricDimensionSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureEntityResource", + className: "OperationMetaMetricDimensionSpecification", modelProperties: { - ...Resource.type.modelProperties, - etag: { - readOnly: true, - serializedName: "etag", + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + name: { + serializedName: "name", type: { name: "String" } + }, + toBeExportedForShoebox: { + serializedName: "toBeExportedForShoebox", + type: { + name: "Boolean" + } } } } }; -export const ErrorAdditionalInfo: msRest.CompositeMapper = { - serializedName: "ErrorAdditionalInfo", +export const OperationMetaLogSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorAdditionalInfo", + className: "OperationMetaLogSpecification", modelProperties: { - type: { - readOnly: true, - serializedName: "type", + displayName: { + serializedName: "displayName", type: { name: "String" } }, - info: { - readOnly: true, - serializedName: "info", + blobDuration: { + serializedName: "blobDuration", + type: { + name: "String" + } + }, + name: { + serializedName: "name", type: { - name: "Object" + name: "String" } } } } }; -export const ErrorDetail: msRest.CompositeMapper = { - serializedName: "ErrorDetail", +export const OperationResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorDetail", + className: "OperationResource", modelProperties: { - code: { - readOnly: true, - serializedName: "code", + id: { + serializedName: "id", type: { name: "String" } }, - message: { - readOnly: true, - serializedName: "message", + name: { + serializedName: "name", type: { name: "String" } }, - target: { - readOnly: true, - serializedName: "target", + status: { + serializedName: "status", type: { name: "String" } }, - details: { - readOnly: true, - serializedName: "details", + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorDetail" - } - } + name: "Dictionary", + value: { type: { name: "any" } } } }, - additionalInfo: { - readOnly: true, - serializedName: "additionalInfo", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } -}; - -export const ErrorResponse: msRest.CompositeMapper = { - serializedName: "ErrorResponse", - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { error: { serializedName: "error", type: { name: "Composite", className: "ErrorDetail" } - } - } - } -}; - -export const CheckNameAvailabilityRequest: msRest.CompositeMapper = { - serializedName: "CheckNameAvailabilityRequest", - type: { - name: "Composite", - className: "CheckNameAvailabilityRequest", - modelProperties: { - name: { - serializedName: "name", + }, + startTime: { + serializedName: "startTime", type: { - name: "String" + name: "DateTime" } }, - type: { - serializedName: "type", + endTime: { + serializedName: "endTime", type: { - name: "String" + name: "DateTime" + } + }, + percentComplete: { + serializedName: "percentComplete", + type: { + name: "Number" } } } } }; -export const CheckNameAvailabilityResponse: msRest.CompositeMapper = { - serializedName: "CheckNameAvailabilityResponse", +export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CheckNameAvailabilityResponse", + className: "PrivateEndpointConnectionProperties", modelProperties: { - message: { - serializedName: "message", - type: { - name: "String" - } - }, - available: { - serializedName: "available", + privateEndpoint: { + serializedName: "privateEndpoint", type: { - name: "Boolean" + name: "Composite", + className: "PrivateEndpoint" } }, - reason: { - serializedName: "reason", + privateLinkServiceConnectionState: { + serializedName: "privateLinkServiceConnectionState", type: { - name: "String" + name: "Composite", + className: "PrivateLinkServiceConnectionState" } }, - name: { - serializedName: "name", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } @@ -557,27 +663,14 @@ export const CheckNameAvailabilityResponse: msRest.CompositeMapper = { } }; -export const IpFirewallRuleProperties: msRest.CompositeMapper = { - serializedName: "IpFirewallRuleProperties", +export const PrivateEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpFirewallRuleProperties", + className: "PrivateEndpoint", modelProperties: { - endIpAddress: { - serializedName: "endIpAddress", - type: { - name: "String" - } - }, - provisioningState: { + id: { + serializedName: "id", readOnly: true, - serializedName: "provisioningState", - type: { - name: "String" - } - }, - startIpAddress: { - serializedName: "startIpAddress", type: { name: "String" } @@ -586,27 +679,26 @@ export const IpFirewallRuleProperties: msRest.CompositeMapper = { } }; -export const IpFirewallRuleInfo: msRest.CompositeMapper = { - serializedName: "IpFirewallRuleInfo", +export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpFirewallRuleInfo", + className: "PrivateLinkServiceConnectionState", modelProperties: { - endIpAddress: { - serializedName: "properties.endIpAddress", + status: { + serializedName: "status", type: { name: "String" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + description: { + serializedName: "description", type: { name: "String" } }, - startIpAddress: { - serializedName: "properties.startIpAddress", + actionsRequired: { + serializedName: "actionsRequired", + readOnly: true, type: { name: "String" } @@ -615,36 +707,27 @@ export const IpFirewallRuleInfo: msRest.CompositeMapper = { } }; -export const ReplaceAllIpFirewallRulesRequest: msRest.CompositeMapper = { - serializedName: "ReplaceAllIpFirewallRulesRequest", +export const PrivateEndpointConnectionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ReplaceAllIpFirewallRulesRequest", + className: "PrivateEndpointConnectionList", modelProperties: { - ipFirewallRules: { - serializedName: "ipFirewallRules", + value: { + serializedName: "value", + readOnly: true, type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { name: "Composite", - className: "IpFirewallRuleProperties" + className: "PrivateEndpointConnection" } } } - } - } - } -}; - -export const ReplaceAllFirewallRulesOperationResponse: msRest.CompositeMapper = { - serializedName: "ReplaceAllFirewallRulesOperationResponse", - type: { - name: "Composite", - className: "ReplaceAllFirewallRulesOperationResponse", - modelProperties: { - operationId: { - serializedName: "operationId", + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -653,227 +736,175 @@ export const ReplaceAllFirewallRulesOperationResponse: msRest.CompositeMapper = } }; -export const SubResource: msRest.CompositeMapper = { - serializedName: "SubResource", - type: { - name: "Composite", - className: "SubResource", - modelProperties: { - ...AzureEntityResource.type.modelProperties - } - } -}; - -export const IntegrationRuntime: msRest.CompositeMapper = { - serializedName: "IntegrationRuntime", +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "IntegrationRuntime", - className: "IntegrationRuntime", + className: "PrivateLinkResourceListResult", modelProperties: { - description: { - serializedName: "description", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } } }, - type: { - required: true, - serializedName: "type", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } } - }, - additionalProperties: { - type: { - name: "Object" - } } } }; -export const IntegrationRuntimeDataFlowProperties: msRest.CompositeMapper = { - serializedName: "IntegrationRuntimeDataFlowProperties", +export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IntegrationRuntimeDataFlowProperties", + className: "PrivateLinkResourceProperties", modelProperties: { - computeType: { - serializedName: "computeType", + groupId: { + serializedName: "groupId", + readOnly: true, type: { name: "String" } }, - coreCount: { - serializedName: "coreCount", + requiredMembers: { + serializedName: "requiredMembers", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - timeToLive: { - serializedName: "timeToLive", - constraints: { - InclusiveMinimum: 0 - }, + requiredZoneNames: { + serializedName: "requiredZoneNames", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } - }, - additionalProperties: { - type: { - name: "Object" - } } } }; -export const IntegrationRuntimeVNetProperties: msRest.CompositeMapper = { - serializedName: "IntegrationRuntimeVNetProperties", +export const PrivateLinkHubInfoListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IntegrationRuntimeVNetProperties", + className: "PrivateLinkHubInfoListResult", modelProperties: { - vNetId: { - serializedName: "vNetId", - type: { - name: "String" - } - }, - subnet: { - serializedName: "subnet", + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - publicIPs: { - serializedName: "publicIPs", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "PrivateLinkHub" } } } } - }, - additionalProperties: { - type: { - name: "Object" - } } } }; -export const IntegrationRuntimeComputeProperties: msRest.CompositeMapper = { - serializedName: "IntegrationRuntimeComputeProperties", +export const PrivateEndpointConnectionForPrivateLinkHubBasic: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IntegrationRuntimeComputeProperties", + className: "PrivateEndpointConnectionForPrivateLinkHubBasic", modelProperties: { - location: { - serializedName: "location", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - nodeSize: { - serializedName: "nodeSize", + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { - name: "String" + name: "Composite", + className: "PrivateEndpoint" } }, - numberOfNodes: { - serializedName: "numberOfNodes", - constraints: { - InclusiveMinimum: 1 - }, - type: { - name: "Number" - } - }, - maxParallelExecutionsPerNode: { - serializedName: "maxParallelExecutionsPerNode", - constraints: { - InclusiveMinimum: 1 - }, - type: { - name: "Number" - } - }, - dataFlowProperties: { - serializedName: "dataFlowProperties", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "IntegrationRuntimeDataFlowProperties", - additionalProperties: { - type: { - name: "Object" - } - } + className: "PrivateLinkServiceConnectionState" } }, - vNetProperties: { - serializedName: "vNetProperties", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Composite", - className: "IntegrationRuntimeVNetProperties", - additionalProperties: { - type: { - name: "Object" - } - } + name: "String" } } - }, - additionalProperties: { - type: { - name: "Object" - } } } }; -export const SecretBase: msRest.CompositeMapper = { - serializedName: "SecretBase", +export const PrivateLinkHubPatchInfo: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "SecretBase", - className: "SecretBase", + className: "PrivateLinkHubPatchInfo", modelProperties: { - type: { - required: true, - serializedName: "type", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const SecureString: msRest.CompositeMapper = { - serializedName: "SecureString", +export const PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: SecretBase.type.polymorphicDiscriminator, - uberParent: "SecretBase", - className: "SecureString", + className: + "PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse", modelProperties: { - ...SecretBase.type.modelProperties, value: { - required: true, serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionForPrivateLinkHub" + } + } + } + }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -882,360 +913,255 @@ export const SecureString: msRest.CompositeMapper = { } }; -export const IntegrationRuntimeSsisCatalogInfo: msRest.CompositeMapper = { - serializedName: "IntegrationRuntimeSsisCatalogInfo", +export const PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IntegrationRuntimeSsisCatalogInfo", + className: "PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated", modelProperties: { - catalogServerEndpoint: { - serializedName: "catalogServerEndpoint", - type: { - name: "String" - } - }, - catalogAdminUserName: { - serializedName: "catalogAdminUserName", - constraints: { - MaxLength: 128, - MinLength: 1 - }, + id: { + serializedName: "id", type: { name: "String" } }, - catalogAdminPassword: { - serializedName: "catalogAdminPassword", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "SecureString" - } - }, - catalogPricingTier: { - serializedName: "catalogPricingTier", - type: { - name: "String" + className: "PrivateEndpointConnectionProperties" } } - }, - additionalProperties: { - type: { - name: "Object" - } } } }; -export const IntegrationRuntimeCustomSetupScriptProperties: msRest.CompositeMapper = { - serializedName: "IntegrationRuntimeCustomSetupScriptProperties", +export const Sku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IntegrationRuntimeCustomSetupScriptProperties", + className: "Sku", modelProperties: { - blobContainerUri: { - serializedName: "blobContainerUri", + tier: { + serializedName: "tier", type: { name: "String" } }, - sasToken: { - serializedName: "sasToken", + name: { + serializedName: "name", type: { - name: "Composite", - className: "SecureString" + name: "String" + } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Number" } } } } }; -export const EntityReference: msRest.CompositeMapper = { - serializedName: "EntityReference", +export const SqlPoolPatchInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EntityReference", + className: "SqlPoolPatchInfo", modelProperties: { - type: { - serializedName: "type", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - referenceName: { - serializedName: "referenceName", + location: { + serializedName: "location", type: { name: "String" } - } - } - } -}; - -export const IntegrationRuntimeDataProxyProperties: msRest.CompositeMapper = { - serializedName: "IntegrationRuntimeDataProxyProperties", - type: { - name: "Composite", - className: "IntegrationRuntimeDataProxyProperties", - modelProperties: { - connectVia: { - serializedName: "connectVia", + }, + sku: { + serializedName: "sku", type: { name: "Composite", - className: "EntityReference" + className: "Sku" } }, - stagingLinkedService: { - serializedName: "stagingLinkedService", + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", type: { - name: "Composite", - className: "EntityReference" + name: "Number" } }, - path: { - serializedName: "path", + collation: { + defaultValue: "", + serializedName: "properties.collation", type: { name: "String" } - } - } - } -}; - -export const CustomSetupBase: msRest.CompositeMapper = { - serializedName: "CustomSetupBase", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "CustomSetupBase", - className: "CustomSetupBase", - modelProperties: { - type: { - required: true, - serializedName: "type", + }, + sourceDatabaseId: { + serializedName: "properties.sourceDatabaseId", type: { name: "String" } - } - } - } -}; - -export const IntegrationRuntimeSsisProperties: msRest.CompositeMapper = { - serializedName: "IntegrationRuntimeSsisProperties", - type: { - name: "Composite", - className: "IntegrationRuntimeSsisProperties", - modelProperties: { - catalogInfo: { - serializedName: "catalogInfo", + }, + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", type: { - name: "Composite", - className: "IntegrationRuntimeSsisCatalogInfo", - additionalProperties: { - type: { - name: "Object" - } - } + name: "String" } }, - licenseType: { - serializedName: "licenseType", + provisioningState: { + serializedName: "properties.provisioningState", type: { name: "String" } }, - customSetupScriptProperties: { - serializedName: "customSetupScriptProperties", + status: { + serializedName: "properties.status", + readOnly: true, type: { - name: "Composite", - className: "IntegrationRuntimeCustomSetupScriptProperties" + name: "String" } }, - dataProxyProperties: { - serializedName: "dataProxyProperties", + restorePointInTime: { + serializedName: "properties.restorePointInTime", type: { - name: "Composite", - className: "IntegrationRuntimeDataProxyProperties" + name: "DateTime" } }, - edition: { - serializedName: "edition", + createMode: { + serializedName: "properties.createMode", type: { name: "String" } }, - expressCustomSetupProperties: { - serializedName: "expressCustomSetupProperties", + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CustomSetupBase" - } - } + name: "DateTime" + } + }, + storageAccountType: { + defaultValue: "GRS", + serializedName: "properties.storageAccountType", + type: { + name: "String" + } + }, + sourceDatabaseDeletionDate: { + serializedName: "properties.sourceDatabaseDeletionDate", + type: { + name: "DateTime" } - } - }, - additionalProperties: { - type: { - name: "Object" } } } }; -export const ManagedIntegrationRuntime: msRest.CompositeMapper = { - serializedName: "Managed", +export const SqlPoolInfoListResult: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: IntegrationRuntime.type.polymorphicDiscriminator, - uberParent: "IntegrationRuntime", - className: "ManagedIntegrationRuntime", + className: "SqlPoolInfoListResult", modelProperties: { - ...IntegrationRuntime.type.modelProperties, - state: { - readOnly: true, - serializedName: "state", + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - computeProperties: { - serializedName: "typeProperties.computeProperties", + value: { + serializedName: "value", type: { - name: "Composite", - className: "IntegrationRuntimeComputeProperties", - additionalProperties: { - type: { - name: "Object" - } - } - } - }, - ssisProperties: { - serializedName: "typeProperties.ssisProperties", - type: { - name: "Composite", - className: "IntegrationRuntimeSsisProperties", - additionalProperties: { + name: "Sequence", + element: { type: { - name: "Object" + name: "Composite", + className: "SqlPool" } } } } - }, - additionalProperties: IntegrationRuntime.type.additionalProperties + } } }; -export const CmdkeySetup: msRest.CompositeMapper = { - serializedName: "CmdkeySetup", +export const ResourceMoveDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: CustomSetupBase.type.polymorphicDiscriminator, - uberParent: "CustomSetupBase", - className: "CmdkeySetup", + className: "ResourceMoveDefinition", modelProperties: { - ...CustomSetupBase.type.modelProperties, - targetName: { - required: true, - serializedName: "typeProperties.targetName", - type: { - name: "Object" - } - }, - userName: { - required: true, - serializedName: "typeProperties.userName", - type: { - name: "Object" - } - }, - password: { + id: { + serializedName: "id", required: true, - serializedName: "typeProperties.password", type: { - name: "Composite", - className: "SecretBase" + name: "String" } } } } }; -export const EnvironmentVariableSetup: msRest.CompositeMapper = { - serializedName: "EnvironmentVariableSetup", +export const GeoBackupPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: CustomSetupBase.type.polymorphicDiscriminator, - uberParent: "CustomSetupBase", - className: "EnvironmentVariableSetup", + className: "GeoBackupPolicyListResult", modelProperties: { - ...CustomSetupBase.type.modelProperties, - variableName: { - required: true, - serializedName: "typeProperties.variableName", - type: { - name: "String" - } - }, - variableValue: { - required: true, - serializedName: "typeProperties.variableValue", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GeoBackupPolicy" + } + } } } } } }; -export const ComponentSetup: msRest.CompositeMapper = { - serializedName: "ComponentSetup", +export const RestorePointListResult: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: CustomSetupBase.type.polymorphicDiscriminator, - uberParent: "CustomSetupBase", - className: "ComponentSetup", + className: "RestorePointListResult", modelProperties: { - ...CustomSetupBase.type.modelProperties, - componentName: { - required: true, - serializedName: "typeProperties.componentName", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorePoint" + } + } } }, - licenseKey: { - serializedName: "typeProperties.licenseKey", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Composite", - className: "SecretBase" + name: "String" } } } } }; -export const LinkedIntegrationRuntimeType: msRest.CompositeMapper = { - serializedName: "LinkedIntegrationRuntimeType", +export const CreateSqlPoolRestorePointDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "authorizationType", - clientName: "authorizationType" - }, - uberParent: "LinkedIntegrationRuntimeType", - className: "LinkedIntegrationRuntimeType", + className: "CreateSqlPoolRestorePointDefinition", modelProperties: { - authorizationType: { + restorePointLabel: { + serializedName: "restorePointLabel", required: true, - serializedName: "authorizationType", type: { name: "String" } @@ -1244,60 +1170,53 @@ export const LinkedIntegrationRuntimeType: msRest.CompositeMapper = { } }; -export const SelfHostedIntegrationRuntime: msRest.CompositeMapper = { - serializedName: "SelfHosted", +export const ReplicationLinkListResult: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: IntegrationRuntime.type.polymorphicDiscriminator, - uberParent: "IntegrationRuntime", - className: "SelfHostedIntegrationRuntime", + className: "ReplicationLinkListResult", modelProperties: { - ...IntegrationRuntime.type.modelProperties, - linkedInfo: { - serializedName: "typeProperties.linkedInfo", + value: { + serializedName: "value", type: { - name: "Composite", - className: "LinkedIntegrationRuntimeType" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReplicationLink" + } + } } - } - }, - additionalProperties: IntegrationRuntime.type.additionalProperties - } -}; - -export const LinkedIntegrationRuntimeKeyAuthorization: msRest.CompositeMapper = { - serializedName: "Key", - type: { - name: "Composite", - polymorphicDiscriminator: LinkedIntegrationRuntimeType.type.polymorphicDiscriminator, - uberParent: "LinkedIntegrationRuntimeType", - className: "LinkedIntegrationRuntimeKeyAuthorization", - modelProperties: { - ...LinkedIntegrationRuntimeType.type.modelProperties, - key: { - required: true, - serializedName: "key", + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Composite", - className: "SecureString" + name: "String" } } } } }; -export const LinkedIntegrationRuntimeRbacAuthorization: msRest.CompositeMapper = { - serializedName: "RBAC", +export const MaintenanceWindowTimeRange: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: LinkedIntegrationRuntimeType.type.polymorphicDiscriminator, - uberParent: "LinkedIntegrationRuntimeType", - className: "LinkedIntegrationRuntimeRbacAuthorization", + className: "MaintenanceWindowTimeRange", modelProperties: { - ...LinkedIntegrationRuntimeType.type.modelProperties, - resourceId: { - required: true, - serializedName: "resourceId", + dayOfWeek: { + serializedName: "dayOfWeek", + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "String" + } + }, + duration: { + serializedName: "duration", type: { name: "String" } @@ -1306,687 +1225,602 @@ export const LinkedIntegrationRuntimeRbacAuthorization: msRest.CompositeMapper = } }; -export const IntegrationRuntimeStatus: msRest.CompositeMapper = { - serializedName: "IntegrationRuntimeStatus", +export const TransparentDataEncryptionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "IntegrationRuntimeStatus", - className: "IntegrationRuntimeStatus", + className: "TransparentDataEncryptionListResult", modelProperties: { - dataFactoryName: { + value: { + serializedName: "value", readOnly: true, - serializedName: "dataFactoryName", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TransparentDataEncryption" + } + } } }, - state: { + nextLink: { + serializedName: "nextLink", readOnly: true, - serializedName: "state", - type: { - name: "String" - } - }, - type: { - required: true, - serializedName: "type", type: { name: "String" } } - }, - additionalProperties: { - type: { - name: "Object" - } } } }; -export const ManagedIntegrationRuntimeError: msRest.CompositeMapper = { - serializedName: "ManagedIntegrationRuntimeError", +export const SqlPoolBlobAuditingPolicySqlPoolOperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedIntegrationRuntimeError", + className: "SqlPoolBlobAuditingPolicySqlPoolOperationListResult", modelProperties: { - time: { + value: { + serializedName: "value", readOnly: true, - serializedName: "time", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SqlPoolOperation" + } + } } }, - code: { + nextLink: { + serializedName: "nextLink", readOnly: true, - serializedName: "code", type: { name: "String" } - }, - parameters: { - readOnly: true, - serializedName: "parameters", + } + } + } +}; + +export const SqlPoolUsageListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SqlPoolUsageListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "SqlPoolUsage" } } } }, - message: { + nextLink: { + serializedName: "nextLink", readOnly: true, - serializedName: "message", type: { name: "String" } } - }, - additionalProperties: { - type: { - name: "Object" - } } } }; -export const ManagedIntegrationRuntimeNode: msRest.CompositeMapper = { - serializedName: "ManagedIntegrationRuntimeNode", +export const SqlPoolUsage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedIntegrationRuntimeNode", + className: "SqlPoolUsage", modelProperties: { - nodeId: { + name: { + serializedName: "name", readOnly: true, - serializedName: "nodeId", type: { name: "String" } }, - status: { + resourceName: { + serializedName: "resourceName", readOnly: true, - serializedName: "status", type: { name: "String" } }, - errors: { - serializedName: "errors", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedIntegrationRuntimeError", - additionalProperties: { - type: { - name: "Object" - } - } - } - } - } - } - }, - additionalProperties: { - type: { - name: "Object" - } - } - } -}; - -export const ManagedIntegrationRuntimeOperationResult: msRest.CompositeMapper = { - serializedName: "ManagedIntegrationRuntimeOperationResult", - type: { - name: "Composite", - className: "ManagedIntegrationRuntimeOperationResult", - modelProperties: { - type: { + displayName: { + serializedName: "displayName", readOnly: true, - serializedName: "type", type: { name: "String" } }, - startTime: { + currentValue: { + serializedName: "currentValue", readOnly: true, - serializedName: "startTime", type: { - name: "DateTime" + name: "Number" } }, - result: { + limit: { + serializedName: "limit", readOnly: true, - serializedName: "result", type: { - name: "String" + name: "Number" } }, - errorCode: { + unit: { + serializedName: "unit", readOnly: true, - serializedName: "errorCode", type: { name: "String" } }, - parameters: { + nextResetTime: { + serializedName: "nextResetTime", + readOnly: true, + type: { + name: "DateTime" + } + } + } + } +}; + +export const SensitivityLabelListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SensitivityLabelListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, - serializedName: "parameters", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "SensitivityLabel" } } } }, - activityId: { + nextLink: { + serializedName: "nextLink", readOnly: true, - serializedName: "activityId", type: { name: "String" } } - }, - additionalProperties: { - type: { - name: "Object" - } } } }; -export const ManagedIntegrationRuntimeStatus: msRest.CompositeMapper = { - serializedName: "Managed", +export const SensitivityLabelUpdateList: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: IntegrationRuntimeStatus.type.polymorphicDiscriminator, - uberParent: "IntegrationRuntimeStatus", - className: "ManagedIntegrationRuntimeStatus", + className: "SensitivityLabelUpdateList", modelProperties: { - ...IntegrationRuntimeStatus.type.modelProperties, - createTime: { - readOnly: true, - serializedName: "typeProperties.createTime", + operations: { + serializedName: "operations", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SensitivityLabelUpdate" + } + } } - }, - nodes: { - readOnly: true, - serializedName: "typeProperties.nodes", + } + } + } +}; + +export const RecommendedSensitivityLabelUpdateList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RecommendedSensitivityLabelUpdateList", + modelProperties: { + operations: { + serializedName: "operations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedIntegrationRuntimeNode", - additionalProperties: { - type: { - name: "Object" - } - } + className: "RecommendedSensitivityLabelUpdate" } } } - }, - otherErrors: { + } + } + } +}; + +export const SqlPoolSchemaListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SqlPoolSchemaListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, - serializedName: "typeProperties.otherErrors", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ManagedIntegrationRuntimeError", - additionalProperties: { - type: { - name: "Object" - } - } + className: "SqlPoolSchema" } } } }, - lastOperation: { + nextLink: { + serializedName: "nextLink", readOnly: true, - serializedName: "typeProperties.lastOperation", type: { - name: "Composite", - className: "ManagedIntegrationRuntimeOperationResult", - additionalProperties: { - type: { - name: "Object" - } - } + name: "String" } } - }, - additionalProperties: IntegrationRuntimeStatus.type.additionalProperties + } } }; -export const SelfHostedIntegrationRuntimeNode: msRest.CompositeMapper = { - serializedName: "SelfHostedIntegrationRuntimeNode", +export const SqlPoolTableListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SelfHostedIntegrationRuntimeNode", + className: "SqlPoolTableListResult", modelProperties: { - nodeName: { + value: { + serializedName: "value", readOnly: true, - serializedName: "nodeName", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SqlPoolTable" + } + } } }, - machineName: { + nextLink: { + serializedName: "nextLink", readOnly: true, - serializedName: "machineName", type: { name: "String" } - }, - hostServiceUri: { + } + } + } +}; + +export const SqlPoolColumnListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SqlPoolColumnListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, - serializedName: "hostServiceUri", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SqlPoolColumn" + } + } } }, - status: { + nextLink: { + serializedName: "nextLink", readOnly: true, - serializedName: "status", type: { name: "String" } - }, - capabilities: { + } + } + } +}; + +export const SqlPoolVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SqlPoolVulnerabilityAssessmentListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, - serializedName: "capabilities", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { - name: "String" + name: "Composite", + className: "SqlPoolVulnerabilityAssessment" } } } }, - versionStatus: { + nextLink: { + serializedName: "nextLink", readOnly: true, - serializedName: "versionStatus", type: { name: "String" } - }, - version: { - readOnly: true, - serializedName: "version", + } + } + } +}; + +export const VulnerabilityAssessmentRecurringScansProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties", + modelProperties: { + isEnabled: { + serializedName: "isEnabled", type: { - name: "String" + name: "Boolean" } }, - registerTime: { - readOnly: true, - serializedName: "registerTime", + emailSubscriptionAdmins: { + defaultValue: true, + serializedName: "emailSubscriptionAdmins", type: { - name: "DateTime" + name: "Boolean" } }, - lastConnectTime: { - readOnly: true, - serializedName: "lastConnectTime", + emails: { + serializedName: "emails", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - expiryTime: { + } + } + } +}; + +export const VulnerabilityAssessmentScanRecordListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VulnerabilityAssessmentScanRecordListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, - serializedName: "expiryTime", type: { - name: "DateTime" - } - }, - lastStartTime: { - readOnly: true, - serializedName: "lastStartTime", - type: { - name: "DateTime" - } - }, - lastStopTime: { - readOnly: true, - serializedName: "lastStopTime", - type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VulnerabilityAssessmentScanRecord" + } + } } }, - lastUpdateResult: { + nextLink: { + serializedName: "nextLink", readOnly: true, - serializedName: "lastUpdateResult", type: { name: "String" } - }, - lastStartUpdateTime: { - readOnly: true, - serializedName: "lastStartUpdateTime", - type: { - name: "DateTime" - } - }, - lastEndUpdateTime: { - readOnly: true, - serializedName: "lastEndUpdateTime", - type: { - name: "DateTime" - } - }, - isActiveDispatcher: { - readOnly: true, - serializedName: "isActiveDispatcher", - type: { - name: "Boolean" - } - }, - concurrentJobsLimit: { - readOnly: true, - serializedName: "concurrentJobsLimit", - type: { - name: "Number" - } - }, - maxConcurrentJobs: { - readOnly: true, - serializedName: "maxConcurrentJobs", - type: { - name: "Number" - } - } - }, - additionalProperties: { - type: { - name: "Object" } } } }; -export const LinkedIntegrationRuntime: msRest.CompositeMapper = { - serializedName: "LinkedIntegrationRuntime", +export const VulnerabilityAssessmentScanError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LinkedIntegrationRuntime", + className: "VulnerabilityAssessmentScanError", modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - subscriptionId: { - readOnly: true, - serializedName: "subscriptionId", - type: { - name: "String" - } - }, - dataFactoryName: { + code: { + serializedName: "code", readOnly: true, - serializedName: "dataFactoryName", type: { name: "String" } }, - dataFactoryLocation: { + message: { + serializedName: "message", readOnly: true, - serializedName: "dataFactoryLocation", type: { name: "String" } - }, - createTime: { - readOnly: true, - serializedName: "createTime", - type: { - name: "DateTime" - } } } } }; -export const SelfHostedIntegrationRuntimeStatus: msRest.CompositeMapper = { - serializedName: "SelfHosted", +export const ListSqlPoolSecurityAlertPolicies: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: IntegrationRuntimeStatus.type.polymorphicDiscriminator, - uberParent: "IntegrationRuntimeStatus", - className: "SelfHostedIntegrationRuntimeStatus", + className: "ListSqlPoolSecurityAlertPolicies", modelProperties: { - ...IntegrationRuntimeStatus.type.modelProperties, - createTime: { - readOnly: true, - serializedName: "typeProperties.createTime", - type: { - name: "DateTime" - } - }, - taskQueueId: { - readOnly: true, - serializedName: "typeProperties.taskQueueId", - type: { - name: "String" - } - }, - nodeCommunicationChannelEncryptionMode: { - readOnly: true, - serializedName: "typeProperties.nodeCommunicationChannelEncryptionMode", - type: { - name: "String" - } - }, - internalChannelEncryption: { - readOnly: true, - serializedName: "typeProperties.internalChannelEncryption", - type: { - name: "String" - } - }, - version: { + value: { + serializedName: "value", readOnly: true, - serializedName: "typeProperties.version", - type: { - name: "String" - } - }, - nodes: { - serializedName: "typeProperties.nodes", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SelfHostedIntegrationRuntimeNode", - additionalProperties: { - type: { - name: "Object" - } - } + className: "SqlPoolSecurityAlertPolicy" } } } }, - scheduledUpdateDate: { - readOnly: true, - serializedName: "typeProperties.scheduledUpdateDate", - type: { - name: "DateTime" - } - }, - updateDelayOffset: { - readOnly: true, - serializedName: "typeProperties.updateDelayOffset", - type: { - name: "String" - } - }, - localTimeZoneOffset: { + nextLink: { + serializedName: "nextLink", readOnly: true, - serializedName: "typeProperties.localTimeZoneOffset", type: { name: "String" } - }, - capabilities: { - readOnly: true, - serializedName: "typeProperties.capabilities", + } + } + } +}; + +export const SqlPoolVulnerabilityAssessmentRuleBaselineItem: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SqlPoolVulnerabilityAssessmentRuleBaselineItem", + modelProperties: { + result: { + serializedName: "result", + required: true, type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { name: "String" } } } - }, - serviceUrls: { + } + } + } +}; + +export const ExtendedSqlPoolBlobAuditingPolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExtendedSqlPoolBlobAuditingPolicyListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, - serializedName: "typeProperties.serviceUrls", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ExtendedSqlPoolBlobAuditingPolicy" } } } }, - autoUpdate: { - readOnly: true, - serializedName: "typeProperties.autoUpdate", - type: { - name: "String" - } - }, - versionStatus: { + nextLink: { + serializedName: "nextLink", readOnly: true, - serializedName: "typeProperties.versionStatus", type: { name: "String" } - }, - links: { - serializedName: "typeProperties.links", + } + } + } +}; + +export const DataMaskingRuleListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataMaskingRuleListResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "LinkedIntegrationRuntime" + className: "DataMaskingRule" } } } - }, - pushedVersion: { + } + } + } +}; + +export const SqlPoolBlobAuditingPolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SqlPoolBlobAuditingPolicyListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, - serializedName: "typeProperties.pushedVersion", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SqlPoolBlobAuditingPolicy" + } + } } }, - latestVersion: { + nextLink: { + serializedName: "nextLink", readOnly: true, - serializedName: "typeProperties.latestVersion", type: { name: "String" } - }, - autoUpdateETA: { - readOnly: true, - serializedName: "typeProperties.autoUpdateETA", - type: { - name: "DateTime" - } } - }, - additionalProperties: IntegrationRuntimeStatus.type.additionalProperties + } } }; -export const IntegrationRuntimeConnectionInfo: msRest.CompositeMapper = { - serializedName: "IntegrationRuntimeConnectionInfo", +export const WorkloadGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IntegrationRuntimeConnectionInfo", + className: "WorkloadGroupListResult", modelProperties: { - serviceToken: { + value: { + serializedName: "value", readOnly: true, - serializedName: "serviceToken", type: { - name: "String" - } - }, - identityCertThumbprint: { - readOnly: true, - serializedName: "identityCertThumbprint", - type: { - name: "String" - } - }, - hostServiceUri: { - readOnly: true, - serializedName: "hostServiceUri", - type: { - name: "String" - } - }, - version: { - readOnly: true, - serializedName: "version", - type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadGroup" + } + } } }, - publicKey: { + nextLink: { + serializedName: "nextLink", readOnly: true, - serializedName: "publicKey", type: { name: "String" } - }, - isIdentityCertExprired: { - readOnly: true, - serializedName: "isIdentityCertExprired", - type: { - name: "Boolean" - } - } - }, - additionalProperties: { - type: { - name: "Object" } } } }; -export const IntegrationRuntimeRegenerateKeyParameters: msRest.CompositeMapper = { - serializedName: "IntegrationRuntimeRegenerateKeyParameters", +export const WorkloadClassifierListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IntegrationRuntimeRegenerateKeyParameters", + className: "WorkloadClassifierListResult", modelProperties: { - keyName: { - serializedName: "keyName", + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadClassifier" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -1995,20 +1829,27 @@ export const IntegrationRuntimeRegenerateKeyParameters: msRest.CompositeMapper = } }; -export const IntegrationRuntimeAuthKeys: msRest.CompositeMapper = { - serializedName: "IntegrationRuntimeAuthKeys", +export const ServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IntegrationRuntimeAuthKeys", + className: "ServerBlobAuditingPolicyListResult", modelProperties: { - authKey1: { - serializedName: "authKey1", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerBlobAuditingPolicy" + } + } } }, - authKey2: { - serializedName: "authKey2", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -2017,119 +1858,85 @@ export const IntegrationRuntimeAuthKeys: msRest.CompositeMapper = { } }; -export const IntegrationRuntimeNodeMonitoringData: msRest.CompositeMapper = { - serializedName: "IntegrationRuntimeNodeMonitoringData", +export const ExtendedServerBlobAuditingPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IntegrationRuntimeNodeMonitoringData", + className: "ExtendedServerBlobAuditingPolicyListResult", modelProperties: { - nodeName: { - readOnly: true, - serializedName: "nodeName", - type: { - name: "String" - } - }, - availableMemoryInMB: { - readOnly: true, - serializedName: "availableMemoryInMB", - type: { - name: "Number" - } - }, - cpuUtilization: { - readOnly: true, - serializedName: "cpuUtilization", - type: { - name: "Number" - } - }, - concurrentJobsLimit: { - readOnly: true, - serializedName: "concurrentJobsLimit", - type: { - name: "Number" - } - }, - concurrentJobsRunning: { - readOnly: true, - serializedName: "concurrentJobsRunning", - type: { - name: "Number" - } - }, - maxConcurrentJobs: { - readOnly: true, - serializedName: "maxConcurrentJobs", - type: { - name: "Number" - } - }, - sentBytes: { + value: { + serializedName: "value", readOnly: true, - serializedName: "sentBytes", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExtendedServerBlobAuditingPolicy" + } + } } }, - receivedBytes: { + nextLink: { + serializedName: "nextLink", readOnly: true, - serializedName: "receivedBytes", type: { - name: "Number" + name: "String" } } - }, - additionalProperties: { - type: { - name: "Object" - } } } }; -export const IntegrationRuntimeMonitoringData: msRest.CompositeMapper = { - serializedName: "IntegrationRuntimeMonitoringData", +export const ServerSecurityAlertPolicyListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IntegrationRuntimeMonitoringData", + className: "ServerSecurityAlertPolicyListResult", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - nodes: { - serializedName: "nodes", + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "IntegrationRuntimeNodeMonitoringData", - additionalProperties: { - type: { - name: "Object" - } - } + className: "ServerSecurityAlertPolicy" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const IntegrationRuntimeNodeIpAddress: msRest.CompositeMapper = { - serializedName: "IntegrationRuntimeNodeIpAddress", +export const ServerVulnerabilityAssessmentListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IntegrationRuntimeNodeIpAddress", + className: "ServerVulnerabilityAssessmentListResult", modelProperties: { - ipAddress: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerVulnerabilityAssessment" + } + } + } + }, + nextLink: { + serializedName: "nextLink", readOnly: true, - serializedName: "ipAddress", type: { name: "String" } @@ -2138,38 +1945,27 @@ export const IntegrationRuntimeNodeIpAddress: msRest.CompositeMapper = { } }; -export const SsisObjectMetadata: msRest.CompositeMapper = { - serializedName: "SsisObjectMetadata", +export const EncryptionProtectorListResult: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "SsisObjectMetadata", - className: "SsisObjectMetadata", + className: "EncryptionProtectorListResult", modelProperties: { - id: { - serializedName: "id", - type: { - name: "Number" - } - }, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - description: { - serializedName: "description", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EncryptionProtector" + } + } } }, - type: { - required: true, - serializedName: "type", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -2178,26 +1974,27 @@ export const SsisObjectMetadata: msRest.CompositeMapper = { } }; -export const SsisObjectMetadataListResponse: msRest.CompositeMapper = { - serializedName: "SsisObjectMetadataListResponse", +export const ServerUsageListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SsisObjectMetadataListResponse", + className: "ServerUsageListResult", modelProperties: { value: { serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SsisObjectMetadata" + className: "ServerUsage" } } } }, nextLink: { serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -2206,219 +2003,112 @@ export const SsisObjectMetadataListResponse: msRest.CompositeMapper = { } }; -export const SsisFolder: msRest.CompositeMapper = { - serializedName: "Folder", - type: { - name: "Composite", - polymorphicDiscriminator: SsisObjectMetadata.type.polymorphicDiscriminator, - uberParent: "SsisObjectMetadata", - className: "SsisFolder", - modelProperties: { - ...SsisObjectMetadata.type.modelProperties - } - } -}; - -export const SsisEnvironmentReference: msRest.CompositeMapper = { - serializedName: "SsisEnvironmentReference", +export const ServerUsage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SsisEnvironmentReference", + className: "ServerUsage", modelProperties: { - id: { - serializedName: "id", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Number" + name: "String" } }, - environmentFolderName: { - serializedName: "environmentFolderName", - type: { - name: "String" - } - }, - environmentName: { - serializedName: "environmentName", - type: { - name: "String" - } - }, - referenceType: { - serializedName: "referenceType", - type: { - name: "String" - } - } - } - } -}; - -export const SsisParameter: msRest.CompositeMapper = { - serializedName: "SsisParameter", - type: { - name: "Composite", - className: "SsisParameter", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "Number" - } - }, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - description: { - serializedName: "description", - type: { - name: "String" - } - }, - dataType: { - serializedName: "dataType", + resourceName: { + serializedName: "resourceName", + readOnly: true, type: { name: "String" } }, - required: { - serializedName: "required", - type: { - name: "Boolean" - } - }, - sensitive: { - serializedName: "sensitive", - type: { - name: "Boolean" - } - }, - designDefaultValue: { - serializedName: "designDefaultValue", + displayName: { + serializedName: "displayName", + readOnly: true, type: { name: "String" } }, - defaultValue: { - serializedName: "defaultValue", + currentValue: { + serializedName: "currentValue", + readOnly: true, type: { - name: "String" + name: "Number" } }, - sensitiveDefaultValue: { - serializedName: "sensitiveDefaultValue", + limit: { + serializedName: "limit", + readOnly: true, type: { - name: "String" + name: "Number" } }, - valueType: { - serializedName: "valueType", + unit: { + serializedName: "unit", + readOnly: true, type: { name: "String" } }, - valueSet: { - serializedName: "valueSet", - type: { - name: "Boolean" - } - }, - variable: { - serializedName: "variable", + nextResetTime: { + serializedName: "nextResetTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } } } } }; -export const SsisProject: msRest.CompositeMapper = { - serializedName: "Project", +export const RecoverableSqlPoolListResult: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: SsisObjectMetadata.type.polymorphicDiscriminator, - uberParent: "SsisObjectMetadata", - className: "SsisProject", + className: "RecoverableSqlPoolListResult", modelProperties: { - ...SsisObjectMetadata.type.modelProperties, - folderId: { - serializedName: "folderId", - type: { - name: "Number" - } - }, - version: { - serializedName: "version", - type: { - name: "Number" - } - }, - environmentRefs: { - serializedName: "environmentRefs", + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SsisEnvironmentReference" + className: "RecoverableSqlPool" } } } }, - parameters: { - serializedName: "parameters", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SsisParameter" - } - } + name: "String" } } } } }; -export const SsisPackage: msRest.CompositeMapper = { - serializedName: "Package", +export const WorkspaceInfoListResult: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: SsisObjectMetadata.type.polymorphicDiscriminator, - uberParent: "SsisObjectMetadata", - className: "SsisPackage", + className: "WorkspaceInfoListResult", modelProperties: { - ...SsisObjectMetadata.type.modelProperties, - folderId: { - serializedName: "folderId", - type: { - name: "Number" - } - }, - projectVersion: { - serializedName: "projectVersion", - type: { - name: "Number" - } - }, - projectId: { - serializedName: "projectId", + nextLink: { + serializedName: "nextLink", type: { - name: "Number" + name: "String" } }, - parameters: { - serializedName: "parameters", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SsisParameter" + className: "Workspace" } } } @@ -2427,50 +2117,46 @@ export const SsisPackage: msRest.CompositeMapper = { } }; -export const SsisVariable: msRest.CompositeMapper = { - serializedName: "SsisVariable", +export const DataLakeStorageAccountDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SsisVariable", + className: "DataLakeStorageAccountDetails", modelProperties: { - id: { - serializedName: "id", - type: { - name: "Number" - } - }, - name: { - serializedName: "name", + accountUrl: { + serializedName: "accountUrl", type: { name: "String" } }, - description: { - serializedName: "description", + filesystem: { + serializedName: "filesystem", type: { name: "String" } }, - dataType: { - serializedName: "dataType", + resourceId: { + serializedName: "resourceId", type: { name: "String" } }, - sensitive: { - serializedName: "sensitive", + createManagedPrivateEndpoint: { + serializedName: "createManagedPrivateEndpoint", type: { name: "Boolean" } - }, - value: { - serializedName: "value", - type: { - name: "String" - } - }, - sensitiveValue: { - serializedName: "sensitiveValue", + } + } + } +}; + +export const VirtualNetworkProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualNetworkProfile", + modelProperties: { + computeSubnetId: { + serializedName: "computeSubnetId", type: { name: "String" } @@ -2479,91 +2165,72 @@ export const SsisVariable: msRest.CompositeMapper = { } }; -export const SsisEnvironment: msRest.CompositeMapper = { - serializedName: "Environment", +export const EncryptionDetails: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: SsisObjectMetadata.type.polymorphicDiscriminator, - uberParent: "SsisObjectMetadata", - className: "SsisEnvironment", + className: "EncryptionDetails", modelProperties: { - ...SsisObjectMetadata.type.modelProperties, - folderId: { - serializedName: "folderId", + doubleEncryptionEnabled: { + serializedName: "doubleEncryptionEnabled", + readOnly: true, type: { - name: "Number" + name: "Boolean" } }, - variables: { - serializedName: "variables", + cmk: { + serializedName: "cmk", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SsisVariable" - } - } + name: "Composite", + className: "CustomerManagedKeyDetails" } } } } }; -export const UpdateIntegrationRuntimeRequest: msRest.CompositeMapper = { - serializedName: "UpdateIntegrationRuntimeRequest", +export const CustomerManagedKeyDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateIntegrationRuntimeRequest", + className: "CustomerManagedKeyDetails", modelProperties: { - autoUpdate: { - serializedName: "autoUpdate", + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } }, - updateDelayOffset: { - serializedName: "updateDelayOffset", + key: { + serializedName: "key", type: { - name: "String" + name: "Composite", + className: "WorkspaceKeyDetails" + } + }, + kekIdentity: { + serializedName: "kekIdentity", + type: { + name: "Composite", + className: "KekIdentityProperties" } } } } }; -export const IntegrationRuntimeResource: msRest.CompositeMapper = { - serializedName: "IntegrationRuntimeResource", +export const WorkspaceKeyDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IntegrationRuntimeResource", + className: "WorkspaceKeyDetails", modelProperties: { - ...SubResource.type.modelProperties, - properties: { - required: true, - serializedName: "properties", - type: { - name: "Composite", - className: "IntegrationRuntime", - additionalProperties: { - type: { - name: "Object" - } - } + name: { + serializedName: "name", + type: { + name: "String" } - } - } - } -}; - -export const GetSsisObjectMetadataRequest: msRest.CompositeMapper = { - serializedName: "GetSsisObjectMetadataRequest", - type: { - name: "Composite", - className: "GetSsisObjectMetadataRequest", - modelProperties: { - metadataPath: { - serializedName: "metadataPath", + }, + keyVaultUrl: { + serializedName: "keyVaultUrl", type: { name: "String" } @@ -2572,47 +2239,51 @@ export const GetSsisObjectMetadataRequest: msRest.CompositeMapper = { } }; -export const UpdateIntegrationRuntimeNodeRequest: msRest.CompositeMapper = { - serializedName: "UpdateIntegrationRuntimeNodeRequest", +export const KekIdentityProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateIntegrationRuntimeNodeRequest", + className: "KekIdentityProperties", modelProperties: { - concurrentJobsLimit: { - serializedName: "concurrentJobsLimit", - constraints: { - InclusiveMinimum: 1 - }, + userAssignedIdentity: { + serializedName: "userAssignedIdentity", type: { - name: "Number" + name: "String" + } + }, + useSystemAssignedIdentity: { + serializedName: "useSystemAssignedIdentity", + type: { + name: "any" } } } } }; -export const IntegrationRuntimeStatusResponse: msRest.CompositeMapper = { - serializedName: "IntegrationRuntimeStatusResponse", +export const ManagedVirtualNetworkSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IntegrationRuntimeStatusResponse", + className: "ManagedVirtualNetworkSettings", modelProperties: { - name: { - readOnly: true, - serializedName: "name", + preventDataExfiltration: { + serializedName: "preventDataExfiltration", type: { - name: "String" + name: "Boolean" } }, - properties: { - required: true, - serializedName: "properties", + linkedAccessCheckOnTargetResource: { + serializedName: "linkedAccessCheckOnTargetResource", type: { - name: "Composite", - className: "IntegrationRuntimeStatus", - additionalProperties: { + name: "Boolean" + } + }, + allowedAadTenantIdsForLinking: { + serializedName: "allowedAadTenantIdsForLinking", + type: { + name: "Sequence", + element: { type: { - name: "Object" + name: "String" } } } @@ -2621,111 +2292,91 @@ export const IntegrationRuntimeStatusResponse: msRest.CompositeMapper = { } }; -export const SsisObjectMetadataStatusResponse: msRest.CompositeMapper = { - serializedName: "SsisObjectMetadataStatusResponse", +export const WorkspaceRepositoryConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SsisObjectMetadataStatusResponse", + className: "WorkspaceRepositoryConfiguration", modelProperties: { - status: { - serializedName: "status", + type: { + serializedName: "type", type: { name: "String" } }, - name: { - serializedName: "name", + hostName: { + serializedName: "hostName", type: { name: "String" } }, - properties: { - serializedName: "properties", + accountName: { + serializedName: "accountName", type: { name: "String" } }, - error: { - serializedName: "error", + projectName: { + serializedName: "projectName", type: { name: "String" } - } - } - } -}; - -export const Key: msRest.CompositeMapper = { - serializedName: "Key", - type: { - name: "Composite", - className: "Key", - modelProperties: { - ...ProxyResource.type.modelProperties, - isActiveCMK: { - serializedName: "properties.isActiveCMK", - type: { - name: "Boolean" - } }, - keyVaultUrl: { - serializedName: "properties.keyVaultUrl", - type: { - name: "String" - } - } - } - } -}; - -export const LibraryResource: msRest.CompositeMapper = { - serializedName: "LibraryResource", - type: { - name: "Composite", - className: "LibraryResource", - modelProperties: { - ...SubResource.type.modelProperties, - libraryResourceName: { - serializedName: "properties.name", + repositoryName: { + serializedName: "repositoryName", type: { name: "String" } }, - path: { - serializedName: "properties.path", + collaborationBranch: { + serializedName: "collaborationBranch", type: { name: "String" } }, - containerName: { - serializedName: "properties.containerName", + rootFolder: { + serializedName: "rootFolder", type: { name: "String" } }, - uploadedTimestamp: { - readOnly: true, - serializedName: "properties.uploadedTimestamp", + lastCommitId: { + serializedName: "lastCommitId", type: { - name: "DateTime" + name: "String" } }, - libraryResourceType: { - serializedName: "properties.type", + tenantId: { + serializedName: "tenantId", type: { - name: "String" + name: "Uuid" } - }, - provisioningStatus: { - readOnly: true, - serializedName: "properties.provisioningStatus", + } + } + } +}; + +export const PurviewConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PurviewConfiguration", + modelProperties: { + purviewResourceId: { + serializedName: "purviewResourceId", type: { name: "String" } - }, - creatorId: { - readOnly: true, - serializedName: "properties.creatorId", + } + } + } +}; + +export const CspWorkspaceAdminProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CspWorkspaceAdminProperties", + modelProperties: { + initialWorkspaceAdminObjectId: { + serializedName: "initialWorkspaceAdminObjectId", type: { name: "String" } @@ -2734,142 +2385,139 @@ export const LibraryResource: msRest.CompositeMapper = { } }; -export const AvailableRpOperationDisplayInfo: msRest.CompositeMapper = { - serializedName: "AvailableRpOperationDisplayInfo", +export const ManagedIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailableRpOperationDisplayInfo", + className: "ManagedIdentity", modelProperties: { - description: { - serializedName: "description", + principalId: { + serializedName: "principalId", + readOnly: true, type: { name: "String" } }, - resource: { - serializedName: "resource", + tenantId: { + serializedName: "tenantId", + readOnly: true, type: { - name: "String" + name: "Uuid" } }, - provider: { - serializedName: "provider", + type: { + serializedName: "type", type: { - name: "String" + name: "Enum", + allowedValues: [ + "None", + "SystemAssigned", + "SystemAssigned,UserAssigned" + ] } }, - operation: { - serializedName: "operation", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "UserAssignedManagedIdentity" + } + } } } } } }; -export const OperationMetaMetricDimensionSpecification: msRest.CompositeMapper = { - serializedName: "OperationMetaMetricDimensionSpecification", +export const UserAssignedManagedIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationMetaMetricDimensionSpecification", + className: "UserAssignedManagedIdentity", modelProperties: { - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - name: { - serializedName: "name", + clientId: { + serializedName: "clientId", + readOnly: true, + nullable: true, type: { - name: "String" + name: "Uuid" } }, - toBeExportedForShoebox: { - serializedName: "toBeExportedForShoebox", + principalId: { + serializedName: "principalId", + readOnly: true, + nullable: true, type: { - name: "Boolean" + name: "Uuid" } } } } }; -export const OperationMetaMetricSpecification: msRest.CompositeMapper = { - serializedName: "OperationMetaMetricSpecification", +export const WorkspacePatchInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationMetaMetricSpecification", + className: "WorkspacePatchInfo", modelProperties: { - sourceMdmNamespace: { - serializedName: "sourceMdmNamespace", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - displayName: { - serializedName: "displayName", + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "ManagedIdentity" } }, - name: { - serializedName: "name", + sqlAdministratorLoginPassword: { + serializedName: "properties.sqlAdministratorLoginPassword", type: { name: "String" } }, - aggregationType: { - serializedName: "aggregationType", + managedVirtualNetworkSettings: { + serializedName: "properties.managedVirtualNetworkSettings", type: { - name: "String" + name: "Composite", + className: "ManagedVirtualNetworkSettings" } }, - displayDescription: { - serializedName: "displayDescription", + workspaceRepositoryConfiguration: { + serializedName: "properties.workspaceRepositoryConfiguration", type: { - name: "String" + name: "Composite", + className: "WorkspaceRepositoryConfiguration" } }, - sourceMdmAccount: { - serializedName: "sourceMdmAccount", + purviewConfiguration: { + serializedName: "properties.purviewConfiguration", type: { - name: "String" + name: "Composite", + className: "PurviewConfiguration" } }, - enableRegionalMdmAccount: { - serializedName: "enableRegionalMdmAccount", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - unit: { - serializedName: "unit", - type: { - name: "String" - } - }, - dimensions: { - serializedName: "dimensions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationMetaMetricDimensionSpecification" - } - } - } - }, - supportsInstanceLevelAggregation: { - serializedName: "supportsInstanceLevelAggregation", + encryption: { + serializedName: "properties.encryption", type: { - name: "Boolean" + name: "Composite", + className: "EncryptionDetails" } }, - metricFilterPattern: { - serializedName: "metricFilterPattern", + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", type: { name: "String" } @@ -2878,26 +2526,21 @@ export const OperationMetaMetricSpecification: msRest.CompositeMapper = { } }; -export const OperationMetaLogSpecification: msRest.CompositeMapper = { - serializedName: "OperationMetaLogSpecification", +export const ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationMetaLogSpecification", + className: + "ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity", modelProperties: { - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - blobDuration: { - serializedName: "blobDuration", + desiredState: { + serializedName: "desiredState", type: { name: "String" } }, - name: { - serializedName: "name", + actualState: { + serializedName: "actualState", + readOnly: true, type: { name: "String" } @@ -2906,162 +2549,210 @@ export const OperationMetaLogSpecification: msRest.CompositeMapper = { } }; -export const OperationMetaServiceSpecification: msRest.CompositeMapper = { - serializedName: "OperationMetaServiceSpecification", +export const RestorableDroppedSqlPoolListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationMetaServiceSpecification", + className: "RestorableDroppedSqlPoolListResult", modelProperties: { - metricSpecifications: { - serializedName: "metricSpecifications", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "OperationMetaMetricSpecification" + className: "RestorableDroppedSqlPool" } } } + } + } + } +}; + +export const AutoScaleProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutoScaleProperties", + modelProperties: { + minNodeCount: { + serializedName: "minNodeCount", + type: { + name: "Number" + } }, - logSpecifications: { - serializedName: "logSpecifications", + enabled: { + serializedName: "enabled", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationMetaLogSpecification" - } - } + name: "Boolean" + } + }, + maxNodeCount: { + serializedName: "maxNodeCount", + type: { + name: "Number" } } } } }; -export const AvailableRpOperation: msRest.CompositeMapper = { - serializedName: "AvailableRpOperation", +export const AutoPauseProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailableRpOperation", + className: "AutoPauseProperties", modelProperties: { - display: { - serializedName: "display", + delayInMinutes: { + serializedName: "delayInMinutes", type: { - name: "Composite", - className: "AvailableRpOperationDisplayInfo" + name: "Number" } }, - isDataAction: { - serializedName: "isDataAction", + enabled: { + serializedName: "enabled", type: { - name: "String" + name: "Boolean" } - }, - name: { - serializedName: "name", + } + } + } +}; + +export const DynamicExecutorAllocation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DynamicExecutorAllocation", + modelProperties: { + enabled: { + serializedName: "enabled", type: { - name: "String" + name: "Boolean" } }, - serviceSpecification: { - serializedName: "properties.serviceSpecification", + minExecutors: { + serializedName: "minExecutors", type: { - name: "Composite", - className: "OperationMetaServiceSpecification" + name: "Number" } }, - origin: { - serializedName: "origin", + maxExecutors: { + serializedName: "maxExecutors", type: { - name: "String" + name: "Number" } } } } }; -export const OperationResource: msRest.CompositeMapper = { - serializedName: "OperationResource", +export const LibraryRequirements: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationResource", + className: "LibraryRequirements", modelProperties: { - id: { - serializedName: "id", + time: { + serializedName: "time", + readOnly: true, + type: { + name: "DateTime" + } + }, + content: { + serializedName: "content", type: { name: "String" } }, + filename: { + serializedName: "filename", + type: { + name: "String" + } + } + } + } +}; + +export const LibraryInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LibraryInfo", + modelProperties: { name: { serializedName: "name", type: { name: "String" } }, - status: { - serializedName: "status", + path: { + serializedName: "path", type: { name: "String" } }, - properties: { - serializedName: "properties", + containerName: { + serializedName: "containerName", type: { - name: "Object" + name: "String" } }, - error: { - serializedName: "error", + uploadedTimestamp: { + serializedName: "uploadedTimestamp", type: { - name: "Composite", - className: "ErrorDetail" + name: "DateTime" } }, - startTime: { - serializedName: "startTime", + type: { + serializedName: "type", type: { - name: "DateTime" + name: "String" } }, - endTime: { - serializedName: "endTime", + provisioningStatus: { + serializedName: "provisioningStatus", + readOnly: true, type: { - name: "DateTime" + name: "String" } }, - percentComplete: { - serializedName: "percentComplete", + creatorId: { + serializedName: "creatorId", + readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { - serializedName: "PrivateLinkServiceConnectionState", +export const SparkConfigProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkServiceConnectionState", + className: "SparkConfigProperties", modelProperties: { - status: { - serializedName: "status", + time: { + serializedName: "time", + readOnly: true, + type: { + name: "DateTime" + } + }, + content: { + serializedName: "content", type: { name: "String" } }, - description: { - serializedName: "description", + filename: { + serializedName: "filename", type: { name: "String" } }, - actionsRequired: { - readOnly: true, - serializedName: "actionsRequired", + configurationType: { + serializedName: "configurationType", type: { name: "String" } @@ -3070,145 +2761,119 @@ export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { } }; -export const PrivateEndpoint: msRest.CompositeMapper = { - serializedName: "PrivateEndpoint", +export const BigDataPoolPatchInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpoint", + className: "BigDataPoolPatchInfo", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const PrivateEndpointConnection: msRest.CompositeMapper = { - serializedName: "PrivateEndpointConnection", +export const BigDataPoolResourceInfoListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "BigDataPoolResourceInfoListResult", modelProperties: { - ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpoint" - } - }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" + name: "String" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BigDataPoolResourceInfo" + } + } } } } } }; -export const PrivateLinkResourceProperties: msRest.CompositeMapper = { - serializedName: "PrivateLinkResourceProperties", +export const LibraryListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResourceProperties", + className: "LibraryListResponse", modelProperties: { - groupId: { - readOnly: true, - serializedName: "groupId", - type: { - name: "String" - } - }, - requiredMembers: { - readOnly: true, - serializedName: "requiredMembers", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "LibraryResource" } } } }, - requiredZoneNames: { - readOnly: true, - serializedName: "requiredZoneNames", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const PrivateLinkResource: msRest.CompositeMapper = { - serializedName: "PrivateLinkResource", +export const UpdateIntegrationRuntimeRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResource", + className: "UpdateIntegrationRuntimeRequest", modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - readOnly: true, - serializedName: "properties", + autoUpdate: { + serializedName: "autoUpdate", type: { - name: "Composite", - className: "PrivateLinkResourceProperties" + name: "String" + } + }, + updateDelayOffset: { + serializedName: "updateDelayOffset", + type: { + name: "String" } } } } }; -export const PrivateEndpointConnectionForPrivateLinkHubBasic: msRest.CompositeMapper = { - serializedName: "PrivateEndpointConnectionForPrivateLinkHubBasic", +export const IntegrationRuntime: coreClient.CompositeMapper = { + serializedName: "IntegrationRuntime", type: { name: "Composite", - className: "PrivateEndpointConnectionForPrivateLinkHubBasic", + className: "IntegrationRuntime", + uberParent: "IntegrationRuntime", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, modelProperties: { - id: { - readOnly: true, - serializedName: "id", + type: { + serializedName: "type", + required: true, type: { name: "String" } }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpoint" - } - }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" - } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + description: { + serializedName: "description", type: { name: "String" } @@ -3217,72 +2882,56 @@ export const PrivateEndpointConnectionForPrivateLinkHubBasic: msRest.CompositeMa } }; -export const PrivateLinkHub: msRest.CompositeMapper = { - serializedName: "PrivateLinkHub", +export const IntegrationRuntimeNodeIpAddress: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkHub", + className: "IntegrationRuntimeNodeIpAddress", modelProperties: { - ...TrackedResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - privateEndpointConnections: { + ipAddress: { + serializedName: "ipAddress", readOnly: true, - serializedName: "properties.privateEndpointConnections", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnectionForPrivateLinkHubBasic" - } - } + name: "String" } } } } }; -export const PrivateLinkHubPatchInfo: msRest.CompositeMapper = { - serializedName: "PrivateLinkHubPatchInfo", +export const GetSsisObjectMetadataRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkHubPatchInfo", + className: "GetSsisObjectMetadataRequest", modelProperties: { - tags: { - serializedName: "tags", + metadataPath: { + serializedName: "metadataPath", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const PrivateEndpointConnectionForPrivateLinkHub: msRest.CompositeMapper = { - serializedName: "PrivateEndpointConnectionForPrivateLinkHub", +export const SsisObjectMetadataListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionForPrivateLinkHub", + className: "SsisObjectMetadataListResponse", modelProperties: { - ...PrivateEndpointConnectionForPrivateLinkHubBasic.type.modelProperties, - name: { - serializedName: "name", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SsisObjectMetadata" + } + } } }, - type: { - serializedName: "type", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -3291,373 +2940,395 @@ export const PrivateEndpointConnectionForPrivateLinkHub: msRest.CompositeMapper } }; -export const Sku: msRest.CompositeMapper = { - serializedName: "Sku", +export const SsisObjectMetadata: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Sku", + className: "SsisObjectMetadata", + uberParent: "SsisObjectMetadata", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, modelProperties: { - tier: { - serializedName: "tier", + type: { + serializedName: "type", + required: true, type: { name: "String" } }, + id: { + serializedName: "id", + type: { + name: "Number" + } + }, name: { serializedName: "name", type: { name: "String" } }, - capacity: { - serializedName: "capacity", + description: { + serializedName: "description", type: { - name: "Number" + name: "String" } } } } }; -export const SqlPool: msRest.CompositeMapper = { - serializedName: "SqlPool", +export const SelfHostedIntegrationRuntimeNode: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlPool", + className: "SelfHostedIntegrationRuntimeNode", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", + nodeName: { + serializedName: "nodeName", + readOnly: true, type: { - name: "Composite", - className: "Sku" + name: "String" } }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", + machineName: { + serializedName: "machineName", + readOnly: true, type: { - name: "Number" + name: "String" } }, - collation: { - serializedName: "properties.collation", + hostServiceUri: { + serializedName: "hostServiceUri", + readOnly: true, type: { name: "String" } }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", + capabilities: { + serializedName: "capabilities", + readOnly: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", + versionStatus: { + serializedName: "versionStatus", + readOnly: true, type: { name: "String" } }, - status: { - serializedName: "properties.status", + version: { + serializedName: "version", + readOnly: true, type: { name: "String" } }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", + registerTime: { + serializedName: "registerTime", + readOnly: true, type: { name: "DateTime" } }, - createMode: { - serializedName: "properties.createMode", + lastConnectTime: { + serializedName: "lastConnectTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - creationDate: { - serializedName: "properties.creationDate", + expiryTime: { + serializedName: "expiryTime", + readOnly: true, type: { name: "DateTime" } }, - storageAccountType: { - serializedName: "properties.storageAccountType", + lastStartTime: { + serializedName: "lastStartTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const SqlPoolPatchInfo: msRest.CompositeMapper = { - serializedName: "SqlPoolPatchInfo", - type: { - name: "Composite", - className: "SqlPoolPatchInfo", - modelProperties: { - tags: { - serializedName: "tags", + }, + lastStopTime: { + serializedName: "lastStopTime", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "DateTime" } }, - location: { - serializedName: "location", + lastUpdateResult: { + serializedName: "lastUpdateResult", + readOnly: true, type: { name: "String" } }, - sku: { - serializedName: "sku", + lastStartUpdateTime: { + serializedName: "lastStartUpdateTime", + readOnly: true, type: { - name: "Composite", - className: "Sku" + name: "DateTime" } }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", + lastEndUpdateTime: { + serializedName: "lastEndUpdateTime", + readOnly: true, type: { - name: "Number" + name: "DateTime" } }, - collation: { - serializedName: "properties.collation", - type: { - name: "String" - } - }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", - type: { - name: "String" - } - }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - status: { - serializedName: "properties.status", - type: { - name: "String" - } - }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", + isActiveDispatcher: { + serializedName: "isActiveDispatcher", + readOnly: true, type: { - name: "DateTime" + name: "Boolean" } }, - createMode: { - serializedName: "properties.createMode", + concurrentJobsLimit: { + serializedName: "concurrentJobsLimit", + readOnly: true, type: { - name: "String" + name: "Number" } }, - creationDate: { - serializedName: "properties.creationDate", + maxConcurrentJobs: { + serializedName: "maxConcurrentJobs", + readOnly: true, type: { - name: "DateTime" + name: "Number" } - }, - storageAccountType: { - serializedName: "properties.storageAccountType", + } + } + } +}; + +export const UpdateIntegrationRuntimeNodeRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateIntegrationRuntimeNodeRequest", + modelProperties: { + concurrentJobsLimit: { + constraints: { + InclusiveMinimum: 1 + }, + serializedName: "concurrentJobsLimit", type: { - name: "String" + name: "Number" } } } } }; -export const MetadataSyncConfig: msRest.CompositeMapper = { - serializedName: "MetadataSyncConfig", +export const IntegrationRuntimeListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetadataSyncConfig", + className: "IntegrationRuntimeListResponse", modelProperties: { - enabled: { - serializedName: "properties.enabled", + value: { + serializedName: "value", + required: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IntegrationRuntimeResource" + } + } } }, - syncIntervalInMinutes: { - serializedName: "properties.syncIntervalInMinutes", + nextLink: { + serializedName: "nextLink", type: { - name: "Number" + name: "String" } } } } }; -export const GeoBackupPolicy: msRest.CompositeMapper = { - serializedName: "GeoBackupPolicy", +export const IntegrationRuntimeConnectionInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GeoBackupPolicy", + className: "IntegrationRuntimeConnectionInfo", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - required: true, - serializedName: "properties.state", + serviceToken: { + serializedName: "serviceToken", + readOnly: true, type: { - name: "Enum", - allowedValues: [ - "Disabled", - "Enabled" - ] + name: "String" } }, - storageType: { + identityCertThumbprint: { + serializedName: "identityCertThumbprint", readOnly: true, - serializedName: "properties.storageType", type: { name: "String" } }, - kind: { + hostServiceUri: { + serializedName: "hostServiceUri", readOnly: true, - serializedName: "kind", type: { name: "String" } }, - location: { + version: { + serializedName: "version", + readOnly: true, + type: { + name: "String" + } + }, + publicKey: { + serializedName: "publicKey", readOnly: true, - serializedName: "location", type: { name: "String" } + }, + isIdentityCertExprired: { + serializedName: "isIdentityCertExprired", + readOnly: true, + type: { + name: "Boolean" + } } } } }; -export const QueryMetric: msRest.CompositeMapper = { - serializedName: "QueryMetric", +export const IntegrationRuntimeStatusResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryMetric", + className: "IntegrationRuntimeStatusResponse", modelProperties: { name: { - readOnly: true, serializedName: "name", + readOnly: true, type: { name: "String" } }, - displayName: { - readOnly: true, - serializedName: "displayName", + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "IntegrationRuntimeStatus" + } + } + } + } +}; + +export const IntegrationRuntimeStatus: coreClient.CompositeMapper = { + serializedName: "IntegrationRuntimeStatus", + type: { + name: "Composite", + className: "IntegrationRuntimeStatus", + uberParent: "IntegrationRuntimeStatus", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + modelProperties: { + type: { + serializedName: "type", + required: true, type: { name: "String" } }, - unit: { + dataFactoryName: { + serializedName: "dataFactoryName", readOnly: true, - serializedName: "unit", type: { - name: "Enum", - allowedValues: [ - "percentage", - "KB", - "microseconds" - ] + name: "String" } }, - value: { + state: { + serializedName: "state", readOnly: true, - serializedName: "value", type: { - name: "Number" + name: "String" } } } } }; -export const QueryInterval: msRest.CompositeMapper = { - serializedName: "QueryInterval", +export const IntegrationRuntimeRegenerateKeyParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryInterval", + className: "IntegrationRuntimeRegenerateKeyParameters", modelProperties: { - intervalStartTime: { - readOnly: true, - serializedName: "intervalStartTime", + keyName: { + serializedName: "keyName", type: { - name: "DateTime" + name: "String" } - }, - executionCount: { - readOnly: true, - serializedName: "executionCount", + } + } + } +}; + +export const IntegrationRuntimeAuthKeys: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IntegrationRuntimeAuthKeys", + modelProperties: { + authKey1: { + serializedName: "authKey1", type: { - name: "Number" + name: "String" } }, - metrics: { - readOnly: true, - serializedName: "metrics", + authKey2: { + serializedName: "authKey2", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "QueryMetric" - } - } + name: "String" } } } } }; -export const QueryStatistic: msRest.CompositeMapper = { - serializedName: "QueryStatistic", +export const IntegrationRuntimeMonitoringData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryStatistic", + className: "IntegrationRuntimeMonitoringData", modelProperties: { - queryId: { - readOnly: true, - serializedName: "queryId", + name: { + serializedName: "name", type: { name: "String" } }, - intervals: { - readOnly: true, - serializedName: "intervals", + nodes: { + serializedName: "nodes", type: { name: "Sequence", element: { type: { name: "Composite", - className: "QueryInterval" + className: "IntegrationRuntimeNodeMonitoringData" } } } @@ -3666,113 +3337,119 @@ export const QueryStatistic: msRest.CompositeMapper = { } }; -export const TopQueries: msRest.CompositeMapper = { - serializedName: "TopQueries", +export const IntegrationRuntimeNodeMonitoringData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopQueries", + className: "IntegrationRuntimeNodeMonitoringData", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - aggregationFunction: { + nodeName: { + serializedName: "nodeName", readOnly: true, - serializedName: "aggregationFunction", type: { - name: "Enum", - allowedValues: [ - "min", - "max", - "avg", - "sum" - ] + name: "String" } }, - executionType: { + availableMemoryInMB: { + serializedName: "availableMemoryInMB", readOnly: true, - serializedName: "executionType", type: { - name: "Enum", - allowedValues: [ - "any", - "regular", - "irregular", - "aborted", - "exception" - ] + name: "Number" } }, - intervalType: { + cpuUtilization: { + serializedName: "cpuUtilization", readOnly: true, - serializedName: "intervalType", type: { - name: "String" + name: "Number" } }, - numberOfTopQueries: { + concurrentJobsLimit: { + serializedName: "concurrentJobsLimit", readOnly: true, - serializedName: "numberOfTopQueries", type: { name: "Number" } }, - observationStartTime: { - readOnly: true, - serializedName: "observationStartTime", + concurrentJobsRunning: { + serializedName: "concurrentJobsRunning", + readOnly: true, type: { - name: "DateTime" + name: "Number" } }, - observationEndTime: { + maxConcurrentJobs: { + serializedName: "maxConcurrentJobs", readOnly: true, - serializedName: "observationEndTime", type: { - name: "DateTime" + name: "Number" } }, - observedMetric: { + sentBytes: { + serializedName: "sentBytes", readOnly: true, - serializedName: "observedMetric", type: { - name: "Enum", - allowedValues: [ - "cpu", - "io", - "logio", - "duration", - "executionCount" - ] + name: "Number" } }, - queries: { + receivedBytes: { + serializedName: "receivedBytes", readOnly: true, - serializedName: "queries", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "QueryStatistic" - } - } + name: "Number" } } } } }; -export const TopQueriesListResult: msRest.CompositeMapper = { - serializedName: "TopQueriesListResult", +export const SsisObjectMetadataStatusResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopQueriesListResult", + className: "SsisObjectMetadataStatusResponse", + modelProperties: { + status: { + serializedName: "status", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "String" + } + }, + error: { + serializedName: "error", + type: { + name: "String" + } + } + } + } +}; + +export const IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse", modelProperties: { value: { - required: true, serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TopQueries" + className: + "IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint" } } } @@ -3781,66 +3458,96 @@ export const TopQueriesListResult: msRest.CompositeMapper = { } }; -export const DataWarehouseUserActivities: msRest.CompositeMapper = { - serializedName: "DataWarehouseUserActivities", +export const IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataWarehouseUserActivities", + className: "IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint", modelProperties: { - ...ProxyResource.type.modelProperties, - activeQueriesCount: { - readOnly: true, - serializedName: "properties.activeQueriesCount", + category: { + serializedName: "category", type: { - name: "Number" + name: "String" + } + }, + endpoints: { + serializedName: "endpoints", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IntegrationRuntimeOutboundNetworkDependenciesEndpoint" + } + } } } } } }; -export const RestorePoint: msRest.CompositeMapper = { - serializedName: "RestorePoint", +export const IntegrationRuntimeOutboundNetworkDependenciesEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorePoint", + className: "IntegrationRuntimeOutboundNetworkDependenciesEndpoint", modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - readOnly: true, - serializedName: "location", + domainName: { + serializedName: "domainName", type: { name: "String" } }, - restorePointType: { - readOnly: true, - serializedName: "properties.restorePointType", + endpointDetails: { + serializedName: "endpointDetails", type: { - name: "Enum", - allowedValues: [ - "CONTINUOUS", - "DISCRETE" - ] + name: "Sequence", + element: { + type: { + name: "Composite", + className: + "IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails" + } + } } - }, - earliestRestoreDate: { - readOnly: true, - serializedName: "properties.earliestRestoreDate", + } + } + } +}; + +export const IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails", + modelProperties: { + port: { + serializedName: "port", type: { - name: "DateTime" + name: "Number" } - }, - restorePointCreationDate: { - readOnly: true, - serializedName: "properties.restorePointCreationDate", + } + } + } +}; + +export const SparkConfigurationListResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SparkConfigurationListResponse", + modelProperties: { + value: { + serializedName: "value", + required: true, type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SparkConfigurationResource" + } + } } }, - restorePointLabel: { - readOnly: true, - serializedName: "properties.restorePointLabel", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -3849,100 +3556,94 @@ export const RestorePoint: msRest.CompositeMapper = { } }; -export const ReplicationLink: msRest.CompositeMapper = { - serializedName: "ReplicationLink", +export const OperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ReplicationLink", + className: "OperationListResult", modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - isTerminationAllowed: { - readOnly: true, - serializedName: "properties.isTerminationAllowed", + value: { + serializedName: "value", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } } }, - replicationMode: { + nextLink: { + serializedName: "nextLink", readOnly: true, - serializedName: "properties.replicationMode", type: { name: "String" } - }, - partnerServer: { - readOnly: true, - serializedName: "properties.partnerServer", + } + } + } +}; + +export const Operation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - partnerDatabase: { - readOnly: true, - serializedName: "properties.partnerDatabase", + display: { + serializedName: "display", type: { - name: "String" + name: "Composite", + className: "OperationDisplay" } }, - partnerLocation: { - readOnly: true, - serializedName: "properties.partnerLocation", + origin: { + serializedName: "origin", type: { name: "String" } }, - role: { - readOnly: true, - serializedName: "properties.role", + properties: { + serializedName: "properties", type: { - name: "Enum", - allowedValues: [ - "Primary", - "Secondary", - "NonReadableSecondary", - "Source", - "Copy" - ] + name: "Dictionary", + value: { type: { name: "any" } } } - }, - partnerRole: { - readOnly: true, - serializedName: "properties.partnerRole", + } + } + } +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", type: { - name: "Enum", - allowedValues: [ - "Primary", - "Secondary", - "NonReadableSecondary", - "Source", - "Copy" - ] + name: "String" } }, - startTime: { - readOnly: true, - serializedName: "properties.startTime", + operation: { + serializedName: "operation", type: { - name: "DateTime" + name: "String" } }, - percentComplete: { - readOnly: true, - serializedName: "properties.percentComplete", + resource: { + serializedName: "resource", type: { - name: "Number" + name: "String" } }, - replicationState: { - readOnly: true, - serializedName: "properties.replicationState", + description: { + serializedName: "description", type: { name: "String" } @@ -3951,108 +3652,193 @@ export const ReplicationLink: msRest.CompositeMapper = { } }; -export const MaintenanceWindowTimeRange: msRest.CompositeMapper = { - serializedName: "MaintenanceWindowTimeRange", +export const SkuDescriptionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaintenanceWindowTimeRange", + className: "SkuDescriptionList", modelProperties: { - dayOfWeek: { - serializedName: "dayOfWeek", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SkuDescription" + } + } + } + } + } + } +}; + +export const SkuDescription: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SkuDescription", + modelProperties: { + resourceType: { + serializedName: "resourceType", + readOnly: true, + type: { + name: "String" + } }, - startTime: { - serializedName: "startTime", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - duration: { - serializedName: "duration", + size: { + serializedName: "size", + readOnly: true, type: { name: "String" } + }, + locations: { + serializedName: "locations", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + locationInfo: { + serializedName: "locationInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SkuLocationInfoItem" + } + } + } + }, + restrictions: { + serializedName: "restrictions", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } + } } } } }; -export const MaintenanceWindowOptions: msRest.CompositeMapper = { - serializedName: "MaintenanceWindowOptions", +export const SkuLocationInfoItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaintenanceWindowOptions", + className: "SkuLocationInfoItem", modelProperties: { - ...ProxyResource.type.modelProperties, - isEnabled: { - serializedName: "properties.isEnabled", + location: { + serializedName: "location", + required: true, type: { - name: "Boolean" + name: "String" } }, - maintenanceWindowCycles: { - serializedName: "properties.maintenanceWindowCycles", + zones: { + serializedName: "zones", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "MaintenanceWindowTimeRange" + name: "String" } } } - }, - minDurationInMinutes: { - serializedName: "properties.minDurationInMinutes", + } + } + } +}; + +export const KustoPoolCheckNameRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KustoPoolCheckNameRequest", + modelProperties: { + name: { + serializedName: "name", + required: true, type: { - name: "Number" + name: "String" } }, - defaultDurationInMinutes: { - serializedName: "properties.defaultDurationInMinutes", + type: { + defaultValue: "Microsoft.Synapse/workspaces/kustoPools", + isConstant: true, + serializedName: "type", type: { - name: "Number" + name: "String" + } + } + } + } +}; + +export const CheckNameResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CheckNameResult", + modelProperties: { + nameAvailable: { + serializedName: "nameAvailable", + type: { + name: "Boolean" } }, - minCycles: { - serializedName: "properties.minCycles", + name: { + serializedName: "name", type: { - name: "Number" + name: "String" } }, - timeGranularityInMinutes: { - serializedName: "properties.timeGranularityInMinutes", + message: { + serializedName: "message", type: { - name: "Number" + name: "String" } }, - allowMultipleMaintenanceWindowsPerCycle: { - serializedName: "properties.allowMultipleMaintenanceWindowsPerCycle", + reason: { + serializedName: "reason", type: { - name: "Boolean" + name: "String" } } } } }; -export const MaintenanceWindows: msRest.CompositeMapper = { - serializedName: "MaintenanceWindows", +export const KustoPoolListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MaintenanceWindows", + className: "KustoPoolListResult", modelProperties: { - ...ProxyResource.type.modelProperties, - timeRanges: { - serializedName: "properties.timeRanges", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "MaintenanceWindowTimeRange" + className: "KustoPool" } } } @@ -4061,466 +3847,556 @@ export const MaintenanceWindows: msRest.CompositeMapper = { } }; -export const TransparentDataEncryption: msRest.CompositeMapper = { - serializedName: "TransparentDataEncryption", +export const AzureSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TransparentDataEncryption", + className: "AzureSku", modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - readOnly: true, - serializedName: "location", + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - status: { - serializedName: "properties.status", + capacity: { + serializedName: "capacity", type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] + name: "Number" + } + }, + size: { + serializedName: "size", + required: true, + type: { + name: "String" } } } } }; -export const SqlPoolBlobAuditingPolicy: msRest.CompositeMapper = { - serializedName: "SqlPoolBlobAuditingPolicy", +export const OptimizedAutoscale: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlPoolBlobAuditingPolicy", + className: "OptimizedAutoscale", modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - readOnly: true, - serializedName: "kind", - type: { - name: "String" - } - }, - state: { + version: { + serializedName: "version", required: true, - serializedName: "properties.state", type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] + name: "Number" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + isEnabled: { + serializedName: "isEnabled", + required: true, type: { - name: "String" + name: "Boolean" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + minimum: { + serializedName: "minimum", + required: true, type: { - name: "String" + name: "Number" } }, - retentionDays: { - serializedName: "properties.retentionDays", + maximum: { + serializedName: "maximum", + required: true, type: { name: "Number" } - }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + } + } + } +}; + +export const LanguageExtensionsList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LanguageExtensionsList", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "LanguageExtension" } } } - }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", - type: { - name: "Uuid" - } - }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", - type: { - name: "Boolean" - } - }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", - type: { - name: "Boolean" - } } } } }; -export const SqlPoolOperation: msRest.CompositeMapper = { - serializedName: "SqlPoolOperation", +export const LanguageExtension: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlPoolOperation", + className: "LanguageExtension", modelProperties: { - ...ProxyResource.type.modelProperties, - databaseName: { - readOnly: true, - serializedName: "properties.databaseName", + languageExtensionName: { + serializedName: "languageExtensionName", type: { name: "String" } - }, - operation: { - readOnly: true, - serializedName: "properties.operation", + } + } + } +}; + +export const SystemData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - operationFriendlyName: { - readOnly: true, - serializedName: "properties.operationFriendlyName", + createdByType: { + serializedName: "createdByType", type: { name: "String" } }, - percentComplete: { - readOnly: true, - serializedName: "properties.percentComplete", + createdAt: { + serializedName: "createdAt", type: { - name: "Number" + name: "DateTime" } }, - serverName: { - readOnly: true, - serializedName: "properties.serverName", + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - startTime: { - readOnly: true, - serializedName: "properties.startTime", - type: { - name: "DateTime" - } - }, - state: { - readOnly: true, - serializedName: "properties.state", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { name: "String" } }, - errorCode: { - readOnly: true, - serializedName: "properties.errorCode", + lastModifiedAt: { + serializedName: "lastModifiedAt", type: { - name: "Number" - } - }, - errorDescription: { - readOnly: true, - serializedName: "properties.errorDescription", - type: { - name: "String" - } - }, - errorSeverity: { - readOnly: true, - serializedName: "properties.errorSeverity", - type: { - name: "Number" + name: "DateTime" } - }, - isUserError: { - readOnly: true, - serializedName: "properties.isUserError", + } + } + } +}; + +export const ListResourceSkusResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListResourceSkusResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureResourceSku" + } + } } - }, - estimatedCompletionTime: { - readOnly: true, - serializedName: "properties.estimatedCompletionTime", + } + } + } +}; + +export const AzureResourceSku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureResourceSku", + modelProperties: { + resourceType: { + serializedName: "resourceType", type: { - name: "DateTime" + name: "String" } }, - description: { - readOnly: true, - serializedName: "properties.description", + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "AzureSku" } }, - isCancellable: { - readOnly: true, - serializedName: "properties.isCancellable", + capacity: { + serializedName: "capacity", type: { - name: "Boolean" + name: "Composite", + className: "AzureCapacity" } } } } }; -export const SqlPoolUsage: msRest.CompositeMapper = { - serializedName: "SqlPoolUsage", +export const AzureCapacity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlPoolUsage", + className: "AzureCapacity", modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - resourceName: { - readOnly: true, - serializedName: "resourceName", + scaleType: { + serializedName: "scaleType", + required: true, type: { name: "String" } }, - displayName: { - readOnly: true, - serializedName: "displayName", + minimum: { + serializedName: "minimum", + required: true, type: { - name: "String" + name: "Number" } }, - currentValue: { - readOnly: true, - serializedName: "currentValue", + maximum: { + serializedName: "maximum", + required: true, type: { name: "Number" } }, - limit: { - readOnly: true, - serializedName: "limit", + default: { + serializedName: "default", + required: true, type: { name: "Number" } - }, - unit: { - readOnly: true, - serializedName: "unit", + } + } + } +}; + +export const DatabaseCheckNameRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabaseCheckNameRequest", + modelProperties: { + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - nextResetTime: { - readOnly: true, - serializedName: "nextResetTime", + type: { + serializedName: "type", + required: true, type: { - name: "DateTime" + name: "Enum", + allowedValues: [ + "Microsoft.Synapse/workspaces/kustoPools/databases", + "Microsoft.Synapse/workspaces/kustoPools/attachedDatabaseConfigurations" + ] } } } } }; -export const SensitivityLabel: msRest.CompositeMapper = { - serializedName: "SensitivityLabel", +export const FollowerDatabaseListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SensitivityLabel", + className: "FollowerDatabaseListResult", modelProperties: { - ...ProxyResource.type.modelProperties, - schemaName: { - readOnly: true, - serializedName: "properties.schemaName", + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FollowerDatabaseDefinition" + } + } + } + } + } + } +}; + +export const FollowerDatabaseDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FollowerDatabaseDefinition", + modelProperties: { + kustoPoolResourceId: { + serializedName: "clusterResourceId", + required: true, type: { name: "String" } }, - tableName: { - readOnly: true, - serializedName: "properties.tableName", + attachedDatabaseConfigurationName: { + serializedName: "attachedDatabaseConfigurationName", + required: true, type: { name: "String" } }, - columnName: { + databaseName: { + serializedName: "databaseName", readOnly: true, - serializedName: "properties.columnName", type: { name: "String" } - }, - labelName: { - serializedName: "properties.labelName", + } + } + } +}; + +export const AttachedDatabaseConfigurationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AttachedDatabaseConfigurationListResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AttachedDatabaseConfiguration" + } + } } - }, - labelId: { - serializedName: "properties.labelId", + } + } + } +}; + +export const TableLevelSharingProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TableLevelSharingProperties", + modelProperties: { + tablesToInclude: { + serializedName: "tablesToInclude", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - informationType: { - serializedName: "properties.informationType", + tablesToExclude: { + serializedName: "tablesToExclude", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - informationTypeId: { - serializedName: "properties.informationTypeId", + externalTablesToInclude: { + serializedName: "externalTablesToInclude", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - isDisabled: { - readOnly: true, - serializedName: "properties.isDisabled", + externalTablesToExclude: { + serializedName: "externalTablesToExclude", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - rank: { - serializedName: "properties.rank", + materializedViewsToInclude: { + serializedName: "materializedViewsToInclude", type: { - name: "Enum", - allowedValues: [ - "None", - "Low", - "Medium", - "High", - "Critical" - ] + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - managedBy: { - readOnly: true, - serializedName: "managedBy", + materializedViewsToExclude: { + serializedName: "materializedViewsToExclude", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const SqlPoolSchema: msRest.CompositeMapper = { - serializedName: "SqlPoolSchema", +export const DatabaseListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlPoolSchema", + className: "DatabaseListResult", modelProperties: { - ...ProxyResource.type.modelProperties + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Database" + } + } + } + } } } }; -export const SqlPoolTable: msRest.CompositeMapper = { - serializedName: "SqlPoolTable", +export const DataConnectionCheckNameRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlPoolTable", + className: "DataConnectionCheckNameRequest", modelProperties: { - ...ProxyResource.type.modelProperties - } - } -}; - -export const SqlPoolColumn: msRest.CompositeMapper = { - serializedName: "SqlPoolColumn", - type: { - name: "Composite", - className: "SqlPoolColumn", - modelProperties: { - ...ProxyResource.type.modelProperties, - columnType: { - serializedName: "properties.columnType", + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - isComputed: { - readOnly: true, - serializedName: "properties.isComputed", + type: { + defaultValue: + "Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections", + isConstant: true, + serializedName: "type", type: { - name: "Boolean" + name: "String" } } } } }; -export const SqlPoolConnectionPolicy: msRest.CompositeMapper = { - serializedName: "SqlPoolConnectionPolicy", +export const DataConnectionValidation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlPoolConnectionPolicy", + className: "DataConnectionValidation", modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - readOnly: true, - serializedName: "kind", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - securityEnabledAccess: { - serializedName: "properties.securityEnabledAccess", + dataConnectionName: { + serializedName: "dataConnectionName", type: { name: "String" } }, - proxyDnsName: { - serializedName: "properties.proxyDnsName", + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "DataConnection" } - }, - proxyPort: { - serializedName: "properties.proxyPort", + } + } + } +}; + +export const DataConnectionValidationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataConnectionValidationListResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataConnectionValidationResult" + } + } } - }, - visibility: { - serializedName: "properties.visibility", + } + } + } +}; + +export const DataConnectionValidationResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataConnectionValidationResult", + modelProperties: { + errorMessage: { + serializedName: "errorMessage", type: { name: "String" } - }, - useServerDefault: { - serializedName: "properties.useServerDefault", + } + } + } +}; + +export const DataConnectionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataConnectionListResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataConnection" + } + } } - }, - redirectionState: { - serializedName: "properties.redirectionState", + } + } + } +}; + +export const ClusterPrincipalAssignmentCheckNameRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterPrincipalAssignmentCheckNameRequest", + modelProperties: { + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - state: { - serializedName: "properties.state", + type: { + defaultValue: + "Microsoft.Synapse/workspaces/kustoPools/principalAssignments", + isConstant: true, + serializedName: "type", type: { name: "String" } @@ -4529,32 +4405,19 @@ export const SqlPoolConnectionPolicy: msRest.CompositeMapper = { } }; -export const VulnerabilityAssessmentRecurringScansProperties: msRest.CompositeMapper = { - serializedName: "VulnerabilityAssessmentRecurringScansProperties", +export const ClusterPrincipalAssignmentListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties", + className: "ClusterPrincipalAssignmentListResult", modelProperties: { - isEnabled: { - serializedName: "isEnabled", - type: { - name: "Boolean" - } - }, - emailSubscriptionAdmins: { - serializedName: "emailSubscriptionAdmins", - defaultValue: true, - type: { - name: "Boolean" - } - }, - emails: { - serializedName: "emails", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ClusterPrincipalAssignment" } } } @@ -4563,253 +4426,183 @@ export const VulnerabilityAssessmentRecurringScansProperties: msRest.CompositeMa } }; -export const SqlPoolVulnerabilityAssessment: msRest.CompositeMapper = { - serializedName: "SqlPoolVulnerabilityAssessment", +export const DatabasePrincipalAssignmentCheckNameRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlPoolVulnerabilityAssessment", + className: "DatabasePrincipalAssignmentCheckNameRequest", modelProperties: { - ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", - type: { - name: "String" - } - }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", + name: { + serializedName: "name", + required: true, type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + type: { + defaultValue: + "Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments", + isConstant: true, + serializedName: "type", type: { name: "String" } - }, - recurringScans: { - serializedName: "properties.recurringScans", - type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" - } } } } }; -export const VulnerabilityAssessmentScanError: msRest.CompositeMapper = { - serializedName: "VulnerabilityAssessmentScanError", +export const DatabasePrincipalAssignmentListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VulnerabilityAssessmentScanError", + className: "DatabasePrincipalAssignmentListResult", modelProperties: { - code: { - readOnly: true, - serializedName: "code", - type: { - name: "String" - } - }, - message: { - readOnly: true, - serializedName: "message", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabasePrincipalAssignment" + } + } } } } } }; -export const VulnerabilityAssessmentScanRecord: msRest.CompositeMapper = { - serializedName: "VulnerabilityAssessmentScanRecord", +export const TopQueries: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VulnerabilityAssessmentScanRecord", + className: "TopQueries", modelProperties: { - ...ProxyResource.type.modelProperties, - scanId: { + aggregationFunction: { + serializedName: "aggregationFunction", readOnly: true, - serializedName: "properties.scanId", type: { - name: "String" + name: "Enum", + allowedValues: ["min", "max", "avg", "sum"] } }, - triggerType: { + executionType: { + serializedName: "executionType", readOnly: true, - serializedName: "properties.triggerType", type: { - name: "String" + name: "Enum", + allowedValues: ["any", "regular", "irregular", "aborted", "exception"] } }, - state: { + intervalType: { + serializedName: "intervalType", readOnly: true, - serializedName: "properties.state", type: { name: "String" } }, - startTime: { + numberOfTopQueries: { + serializedName: "numberOfTopQueries", readOnly: true, - serializedName: "properties.startTime", type: { - name: "DateTime" + name: "Number" } }, - endTime: { + observationStartTime: { + serializedName: "observationStartTime", readOnly: true, - serializedName: "properties.endTime", type: { name: "DateTime" } }, - errors: { + observationEndTime: { + serializedName: "observationEndTime", readOnly: true, - serializedName: "properties.errors", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VulnerabilityAssessmentScanError" - } - } + name: "DateTime" } }, - storageContainerPath: { + observedMetric: { + serializedName: "observedMetric", readOnly: true, - serializedName: "properties.storageContainerPath", type: { - name: "String" + name: "Enum", + allowedValues: ["cpu", "io", "logio", "duration", "executionCount"] } }, - numberOfFailedSecurityChecks: { + queries: { + serializedName: "queries", readOnly: true, - serializedName: "properties.numberOfFailedSecurityChecks", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QueryStatistic" + } + } } } } } }; -export const SqlPoolSecurityAlertPolicy: msRest.CompositeMapper = { - serializedName: "SqlPoolSecurityAlertPolicy", +export const QueryStatistic: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlPoolSecurityAlertPolicy", + className: "QueryStatistic", modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - required: true, - serializedName: "properties.state", + queryId: { + serializedName: "queryId", + readOnly: true, type: { - name: "Enum", - allowedValues: [ - "New", - "Enabled", - "Disabled" - ] + name: "String" } }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + intervals: { + serializedName: "intervals", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "QueryInterval" } } } - }, - emailAddresses: { - serializedName: "properties.emailAddresses", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", - type: { - name: "Boolean" - } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", - type: { - name: "String" - } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", - type: { - name: "String" - } - }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - creationTime: { - readOnly: true, - serializedName: "properties.creationTime", - type: { - name: "DateTime" - } } } } }; -export const SqlPoolVulnerabilityAssessmentRuleBaselineItem: msRest.CompositeMapper = { - serializedName: "SqlPoolVulnerabilityAssessmentRuleBaselineItem", +export const QueryInterval: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlPoolVulnerabilityAssessmentRuleBaselineItem", + className: "QueryInterval", modelProperties: { - result: { - required: true, - serializedName: "result", + intervalStartTime: { + serializedName: "intervalStartTime", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "DateTime" } - } - } - } -}; - -export const SqlPoolVulnerabilityAssessmentRuleBaseline: msRest.CompositeMapper = { - serializedName: "SqlPoolVulnerabilityAssessmentRuleBaseline", - type: { - name: "Composite", - className: "SqlPoolVulnerabilityAssessmentRuleBaseline", - modelProperties: { - ...ProxyResource.type.modelProperties, - baselineResults: { - required: true, - serializedName: "properties.baselineResults", + }, + executionCount: { + serializedName: "executionCount", + readOnly: true, + type: { + name: "Number" + } + }, + metrics: { + serializedName: "metrics", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SqlPoolVulnerabilityAssessmentRuleBaselineItem" + className: "QueryMetric" } } } @@ -4818,148 +4611,188 @@ export const SqlPoolVulnerabilityAssessmentRuleBaseline: msRest.CompositeMapper } }; -export const SqlPoolVulnerabilityAssessmentScansExport: msRest.CompositeMapper = { - serializedName: "SqlPoolVulnerabilityAssessmentScansExport", +export const QueryMetric: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlPoolVulnerabilityAssessmentScansExport", + className: "QueryMetric", modelProperties: { - ...ProxyResource.type.modelProperties, - exportedReportLocation: { + name: { + serializedName: "name", readOnly: true, - serializedName: "properties.exportedReportLocation", type: { name: "String" } - } - } - } -}; - -export const ResourceMoveDefinition: msRest.CompositeMapper = { - serializedName: "ResourceMoveDefinition", - type: { - name: "Composite", - className: "ResourceMoveDefinition", - modelProperties: { - id: { - required: true, - serializedName: "id", + }, + displayName: { + serializedName: "displayName", + readOnly: true, type: { name: "String" } + }, + unit: { + serializedName: "unit", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["percentage", "KB", "microseconds"] + } + }, + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Number" + } } } } }; -export const CreateSqlPoolRestorePointDefinition: msRest.CompositeMapper = { - serializedName: "CreateSqlPoolRestorePointDefinition", +export const TopQueriesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CreateSqlPoolRestorePointDefinition", + className: "TopQueriesListResult", modelProperties: { - restorePointLabel: { + value: { + serializedName: "value", required: true, - serializedName: "restorePointLabel", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TopQueries" + } + } } } } } }; -export const WorkloadGroup: msRest.CompositeMapper = { - serializedName: "WorkloadGroup", +export const IntegrationRuntimeComputeProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkloadGroup", + className: "IntegrationRuntimeComputeProperties", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - ...ProxyResource.type.modelProperties, - minResourcePercent: { - required: true, - serializedName: "properties.minResourcePercent", + location: { + serializedName: "location", type: { - name: "Number" + name: "String" } }, - maxResourcePercent: { - required: true, - serializedName: "properties.maxResourcePercent", + nodeSize: { + serializedName: "nodeSize", type: { - name: "Number" + name: "String" } }, - minResourcePercentPerRequest: { - required: true, - serializedName: "properties.minResourcePercentPerRequest", + numberOfNodes: { + constraints: { + InclusiveMinimum: 1 + }, + serializedName: "numberOfNodes", type: { name: "Number" } }, - maxResourcePercentPerRequest: { - serializedName: "properties.maxResourcePercentPerRequest", + maxParallelExecutionsPerNode: { + constraints: { + InclusiveMinimum: 1 + }, + serializedName: "maxParallelExecutionsPerNode", type: { name: "Number" } }, - importance: { - serializedName: "properties.importance", + dataFlowProperties: { + serializedName: "dataFlowProperties", type: { - name: "String" + name: "Composite", + className: "IntegrationRuntimeDataFlowProperties" } }, - queryExecutionTimeout: { - serializedName: "properties.queryExecutionTimeout", + vNetProperties: { + serializedName: "vNetProperties", type: { - name: "Number" + name: "Composite", + className: "IntegrationRuntimeVNetProperties" } } } } }; -export const WorkloadClassifier: msRest.CompositeMapper = { - serializedName: "WorkloadClassifier", +export const IntegrationRuntimeDataFlowProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkloadClassifier", + className: "IntegrationRuntimeDataFlowProperties", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - ...ProxyResource.type.modelProperties, - memberName: { - required: true, - serializedName: "properties.memberName", + computeType: { + serializedName: "computeType", type: { name: "String" } }, - label: { - serializedName: "properties.label", + coreCount: { + serializedName: "coreCount", type: { - name: "String" + name: "Number" } }, - context: { - serializedName: "properties.context", + timeToLive: { + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "timeToLive", type: { - name: "String" + name: "Number" } }, - startTime: { - serializedName: "properties.startTime", + cleanup: { + serializedName: "cleanup", + type: { + name: "Boolean" + } + } + } + } +}; + +export const IntegrationRuntimeVNetProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IntegrationRuntimeVNetProperties", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + vNetId: { + serializedName: "vNetId", type: { name: "String" } }, - endTime: { - serializedName: "properties.endTime", + subnet: { + serializedName: "subnet", type: { name: "String" } }, - importance: { - serializedName: "properties.importance", + publicIPs: { + serializedName: "publicIPs", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + subnetId: { + serializedName: "subnetId", type: { name: "String" } @@ -4968,256 +4801,306 @@ export const WorkloadClassifier: msRest.CompositeMapper = { } }; -export const DataMaskingPolicy: msRest.CompositeMapper = { - serializedName: "DataMaskingPolicy", +export const IntegrationRuntimeSsisProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataMaskingPolicy", + className: "IntegrationRuntimeSsisProperties", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - ...ProxyResource.type.modelProperties, - dataMaskingState: { - required: true, - serializedName: "properties.dataMaskingState", + catalogInfo: { + serializedName: "catalogInfo", type: { - name: "Enum", - allowedValues: [ - "Disabled", - "Enabled" - ] + name: "Composite", + className: "IntegrationRuntimeSsisCatalogInfo" } }, - exemptPrincipals: { - serializedName: "properties.exemptPrincipals", + licenseType: { + serializedName: "licenseType", type: { name: "String" } }, - applicationPrincipals: { - readOnly: true, - serializedName: "properties.applicationPrincipals", + customSetupScriptProperties: { + serializedName: "customSetupScriptProperties", type: { - name: "String" + name: "Composite", + className: "IntegrationRuntimeCustomSetupScriptProperties" } }, - maskingLevel: { - readOnly: true, - serializedName: "properties.maskingLevel", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", + dataProxyProperties: { + serializedName: "dataProxyProperties", type: { - name: "String" + name: "Composite", + className: "IntegrationRuntimeDataProxyProperties" } }, - kind: { - readOnly: true, - serializedName: "kind", + edition: { + serializedName: "edition", type: { name: "String" } }, - managedBy: { - readOnly: true, - serializedName: "managedBy", + expressCustomSetupProperties: { + serializedName: "expressCustomSetupProperties", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CustomSetupBase" + } + } } } } } }; -export const ExtendedSqlPoolBlobAuditingPolicy: msRest.CompositeMapper = { - serializedName: "ExtendedSqlPoolBlobAuditingPolicy", +export const IntegrationRuntimeSsisCatalogInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedSqlPoolBlobAuditingPolicy", + className: "IntegrationRuntimeSsisCatalogInfo", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - ...ProxyResource.type.modelProperties, - predicateExpression: { - serializedName: "properties.predicateExpression", + catalogServerEndpoint: { + serializedName: "catalogServerEndpoint", type: { name: "String" } }, - state: { - required: true, - serializedName: "properties.state", + catalogAdminUserName: { + constraints: { + MaxLength: 128, + MinLength: 1 + }, + serializedName: "catalogAdminUserName", type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + catalogAdminPassword: { + serializedName: "catalogAdminPassword", type: { - name: "String" + name: "Composite", + className: "SecureString" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + catalogPricingTier: { + serializedName: "catalogPricingTier", type: { name: "String" } - }, - retentionDays: { - serializedName: "properties.retentionDays", + } + } + } +}; + +export const SecretBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecretBase", + uberParent: "SecretBase", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + modelProperties: { + type: { + serializedName: "type", + required: true, type: { - name: "Number" + name: "String" } - }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + } + } + } +}; + +export const IntegrationRuntimeCustomSetupScriptProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IntegrationRuntimeCustomSetupScriptProperties", + modelProperties: { + blobContainerUri: { + serializedName: "blobContainerUri", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + sasToken: { + serializedName: "sasToken", type: { - name: "Uuid" + name: "Composite", + className: "SecureString" } - }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + } + } + } +}; + +export const IntegrationRuntimeDataProxyProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IntegrationRuntimeDataProxyProperties", + modelProperties: { + connectVia: { + serializedName: "connectVia", type: { - name: "Boolean" + name: "Composite", + className: "EntityReference" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + stagingLinkedService: { + serializedName: "stagingLinkedService", type: { - name: "Boolean" + name: "Composite", + className: "EntityReference" } }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", + path: { + serializedName: "path", type: { - name: "Number" + name: "String" } } } } }; -export const DataMaskingRule: msRest.CompositeMapper = { - serializedName: "DataMaskingRule", +export const EntityReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataMaskingRule", + className: "EntityReference", modelProperties: { - ...ProxyResource.type.modelProperties, - dataMaskingRuleId: { - readOnly: true, - serializedName: "properties.id", + type: { + serializedName: "type", type: { name: "String" } }, - aliasName: { - serializedName: "properties.aliasName", + referenceName: { + serializedName: "referenceName", type: { name: "String" } - }, - ruleState: { - serializedName: "properties.ruleState", + } + } + } +}; + +export const CustomSetupBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomSetupBase", + uberParent: "CustomSetupBase", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + modelProperties: { + type: { + serializedName: "type", + required: true, type: { - name: "Enum", - allowedValues: [ - "Disabled", - "Enabled" - ] + name: "String" } - }, - schemaName: { + } + } + } +}; + +export const LinkedIntegrationRuntimeType: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LinkedIntegrationRuntimeType", + uberParent: "LinkedIntegrationRuntimeType", + polymorphicDiscriminator: { + serializedName: "authorizationType", + clientName: "authorizationType" + }, + modelProperties: { + authorizationType: { + serializedName: "authorizationType", required: true, - serializedName: "properties.schemaName", type: { name: "String" } - }, - tableName: { - required: true, - serializedName: "properties.tableName", + } + } + } +}; + +export const ManagedIntegrationRuntimeNode: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedIntegrationRuntimeNode", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + nodeId: { + serializedName: "nodeId", + readOnly: true, type: { name: "String" } }, - columnName: { - required: true, - serializedName: "properties.columnName", + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } }, - maskingFunction: { - required: true, - serializedName: "properties.maskingFunction", + errors: { + serializedName: "errors", type: { - name: "Enum", - allowedValues: [ - "Default", - "CCN", - "Email", - "Number", - "SSN", - "Text" - ] + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedIntegrationRuntimeError" + } + } } - }, - numberFrom: { - serializedName: "properties.numberFrom", + } + } + } +}; + +export const ManagedIntegrationRuntimeError: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedIntegrationRuntimeError", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + time: { + serializedName: "time", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - numberTo: { - serializedName: "properties.numberTo", + code: { + serializedName: "code", + readOnly: true, 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: { + parameters: { + serializedName: "parameters", readOnly: true, - serializedName: "location", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - kind: { + message: { + serializedName: "message", readOnly: true, - serializedName: "kind", type: { name: "String" } @@ -5226,463 +5109,423 @@ export const DataMaskingRule: msRest.CompositeMapper = { } }; -export const SensitivityLabelUpdate: msRest.CompositeMapper = { - serializedName: "SensitivityLabelUpdate", +export const ManagedIntegrationRuntimeOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SensitivityLabelUpdate", + className: "ManagedIntegrationRuntimeOperationResult", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - ...ProxyResource.type.modelProperties, - op: { - required: true, - serializedName: "properties.op", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Enum", - allowedValues: [ - "set", - "remove" - ] + name: "String" } }, - schema: { - required: true, - serializedName: "properties.schema", + startTime: { + serializedName: "startTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - table: { - required: true, - serializedName: "properties.table", + result: { + serializedName: "result", + readOnly: true, type: { name: "String" } }, - column: { - required: true, - serializedName: "properties.column", + errorCode: { + serializedName: "errorCode", + readOnly: true, type: { name: "String" } }, - sensitivityLabel: { - serializedName: "properties.sensitivityLabel", - type: { - name: "Composite", - className: "SensitivityLabel" - } - } - } - } -}; - -export const SensitivityLabelUpdateList: msRest.CompositeMapper = { - serializedName: "SensitivityLabelUpdateList", - type: { - name: "Composite", - className: "SensitivityLabelUpdateList", - modelProperties: { - operations: { - serializedName: "operations", + parameters: { + serializedName: "parameters", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SensitivityLabelUpdate" + name: "String" } } } + }, + activityId: { + serializedName: "activityId", + readOnly: true, + type: { + name: "String" + } } } } }; -export const RecommendedSensitivityLabelUpdate: msRest.CompositeMapper = { - serializedName: "RecommendedSensitivityLabelUpdate", +export const LinkedIntegrationRuntime: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecommendedSensitivityLabelUpdate", + className: "LinkedIntegrationRuntime", modelProperties: { - ...ProxyResource.type.modelProperties, - op: { - required: true, - serializedName: "properties.op", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Enum", - allowedValues: [ - "enable", - "disable" - ] + name: "String" } }, - schema: { - required: true, - serializedName: "properties.schema", + subscriptionId: { + serializedName: "subscriptionId", + readOnly: true, type: { name: "String" } }, - table: { - required: true, - serializedName: "properties.table", + dataFactoryName: { + serializedName: "dataFactoryName", + readOnly: true, type: { name: "String" } }, - column: { - required: true, - serializedName: "properties.column", + dataFactoryLocation: { + serializedName: "dataFactoryLocation", + readOnly: true, type: { name: "String" } + }, + createTime: { + serializedName: "createTime", + readOnly: true, + type: { + name: "DateTime" + } } } } }; -export const RecommendedSensitivityLabelUpdateList: msRest.CompositeMapper = { - serializedName: "RecommendedSensitivityLabelUpdateList", +export const SsisEnvironmentReference: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecommendedSensitivityLabelUpdateList", + className: "SsisEnvironmentReference", modelProperties: { - operations: { - serializedName: "operations", + id: { + serializedName: "id", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedSensitivityLabelUpdate" - } - } + name: "Number" + } + }, + environmentFolderName: { + serializedName: "environmentFolderName", + type: { + name: "String" + } + }, + environmentName: { + serializedName: "environmentName", + type: { + name: "String" + } + }, + referenceType: { + serializedName: "referenceType", + type: { + name: "String" } } } } }; -export const ServerBlobAuditingPolicy: msRest.CompositeMapper = { - serializedName: "ServerBlobAuditingPolicy", +export const SsisParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerBlobAuditingPolicy", + className: "SsisParameter", modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - required: true, - serializedName: "properties.state", + id: { + serializedName: "id", type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] + name: "Number" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + name: { + serializedName: "name", type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + description: { + serializedName: "description", type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + dataType: { + serializedName: "dataType", type: { - name: "Number" + name: "String" } }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + required: { + serializedName: "required", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + sensitive: { + serializedName: "sensitive", type: { - name: "Uuid" + name: "Boolean" } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + designDefaultValue: { + serializedName: "designDefaultValue", type: { - name: "Boolean" + name: "String" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + defaultValue: { + serializedName: "defaultValue", + type: { + name: "String" + } + }, + sensitiveDefaultValue: { + serializedName: "sensitiveDefaultValue", + type: { + name: "String" + } + }, + valueType: { + serializedName: "valueType", + type: { + name: "String" + } + }, + valueSet: { + serializedName: "valueSet", type: { name: "Boolean" } }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", + variable: { + serializedName: "variable", type: { - name: "Number" + name: "String" } } } } }; -export const ExtendedServerBlobAuditingPolicy: msRest.CompositeMapper = { - serializedName: "ExtendedServerBlobAuditingPolicy", +export const SsisVariable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedServerBlobAuditingPolicy", + className: "SsisVariable", modelProperties: { - ...ProxyResource.type.modelProperties, - predicateExpression: { - serializedName: "properties.predicateExpression", + id: { + serializedName: "id", type: { - name: "String" + name: "Number" } }, - state: { - required: true, - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] - } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + name: { + serializedName: "name", type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + description: { + serializedName: "description", 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", + dataType: { + serializedName: "dataType", type: { - name: "Uuid" + name: "String" } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + sensitive: { + serializedName: "sensitive", type: { name: "Boolean" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + value: { + serializedName: "value", type: { - name: "Boolean" + name: "String" } }, - queueDelayMs: { - serializedName: "properties.queueDelayMs", + sensitiveValue: { + serializedName: "sensitiveValue", type: { - name: "Number" + name: "String" } } } } }; -export const ServerSecurityAlertPolicy: msRest.CompositeMapper = { - serializedName: "ServerSecurityAlertPolicy", +export const DatabaseStatistics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerSecurityAlertPolicy", + className: "DatabaseStatistics", modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - required: true, - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "New", - "Enabled", - "Disabled" - ] - } - }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - emailAddresses: { - serializedName: "properties.emailAddresses", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + size: { + serializedName: "size", type: { - name: "Boolean" + name: "Number" } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + } + } + } +}; + +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + location: { + serializedName: "location", + required: true, type: { name: "String" } - }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - creationTime: { + } + } + } +}; + +export const AzureEntityResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureEntityResource", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + serializedName: "etag", readOnly: true, - serializedName: "properties.creationTime", type: { - name: "DateTime" + name: "String" } } } } }; -export const ServerVulnerabilityAssessment: msRest.CompositeMapper = { - serializedName: "ServerVulnerabilityAssessment", +export const KustoPoolUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerVulnerabilityAssessment", + className: "KustoPoolUpdate", modelProperties: { - ...ProxyResource.type.modelProperties, - storageContainerPath: { - required: true, - serializedName: "properties.storageContainerPath", + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "AzureSku" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + state: { + serializedName: "properties.state", + readOnly: true, type: { name: "String" } }, - recurringScans: { - serializedName: "properties.recurringScans", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" + name: "String" } - } - } - } -}; - -export const EncryptionProtector: msRest.CompositeMapper = { - serializedName: "EncryptionProtector", - type: { - name: "Composite", - className: "EncryptionProtector", - modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { + }, + uri: { + serializedName: "properties.uri", readOnly: true, - serializedName: "kind", type: { name: "String" } }, - location: { + dataIngestionUri: { + serializedName: "properties.dataIngestionUri", readOnly: true, - serializedName: "location", type: { name: "String" } }, - subregion: { + stateReason: { + serializedName: "properties.stateReason", readOnly: true, - serializedName: "properties.subregion", type: { name: "String" } }, - serverKeyName: { - serializedName: "properties.serverKeyName", + optimizedAutoscale: { + serializedName: "properties.optimizedAutoscale", type: { - name: "String" + name: "Composite", + className: "OptimizedAutoscale" } }, - serverKeyType: { - required: true, - serializedName: "properties.serverKeyType", + enableStreamingIngest: { + defaultValue: false, + serializedName: "properties.enableStreamingIngest", type: { - name: "String" + name: "Boolean" } }, - uri: { - readOnly: true, - serializedName: "properties.uri", + enablePurge: { + defaultValue: false, + serializedName: "properties.enablePurge", type: { - name: "String" + name: "Boolean" } }, - thumbprint: { - readOnly: true, - serializedName: "properties.thumbprint", + languageExtensions: { + serializedName: "properties.languageExtensions", + type: { + name: "Composite", + className: "LanguageExtensionsList" + } + }, + workspaceUID: { + serializedName: "properties.workspaceUID", type: { name: "String" } @@ -5691,531 +5534,473 @@ export const EncryptionProtector: msRest.CompositeMapper = { } }; -export const ServerUsage: msRest.CompositeMapper = { - serializedName: "ServerUsage", +export const PrivateEndpointConnectionForPrivateLinkHub: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerUsage", + className: "PrivateEndpointConnectionForPrivateLinkHub", modelProperties: { + ...PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated.type + .modelProperties, name: { - readOnly: true, serializedName: "name", type: { name: "String" } }, - resourceName: { - readOnly: true, - serializedName: "resourceName", + type: { + serializedName: "type", type: { name: "String" } - }, - displayName: { + } + } + } +}; + +export const ManagedIntegrationRuntime: coreClient.CompositeMapper = { + serializedName: "Managed", + type: { + name: "Composite", + className: "ManagedIntegrationRuntime", + uberParent: "IntegrationRuntime", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: IntegrationRuntime.type.polymorphicDiscriminator, + modelProperties: { + ...IntegrationRuntime.type.modelProperties, + state: { + serializedName: "state", readOnly: true, - serializedName: "displayName", type: { name: "String" } }, - currentValue: { - readOnly: true, - serializedName: "currentValue", + referenceName: { + serializedName: "managedVirtualNetwork.referenceName", type: { - name: "Number" + name: "String" } }, - limit: { - readOnly: true, - serializedName: "limit", + typeManagedVirtualNetworkType: { + serializedName: "managedVirtualNetwork.type", type: { - name: "Number" + name: "String" } }, - unit: { - readOnly: true, - serializedName: "unit", + id: { + serializedName: "managedVirtualNetwork.id", type: { name: "String" } }, - nextResetTime: { - readOnly: true, - serializedName: "nextResetTime", - type: { - name: "DateTime" - } - } - } - } -}; - -export const RecoverableSqlPool: msRest.CompositeMapper = { - serializedName: "RecoverableSqlPool", - type: { - name: "Composite", - className: "RecoverableSqlPool", - modelProperties: { - ...ProxyResource.type.modelProperties, - edition: { - readOnly: true, - serializedName: "properties.edition", - type: { - name: "String" - } - }, - serviceLevelObjective: { - readOnly: true, - serializedName: "properties.serviceLevelObjective", - type: { - name: "String" - } - }, - elasticPoolName: { - readOnly: true, - serializedName: "properties.elasticPoolName", + computeProperties: { + serializedName: "typeProperties.computeProperties", type: { - name: "String" + name: "Composite", + className: "IntegrationRuntimeComputeProperties" } }, - lastAvailableBackupDate: { - readOnly: true, - serializedName: "properties.lastAvailableBackupDate", + ssisProperties: { + serializedName: "typeProperties.ssisProperties", type: { - name: "DateTime" + name: "Composite", + className: "IntegrationRuntimeSsisProperties" } } } } }; -export const DataLakeStorageAccountDetails: msRest.CompositeMapper = { - serializedName: "DataLakeStorageAccountDetails", +export const SelfHostedIntegrationRuntime: coreClient.CompositeMapper = { + serializedName: "SelfHosted", type: { name: "Composite", - className: "DataLakeStorageAccountDetails", + className: "SelfHostedIntegrationRuntime", + uberParent: "IntegrationRuntime", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: IntegrationRuntime.type.polymorphicDiscriminator, modelProperties: { - accountUrl: { - serializedName: "accountUrl", - type: { - name: "String" - } - }, - filesystem: { - serializedName: "filesystem", + ...IntegrationRuntime.type.modelProperties, + linkedInfo: { + serializedName: "typeProperties.linkedInfo", type: { - name: "String" + name: "Composite", + className: "LinkedIntegrationRuntimeType" } } } } }; -export const VirtualNetworkProfile: msRest.CompositeMapper = { - serializedName: "VirtualNetworkProfile", +export const SsisFolder: coreClient.CompositeMapper = { + serializedName: "Folder", type: { name: "Composite", - className: "VirtualNetworkProfile", + className: "SsisFolder", + uberParent: "SsisObjectMetadata", + polymorphicDiscriminator: SsisObjectMetadata.type.polymorphicDiscriminator, modelProperties: { - computeSubnetId: { - serializedName: "computeSubnetId", - type: { - name: "String" - } - } + ...SsisObjectMetadata.type.modelProperties } } }; -export const WorkspaceKeyDetails: msRest.CompositeMapper = { - serializedName: "WorkspaceKeyDetails", +export const SsisProject: coreClient.CompositeMapper = { + serializedName: "Project", type: { name: "Composite", - className: "WorkspaceKeyDetails", + className: "SsisProject", + uberParent: "SsisObjectMetadata", + polymorphicDiscriminator: SsisObjectMetadata.type.polymorphicDiscriminator, modelProperties: { - name: { - serializedName: "name", + ...SsisObjectMetadata.type.modelProperties, + folderId: { + serializedName: "folderId", type: { - name: "String" + name: "Number" } }, - keyVaultUrl: { - serializedName: "keyVaultUrl", + version: { + serializedName: "version", type: { - name: "String" + name: "Number" + } + }, + environmentRefs: { + serializedName: "environmentRefs", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SsisEnvironmentReference" + } + } + } + }, + parameters: { + serializedName: "parameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SsisParameter" + } + } } } } } }; -export const CustomerManagedKeyDetails: msRest.CompositeMapper = { - serializedName: "CustomerManagedKeyDetails", +export const SsisPackage: coreClient.CompositeMapper = { + serializedName: "Package", type: { name: "Composite", - className: "CustomerManagedKeyDetails", + className: "SsisPackage", + uberParent: "SsisObjectMetadata", + polymorphicDiscriminator: SsisObjectMetadata.type.polymorphicDiscriminator, modelProperties: { - status: { - readOnly: true, - serializedName: "status", + ...SsisObjectMetadata.type.modelProperties, + folderId: { + serializedName: "folderId", type: { - name: "String" + name: "Number" } }, - key: { - serializedName: "key", + projectVersion: { + serializedName: "projectVersion", type: { - name: "Composite", - className: "WorkspaceKeyDetails" + name: "Number" + } + }, + projectId: { + serializedName: "projectId", + type: { + name: "Number" + } + }, + parameters: { + serializedName: "parameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SsisParameter" + } + } } } } } }; -export const EncryptionDetails: msRest.CompositeMapper = { - serializedName: "EncryptionDetails", +export const SsisEnvironment: coreClient.CompositeMapper = { + serializedName: "Environment", type: { name: "Composite", - className: "EncryptionDetails", + className: "SsisEnvironment", + uberParent: "SsisObjectMetadata", + polymorphicDiscriminator: SsisObjectMetadata.type.polymorphicDiscriminator, modelProperties: { - doubleEncryptionEnabled: { - readOnly: true, - serializedName: "doubleEncryptionEnabled", + ...SsisObjectMetadata.type.modelProperties, + folderId: { + serializedName: "folderId", type: { - name: "Boolean" + name: "Number" } }, - cmk: { - serializedName: "cmk", + variables: { + serializedName: "variables", type: { - name: "Composite", - className: "CustomerManagedKeyDetails" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SsisVariable" + } + } } } } } }; -export const ManagedVirtualNetworkSettings: msRest.CompositeMapper = { - serializedName: "ManagedVirtualNetworkSettings", +export const ManagedIntegrationRuntimeStatus: coreClient.CompositeMapper = { + serializedName: "Managed", type: { name: "Composite", - className: "ManagedVirtualNetworkSettings", + className: "ManagedIntegrationRuntimeStatus", + uberParent: "IntegrationRuntimeStatus", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: + IntegrationRuntimeStatus.type.polymorphicDiscriminator, modelProperties: { - preventDataExfiltration: { - serializedName: "preventDataExfiltration", + ...IntegrationRuntimeStatus.type.modelProperties, + createTime: { + serializedName: "typeProperties.createTime", + readOnly: true, type: { - name: "Boolean" + name: "DateTime" } }, - linkedAccessCheckOnTargetResource: { - serializedName: "linkedAccessCheckOnTargetResource", + nodes: { + serializedName: "typeProperties.nodes", + readOnly: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedIntegrationRuntimeNode" + } + } } }, - allowedAadTenantIdsForLinking: { - serializedName: "allowedAadTenantIdsForLinking", + otherErrors: { + serializedName: "typeProperties.otherErrors", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ManagedIntegrationRuntimeError" } } } + }, + lastOperation: { + serializedName: "typeProperties.lastOperation", + type: { + name: "Composite", + className: "ManagedIntegrationRuntimeOperationResult" + } } } } }; -export const WorkspaceRepositoryConfiguration: msRest.CompositeMapper = { - serializedName: "WorkspaceRepositoryConfiguration", +export const SelfHostedIntegrationRuntimeStatus: coreClient.CompositeMapper = { + serializedName: "SelfHosted", type: { name: "Composite", - className: "WorkspaceRepositoryConfiguration", + className: "SelfHostedIntegrationRuntimeStatus", + uberParent: "IntegrationRuntimeStatus", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: + IntegrationRuntimeStatus.type.polymorphicDiscriminator, modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, - hostName: { - serializedName: "hostName", + ...IntegrationRuntimeStatus.type.modelProperties, + createTime: { + serializedName: "typeProperties.createTime", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - accountName: { - serializedName: "accountName", + taskQueueId: { + serializedName: "typeProperties.taskQueueId", + readOnly: true, type: { name: "String" } }, - projectName: { - serializedName: "projectName", + nodeCommunicationChannelEncryptionMode: { + serializedName: "typeProperties.nodeCommunicationChannelEncryptionMode", + readOnly: true, type: { name: "String" } }, - repositoryName: { - serializedName: "repositoryName", + internalChannelEncryption: { + serializedName: "typeProperties.internalChannelEncryption", + readOnly: true, type: { name: "String" } }, - collaborationBranch: { - serializedName: "collaborationBranch", + version: { + serializedName: "typeProperties.version", + readOnly: true, type: { name: "String" } }, - rootFolder: { - serializedName: "rootFolder", + nodes: { + serializedName: "typeProperties.nodes", type: { - name: "String" - } - }, - lastCommitId: { - serializedName: "lastCommitId", - type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SelfHostedIntegrationRuntimeNode" + } + } } }, - tenantId: { - serializedName: "tenantId", - type: { - name: "Uuid" - } - } - } - } -}; - -export const PurviewConfiguration: msRest.CompositeMapper = { - serializedName: "PurviewConfiguration", - type: { - name: "Composite", - className: "PurviewConfiguration", - modelProperties: { - purviewResourceId: { - serializedName: "purviewResourceId", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedIdentity: msRest.CompositeMapper = { - serializedName: "ManagedIdentity", - type: { - name: "Composite", - className: "ManagedIdentity", - modelProperties: { - principalId: { + scheduledUpdateDate: { + serializedName: "typeProperties.scheduledUpdateDate", readOnly: true, - serializedName: "principalId", type: { - name: "String" + name: "DateTime" } }, - tenantId: { + updateDelayOffset: { + serializedName: "typeProperties.updateDelayOffset", readOnly: true, - serializedName: "tenantId", - type: { - name: "Uuid" - } - }, - type: { - serializedName: "type", - type: { - name: "Enum", - allowedValues: [ - "None", - "SystemAssigned" - ] - } - } - } - } -}; - -export const Workspace: msRest.CompositeMapper = { - serializedName: "Workspace", - type: { - name: "Composite", - className: "Workspace", - modelProperties: { - ...TrackedResource.type.modelProperties, - defaultDataLakeStorage: { - serializedName: "properties.defaultDataLakeStorage", - type: { - name: "Composite", - className: "DataLakeStorageAccountDetails" - } - }, - sqlAdministratorLoginPassword: { - serializedName: "properties.sqlAdministratorLoginPassword", - type: { - name: "String" - } - }, - managedResourceGroupName: { - serializedName: "properties.managedResourceGroupName", type: { name: "String" } }, - provisioningState: { + localTimeZoneOffset: { + serializedName: "typeProperties.localTimeZoneOffset", readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - sqlAdministratorLogin: { - serializedName: "properties.sqlAdministratorLogin", type: { name: "String" } }, - virtualNetworkProfile: { - serializedName: "properties.virtualNetworkProfile", - type: { - name: "Composite", - className: "VirtualNetworkProfile" - } - }, - connectivityEndpoints: { - serializedName: "properties.connectivityEndpoints", + capabilities: { + serializedName: "typeProperties.capabilities", + readOnly: true, type: { name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - managedVirtualNetwork: { - serializedName: "properties.managedVirtualNetwork", - type: { - name: "String" + value: { type: { name: "String" } } } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", + serviceUrls: { + serializedName: "typeProperties.serviceUrls", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "PrivateEndpointConnection" + name: "String" } } } }, - encryption: { - serializedName: "properties.encryption", + autoUpdate: { + serializedName: "typeProperties.autoUpdate", + readOnly: true, type: { - name: "Composite", - className: "EncryptionDetails" + name: "String" } }, - workspaceUID: { + versionStatus: { + serializedName: "typeProperties.versionStatus", readOnly: true, - serializedName: "properties.workspaceUID", type: { - name: "Uuid" + name: "String" } }, - extraProperties: { - readOnly: true, - serializedName: "properties.extraProperties", + links: { + serializedName: "typeProperties.links", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { - name: "Object" + name: "Composite", + className: "LinkedIntegrationRuntime" } } } }, - managedVirtualNetworkSettings: { - serializedName: "properties.managedVirtualNetworkSettings", - type: { - name: "Composite", - className: "ManagedVirtualNetworkSettings" - } - }, - workspaceRepositoryConfiguration: { - serializedName: "properties.workspaceRepositoryConfiguration", + pushedVersion: { + serializedName: "typeProperties.pushedVersion", + readOnly: true, type: { - name: "Composite", - className: "WorkspaceRepositoryConfiguration" + name: "String" } }, - purviewConfiguration: { - serializedName: "properties.purviewConfiguration", + latestVersion: { + serializedName: "typeProperties.latestVersion", + readOnly: true, type: { - name: "Composite", - className: "PurviewConfiguration" + name: "String" } }, - adlaResourceId: { + autoUpdateETA: { + serializedName: "typeProperties.autoUpdateETA", readOnly: true, - serializedName: "properties.adlaResourceId", type: { - name: "String" + name: "DateTime" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + serviceRegion: { + serializedName: "typeProperties.serviceRegion", type: { name: "String" } }, - identity: { - serializedName: "identity", + newerVersions: { + serializedName: "typeProperties.newerVersions", type: { - name: "Composite", - className: "ManagedIdentity" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const WorkspaceAadAdminInfo: msRest.CompositeMapper = { - serializedName: "WorkspaceAadAdminInfo", +export const SecureString: coreClient.CompositeMapper = { + serializedName: "SecureString", type: { name: "Composite", - className: "WorkspaceAadAdminInfo", + className: "SecureString", + uberParent: "SecretBase", + polymorphicDiscriminator: SecretBase.type.polymorphicDiscriminator, modelProperties: { - tenantId: { - serializedName: "properties.tenantId", - type: { - name: "String" - } - }, - login: { - serializedName: "properties.login", - type: { - name: "String" - } - }, - administratorType: { - serializedName: "properties.administratorType", - type: { - name: "String" - } - }, - sid: { - serializedName: "properties.sid", + ...SecretBase.type.modelProperties, + value: { + serializedName: "value", + required: true, type: { name: "String" } @@ -6224,73 +6009,61 @@ export const WorkspaceAadAdminInfo: msRest.CompositeMapper = { } }; -export const WorkspacePatchInfo: msRest.CompositeMapper = { - serializedName: "WorkspacePatchInfo", +export const CmdkeySetup: coreClient.CompositeMapper = { + serializedName: "CmdkeySetup", type: { name: "Composite", - className: "WorkspacePatchInfo", + className: "CmdkeySetup", + uberParent: "CustomSetupBase", + polymorphicDiscriminator: CustomSetupBase.type.polymorphicDiscriminator, modelProperties: { - tags: { - serializedName: "tags", + ...CustomSetupBase.type.modelProperties, + targetName: { + serializedName: "typeProperties.targetName", + required: true, type: { name: "Dictionary", - value: { - type: { - name: "String" - } - } + value: { type: { name: "any" } } } }, - identity: { - serializedName: "identity", + userName: { + serializedName: "typeProperties.userName", + required: true, type: { - name: "Composite", - className: "ManagedIdentity" + name: "Dictionary", + value: { type: { name: "any" } } } }, - sqlAdministratorLoginPassword: { - serializedName: "properties.sqlAdministratorLoginPassword", + password: { + serializedName: "typeProperties.password", type: { - name: "String" + name: "Composite", + className: "SecretBase" } - }, - managedVirtualNetworkSettings: { - serializedName: "properties.managedVirtualNetworkSettings", - type: { - name: "Composite", - className: "ManagedVirtualNetworkSettings" - } - }, - workspaceRepositoryConfiguration: { - serializedName: "properties.workspaceRepositoryConfiguration", - type: { - name: "Composite", - className: "WorkspaceRepositoryConfiguration" - } - }, - purviewConfiguration: { - serializedName: "properties.purviewConfiguration", - type: { - name: "Composite", - className: "PurviewConfiguration" - } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + } + } + } +}; + +export const EnvironmentVariableSetup: coreClient.CompositeMapper = { + serializedName: "EnvironmentVariableSetup", + type: { + name: "Composite", + className: "EnvironmentVariableSetup", + uberParent: "CustomSetupBase", + polymorphicDiscriminator: CustomSetupBase.type.polymorphicDiscriminator, + modelProperties: { + ...CustomSetupBase.type.modelProperties, + variableName: { + serializedName: "typeProperties.variableName", + required: true, type: { name: "String" } }, - encryption: { - serializedName: "properties.encryption", - type: { - name: "Composite", - className: "EncryptionDetails" - } - }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + variableValue: { + serializedName: "typeProperties.variableValue", + required: true, type: { name: "String" } @@ -6299,255 +6072,257 @@ export const WorkspacePatchInfo: msRest.CompositeMapper = { } }; -export const ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity: msRest.CompositeMapper = { - serializedName: "ManagedIdentitySqlControlSettingsModel_properties_grantSqlControlToManagedIdentity", +export const ComponentSetup: coreClient.CompositeMapper = { + serializedName: "ComponentSetup", type: { name: "Composite", - className: "ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity", + className: "ComponentSetup", + uberParent: "CustomSetupBase", + polymorphicDiscriminator: CustomSetupBase.type.polymorphicDiscriminator, modelProperties: { - desiredState: { - serializedName: "desiredState", + ...CustomSetupBase.type.modelProperties, + componentName: { + serializedName: "typeProperties.componentName", + required: true, type: { name: "String" } }, - actualState: { - readOnly: true, - serializedName: "actualState", + licenseKey: { + serializedName: "typeProperties.licenseKey", type: { - name: "String" + name: "Composite", + className: "SecretBase" } } } } }; -export const ManagedIdentitySqlControlSettingsModel: msRest.CompositeMapper = { - serializedName: "ManagedIdentitySqlControlSettingsModel", +export const LinkedIntegrationRuntimeKeyAuthorization: coreClient.CompositeMapper = { + serializedName: "Key", type: { name: "Composite", - className: "ManagedIdentitySqlControlSettingsModel", + className: "LinkedIntegrationRuntimeKeyAuthorization", + uberParent: "LinkedIntegrationRuntimeType", + polymorphicDiscriminator: + LinkedIntegrationRuntimeType.type.polymorphicDiscriminator, modelProperties: { - ...ProxyResource.type.modelProperties, - grantSqlControlToManagedIdentity: { - serializedName: "properties.grantSqlControlToManagedIdentity", + ...LinkedIntegrationRuntimeType.type.modelProperties, + key: { + serializedName: "key", type: { name: "Composite", - className: "ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity" + className: "SecureString" } } } } }; -export const RestorableDroppedSqlPool: msRest.CompositeMapper = { - serializedName: "RestorableDroppedSqlPool", +export const LinkedIntegrationRuntimeRbacAuthorization: coreClient.CompositeMapper = { + serializedName: "RBAC", type: { name: "Composite", - className: "RestorableDroppedSqlPool", + className: "LinkedIntegrationRuntimeRbacAuthorization", + uberParent: "LinkedIntegrationRuntimeType", + polymorphicDiscriminator: + LinkedIntegrationRuntimeType.type.polymorphicDiscriminator, modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - readOnly: true, - serializedName: "location", + ...LinkedIntegrationRuntimeType.type.modelProperties, + resourceId: { + serializedName: "resourceId", + required: true, type: { name: "String" } - }, - databaseName: { - readOnly: true, - serializedName: "properties.databaseName", + } + } + } +}; + +export const AzureADOnlyAuthentication: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureADOnlyAuthentication", + modelProperties: { + ...ProxyResource.type.modelProperties, + azureADOnlyAuthentication: { + serializedName: "properties.azureADOnlyAuthentication", type: { - name: "String" + name: "Boolean" } }, - edition: { + state: { + serializedName: "properties.state", readOnly: true, - serializedName: "properties.edition", type: { name: "String" } }, - maxSizeBytes: { + creationDate: { + serializedName: "properties.creationDate", readOnly: true, - serializedName: "properties.maxSizeBytes", type: { - name: "String" + name: "DateTime" } - }, - serviceLevelObjective: { - readOnly: true, - serializedName: "properties.serviceLevelObjective", + } + } + } +}; + +export const IpFirewallRuleInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpFirewallRuleInfo", + modelProperties: { + ...ProxyResource.type.modelProperties, + endIpAddress: { + serializedName: "properties.endIpAddress", type: { name: "String" } }, - elasticPoolName: { + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, - serializedName: "properties.elasticPoolName", type: { name: "String" } }, - creationDate: { - readOnly: true, - serializedName: "properties.creationDate", - type: { - name: "DateTime" - } - }, - deletionDate: { - readOnly: true, - serializedName: "properties.deletionDate", - type: { - name: "DateTime" - } - }, - earliestRestoreDate: { - readOnly: true, - serializedName: "properties.earliestRestoreDate", + startIpAddress: { + serializedName: "properties.startIpAddress", type: { - name: "DateTime" + name: "String" } } } } }; -export const BigDataPoolResourceInfoListResult: msRest.CompositeMapper = { - serializedName: "BigDataPoolResourceInfoListResult", +export const Key: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BigDataPoolResourceInfoListResult", + className: "Key", modelProperties: { - nextLink: { - serializedName: "nextLink", + ...ProxyResource.type.modelProperties, + isActiveCMK: { + serializedName: "properties.isActiveCMK", type: { - name: "String" + name: "Boolean" } }, - value: { - serializedName: "", + keyVaultUrl: { + serializedName: "properties.keyVaultUrl", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BigDataPoolResourceInfo" - } - } + name: "String" } } } } }; -export const IpFirewallRuleInfoListResult: msRest.CompositeMapper = { - serializedName: "IpFirewallRuleInfoListResult", +export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpFirewallRuleInfoListResult", + className: "PrivateEndpointConnection", modelProperties: { - nextLink: { - serializedName: "nextLink", + ...ProxyResource.type.modelProperties, + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { - name: "String" + name: "Composite", + className: "PrivateEndpoint" } }, - value: { - serializedName: "", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IpFirewallRuleInfo" - } - } + name: "Composite", + className: "PrivateLinkServiceConnectionState" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" } } } } }; -export const IntegrationRuntimeListResponse: msRest.CompositeMapper = { - serializedName: "IntegrationRuntimeListResponse", +export const PrivateLinkResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IntegrationRuntimeListResponse", + className: "PrivateLinkResource", modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IntegrationRuntimeResource" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "PrivateLinkResourceProperties" } } } } }; -export const KeyInfoListResult: msRest.CompositeMapper = { - serializedName: "KeyInfoListResult", +export const MetadataSyncConfig: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyInfoListResult", + className: "MetadataSyncConfig", modelProperties: { - nextLink: { - serializedName: "nextLink", + ...ProxyResource.type.modelProperties, + enabled: { + serializedName: "properties.enabled", type: { - name: "String" + name: "Boolean" } }, - value: { - serializedName: "", + syncIntervalInMinutes: { + serializedName: "properties.syncIntervalInMinutes", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Key" - } - } + name: "Number" } } } } }; -export const LibraryListResponse: msRest.CompositeMapper = { - serializedName: "LibraryListResponse", +export const GeoBackupPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LibraryListResponse", + className: "GeoBackupPolicy", modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LibraryResource" - } - } + ...ProxyResource.type.modelProperties, + kind: { + serializedName: "kind", + readOnly: true, + type: { + name: "String" } }, - nextLink: { - serializedName: "nextLink", + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", + required: true, + type: { + name: "Enum", + allowedValues: ["Disabled", "Enabled"] + } + }, + storageType: { + serializedName: "properties.storageType", + readOnly: true, type: { name: "String" } @@ -6556,58 +6331,61 @@ export const LibraryListResponse: msRest.CompositeMapper = { } }; -export const PrivateEndpointConnectionList: msRest.CompositeMapper = { - serializedName: "PrivateEndpointConnectionList", +export const DataWarehouseUserActivities: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionList", + className: "DataWarehouseUserActivities", modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } - } - }, - nextLink: { + ...ProxyResource.type.modelProperties, + activeQueriesCount: { + serializedName: "properties.activeQueriesCount", readOnly: true, - serializedName: "nextLink", type: { - name: "String" + name: "Number" } } } } }; -export const PrivateLinkResourceListResult: msRest.CompositeMapper = { - serializedName: "PrivateLinkResourceListResult", +export const RestorePoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResourceListResult", + className: "RestorePoint", modelProperties: { - value: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", readOnly: true, - serializedName: "", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateLinkResource" - } - } + name: "String" } }, - nextLink: { + restorePointType: { + serializedName: "properties.restorePointType", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["CONTINUOUS", "DISCRETE"] + } + }, + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + restorePointCreationDate: { + serializedName: "properties.restorePointCreationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + restorePointLabel: { + serializedName: "properties.restorePointLabel", readOnly: true, - serializedName: "nextLink", type: { name: "String" } @@ -6616,104 +6394,121 @@ export const PrivateLinkResourceListResult: msRest.CompositeMapper = { } }; -export const PrivateLinkHubInfoListResult: msRest.CompositeMapper = { - serializedName: "PrivateLinkHubInfoListResult", +export const ReplicationLink: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkHubInfoListResult", + className: "ReplicationLink", modelProperties: { - nextLink: { - serializedName: "nextLink", + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } }, - value: { - serializedName: "", + isTerminationAllowed: { + serializedName: "properties.isTerminationAllowed", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateLinkHub" - } - } + name: "Boolean" } - } - } - } -}; - -export const PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse: msRest.CompositeMapper = { - serializedName: "PrivateEndpointConnectionForPrivateLinkHub_ResourceCollectionResponse", - type: { - name: "Composite", - className: "PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse", - modelProperties: { - value: { - serializedName: "", + }, + replicationMode: { + serializedName: "properties.replicationMode", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnectionForPrivateLinkHub" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + partnerServer: { + serializedName: "properties.partnerServer", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SqlPoolInfoListResult: msRest.CompositeMapper = { - serializedName: "SqlPoolInfoListResult", - type: { - name: "Composite", - className: "SqlPoolInfoListResult", - modelProperties: { - nextLink: { - serializedName: "nextLink", + }, + partnerDatabase: { + serializedName: "properties.partnerDatabase", + readOnly: true, type: { name: "String" } }, - value: { - serializedName: "", + partnerLocation: { + serializedName: "properties.partnerLocation", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SqlPool" - } - } + name: "String" + } + }, + role: { + serializedName: "properties.role", + readOnly: true, + type: { + name: "Enum", + allowedValues: [ + "Primary", + "Secondary", + "NonReadableSecondary", + "Source", + "Copy" + ] + } + }, + partnerRole: { + serializedName: "properties.partnerRole", + readOnly: true, + type: { + name: "Enum", + allowedValues: [ + "Primary", + "Secondary", + "NonReadableSecondary", + "Source", + "Copy" + ] + } + }, + startTime: { + serializedName: "properties.startTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + percentComplete: { + serializedName: "properties.percentComplete", + readOnly: true, + type: { + name: "Number" + } + }, + replicationState: { + serializedName: "properties.replicationState", + readOnly: true, + type: { + name: "String" } } } } }; -export const GeoBackupPolicyListResult: msRest.CompositeMapper = { - serializedName: "GeoBackupPolicyListResult", +export const MaintenanceWindows: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GeoBackupPolicyListResult", + className: "MaintenanceWindows", modelProperties: { - value: { - serializedName: "", + ...ProxyResource.type.modelProperties, + timeRanges: { + serializedName: "properties.timeRanges", type: { name: "Sequence", element: { type: { name: "Composite", - className: "GeoBackupPolicy" + className: "MaintenanceWindowTimeRange" } } } @@ -6722,469 +6517,414 @@ export const GeoBackupPolicyListResult: msRest.CompositeMapper = { } }; -export const RestorePointListResult: msRest.CompositeMapper = { - serializedName: "RestorePointListResult", +export const MaintenanceWindowOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorePointListResult", + className: "MaintenanceWindowOptions", modelProperties: { - value: { - readOnly: true, - serializedName: "", + ...ProxyResource.type.modelProperties, + isEnabled: { + serializedName: "properties.isEnabled", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorePoint" - } - } + name: "Boolean" } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ReplicationLinkListResult: msRest.CompositeMapper = { - serializedName: "ReplicationLinkListResult", - type: { - name: "Composite", - className: "ReplicationLinkListResult", - modelProperties: { - value: { - serializedName: "", + maintenanceWindowCycles: { + serializedName: "properties.maintenanceWindowCycles", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ReplicationLink" + className: "MaintenanceWindowTimeRange" } } } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + minDurationInMinutes: { + serializedName: "properties.minDurationInMinutes", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const TransparentDataEncryptionListResult: msRest.CompositeMapper = { - serializedName: "TransparentDataEncryptionListResult", - type: { - name: "Composite", - className: "TransparentDataEncryptionListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", + }, + defaultDurationInMinutes: { + serializedName: "properties.defaultDurationInMinutes", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TransparentDataEncryption" - } - } + name: "Number" } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + minCycles: { + serializedName: "properties.minCycles", type: { - name: "String" + name: "Number" + } + }, + timeGranularityInMinutes: { + serializedName: "properties.timeGranularityInMinutes", + type: { + name: "Number" + } + }, + allowMultipleMaintenanceWindowsPerCycle: { + serializedName: "properties.allowMultipleMaintenanceWindowsPerCycle", + type: { + name: "Boolean" } } } } }; -export const SqlPoolBlobAuditingPolicyListResult: msRest.CompositeMapper = { - serializedName: "SqlPoolBlobAuditingPolicyListResult", +export const TransparentDataEncryption: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlPoolBlobAuditingPolicyListResult", + className: "TransparentDataEncryption", modelProperties: { - value: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", readOnly: true, - serializedName: "", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SqlPoolBlobAuditingPolicy" - } - } + name: "String" } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + status: { + serializedName: "properties.status", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } } } } }; -export const SqlPoolBlobAuditingPolicySqlPoolOperationListResult: msRest.CompositeMapper = { - serializedName: "SqlPoolBlobAuditingPolicySqlPoolOperationListResult", +export const SqlPoolBlobAuditingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlPoolBlobAuditingPolicySqlPoolOperationListResult", + className: "SqlPoolBlobAuditingPolicy", modelProperties: { - value: { + ...ProxyResource.type.modelProperties, + kind: { + serializedName: "kind", readOnly: true, - serializedName: "", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SqlPoolOperation" - } - } + name: "String" } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + state: { + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: ["Enabled", "Disabled"] } - } - } - } -}; - -export const SqlPoolUsageListResult: msRest.CompositeMapper = { - serializedName: "SqlPoolUsageListResult", - type: { - name: "Composite", - className: "SqlPoolUsageListResult", - modelProperties: { - value: { - required: true, - serializedName: "", + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SqlPoolUsage" - } - } + name: "String" } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } - } - } - } -}; - -export const SensitivityLabelListResult: msRest.CompositeMapper = { - serializedName: "SensitivityLabelListResult", - type: { - name: "Composite", - className: "SensitivityLabelListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", + }, + retentionDays: { + serializedName: "properties.retentionDays", + type: { + name: "Number" + } + }, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SensitivityLabel" + name: "String" } } } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + storageAccountSubscriptionId: { + defaultValue: "", + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "String" + name: "Uuid" } - } - } - } -}; - -export const SqlPoolSchemaListResult: msRest.CompositeMapper = { - serializedName: "SqlPoolSchemaListResult", - type: { - name: "Composite", - className: "SqlPoolSchemaListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", + }, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SqlPoolSchema" - } - } + name: "Boolean" } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + isAzureMonitorTargetEnabled: { + defaultValue: false, + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "String" + name: "Boolean" } } } } }; -export const SqlPoolTableListResult: msRest.CompositeMapper = { - serializedName: "SqlPoolTableListResult", +export const SqlPoolOperation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SqlPoolTableListResult", + className: "SqlPoolOperation", modelProperties: { - value: { + ...ProxyResource.type.modelProperties, + databaseName: { + serializedName: "properties.databaseName", readOnly: true, - serializedName: "", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SqlPoolTable" - } - } + name: "String" } }, - nextLink: { + operation: { + serializedName: "properties.operation", readOnly: true, - serializedName: "nextLink", type: { name: "String" } - } - } - } -}; - -export const SqlPoolColumnListResult: msRest.CompositeMapper = { - serializedName: "SqlPoolColumnListResult", - type: { - name: "Composite", - className: "SqlPoolColumnListResult", - modelProperties: { - value: { + }, + operationFriendlyName: { + serializedName: "properties.operationFriendlyName", readOnly: true, - serializedName: "", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SqlPoolColumn" - } - } + name: "String" } }, - nextLink: { + percentComplete: { + serializedName: "properties.percentComplete", + readOnly: true, + type: { + name: "Number" + } + }, + serverName: { + serializedName: "properties.serverName", readOnly: true, - serializedName: "nextLink", type: { name: "String" } - } - } - } -}; - -export const SqlPoolVulnerabilityAssessmentListResult: msRest.CompositeMapper = { - serializedName: "SqlPoolVulnerabilityAssessmentListResult", - type: { - name: "Composite", - className: "SqlPoolVulnerabilityAssessmentListResult", - modelProperties: { - value: { + }, + startTime: { + serializedName: "properties.startTime", readOnly: true, - serializedName: "", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SqlPoolVulnerabilityAssessment" - } - } + name: "DateTime" } }, - nextLink: { + state: { + serializedName: "properties.state", readOnly: true, - serializedName: "nextLink", type: { name: "String" } - } - } - } -}; - -export const VulnerabilityAssessmentScanRecordListResult: msRest.CompositeMapper = { - serializedName: "VulnerabilityAssessmentScanRecordListResult", - type: { - name: "Composite", - className: "VulnerabilityAssessmentScanRecordListResult", - modelProperties: { - value: { + }, + errorCode: { + serializedName: "properties.errorCode", readOnly: true, - serializedName: "", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VulnerabilityAssessmentScanRecord" - } - } + name: "Number" } }, - nextLink: { + errorDescription: { + serializedName: "properties.errorDescription", readOnly: true, - serializedName: "nextLink", type: { name: "String" } - } - } - } -}; - -export const ListSqlPoolSecurityAlertPolicies: msRest.CompositeMapper = { - serializedName: "ListSqlPoolSecurityAlertPolicies", - type: { - name: "Composite", - className: "ListSqlPoolSecurityAlertPolicies", - modelProperties: { - value: { + }, + errorSeverity: { + serializedName: "properties.errorSeverity", readOnly: true, - serializedName: "", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SqlPoolSecurityAlertPolicy" - } - } + name: "Number" } }, - nextLink: { + isUserError: { + serializedName: "properties.isUserError", + readOnly: true, + type: { + name: "Boolean" + } + }, + estimatedCompletionTime: { + serializedName: "properties.estimatedCompletionTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + description: { + serializedName: "properties.description", readOnly: true, - serializedName: "nextLink", type: { name: "String" } + }, + isCancellable: { + serializedName: "properties.isCancellable", + readOnly: true, + type: { + name: "Boolean" + } } } } }; -export const ExtendedSqlPoolBlobAuditingPolicyListResult: msRest.CompositeMapper = { - serializedName: "ExtendedSqlPoolBlobAuditingPolicyListResult", +export const SensitivityLabel: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedSqlPoolBlobAuditingPolicyListResult", + className: "SensitivityLabel", modelProperties: { - value: { + ...ProxyResource.type.modelProperties, + managedBy: { + serializedName: "managedBy", readOnly: true, - serializedName: "", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExtendedSqlPoolBlobAuditingPolicy" - } - } + name: "String" } }, - nextLink: { + schemaName: { + serializedName: "properties.schemaName", readOnly: true, - serializedName: "nextLink", type: { name: "String" } + }, + tableName: { + serializedName: "properties.tableName", + readOnly: true, + type: { + name: "String" + } + }, + columnName: { + serializedName: "properties.columnName", + readOnly: true, + type: { + name: "String" + } + }, + labelName: { + serializedName: "properties.labelName", + type: { + name: "String" + } + }, + labelId: { + serializedName: "properties.labelId", + type: { + name: "String" + } + }, + informationType: { + serializedName: "properties.informationType", + type: { + name: "String" + } + }, + informationTypeId: { + serializedName: "properties.informationTypeId", + type: { + name: "String" + } + }, + isDisabled: { + serializedName: "properties.isDisabled", + readOnly: true, + type: { + name: "Boolean" + } + }, + rank: { + serializedName: "properties.rank", + type: { + name: "Enum", + allowedValues: ["None", "Low", "Medium", "High", "Critical"] + } } } } }; -export const DataMaskingRuleListResult: msRest.CompositeMapper = { - serializedName: "DataMaskingRuleListResult", +export const SensitivityLabelUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataMaskingRuleListResult", + className: "SensitivityLabelUpdate", modelProperties: { - value: { - serializedName: "", + ...ProxyResource.type.modelProperties, + op: { + serializedName: "properties.op", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataMaskingRule" - } - } + name: "Enum", + allowedValues: ["set", "remove"] + } + }, + schema: { + serializedName: "properties.schema", + type: { + name: "String" + } + }, + table: { + serializedName: "properties.table", + type: { + name: "String" + } + }, + column: { + serializedName: "properties.column", + type: { + name: "String" + } + }, + sensitivityLabel: { + serializedName: "properties.sensitivityLabel", + type: { + name: "Composite", + className: "SensitivityLabel" } } } } }; -export const WorkloadGroupListResult: msRest.CompositeMapper = { - serializedName: "WorkloadGroupListResult", +export const RecommendedSensitivityLabelUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkloadGroupListResult", + className: "RecommendedSensitivityLabelUpdate", modelProperties: { - value: { - readOnly: true, - serializedName: "", + ...ProxyResource.type.modelProperties, + op: { + serializedName: "properties.op", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WorkloadGroup" - } - } + name: "Enum", + allowedValues: ["enable", "disable"] } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + schema: { + serializedName: "properties.schema", + type: { + name: "String" + } + }, + table: { + serializedName: "properties.table", + type: { + name: "String" + } + }, + column: { + serializedName: "properties.column", type: { name: "String" } @@ -7193,88 +6933,1911 @@ export const WorkloadGroupListResult: msRest.CompositeMapper = { } }; -export const WorkloadClassifierListResult: msRest.CompositeMapper = { - serializedName: "WorkloadClassifierListResult", +export const SqlPoolSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkloadClassifierListResult", + className: "SqlPoolSchema", modelProperties: { - value: { - readOnly: true, - serializedName: "", + ...ProxyResource.type.modelProperties + } + } +}; + +export const SqlPoolTable: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SqlPoolTable", + modelProperties: { + ...ProxyResource.type.modelProperties + } + } +}; + +export const SqlPoolColumn: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SqlPoolColumn", + modelProperties: { + ...ProxyResource.type.modelProperties, + columnType: { + serializedName: "properties.columnType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WorkloadClassifier" - } - } + name: "String" } }, - nextLink: { + isComputed: { + serializedName: "properties.isComputed", readOnly: true, - serializedName: "nextLink", type: { - name: "String" + name: "Boolean" } } } } }; -export const ServerBlobAuditingPolicyListResult: msRest.CompositeMapper = { - serializedName: "ServerBlobAuditingPolicyListResult", +export const SqlPoolConnectionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerBlobAuditingPolicyListResult", + className: "SqlPoolConnectionPolicy", modelProperties: { - value: { + ...ProxyResource.type.modelProperties, + kind: { + serializedName: "kind", readOnly: true, - serializedName: "", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerBlobAuditingPolicy" + name: "String" + } + }, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } + }, + securityEnabledAccess: { + serializedName: "properties.securityEnabledAccess", + type: { + name: "String" + } + }, + proxyDnsName: { + serializedName: "properties.proxyDnsName", + type: { + name: "String" + } + }, + proxyPort: { + serializedName: "properties.proxyPort", + type: { + name: "String" + } + }, + visibility: { + serializedName: "properties.visibility", + type: { + name: "String" + } + }, + useServerDefault: { + serializedName: "properties.useServerDefault", + type: { + name: "String" + } + }, + redirectionState: { + serializedName: "properties.redirectionState", + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "String" + } + } + } + } +}; + +export const SqlPoolVulnerabilityAssessment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SqlPoolVulnerabilityAssessment", + modelProperties: { + ...ProxyResource.type.modelProperties, + storageContainerPath: { + serializedName: "properties.storageContainerPath", + type: { + name: "String" + } + }, + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", + type: { + name: "String" + } + }, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", + type: { + name: "String" + } + }, + recurringScans: { + serializedName: "properties.recurringScans", + type: { + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" + } + } + } + } +}; + +export const VulnerabilityAssessmentScanRecord: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VulnerabilityAssessmentScanRecord", + modelProperties: { + ...ProxyResource.type.modelProperties, + scanId: { + serializedName: "properties.scanId", + readOnly: true, + type: { + name: "String" + } + }, + triggerType: { + serializedName: "properties.triggerType", + readOnly: true, + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", + readOnly: true, + type: { + name: "String" + } + }, + startTime: { + serializedName: "properties.startTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "properties.endTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + errors: { + serializedName: "properties.errors", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VulnerabilityAssessmentScanError" } } } }, - nextLink: { + storageContainerPath: { + serializedName: "properties.storageContainerPath", readOnly: true, - serializedName: "nextLink", type: { name: "String" } + }, + numberOfFailedSecurityChecks: { + serializedName: "properties.numberOfFailedSecurityChecks", + readOnly: true, + type: { + name: "Number" + } } } } }; -export const ExtendedServerBlobAuditingPolicyListResult: msRest.CompositeMapper = { - serializedName: "ExtendedServerBlobAuditingPolicyListResult", +export const SqlPoolVulnerabilityAssessmentScansExport: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtendedServerBlobAuditingPolicyListResult", + className: "SqlPoolVulnerabilityAssessmentScansExport", modelProperties: { - value: { + ...ProxyResource.type.modelProperties, + exportedReportLocation: { + serializedName: "properties.exportedReportLocation", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const SqlPoolSecurityAlertPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SqlPoolSecurityAlertPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] + } + }, + disabledAlerts: { + serializedName: "properties.disabledAlerts", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + emailAddresses: { + serializedName: "properties.emailAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", + type: { + name: "Boolean" + } + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", + type: { + name: "String" + } + }, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", + type: { + name: "String" + } + }, + retentionDays: { + serializedName: "properties.retentionDays", + type: { + name: "Number" + } + }, + creationTime: { + serializedName: "properties.creationTime", readOnly: true, - serializedName: "", + type: { + name: "DateTime" + } + } + } + } +}; + +export const SqlPoolVulnerabilityAssessmentRuleBaseline: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SqlPoolVulnerabilityAssessmentRuleBaseline", + modelProperties: { + ...ProxyResource.type.modelProperties, + baselineResults: { + serializedName: "properties.baselineResults", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ExtendedServerBlobAuditingPolicy" + className: "SqlPoolVulnerabilityAssessmentRuleBaselineItem" } } } + } + } + } +}; + +export const ExtendedSqlPoolBlobAuditingPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExtendedSqlPoolBlobAuditingPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + predicateExpression: { + serializedName: "properties.predicateExpression", + type: { + name: "String" + } + }, + state: { + 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: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataMaskingPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } + }, + kind: { + serializedName: "kind", + readOnly: true, + type: { + name: "String" + } + }, + managedBy: { + serializedName: "managedBy", + readOnly: true, + type: { + name: "String" + } + }, + dataMaskingState: { + serializedName: "properties.dataMaskingState", + type: { + name: "Enum", + allowedValues: ["Disabled", "Enabled"] + } + }, + exemptPrincipals: { + serializedName: "properties.exemptPrincipals", + type: { + name: "String" + } + }, + applicationPrincipals: { + serializedName: "properties.applicationPrincipals", + readOnly: true, + type: { + name: "String" + } + }, + maskingLevel: { + serializedName: "properties.maskingLevel", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const DataMaskingRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataMaskingRule", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } + }, + kind: { + serializedName: "kind", + readOnly: true, + type: { + name: "String" + } + }, + idPropertiesId: { + serializedName: "properties.id", + readOnly: true, + type: { + name: "String" + } + }, + aliasName: { + serializedName: "properties.aliasName", + type: { + name: "String" + } + }, + ruleState: { + serializedName: "properties.ruleState", + type: { + name: "Enum", + allowedValues: ["Disabled", "Enabled"] + } + }, + schemaName: { + serializedName: "properties.schemaName", + type: { + name: "String" + } + }, + tableName: { + serializedName: "properties.tableName", + type: { + name: "String" + } + }, + columnName: { + serializedName: "properties.columnName", + type: { + name: "String" + } + }, + maskingFunction: { + 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" + } + } + } + } +}; + +export const WorkloadGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkloadGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + minResourcePercent: { + serializedName: "properties.minResourcePercent", + type: { + name: "Number" + } + }, + maxResourcePercent: { + serializedName: "properties.maxResourcePercent", + type: { + name: "Number" + } + }, + minResourcePercentPerRequest: { + serializedName: "properties.minResourcePercentPerRequest", + type: { + name: "Number" + } + }, + maxResourcePercentPerRequest: { + serializedName: "properties.maxResourcePercentPerRequest", + type: { + name: "Number" + } + }, + importance: { + serializedName: "properties.importance", + type: { + name: "String" + } + }, + queryExecutionTimeout: { + serializedName: "properties.queryExecutionTimeout", + type: { + name: "Number" + } + } + } + } +}; + +export const WorkloadClassifier: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkloadClassifier", + modelProperties: { + ...ProxyResource.type.modelProperties, + memberName: { + serializedName: "properties.memberName", + type: { + name: "String" + } + }, + label: { + serializedName: "properties.label", + type: { + name: "String" + } + }, + context: { + serializedName: "properties.context", + type: { + name: "String" + } + }, + startTime: { + serializedName: "properties.startTime", + type: { + name: "String" + } + }, + endTime: { + serializedName: "properties.endTime", + type: { + name: "String" + } + }, + importance: { + serializedName: "properties.importance", + type: { + name: "String" + } + } + } + } +}; + +export const ServerBlobAuditingPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerBlobAuditingPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + state: { + 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: { + defaultValue: "", + 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" + } + }, + isDevopsAuditEnabled: { + serializedName: "properties.isDevopsAuditEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ExtendedServerBlobAuditingPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExtendedServerBlobAuditingPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + predicateExpression: { + serializedName: "properties.predicateExpression", + type: { + name: "String" + } + }, + state: { + 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" + } + }, + isDevopsAuditEnabled: { + serializedName: "properties.isDevopsAuditEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ServerSecurityAlertPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerSecurityAlertPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: ["New", "Enabled", "Disabled"] + } + }, + disabledAlerts: { + serializedName: "properties.disabledAlerts", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + emailAddresses: { + serializedName: "properties.emailAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", + type: { + name: "Boolean" + } + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", + type: { + name: "String" + } + }, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", + type: { + name: "String" + } + }, + retentionDays: { + serializedName: "properties.retentionDays", + type: { + name: "Number" + } + }, + creationTime: { + serializedName: "properties.creationTime", + readOnly: true, + type: { + name: "DateTime" + } + } + } + } +}; + +export const ServerVulnerabilityAssessment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerVulnerabilityAssessment", + modelProperties: { + ...ProxyResource.type.modelProperties, + storageContainerPath: { + serializedName: "properties.storageContainerPath", + type: { + name: "String" + } + }, + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", + type: { + name: "String" + } + }, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", + type: { + name: "String" + } + }, + recurringScans: { + serializedName: "properties.recurringScans", + type: { + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" + } + } + } + } +}; + +export const EncryptionProtector: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EncryptionProtector", + modelProperties: { + ...ProxyResource.type.modelProperties, + kind: { + serializedName: "kind", + readOnly: true, + type: { + name: "String" + } + }, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } + }, + subregion: { + serializedName: "properties.subregion", + readOnly: true, + type: { + name: "String" + } + }, + serverKeyName: { + serializedName: "properties.serverKeyName", + type: { + name: "String" + } + }, + serverKeyType: { + serializedName: "properties.serverKeyType", + type: { + name: "String" + } + }, + uri: { + serializedName: "properties.uri", + readOnly: true, + type: { + name: "String" + } + }, + thumbprint: { + serializedName: "properties.thumbprint", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const RecoverableSqlPool: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RecoverableSqlPool", + modelProperties: { + ...ProxyResource.type.modelProperties, + edition: { + serializedName: "properties.edition", + readOnly: true, + type: { + name: "String" + } + }, + serviceLevelObjective: { + serializedName: "properties.serviceLevelObjective", + readOnly: true, + type: { + name: "String" + } + }, + elasticPoolName: { + serializedName: "properties.elasticPoolName", + readOnly: true, + type: { + name: "String" + } + }, + lastAvailableBackupDate: { + serializedName: "properties.lastAvailableBackupDate", + readOnly: true, + type: { + name: "DateTime" + } + } + } + } +}; + +export const WorkspaceAadAdminInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceAadAdminInfo", + modelProperties: { + ...ProxyResource.type.modelProperties, + tenantId: { + serializedName: "properties.tenantId", + type: { + name: "String" + } + }, + login: { + serializedName: "properties.login", + type: { + name: "String" + } + }, + administratorType: { + serializedName: "properties.administratorType", + type: { + name: "String" + } + }, + sid: { + serializedName: "properties.sid", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedIdentitySqlControlSettingsModel: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedIdentitySqlControlSettingsModel", + modelProperties: { + ...ProxyResource.type.modelProperties, + grantSqlControlToManagedIdentity: { + serializedName: "properties.grantSqlControlToManagedIdentity", + type: { + name: "Composite", + className: + "ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity" + } + } + } + } +}; + +export const RestorableDroppedSqlPool: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestorableDroppedSqlPool", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } + }, + databaseName: { + serializedName: "properties.databaseName", + readOnly: true, + type: { + name: "String" + } + }, + edition: { + serializedName: "properties.edition", + readOnly: true, + type: { + name: "String" + } + }, + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", + readOnly: true, + type: { + name: "String" + } + }, + serviceLevelObjective: { + serializedName: "properties.serviceLevelObjective", + readOnly: true, + type: { + name: "String" + } + }, + elasticPoolName: { + serializedName: "properties.elasticPoolName", + readOnly: true, + type: { + name: "String" + } + }, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + deletionDate: { + serializedName: "properties.deletionDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + earliestRestoreDate: { + serializedName: "properties.earliestRestoreDate", + readOnly: true, + type: { + name: "DateTime" + } + } + } + } +}; + +export const AttachedDatabaseConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AttachedDatabaseConfiguration", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + databaseName: { + serializedName: "properties.databaseName", + type: { + name: "String" + } + }, + kustoPoolResourceId: { + serializedName: "properties.clusterResourceId", + type: { + name: "String" + } + }, + attachedDatabaseNames: { + serializedName: "properties.attachedDatabaseNames", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + defaultPrincipalsModificationKind: { + serializedName: "properties.defaultPrincipalsModificationKind", + type: { + name: "String" + } + }, + tableLevelSharingProperties: { + serializedName: "properties.tableLevelSharingProperties", + type: { + name: "Composite", + className: "TableLevelSharingProperties" + } + } + } + } +}; + +export const Database: coreClient.CompositeMapper = { + serializedName: "Database", + type: { + name: "Composite", + className: "Database", + uberParent: "Resource", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + kind: { + serializedName: "kind", + required: true, + type: { + name: "String" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const DataConnection: coreClient.CompositeMapper = { + serializedName: "DataConnection", + type: { + name: "Composite", + className: "DataConnection", + uberParent: "Resource", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + kind: { + serializedName: "kind", + required: true, + type: { + name: "String" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const ClusterPrincipalAssignment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterPrincipalAssignment", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + principalId: { + serializedName: "properties.principalId", + type: { + name: "String" + } + }, + role: { + serializedName: "properties.role", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "properties.tenantId", + type: { + name: "String" + } + }, + principalType: { + serializedName: "properties.principalType", + type: { + name: "String" + } + }, + tenantName: { + serializedName: "properties.tenantName", + readOnly: true, + type: { + name: "String" + } + }, + principalName: { + serializedName: "properties.principalName", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const DatabasePrincipalAssignment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabasePrincipalAssignment", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + principalId: { + serializedName: "properties.principalId", + type: { + name: "String" + } + }, + role: { + serializedName: "properties.role", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "properties.tenantId", + type: { + name: "String" + } + }, + principalType: { + serializedName: "properties.principalType", + type: { + name: "String" + } + }, + tenantName: { + serializedName: "properties.tenantName", + readOnly: true, + type: { + name: "String" + } + }, + principalName: { + serializedName: "properties.principalName", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkHub: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkHub", + modelProperties: { + ...TrackedResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionForPrivateLinkHubBasic" + } + } + } + } + } + } +}; + +export const SqlPool: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SqlPool", + modelProperties: { + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", + type: { + name: "Number" + } + }, + collation: { + defaultValue: "", + serializedName: "properties.collation", + type: { + name: "String" + } + }, + sourceDatabaseId: { + serializedName: "properties.sourceDatabaseId", + type: { + name: "String" + } + }, + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + readOnly: true, + type: { + name: "String" + } + }, + restorePointInTime: { + serializedName: "properties.restorePointInTime", + type: { + name: "DateTime" + } + }, + createMode: { + serializedName: "properties.createMode", + type: { + name: "String" + } + }, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + storageAccountType: { + defaultValue: "GRS", + serializedName: "properties.storageAccountType", + type: { + name: "String" + } + }, + sourceDatabaseDeletionDate: { + serializedName: "properties.sourceDatabaseDeletionDate", + type: { + name: "DateTime" + } + } + } + } +}; + +export const Workspace: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Workspace", + modelProperties: { + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedIdentity" + } + }, + defaultDataLakeStorage: { + serializedName: "properties.defaultDataLakeStorage", + type: { + name: "Composite", + className: "DataLakeStorageAccountDetails" + } + }, + sqlAdministratorLoginPassword: { + serializedName: "properties.sqlAdministratorLoginPassword", + type: { + name: "String" + } + }, + managedResourceGroupName: { + serializedName: "properties.managedResourceGroupName", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + sqlAdministratorLogin: { + serializedName: "properties.sqlAdministratorLogin", + type: { + name: "String" + } + }, + virtualNetworkProfile: { + serializedName: "properties.virtualNetworkProfile", + type: { + name: "Composite", + className: "VirtualNetworkProfile" + } + }, + connectivityEndpoints: { + serializedName: "properties.connectivityEndpoints", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + managedVirtualNetwork: { + serializedName: "properties.managedVirtualNetwork", + type: { + name: "String" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "EncryptionDetails" + } + }, + workspaceUID: { + serializedName: "properties.workspaceUID", + readOnly: true, + type: { + name: "Uuid" + } + }, + extraProperties: { + serializedName: "properties.extraProperties", + readOnly: true, + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + }, + managedVirtualNetworkSettings: { + serializedName: "properties.managedVirtualNetworkSettings", + type: { + name: "Composite", + className: "ManagedVirtualNetworkSettings" + } + }, + workspaceRepositoryConfiguration: { + serializedName: "properties.workspaceRepositoryConfiguration", + type: { + name: "Composite", + className: "WorkspaceRepositoryConfiguration" + } + }, + purviewConfiguration: { + serializedName: "properties.purviewConfiguration", + type: { + name: "Composite", + className: "PurviewConfiguration" + } + }, + adlaResourceId: { + serializedName: "properties.adlaResourceId", + readOnly: true, + type: { + name: "String" + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, + cspWorkspaceAdminProperties: { + serializedName: "properties.cspWorkspaceAdminProperties", + type: { + name: "Composite", + className: "CspWorkspaceAdminProperties" + } + }, + settings: { + serializedName: "properties.settings", + readOnly: true, + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + }, + azureADOnlyAuthentication: { + serializedName: "properties.azureADOnlyAuthentication", + type: { + name: "Boolean" + } + }, + trustedServiceBypassEnabled: { + defaultValue: false, + serializedName: "properties.trustedServiceBypassEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const BigDataPoolResourceInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BigDataPoolResourceInfo", + modelProperties: { + ...TrackedResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + autoScale: { + serializedName: "properties.autoScale", + type: { + name: "Composite", + className: "AutoScaleProperties" + } + }, + creationDate: { + serializedName: "properties.creationDate", + readOnly: true, + type: { + name: "DateTime" + } + }, + autoPause: { + serializedName: "properties.autoPause", + type: { + name: "Composite", + className: "AutoPauseProperties" + } + }, + isComputeIsolationEnabled: { + serializedName: "properties.isComputeIsolationEnabled", + type: { + name: "Boolean" + } + }, + sessionLevelPackagesEnabled: { + serializedName: "properties.sessionLevelPackagesEnabled", + type: { + name: "Boolean" + } + }, + cacheSize: { + serializedName: "properties.cacheSize", + type: { + name: "Number" + } + }, + dynamicExecutorAllocation: { + serializedName: "properties.dynamicExecutorAllocation", + type: { + name: "Composite", + className: "DynamicExecutorAllocation" + } + }, + sparkEventsFolder: { + serializedName: "properties.sparkEventsFolder", + type: { + name: "String" + } + }, + nodeCount: { + serializedName: "properties.nodeCount", + type: { + name: "Number" + } + }, + libraryRequirements: { + serializedName: "properties.libraryRequirements", + type: { + name: "Composite", + className: "LibraryRequirements" + } + }, + customLibraries: { + serializedName: "properties.customLibraries", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LibraryInfo" + } + } + } + }, + sparkConfigProperties: { + serializedName: "properties.sparkConfigProperties", + type: { + name: "Composite", + className: "SparkConfigProperties" + } + }, + sparkVersion: { + serializedName: "properties.sparkVersion", + type: { + name: "String" + } + }, + defaultSparkLogFolder: { + serializedName: "properties.defaultSparkLogFolder", + type: { + name: "String" + } + }, + nodeSize: { + serializedName: "properties.nodeSize", + type: { + name: "String" + } + }, + nodeSizeFamily: { + serializedName: "properties.nodeSizeFamily", + type: { + name: "String" + } + }, + lastSucceededTimestamp: { + serializedName: "properties.lastSucceededTimestamp", + readOnly: true, + type: { + name: "DateTime" + } + } + } + } +}; + +export const KustoPool: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KustoPool", + modelProperties: { + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "AzureSku" + } + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + state: { + serializedName: "properties.state", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + uri: { + serializedName: "properties.uri", + readOnly: true, + type: { + name: "String" + } + }, + dataIngestionUri: { + serializedName: "properties.dataIngestionUri", + readOnly: true, + type: { + name: "String" + } + }, + stateReason: { + serializedName: "properties.stateReason", + readOnly: true, + type: { + name: "String" + } + }, + optimizedAutoscale: { + serializedName: "properties.optimizedAutoscale", + type: { + name: "Composite", + className: "OptimizedAutoscale" + } + }, + enableStreamingIngest: { + defaultValue: false, + serializedName: "properties.enableStreamingIngest", + type: { + name: "Boolean" + } + }, + enablePurge: { + defaultValue: false, + serializedName: "properties.enablePurge", + type: { + name: "Boolean" + } + }, + languageExtensions: { + serializedName: "properties.languageExtensions", + type: { + name: "Composite", + className: "LanguageExtensionsList" + } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + workspaceUID: { + serializedName: "properties.workspaceUID", type: { name: "String" } @@ -7283,58 +8846,127 @@ export const ExtendedServerBlobAuditingPolicyListResult: msRest.CompositeMapper } }; -export const ServerSecurityAlertPolicyListResult: msRest.CompositeMapper = { - serializedName: "ServerSecurityAlertPolicyListResult", +export const SubResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerSecurityAlertPolicyListResult", + className: "SubResource", modelProperties: { - value: { + ...AzureEntityResource.type.modelProperties + } + } +}; + +export const ReadWriteDatabase: coreClient.CompositeMapper = { + serializedName: "ReadWrite", + type: { + name: "Composite", + className: "ReadWriteDatabase", + uberParent: "Resource", + polymorphicDiscriminator: Resource.type.polymorphicDiscriminator, + modelProperties: { + ...Database.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, - serializedName: "", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerSecurityAlertPolicy" - } - } + name: "String" } }, - nextLink: { + softDeletePeriod: { + serializedName: "properties.softDeletePeriod", + type: { + name: "TimeSpan" + } + }, + hotCachePeriod: { + serializedName: "properties.hotCachePeriod", + type: { + name: "TimeSpan" + } + }, + statistics: { + serializedName: "properties.statistics", + type: { + name: "Composite", + className: "DatabaseStatistics" + } + }, + isFollowed: { + serializedName: "properties.isFollowed", readOnly: true, - serializedName: "nextLink", type: { - name: "String" + name: "Boolean" } } } } }; -export const ServerVulnerabilityAssessmentListResult: msRest.CompositeMapper = { - serializedName: "ServerVulnerabilityAssessmentListResult", +export const EventHubDataConnection: coreClient.CompositeMapper = { + serializedName: "EventHub", type: { name: "Composite", - className: "ServerVulnerabilityAssessmentListResult", + className: "EventHubDataConnection", + uberParent: "Resource", + polymorphicDiscriminator: Resource.type.polymorphicDiscriminator, modelProperties: { - value: { - readOnly: true, - serializedName: "", + ...DataConnection.type.modelProperties, + eventHubResourceId: { + serializedName: "properties.eventHubResourceId", + type: { + name: "String" + } + }, + consumerGroup: { + serializedName: "properties.consumerGroup", + type: { + name: "String" + } + }, + tableName: { + serializedName: "properties.tableName", + type: { + name: "String" + } + }, + mappingRuleName: { + serializedName: "properties.mappingRuleName", + type: { + name: "String" + } + }, + dataFormat: { + serializedName: "properties.dataFormat", + type: { + name: "String" + } + }, + eventSystemProperties: { + serializedName: "properties.eventSystemProperties", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ServerVulnerabilityAssessment" + name: "String" } } } }, - nextLink: { + compression: { + serializedName: "properties.compression", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, - serializedName: "nextLink", + type: { + name: "String" + } + }, + managedIdentityResourceId: { + serializedName: "properties.managedIdentityResourceId", type: { name: "String" } @@ -7343,28 +8975,65 @@ export const ServerVulnerabilityAssessmentListResult: msRest.CompositeMapper = { } }; -export const EncryptionProtectorListResult: msRest.CompositeMapper = { - serializedName: "EncryptionProtectorListResult", +export const IotHubDataConnection: coreClient.CompositeMapper = { + serializedName: "IotHub", type: { name: "Composite", - className: "EncryptionProtectorListResult", + className: "IotHubDataConnection", + uberParent: "Resource", + polymorphicDiscriminator: Resource.type.polymorphicDiscriminator, modelProperties: { - value: { - readOnly: true, - serializedName: "", + ...DataConnection.type.modelProperties, + iotHubResourceId: { + serializedName: "properties.iotHubResourceId", + type: { + name: "String" + } + }, + consumerGroup: { + serializedName: "properties.consumerGroup", + type: { + name: "String" + } + }, + tableName: { + serializedName: "properties.tableName", + type: { + name: "String" + } + }, + mappingRuleName: { + serializedName: "properties.mappingRuleName", + type: { + name: "String" + } + }, + dataFormat: { + serializedName: "properties.dataFormat", + type: { + name: "String" + } + }, + eventSystemProperties: { + serializedName: "properties.eventSystemProperties", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "EncryptionProtector" + name: "String" } } } }, - nextLink: { + sharedAccessPolicyName: { + serializedName: "properties.sharedAccessPolicyName", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, - serializedName: "nextLink", type: { name: "String" } @@ -7373,28 +9042,66 @@ export const EncryptionProtectorListResult: msRest.CompositeMapper = { } }; -export const ServerUsageListResult: msRest.CompositeMapper = { - serializedName: "ServerUsageListResult", +export const EventGridDataConnection: coreClient.CompositeMapper = { + serializedName: "EventGrid", type: { name: "Composite", - className: "ServerUsageListResult", + className: "EventGridDataConnection", + uberParent: "Resource", + polymorphicDiscriminator: Resource.type.polymorphicDiscriminator, modelProperties: { - value: { - required: true, - serializedName: "", + ...DataConnection.type.modelProperties, + storageAccountResourceId: { + serializedName: "properties.storageAccountResourceId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerUsage" - } - } + name: "String" } }, - nextLink: { + eventHubResourceId: { + serializedName: "properties.eventHubResourceId", + type: { + name: "String" + } + }, + consumerGroup: { + serializedName: "properties.consumerGroup", + type: { + name: "String" + } + }, + tableName: { + serializedName: "properties.tableName", + type: { + name: "String" + } + }, + mappingRuleName: { + serializedName: "properties.mappingRuleName", + type: { + name: "String" + } + }, + dataFormat: { + serializedName: "properties.dataFormat", + type: { + name: "String" + } + }, + ignoreFirstRecord: { + serializedName: "properties.ignoreFirstRecord", + type: { + name: "Boolean" + } + }, + blobStorageEventType: { + serializedName: "properties.blobStorageEventType", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, - serializedName: "nextLink", type: { name: "String" } @@ -7403,28 +9110,52 @@ export const ServerUsageListResult: msRest.CompositeMapper = { } }; -export const RecoverableSqlPoolListResult: msRest.CompositeMapper = { - serializedName: "RecoverableSqlPoolListResult", +export const LibraryResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecoverableSqlPoolListResult", + className: "LibraryResource", modelProperties: { - value: { + ...SubResource.type.modelProperties, + namePropertiesName: { + serializedName: "properties.name", + type: { + name: "String" + } + }, + path: { + serializedName: "properties.path", + type: { + name: "String" + } + }, + containerName: { + serializedName: "properties.containerName", + type: { + name: "String" + } + }, + uploadedTimestamp: { + serializedName: "properties.uploadedTimestamp", + type: { + name: "DateTime" + } + }, + typePropertiesType: { + serializedName: "properties.type", + type: { + name: "String" + } + }, + provisioningStatus: { + serializedName: "properties.provisioningStatus", readOnly: true, - serializedName: "", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecoverableSqlPool" - } - } + name: "String" } }, - nextLink: { + creatorId: { + serializedName: "properties.creatorId", readOnly: true, - serializedName: "nextLink", type: { name: "String" } @@ -7433,77 +9164,101 @@ export const RecoverableSqlPoolListResult: msRest.CompositeMapper = { } }; -export const WorkspaceInfoListResult: msRest.CompositeMapper = { - serializedName: "WorkspaceInfoListResult", +export const IntegrationRuntimeResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceInfoListResult", + className: "IntegrationRuntimeResource", modelProperties: { - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - }, - value: { - serializedName: "", + ...SubResource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Workspace" - } - } + name: "Composite", + className: "IntegrationRuntime" } } } } }; -export const RestorableDroppedSqlPoolListResult: msRest.CompositeMapper = { - serializedName: "RestorableDroppedSqlPoolListResult", +export const SparkConfigurationResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RestorableDroppedSqlPoolListResult", + className: "SparkConfigurationResource", modelProperties: { - value: { + ...SubResource.type.modelProperties, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + configs: { + serializedName: "properties.configs", required: true, - serializedName: "", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + annotations: { + serializedName: "properties.annotations", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "RestorableDroppedSqlPool" + name: "String" } } } + }, + notes: { + serializedName: "properties.notes", + type: { + name: "String" + } + }, + createdBy: { + serializedName: "properties.createdBy", + type: { + name: "String" + } + }, + created: { + serializedName: "properties.created", + type: { + name: "DateTime" + } } } } }; -export const discriminators = { - 'IntegrationRuntime' : IntegrationRuntime, - 'SecretBase.SecureString' : SecureString, - 'CustomSetupBase' : CustomSetupBase, - 'IntegrationRuntime.Managed' : ManagedIntegrationRuntime, - 'SecretBase' : SecretBase, - 'CustomSetupBase.CmdkeySetup' : CmdkeySetup, - 'CustomSetupBase.EnvironmentVariableSetup' : EnvironmentVariableSetup, - 'CustomSetupBase.ComponentSetup' : ComponentSetup, - 'LinkedIntegrationRuntimeType' : LinkedIntegrationRuntimeType, - 'IntegrationRuntime.SelfHosted' : SelfHostedIntegrationRuntime, - 'LinkedIntegrationRuntimeType.Key' : LinkedIntegrationRuntimeKeyAuthorization, - 'LinkedIntegrationRuntimeType.RBAC' : LinkedIntegrationRuntimeRbacAuthorization, - 'IntegrationRuntimeStatus' : IntegrationRuntimeStatus, - 'IntegrationRuntimeStatus.Managed' : ManagedIntegrationRuntimeStatus, - 'IntegrationRuntimeStatus.SelfHosted' : SelfHostedIntegrationRuntimeStatus, - 'SsisObjectMetadata' : SsisObjectMetadata, - 'SsisObjectMetadata.Folder' : SsisFolder, - 'SsisObjectMetadata.Project' : SsisProject, - 'SsisObjectMetadata.Package' : SsisPackage, - 'SsisObjectMetadata.Environment' : SsisEnvironment - +export let discriminators = { + IntegrationRuntime: IntegrationRuntime, + SsisObjectMetadata: SsisObjectMetadata, + IntegrationRuntimeStatus: IntegrationRuntimeStatus, + SecretBase: SecretBase, + CustomSetupBase: CustomSetupBase, + LinkedIntegrationRuntimeType: LinkedIntegrationRuntimeType, + "IntegrationRuntime.Managed": ManagedIntegrationRuntime, + "IntegrationRuntime.SelfHosted": SelfHostedIntegrationRuntime, + "SsisObjectMetadata.Folder": SsisFolder, + "SsisObjectMetadata.Project": SsisProject, + "SsisObjectMetadata.Package": SsisPackage, + "SsisObjectMetadata.Environment": SsisEnvironment, + "IntegrationRuntimeStatus.Managed": ManagedIntegrationRuntimeStatus, + "IntegrationRuntimeStatus.SelfHosted": SelfHostedIntegrationRuntimeStatus, + "SecretBase.SecureString": SecureString, + "CustomSetupBase.CmdkeySetup": CmdkeySetup, + "CustomSetupBase.EnvironmentVariableSetup": EnvironmentVariableSetup, + "CustomSetupBase.ComponentSetup": ComponentSetup, + "LinkedIntegrationRuntimeType.Key": LinkedIntegrationRuntimeKeyAuthorization, + "LinkedIntegrationRuntimeType.RBAC": LinkedIntegrationRuntimeRbacAuthorization, + "Resource.Database": Database, + "Resource.DataConnection": DataConnection, + "Resource.ReadWrite": ReadWriteDatabase, + "Resource.EventHub": EventHubDataConnection, + "Resource.IotHub": IotHubDataConnection, + "Resource.EventGrid": EventGridDataConnection }; diff --git a/sdk/synapse/arm-synapse/src/models/operationsMappers.ts b/sdk/synapse/arm-synapse/src/models/operationsMappers.ts deleted file mode 100644 index 993c5630292d..000000000000 --- a/sdk/synapse/arm-synapse/src/models/operationsMappers.ts +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AvailableRpOperation, - AvailableRpOperationDisplayInfo, - CheckNameAvailabilityRequest, - CheckNameAvailabilityResponse, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - OperationMetaLogSpecification, - OperationMetaMetricDimensionSpecification, - OperationMetaMetricSpecification, - OperationMetaServiceSpecification, - OperationResource -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/parameters.ts b/sdk/synapse/arm-synapse/src/models/parameters.ts index 94ee34b3d1d6..2c27458632bf 100644 --- a/sdk/synapse/arm-synapse/src/models/parameters.ts +++ b/sdk/synapse/arm-synapse/src/models/parameters.ts @@ -3,566 +3,1071 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import { + OperationParameter, + OperationURLParameter, + OperationQueryParameter +} from "@azure/core-client"; +import { + AzureADOnlyAuthentication as AzureADOnlyAuthenticationMapper, + CheckNameAvailabilityRequest as CheckNameAvailabilityRequestMapper, + IpFirewallRuleInfo as IpFirewallRuleInfoMapper, + ReplaceAllIpFirewallRulesRequest as ReplaceAllIpFirewallRulesRequestMapper, + Key as KeyMapper, + PrivateEndpointConnection as PrivateEndpointConnectionMapper, + PrivateLinkHubPatchInfo as PrivateLinkHubPatchInfoMapper, + PrivateLinkHub as PrivateLinkHubMapper, + SqlPoolPatchInfo as SqlPoolPatchInfoMapper, + SqlPool as SqlPoolMapper, + ResourceMoveDefinition as ResourceMoveDefinitionMapper, + MetadataSyncConfig as MetadataSyncConfigMapper, + GeoBackupPolicy as GeoBackupPolicyMapper, + CreateSqlPoolRestorePointDefinition as CreateSqlPoolRestorePointDefinitionMapper, + MaintenanceWindows as MaintenanceWindowsMapper, + TransparentDataEncryption as TransparentDataEncryptionMapper, + SqlPoolBlobAuditingPolicy as SqlPoolBlobAuditingPolicyMapper, + SensitivityLabelUpdateList as SensitivityLabelUpdateListMapper, + SensitivityLabel as SensitivityLabelMapper, + RecommendedSensitivityLabelUpdateList as RecommendedSensitivityLabelUpdateListMapper, + SqlPoolVulnerabilityAssessment as SqlPoolVulnerabilityAssessmentMapper, + SqlPoolSecurityAlertPolicy as SqlPoolSecurityAlertPolicyMapper, + SqlPoolVulnerabilityAssessmentRuleBaseline as SqlPoolVulnerabilityAssessmentRuleBaselineMapper, + ExtendedSqlPoolBlobAuditingPolicy as ExtendedSqlPoolBlobAuditingPolicyMapper, + DataMaskingPolicy as DataMaskingPolicyMapper, + DataMaskingRule as DataMaskingRuleMapper, + WorkloadGroup as WorkloadGroupMapper, + WorkloadClassifier as WorkloadClassifierMapper, + ServerBlobAuditingPolicy as ServerBlobAuditingPolicyMapper, + ExtendedServerBlobAuditingPolicy as ExtendedServerBlobAuditingPolicyMapper, + ServerSecurityAlertPolicy as ServerSecurityAlertPolicyMapper, + ServerVulnerabilityAssessment as ServerVulnerabilityAssessmentMapper, + EncryptionProtector as EncryptionProtectorMapper, + WorkspacePatchInfo as WorkspacePatchInfoMapper, + Workspace as WorkspaceMapper, + WorkspaceAadAdminInfo as WorkspaceAadAdminInfoMapper, + ManagedIdentitySqlControlSettingsModel as ManagedIdentitySqlControlSettingsModelMapper, + BigDataPoolPatchInfo as BigDataPoolPatchInfoMapper, + BigDataPoolResourceInfo as BigDataPoolResourceInfoMapper, + UpdateIntegrationRuntimeRequest as UpdateIntegrationRuntimeRequestMapper, + IntegrationRuntimeResource as IntegrationRuntimeResourceMapper, + GetSsisObjectMetadataRequest as GetSsisObjectMetadataRequestMapper, + UpdateIntegrationRuntimeNodeRequest as UpdateIntegrationRuntimeNodeRequestMapper, + IntegrationRuntimeRegenerateKeyParameters as IntegrationRuntimeRegenerateKeyParametersMapper, + KustoPoolCheckNameRequest as KustoPoolCheckNameRequestMapper, + KustoPool as KustoPoolMapper, + KustoPoolUpdate as KustoPoolUpdateMapper, + LanguageExtensionsList as LanguageExtensionsListMapper, + FollowerDatabaseDefinition as FollowerDatabaseDefinitionMapper, + DatabaseCheckNameRequest as DatabaseCheckNameRequestMapper, + AttachedDatabaseConfiguration as AttachedDatabaseConfigurationMapper, + Database as DatabaseMapper, + DataConnectionCheckNameRequest as DataConnectionCheckNameRequestMapper, + DataConnectionValidation as DataConnectionValidationMapper, + DataConnection as DataConnectionMapper, + ClusterPrincipalAssignmentCheckNameRequest as ClusterPrincipalAssignmentCheckNameRequestMapper, + ClusterPrincipalAssignment as ClusterPrincipalAssignmentMapper, + DatabasePrincipalAssignmentCheckNameRequest as DatabasePrincipalAssignmentCheckNameRequestMapper, + DatabasePrincipalAssignment as DatabasePrincipalAssignmentMapper +} from "../models/mappers"; -export const acceptLanguage: msRest.OperationParameter = { - parameterPath: "acceptLanguage", +export const accept: OperationParameter = { + parameterPath: "accept", mapper: { - serializedName: "accept-language", - defaultValue: 'en-US', + defaultValue: "application/json", + isConstant: true, + serializedName: "Accept", type: { name: "String" } } }; -export const apiVersion: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", + +export const $host: OperationURLParameter = { + parameterPath: "$host", mapper: { + serializedName: "$host", required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; + +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2021-06-01", + isConstant: true, serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const subscriptionId: OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { constraints: { MinLength: 1 }, + serializedName: "subscriptionId", + required: true, type: { name: "String" } } }; -export const baselineName: msRest.OperationURLParameter = { - parameterPath: "baselineName", + +export const resourceGroupName: OperationURLParameter = { + parameterPath: "resourceGroupName", mapper: { + constraints: { + MaxLength: 90, + MinLength: 1 + }, + serializedName: "resourceGroupName", required: true, - serializedName: "baselineName", type: { - name: "Enum", - allowedValues: [ - "master", - "default" - ] + name: "String" } } }; -export const bigDataPoolName: msRest.OperationURLParameter = { - parameterPath: "bigDataPoolName", + +export const workspaceName: OperationURLParameter = { + parameterPath: "workspaceName", mapper: { + serializedName: "workspaceName", required: true, - serializedName: "bigDataPoolName", type: { name: "String" } } }; -export const blobAuditingPolicyName: msRest.OperationURLParameter = { - parameterPath: "blobAuditingPolicyName", + +export const azureADOnlyAuthenticationName: OperationURLParameter = { + parameterPath: "azureADOnlyAuthenticationName", mapper: { + serializedName: "azureADOnlyAuthenticationName", required: true, + type: { + name: "String" + } + } +}; + +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], + mapper: { + defaultValue: "application/json", isConstant: true, - serializedName: "blobAuditingPolicyName", - defaultValue: 'default', + serializedName: "Content-Type", type: { name: "String" } } }; -export const columnName: msRest.OperationURLParameter = { - parameterPath: "columnName", + +export const azureADOnlyAuthenticationInfo: OperationParameter = { + parameterPath: "azureADOnlyAuthenticationInfo", + mapper: AzureADOnlyAuthenticationMapper +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", mapper: { + serializedName: "nextLink", required: true, - serializedName: "columnName", type: { name: "String" } - } + }, + skipEncoding: true }; -export const connectionPolicyName: msRest.OperationURLParameter = { - parameterPath: "connectionPolicyName", + +export const request: OperationParameter = { + parameterPath: "request", + mapper: CheckNameAvailabilityRequestMapper +}; + +export const operationId: OperationURLParameter = { + parameterPath: "operationId", mapper: { + serializedName: "operationId", required: true, - isConstant: true, - serializedName: "connectionPolicyName", - defaultValue: 'default', type: { name: "String" } } }; -export const dataMaskingPolicyName: msRest.OperationURLParameter = { - parameterPath: "dataMaskingPolicyName", + +export const ipFirewallRuleInfo: OperationParameter = { + parameterPath: "ipFirewallRuleInfo", + mapper: IpFirewallRuleInfoMapper +}; + +export const ruleName: OperationURLParameter = { + parameterPath: "ruleName", mapper: { + serializedName: "ruleName", required: true, - isConstant: true, - serializedName: "dataMaskingPolicyName", - defaultValue: 'Default', type: { name: "String" } } }; -export const dataMaskingRuleName: msRest.OperationURLParameter = { - parameterPath: "dataMaskingRuleName", + +export const request1: OperationParameter = { + parameterPath: "request", + mapper: ReplaceAllIpFirewallRulesRequestMapper +}; + +export const keyName: OperationURLParameter = { + parameterPath: "keyName", mapper: { + serializedName: "keyName", required: true, - serializedName: "dataMaskingRuleName", type: { name: "String" } } }; -export const dataWarehouseUserActivityName: msRest.OperationURLParameter = { - parameterPath: "dataWarehouseUserActivityName", + +export const keyProperties: OperationParameter = { + parameterPath: "keyProperties", + mapper: KeyMapper +}; + +export const privateEndpointConnectionName: OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", mapper: { + serializedName: "privateEndpointConnectionName", required: true, - isConstant: true, - serializedName: "dataWarehouseUserActivityName", - defaultValue: 'current', type: { name: "String" } } }; -export const encryptionProtectorName: msRest.OperationURLParameter = { - parameterPath: "encryptionProtectorName", + +export const request2: OperationParameter = { + parameterPath: "request", + mapper: PrivateEndpointConnectionMapper +}; + +export const privateLinkResourceName: OperationURLParameter = { + parameterPath: "privateLinkResourceName", mapper: { + serializedName: "privateLinkResourceName", required: true, - isConstant: true, - serializedName: "encryptionProtectorName", - defaultValue: 'current', type: { name: "String" } } }; -export const filter: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "filter" - ], + +export const privateLinkHubName: OperationURLParameter = { + parameterPath: "privateLinkHubName", mapper: { - serializedName: "$filter", + serializedName: "privateLinkHubName", + required: true, type: { name: "String" } } }; -export const force: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "force" - ], + +export const privateLinkHubPatchInfo: OperationParameter = { + parameterPath: "privateLinkHubPatchInfo", + mapper: PrivateLinkHubPatchInfoMapper +}; + +export const privateLinkHubInfo: OperationParameter = { + parameterPath: "privateLinkHubInfo", + mapper: PrivateLinkHubMapper +}; + +export const sqlPoolName: OperationURLParameter = { + parameterPath: "sqlPoolName", mapper: { - serializedName: "force", - defaultValue: false, + serializedName: "sqlPoolName", + required: true, type: { - name: "Boolean" + name: "String" } } }; -export const geoBackupPolicyName: msRest.OperationURLParameter = { + +export const sqlPoolInfo: OperationParameter = { + parameterPath: "sqlPoolInfo", + mapper: SqlPoolPatchInfoMapper +}; + +export const sqlPoolInfo1: OperationParameter = { + parameterPath: "sqlPoolInfo", + mapper: SqlPoolMapper +}; + +export const parameters: OperationParameter = { + parameterPath: "parameters", + mapper: ResourceMoveDefinitionMapper +}; + +export const metadataSyncConfiguration: OperationParameter = { + parameterPath: "metadataSyncConfiguration", + mapper: MetadataSyncConfigMapper +}; + +export const parameters1: OperationParameter = { + parameterPath: "parameters", + mapper: GeoBackupPolicyMapper +}; + +export const geoBackupPolicyName: OperationURLParameter = { parameterPath: "geoBackupPolicyName", mapper: { - required: true, - isConstant: true, serializedName: "geoBackupPolicyName", - defaultValue: 'Default', + required: true, type: { name: "String" } } }; -export const ifMatch: msRest.OperationParameter = { - parameterPath: [ - "options", - "ifMatch" - ], + +export const dataWarehouseUserActivityName: OperationURLParameter = { + parameterPath: "dataWarehouseUserActivityName", mapper: { - serializedName: "If-Match", + serializedName: "dataWarehouseUserActivityName", + required: true, type: { name: "String" } } }; -export const ifNoneMatch: msRest.OperationParameter = { - parameterPath: [ - "options", - "ifNoneMatch" - ], + +export const parameters2: OperationParameter = { + parameterPath: "parameters", + mapper: CreateSqlPoolRestorePointDefinitionMapper +}; + +export const restorePointName: OperationURLParameter = { + parameterPath: "restorePointName", mapper: { - serializedName: "If-None-Match", + serializedName: "restorePointName", + required: true, type: { name: "String" } } }; -export const includeDisabledRecommendations: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "includeDisabledRecommendations" - ], + +export const linkId: OperationURLParameter = { + parameterPath: "linkId", mapper: { - serializedName: "includeDisabledRecommendations", + serializedName: "linkId", + required: true, type: { - name: "Boolean" + name: "String" } } }; -export const integrationRuntimeName: msRest.OperationURLParameter = { - parameterPath: "integrationRuntimeName", + +export const maintenanceWindowName: OperationQueryParameter = { + parameterPath: "maintenanceWindowName", mapper: { + serializedName: "maintenanceWindowName", required: true, - serializedName: "integrationRuntimeName", type: { name: "String" } } }; -export const keyName: msRest.OperationURLParameter = { - parameterPath: "keyName", + +export const parameters3: OperationParameter = { + parameterPath: "parameters", + mapper: MaintenanceWindowsMapper +}; + +export const maintenanceWindowOptionsName: OperationQueryParameter = { + parameterPath: "maintenanceWindowOptionsName", mapper: { + serializedName: "maintenanceWindowOptionsName", required: true, - serializedName: "keyName", type: { name: "String" } } }; -export const libraryName: msRest.OperationURLParameter = { - parameterPath: "libraryName", + +export const transparentDataEncryptionName: OperationURLParameter = { + parameterPath: "transparentDataEncryptionName", mapper: { + serializedName: "transparentDataEncryptionName", required: true, - serializedName: "libraryName", type: { name: "String" } } }; -export const linkId: msRest.OperationURLParameter = { - parameterPath: "linkId", + +export const parameters4: OperationParameter = { + parameterPath: "parameters", + mapper: TransparentDataEncryptionMapper +}; + +export const blobAuditingPolicyName: OperationURLParameter = { + parameterPath: "blobAuditingPolicyName", mapper: { - required: true, - serializedName: "linkId", + defaultValue: "default", + isConstant: true, + serializedName: "blobAuditingPolicyName", type: { name: "String" } } }; -export const maintenanceWindowName: msRest.OperationQueryParameter = { - parameterPath: "maintenanceWindowName", + +export const parameters5: OperationParameter = { + parameterPath: "parameters", + mapper: SqlPoolBlobAuditingPolicyMapper +}; + +export const filter: OperationQueryParameter = { + parameterPath: ["options", "filter"], mapper: { - required: true, - serializedName: "maintenanceWindowName", + serializedName: "$filter", type: { name: "String" } } }; -export const maintenanceWindowOptionsName: msRest.OperationQueryParameter = { - parameterPath: "maintenanceWindowOptionsName", + +export const parameters6: OperationParameter = { + parameterPath: "parameters", + mapper: SensitivityLabelUpdateListMapper +}; + +export const includeDisabledRecommendations: OperationQueryParameter = { + parameterPath: ["options", "includeDisabledRecommendations"], + mapper: { + serializedName: "includeDisabledRecommendations", + type: { + name: "Boolean" + } + } +}; + +export const skipToken: OperationQueryParameter = { + parameterPath: ["options", "skipToken"], mapper: { + serializedName: "$skipToken", + type: { + name: "String" + } + } +}; + +export const parameters7: OperationParameter = { + parameterPath: "parameters", + mapper: SensitivityLabelMapper +}; + +export const schemaName: OperationURLParameter = { + parameterPath: "schemaName", + mapper: { + serializedName: "schemaName", required: true, - serializedName: "maintenanceWindowOptionsName", type: { name: "String" } } }; -export const nextPageLink: msRest.OperationURLParameter = { - parameterPath: "nextPageLink", + +export const tableName: OperationURLParameter = { + parameterPath: "tableName", mapper: { + serializedName: "tableName", required: true, - serializedName: "nextLink", type: { name: "String" } - }, - skipEncoding: true + } }; -export const nodeName: msRest.OperationURLParameter = { - parameterPath: "nodeName", + +export const columnName: OperationURLParameter = { + parameterPath: "columnName", mapper: { + serializedName: "columnName", required: true, - serializedName: "nodeName", type: { name: "String" } } }; -export const operationId: msRest.OperationURLParameter = { - parameterPath: "operationId", + +export const sensitivityLabelSource: OperationURLParameter = { + parameterPath: "sensitivityLabelSource", + mapper: { + defaultValue: "current", + isConstant: true, + serializedName: "sensitivityLabelSource", + type: { + name: "String" + } + } +}; + +export const sensitivityLabelSource1: OperationURLParameter = { + parameterPath: "sensitivityLabelSource", mapper: { + serializedName: "sensitivityLabelSource", required: true, - serializedName: "operationId", + type: { + name: "Enum", + allowedValues: ["current", "recommended"] + } + } +}; + +export const sensitivityLabelSource2: OperationURLParameter = { + parameterPath: "sensitivityLabelSource", + mapper: { + defaultValue: "recommended", + isConstant: true, + serializedName: "sensitivityLabelSource", type: { name: "String" } } }; -export const privateEndpointConnectionName: msRest.OperationURLParameter = { - parameterPath: "privateEndpointConnectionName", + +export const parameters8: OperationParameter = { + parameterPath: "parameters", + mapper: RecommendedSensitivityLabelUpdateListMapper +}; + +export const connectionPolicyName: OperationURLParameter = { + parameterPath: "connectionPolicyName", mapper: { + serializedName: "connectionPolicyName", required: true, - serializedName: "privateEndpointConnectionName", type: { name: "String" } } }; -export const privateLinkHubName: msRest.OperationURLParameter = { - parameterPath: "privateLinkHubName", + +export const vulnerabilityAssessmentName: OperationURLParameter = { + parameterPath: "vulnerabilityAssessmentName", mapper: { + serializedName: "vulnerabilityAssessmentName", required: true, - serializedName: "privateLinkHubName", type: { name: "String" } } }; -export const privateLinkResourceName: msRest.OperationURLParameter = { - parameterPath: "privateLinkResourceName", + +export const parameters9: OperationParameter = { + parameterPath: "parameters", + mapper: SqlPoolVulnerabilityAssessmentMapper +}; + +export const scanId: OperationURLParameter = { + parameterPath: "scanId", mapper: { + serializedName: "scanId", required: true, - serializedName: "privateLinkResourceName", type: { name: "String" } } }; -export const resourceGroupName: msRest.OperationURLParameter = { - parameterPath: "resourceGroupName", + +export const securityAlertPolicyName: OperationURLParameter = { + parameterPath: "securityAlertPolicyName", mapper: { + serializedName: "securityAlertPolicyName", required: true, - serializedName: "resourceGroupName", - constraints: { - MaxLength: 90, - MinLength: 1, - Pattern: /^[-\w\._\(\)]+$/ - }, type: { name: "String" } } }; -export const restorableDroppedSqlPoolId: msRest.OperationURLParameter = { - parameterPath: "restorableDroppedSqlPoolId", + +export const parameters10: OperationParameter = { + parameterPath: "parameters", + mapper: SqlPoolSecurityAlertPolicyMapper +}; + +export const parameters11: OperationParameter = { + parameterPath: "parameters", + mapper: SqlPoolVulnerabilityAssessmentRuleBaselineMapper +}; + +export const ruleId: OperationURLParameter = { + parameterPath: "ruleId", mapper: { + serializedName: "ruleId", required: true, - serializedName: "restorableDroppedSqlPoolId", type: { name: "String" } } }; -export const restorePointName: msRest.OperationURLParameter = { - parameterPath: "restorePointName", + +export const baselineName: OperationURLParameter = { + parameterPath: "baselineName", mapper: { + serializedName: "baselineName", required: true, - serializedName: "restorePointName", + type: { + name: "Enum", + allowedValues: ["master", "default"] + } + } +}; + +export const parameters12: OperationParameter = { + parameterPath: "parameters", + mapper: ExtendedSqlPoolBlobAuditingPolicyMapper +}; + +export const parameters13: OperationParameter = { + parameterPath: "parameters", + mapper: DataMaskingPolicyMapper +}; + +export const dataMaskingPolicyName: OperationURLParameter = { + parameterPath: "dataMaskingPolicyName", + mapper: { + defaultValue: "Default", + isConstant: true, + serializedName: "dataMaskingPolicyName", type: { name: "String" } } }; -export const ruleId: msRest.OperationURLParameter = { - parameterPath: "ruleId", + +export const parameters14: OperationParameter = { + parameterPath: "parameters", + mapper: DataMaskingRuleMapper +}; + +export const dataMaskingRuleName: OperationURLParameter = { + parameterPath: "dataMaskingRuleName", mapper: { + serializedName: "dataMaskingRuleName", required: true, - serializedName: "ruleId", type: { name: "String" } } }; -export const ruleName: msRest.OperationURLParameter = { - parameterPath: "ruleName", + +export const workloadGroupName: OperationURLParameter = { + parameterPath: "workloadGroupName", mapper: { + serializedName: "workloadGroupName", required: true, - serializedName: "ruleName", type: { name: "String" } } }; -export const scanId: msRest.OperationURLParameter = { - parameterPath: "scanId", + +export const parameters15: OperationParameter = { + parameterPath: "parameters", + mapper: WorkloadGroupMapper +}; + +export const workloadClassifierName: OperationURLParameter = { + parameterPath: "workloadClassifierName", mapper: { + serializedName: "workloadClassifierName", required: true, - serializedName: "scanId", type: { name: "String" } } }; -export const schemaName: msRest.OperationURLParameter = { - parameterPath: "schemaName", + +export const parameters16: OperationParameter = { + parameterPath: "parameters", + mapper: WorkloadClassifierMapper +}; + +export const blobAuditingPolicyName1: OperationURLParameter = { + parameterPath: "blobAuditingPolicyName", mapper: { + serializedName: "blobAuditingPolicyName", required: true, - serializedName: "schemaName", type: { name: "String" } } }; -export const securityAlertPolicyName0: msRest.OperationURLParameter = { + +export const parameters17: OperationParameter = { + parameterPath: "parameters", + mapper: ServerBlobAuditingPolicyMapper +}; + +export const parameters18: OperationParameter = { + parameterPath: "parameters", + mapper: ExtendedServerBlobAuditingPolicyMapper +}; + +export const securityAlertPolicyName1: OperationURLParameter = { parameterPath: "securityAlertPolicyName", mapper: { - required: true, - isConstant: true, serializedName: "securityAlertPolicyName", - defaultValue: 'default', + required: true, type: { name: "String" } } }; -export const securityAlertPolicyName1: msRest.OperationURLParameter = { - parameterPath: "securityAlertPolicyName", + +export const parameters19: OperationParameter = { + parameterPath: "parameters", + mapper: ServerSecurityAlertPolicyMapper +}; + +export const parameters20: OperationParameter = { + parameterPath: "parameters", + mapper: ServerVulnerabilityAssessmentMapper +}; + +export const encryptionProtectorName: OperationURLParameter = { + parameterPath: "encryptionProtectorName", mapper: { + serializedName: "encryptionProtectorName", required: true, - isConstant: true, - serializedName: "securityAlertPolicyName", - defaultValue: 'Default', type: { name: "String" } } }; -export const sensitivityLabelSource0: msRest.OperationURLParameter = { - parameterPath: "sensitivityLabelSource", + +export const parameters21: OperationParameter = { + parameterPath: "parameters", + mapper: EncryptionProtectorMapper +}; + +export const workspacePatchInfo: OperationParameter = { + parameterPath: "workspacePatchInfo", + mapper: WorkspacePatchInfoMapper +}; + +export const workspaceInfo: OperationParameter = { + parameterPath: "workspaceInfo", + mapper: WorkspaceMapper +}; + +export const aadAdminInfo: OperationParameter = { + parameterPath: "aadAdminInfo", + mapper: WorkspaceAadAdminInfoMapper +}; + +export const managedIdentitySqlControlSettings: OperationParameter = { + parameterPath: "managedIdentitySqlControlSettings", + mapper: ManagedIdentitySqlControlSettingsModelMapper +}; + +export const restorableDroppedSqlPoolId: OperationURLParameter = { + parameterPath: "restorableDroppedSqlPoolId", mapper: { + serializedName: "restorableDroppedSqlPoolId", required: true, + type: { + name: "String" + } + } +}; + +export const apiVersion1: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2021-06-01-preview", isConstant: true, - serializedName: "sensitivityLabelSource", - defaultValue: 'current', + serializedName: "api-version", type: { name: "String" } } }; -export const sensitivityLabelSource1: msRest.OperationURLParameter = { - parameterPath: "sensitivityLabelSource", + +export const bigDataPoolName: OperationURLParameter = { + parameterPath: "bigDataPoolName", mapper: { + serializedName: "bigDataPoolName", required: true, - serializedName: "sensitivityLabelSource", type: { - name: "Enum", - allowedValues: [ - "current", - "recommended" - ] + name: "String" } } }; -export const sensitivityLabelSource2: msRest.OperationURLParameter = { - parameterPath: "sensitivityLabelSource", + +export const bigDataPoolPatchInfo: OperationParameter = { + parameterPath: "bigDataPoolPatchInfo", + mapper: BigDataPoolPatchInfoMapper +}; + +export const bigDataPoolInfo: OperationParameter = { + parameterPath: "bigDataPoolInfo", + mapper: BigDataPoolResourceInfoMapper +}; + +export const force: OperationQueryParameter = { + parameterPath: ["options", "force"], mapper: { + defaultValue: false, + serializedName: "force", + type: { + name: "Boolean" + } + } +}; + +export const libraryName: OperationURLParameter = { + parameterPath: "libraryName", + mapper: { + serializedName: "libraryName", required: true, - isConstant: true, - serializedName: "sensitivityLabelSource", - defaultValue: 'recommended', type: { name: "String" } } }; -export const skipToken: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "skipToken" - ], + +export const updateIntegrationRuntimeRequest: OperationParameter = { + parameterPath: "updateIntegrationRuntimeRequest", + mapper: UpdateIntegrationRuntimeRequestMapper +}; + +export const integrationRuntimeName: OperationURLParameter = { + parameterPath: "integrationRuntimeName", mapper: { - serializedName: "$skipToken", + serializedName: "integrationRuntimeName", + required: true, type: { name: "String" } } }; -export const sqlPoolName: msRest.OperationURLParameter = { - parameterPath: "sqlPoolName", + +export const ifNoneMatch: OperationParameter = { + parameterPath: ["options", "ifNoneMatch"], + mapper: { + serializedName: "If-None-Match", + type: { + name: "String" + } + } +}; + +export const integrationRuntime: OperationParameter = { + parameterPath: "integrationRuntime", + mapper: IntegrationRuntimeResourceMapper +}; + +export const ifMatch: OperationParameter = { + parameterPath: ["options", "ifMatch"], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; + +export const nodeName: OperationURLParameter = { + parameterPath: "nodeName", mapper: { + serializedName: "nodeName", required: true, - serializedName: "sqlPoolName", type: { name: "String" } } }; -export const subscriptionId: msRest.OperationURLParameter = { - parameterPath: "subscriptionId", + +export const getMetadataRequest: OperationParameter = { + parameterPath: ["options", "getMetadataRequest"], + mapper: GetSsisObjectMetadataRequestMapper +}; + +export const updateIntegrationRuntimeNodeRequest: OperationParameter = { + parameterPath: "updateIntegrationRuntimeNodeRequest", + mapper: UpdateIntegrationRuntimeNodeRequestMapper +}; + +export const regenerateKeyParameters: OperationParameter = { + parameterPath: "regenerateKeyParameters", + mapper: IntegrationRuntimeRegenerateKeyParametersMapper +}; + +export const sparkConfigurationName: OperationURLParameter = { + parameterPath: "sparkConfigurationName", mapper: { + serializedName: "sparkConfigurationName", required: true, - serializedName: "subscriptionId", - constraints: { - MinLength: 1 - }, type: { name: "String" } } }; -export const tableName: msRest.OperationURLParameter = { - parameterPath: "tableName", + +export const kustoPoolName: OperationParameter = { + parameterPath: "kustoPoolName", + mapper: KustoPoolCheckNameRequestMapper +}; + +export const location: OperationURLParameter = { + parameterPath: "location", mapper: { + constraints: { + MinLength: 1 + }, + serializedName: "location", required: true, - serializedName: "tableName", type: { name: "String" } } }; -export const transparentDataEncryptionName: msRest.OperationURLParameter = { - parameterPath: "transparentDataEncryptionName", + +export const kustoPoolName1: OperationURLParameter = { + parameterPath: "kustoPoolName", mapper: { + serializedName: "kustoPoolName", required: true, - isConstant: true, - serializedName: "transparentDataEncryptionName", - defaultValue: 'current', type: { name: "String" } } }; -export const vulnerabilityAssessmentName: msRest.OperationURLParameter = { - parameterPath: "vulnerabilityAssessmentName", + +export const parameters22: OperationParameter = { + parameterPath: "parameters", + mapper: KustoPoolMapper +}; + +export const parameters23: OperationParameter = { + parameterPath: "parameters", + mapper: KustoPoolUpdateMapper +}; + +export const languageExtensionsToAdd: OperationParameter = { + parameterPath: "languageExtensionsToAdd", + mapper: LanguageExtensionsListMapper +}; + +export const languageExtensionsToRemove: OperationParameter = { + parameterPath: "languageExtensionsToRemove", + mapper: LanguageExtensionsListMapper +}; + +export const followerDatabaseToRemove: OperationParameter = { + parameterPath: "followerDatabaseToRemove", + mapper: FollowerDatabaseDefinitionMapper +}; + +export const resourceName: OperationParameter = { + parameterPath: "resourceName", + mapper: DatabaseCheckNameRequestMapper +}; + +export const attachedDatabaseConfigurationName: OperationURLParameter = { + parameterPath: "attachedDatabaseConfigurationName", mapper: { + serializedName: "attachedDatabaseConfigurationName", required: true, - isConstant: true, - serializedName: "vulnerabilityAssessmentName", - defaultValue: 'default', type: { name: "String" } } }; -export const workloadClassifierName: msRest.OperationURLParameter = { - parameterPath: "workloadClassifierName", + +export const parameters24: OperationParameter = { + parameterPath: "parameters", + mapper: AttachedDatabaseConfigurationMapper +}; + +export const databaseName: OperationURLParameter = { + parameterPath: "databaseName", mapper: { + serializedName: "databaseName", required: true, - serializedName: "workloadClassifierName", type: { name: "String" } } }; -export const workloadGroupName: msRest.OperationURLParameter = { - parameterPath: "workloadGroupName", + +export const parameters25: OperationParameter = { + parameterPath: "parameters", + mapper: DatabaseMapper +}; + +export const dataConnectionName: OperationParameter = { + parameterPath: "dataConnectionName", + mapper: DataConnectionCheckNameRequestMapper +}; + +export const parameters26: OperationParameter = { + parameterPath: "parameters", + mapper: DataConnectionValidationMapper +}; + +export const dataConnectionName1: OperationURLParameter = { + parameterPath: "dataConnectionName", mapper: { + serializedName: "dataConnectionName", required: true, - serializedName: "workloadGroupName", type: { name: "String" } } }; -export const workspaceName: msRest.OperationURLParameter = { - parameterPath: "workspaceName", + +export const parameters27: OperationParameter = { + parameterPath: "parameters", + mapper: DataConnectionMapper +}; + +export const principalAssignmentName: OperationParameter = { + parameterPath: "principalAssignmentName", + mapper: ClusterPrincipalAssignmentCheckNameRequestMapper +}; + +export const principalAssignmentName1: OperationURLParameter = { + parameterPath: "principalAssignmentName", mapper: { + serializedName: "principalAssignmentName", required: true, - serializedName: "workspaceName", type: { name: "String" } } }; + +export const parameters28: OperationParameter = { + parameterPath: "parameters", + mapper: ClusterPrincipalAssignmentMapper +}; + +export const principalAssignmentName2: OperationParameter = { + parameterPath: "principalAssignmentName", + mapper: DatabasePrincipalAssignmentCheckNameRequestMapper +}; + +export const parameters29: OperationParameter = { + parameterPath: "parameters", + mapper: DatabasePrincipalAssignmentMapper +}; diff --git a/sdk/synapse/arm-synapse/src/models/privateEndpointConnectionsMappers.ts b/sdk/synapse/arm-synapse/src/models/privateEndpointConnectionsMappers.ts deleted file mode 100644 index 262b1c64c8e6..000000000000 --- a/sdk/synapse/arm-synapse/src/models/privateEndpointConnectionsMappers.ts +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - OperationResource, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateEndpointConnectionList, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/privateEndpointConnectionsPrivateLinkHubMappers.ts b/sdk/synapse/arm-synapse/src/models/privateEndpointConnectionsPrivateLinkHubMappers.ts deleted file mode 100644 index 90adbe73e0c3..000000000000 --- a/sdk/synapse/arm-synapse/src/models/privateEndpointConnectionsPrivateLinkHubMappers.ts +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/privateLinkHubPrivateLinkResourcesMappers.ts b/sdk/synapse/arm-synapse/src/models/privateLinkHubPrivateLinkResourcesMappers.ts deleted file mode 100644 index 18146d45608a..000000000000 --- a/sdk/synapse/arm-synapse/src/models/privateLinkHubPrivateLinkResourcesMappers.ts +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceListResult, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/privateLinkHubsMappers.ts b/sdk/synapse/arm-synapse/src/models/privateLinkHubsMappers.ts deleted file mode 100644 index baafec14a504..000000000000 --- a/sdk/synapse/arm-synapse/src/models/privateLinkHubsMappers.ts +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkHubInfoListResult, - PrivateLinkHubPatchInfo, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/privateLinkResourcesMappers.ts b/sdk/synapse/arm-synapse/src/models/privateLinkResourcesMappers.ts deleted file mode 100644 index 18146d45608a..000000000000 --- a/sdk/synapse/arm-synapse/src/models/privateLinkResourcesMappers.ts +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceListResult, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/restorableDroppedSqlPoolsMappers.ts b/sdk/synapse/arm-synapse/src/models/restorableDroppedSqlPoolsMappers.ts deleted file mode 100644 index c734cf673056..000000000000 --- a/sdk/synapse/arm-synapse/src/models/restorableDroppedSqlPoolsMappers.ts +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorableDroppedSqlPoolListResult, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolBlobAuditingPoliciesMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolBlobAuditingPoliciesMappers.ts deleted file mode 100644 index 64560aa6a40a..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolBlobAuditingPoliciesMappers.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolBlobAuditingPolicyListResult, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolColumnsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolColumnsMappers.ts deleted file mode 100644 index 3e64b791ca44..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolColumnsMappers.ts +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolConnectionPoliciesMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolConnectionPoliciesMappers.ts deleted file mode 100644 index fa7be042dcd4..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolConnectionPoliciesMappers.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolDataWarehouseUserActivitiesMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolDataWarehouseUserActivitiesMappers.ts deleted file mode 100644 index 3e64b791ca44..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolDataWarehouseUserActivitiesMappers.ts +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolGeoBackupPoliciesMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolGeoBackupPoliciesMappers.ts deleted file mode 100644 index a946fc3c7409..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolGeoBackupPoliciesMappers.ts +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - GeoBackupPolicyListResult, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolMaintenanceWindowOptionsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolMaintenanceWindowOptionsMappers.ts deleted file mode 100644 index 3e64b791ca44..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolMaintenanceWindowOptionsMappers.ts +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolMaintenanceWindowsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolMaintenanceWindowsMappers.ts deleted file mode 100644 index e7ebca702aa0..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolMaintenanceWindowsMappers.ts +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolMetadataSyncConfigsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolMetadataSyncConfigsMappers.ts deleted file mode 100644 index fa7be042dcd4..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolMetadataSyncConfigsMappers.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolOperationsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolOperationsMappers.ts deleted file mode 100644 index d53a8a4c3932..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolOperationsMappers.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolBlobAuditingPolicySqlPoolOperationListResult, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolRecommendedSensitivityLabelsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolRecommendedSensitivityLabelsMappers.ts deleted file mode 100644 index 38373379fa79..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolRecommendedSensitivityLabelsMappers.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecommendedSensitivityLabelUpdateList, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolReplicationLinksMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolReplicationLinksMappers.ts deleted file mode 100644 index d0edb64937f9..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolReplicationLinksMappers.ts +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - ReplicationLinkListResult, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolRestorePointsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolRestorePointsMappers.ts deleted file mode 100644 index 825eb21ca4bf..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolRestorePointsMappers.ts +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CreateSqlPoolRestorePointDefinition, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - RestorePointListResult, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolSchemasMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolSchemasMappers.ts deleted file mode 100644 index e3d29eeac3ea..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolSchemasMappers.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSchemaListResult, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolSecurityAlertPoliciesMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolSecurityAlertPoliciesMappers.ts deleted file mode 100644 index 03429f3b91fd..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolSecurityAlertPoliciesMappers.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - ListSqlPoolSecurityAlertPolicies, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolSensitivityLabelsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolSensitivityLabelsMappers.ts deleted file mode 100644 index 54caac1bd7a9..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolSensitivityLabelsMappers.ts +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelListResult, - SensitivityLabelUpdate, - SensitivityLabelUpdateList, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolTableColumnsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolTableColumnsMappers.ts deleted file mode 100644 index 1da4c0ca097f..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolTableColumnsMappers.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolColumnListResult, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolTablesMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolTablesMappers.ts deleted file mode 100644 index 98d97b28060d..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolTablesMappers.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolTableListResult, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolTransparentDataEncryptionsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolTransparentDataEncryptionsMappers.ts deleted file mode 100644 index 5ac7ae17fe03..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolTransparentDataEncryptionsMappers.ts +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionListResult, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolUsagesMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolUsagesMappers.ts deleted file mode 100644 index 81bdb8b82a4a..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolUsagesMappers.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - SqlPoolUsage, - SqlPoolUsageListResult -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentRuleBaselinesMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentRuleBaselinesMappers.ts deleted file mode 100644 index 3e64b791ca44..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentRuleBaselinesMappers.ts +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentScansMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentScansMappers.ts deleted file mode 100644 index 6c5dc56eb373..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentScansMappers.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - VulnerabilityAssessmentScanRecordListResult, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentsMappers.ts deleted file mode 100644 index f2669c7d24a9..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolVulnerabilityAssessmentsMappers.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentListResult, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolWorkloadClassifierMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolWorkloadClassifierMappers.ts deleted file mode 100644 index c3251ea93117..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolWorkloadClassifierMappers.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadClassifierListResult, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolWorkloadGroupMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolWorkloadGroupMappers.ts deleted file mode 100644 index ac30482fc357..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolWorkloadGroupMappers.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - WorkloadGroupListResult, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/sqlPoolsMappers.ts b/sdk/synapse/arm-synapse/src/models/sqlPoolsMappers.ts deleted file mode 100644 index 7076b6266de9..000000000000 --- a/sdk/synapse/arm-synapse/src/models/sqlPoolsMappers.ts +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - ResourceMoveDefinition, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolInfoListResult, - SqlPoolOperation, - SqlPoolPatchInfo, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/workspaceAadAdminsMappers.ts b/sdk/synapse/arm-synapse/src/models/workspaceAadAdminsMappers.ts deleted file mode 100644 index fa7be042dcd4..000000000000 --- a/sdk/synapse/arm-synapse/src/models/workspaceAadAdminsMappers.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/workspaceManagedIdentitySqlControlSettingsMappers.ts b/sdk/synapse/arm-synapse/src/models/workspaceManagedIdentitySqlControlSettingsMappers.ts deleted file mode 100644 index fa7be042dcd4..000000000000 --- a/sdk/synapse/arm-synapse/src/models/workspaceManagedIdentitySqlControlSettingsMappers.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerBlobAuditingPoliciesMappers.ts b/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerBlobAuditingPoliciesMappers.ts deleted file mode 100644 index bd3a487c73df..000000000000 --- a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerBlobAuditingPoliciesMappers.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerBlobAuditingPolicyListResult, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerEncryptionProtectorMappers.ts b/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerEncryptionProtectorMappers.ts deleted file mode 100644 index 0ea4973709e3..000000000000 --- a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerEncryptionProtectorMappers.ts +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EncryptionProtectorListResult, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerExtendedBlobAuditingPoliciesMappers.ts b/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerExtendedBlobAuditingPoliciesMappers.ts deleted file mode 100644 index 0547a43568fc..000000000000 --- a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerExtendedBlobAuditingPoliciesMappers.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ExtendedServerBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicyListResult, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerRecoverableSqlPoolsMappers.ts b/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerRecoverableSqlPoolsMappers.ts deleted file mode 100644 index e3a4f6a282e3..000000000000 --- a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerRecoverableSqlPoolsMappers.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - RecoverableSqlPoolListResult, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerSecurityAlertPolicyMappers.ts b/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerSecurityAlertPolicyMappers.ts deleted file mode 100644 index e2cc9a20ccfc..000000000000 --- a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerSecurityAlertPolicyMappers.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerSecurityAlertPolicyListResult, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerUsagesMappers.ts b/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerUsagesMappers.ts deleted file mode 100644 index d16617ebc959..000000000000 --- a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerUsagesMappers.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - CloudError, - ServerUsage, - ServerUsageListResult -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerVulnerabilityAssessmentsMappers.ts b/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerVulnerabilityAssessmentsMappers.ts deleted file mode 100644 index 1aacf48368cd..000000000000 --- a/sdk/synapse/arm-synapse/src/models/workspaceManagedSqlServerVulnerabilityAssessmentsMappers.ts +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CloudError, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServerVulnerabilityAssessmentListResult, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/workspaceSqlAadAdminsMappers.ts b/sdk/synapse/arm-synapse/src/models/workspaceSqlAadAdminsMappers.ts deleted file mode 100644 index fa7be042dcd4..000000000000 --- a/sdk/synapse/arm-synapse/src/models/workspaceSqlAadAdminsMappers.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceKeyDetails, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/models/workspacesMappers.ts b/sdk/synapse/arm-synapse/src/models/workspacesMappers.ts deleted file mode 100644 index 9dde78134f15..000000000000 --- a/sdk/synapse/arm-synapse/src/models/workspacesMappers.ts +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - AutoPauseProperties, - AutoScaleProperties, - AzureEntityResource, - BaseResource, - BigDataPoolResourceInfo, - CmdkeySetup, - ComponentSetup, - CustomerManagedKeyDetails, - CustomSetupBase, - DataLakeStorageAccountDetails, - DataMaskingPolicy, - DataMaskingRule, - DataWarehouseUserActivities, - DynamicExecutorAllocation, - EncryptionDetails, - EncryptionProtector, - EntityReference, - EnvironmentVariableSetup, - ErrorAdditionalInfo, - ErrorDetail, - ErrorResponse, - ExtendedServerBlobAuditingPolicy, - ExtendedSqlPoolBlobAuditingPolicy, - GeoBackupPolicy, - IntegrationRuntime, - IntegrationRuntimeComputeProperties, - IntegrationRuntimeCustomSetupScriptProperties, - IntegrationRuntimeDataFlowProperties, - IntegrationRuntimeDataProxyProperties, - IntegrationRuntimeResource, - IntegrationRuntimeSsisCatalogInfo, - IntegrationRuntimeSsisProperties, - IntegrationRuntimeVNetProperties, - IpFirewallRuleInfo, - Key, - LibraryInfo, - LibraryRequirements, - LibraryResource, - LinkedIntegrationRuntimeKeyAuthorization, - LinkedIntegrationRuntimeRbacAuthorization, - LinkedIntegrationRuntimeType, - MaintenanceWindowOptions, - MaintenanceWindows, - MaintenanceWindowTimeRange, - ManagedIdentity, - ManagedIdentitySqlControlSettingsModel, - ManagedIdentitySqlControlSettingsModelPropertiesGrantSqlControlToManagedIdentity, - ManagedIntegrationRuntime, - ManagedVirtualNetworkSettings, - MetadataSyncConfig, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateEndpointConnectionForPrivateLinkHub, - PrivateEndpointConnectionForPrivateLinkHubBasic, - PrivateLinkHub, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionState, - ProxyResource, - PurviewConfiguration, - RecommendedSensitivityLabelUpdate, - RecoverableSqlPool, - ReplicationLink, - Resource, - RestorableDroppedSqlPool, - RestorePoint, - SecretBase, - SecureString, - SelfHostedIntegrationRuntime, - SensitivityLabel, - SensitivityLabelUpdate, - ServerBlobAuditingPolicy, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - Sku, - SqlPool, - SqlPoolBlobAuditingPolicy, - SqlPoolColumn, - SqlPoolConnectionPolicy, - SqlPoolOperation, - SqlPoolSchema, - SqlPoolSecurityAlertPolicy, - SqlPoolTable, - SqlPoolVulnerabilityAssessment, - SqlPoolVulnerabilityAssessmentRuleBaseline, - SqlPoolVulnerabilityAssessmentRuleBaselineItem, - SqlPoolVulnerabilityAssessmentScansExport, - SubResource, - TrackedResource, - TransparentDataEncryption, - VirtualNetworkProfile, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord, - WorkloadClassifier, - WorkloadGroup, - Workspace, - WorkspaceAadAdminInfo, - WorkspaceInfoListResult, - WorkspaceKeyDetails, - WorkspacePatchInfo, - WorkspaceRepositoryConfiguration -} from "../models/mappers"; diff --git a/sdk/synapse/arm-synapse/src/operations/azureADOnlyAuthentications.ts b/sdk/synapse/arm-synapse/src/operations/azureADOnlyAuthentications.ts new file mode 100644 index 000000000000..941fb25851df --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/azureADOnlyAuthentications.ts @@ -0,0 +1,368 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { AzureADOnlyAuthentications } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + AzureADOnlyAuthentication, + AzureADOnlyAuthenticationsListNextOptionalParams, + AzureADOnlyAuthenticationsListOptionalParams, + AzureADOnlyAuthenticationName, + AzureADOnlyAuthenticationsGetOptionalParams, + AzureADOnlyAuthenticationsGetResponse, + AzureADOnlyAuthenticationsCreateOptionalParams, + AzureADOnlyAuthenticationsCreateResponse, + AzureADOnlyAuthenticationsListResponse, + AzureADOnlyAuthenticationsListNextResponse +} from "../models"; + +/// +/** Class containing AzureADOnlyAuthentications operations. */ +export class AzureADOnlyAuthenticationsImpl + implements AzureADOnlyAuthentications { + private readonly client: SynapseManagementClient; + + /** + * Initialize a new instance of the class AzureADOnlyAuthentications class. + * @param client Reference to the service client + */ + constructor(client: SynapseManagementClient) { + this.client = client; + } + + /** + * Gets a list of Azure Active Directory only authentication property for a workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: AzureADOnlyAuthenticationsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: AzureADOnlyAuthenticationsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: AzureADOnlyAuthenticationsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * Gets a Azure Active Directory only authentication property + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param azureADOnlyAuthenticationName name of the property + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + azureADOnlyAuthenticationName: AzureADOnlyAuthenticationName, + options?: AzureADOnlyAuthenticationsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + azureADOnlyAuthenticationName, + options + }, + getOperationSpec + ); + } + + /** + * Create or Update a Azure Active Directory only authentication property for the workspaces + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param azureADOnlyAuthenticationName name of the property + * @param azureADOnlyAuthenticationInfo Azure Active Directory Property + * @param options The options parameters. + */ + async beginCreate( + resourceGroupName: string, + workspaceName: string, + azureADOnlyAuthenticationName: AzureADOnlyAuthenticationName, + azureADOnlyAuthenticationInfo: AzureADOnlyAuthentication, + options?: AzureADOnlyAuthenticationsCreateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + AzureADOnlyAuthenticationsCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + workspaceName, + azureADOnlyAuthenticationName, + azureADOnlyAuthenticationInfo, + options + }, + createOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + } + + /** + * Create or Update a Azure Active Directory only authentication property for the workspaces + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param azureADOnlyAuthenticationName name of the property + * @param azureADOnlyAuthenticationInfo Azure Active Directory Property + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceGroupName: string, + workspaceName: string, + azureADOnlyAuthenticationName: AzureADOnlyAuthenticationName, + azureADOnlyAuthenticationInfo: AzureADOnlyAuthentication, + options?: AzureADOnlyAuthenticationsCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + workspaceName, + azureADOnlyAuthenticationName, + azureADOnlyAuthenticationInfo, + options + ); + return poller.pollUntilDone(); + } + + /** + * Gets a list of Azure Active Directory only authentication property for a workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: AzureADOnlyAuthenticationsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: AzureADOnlyAuthenticationsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications/{azureADOnlyAuthenticationName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureADOnlyAuthentication + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.azureADOnlyAuthenticationName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications/{azureADOnlyAuthenticationName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.AzureADOnlyAuthentication + }, + 201: { + bodyMapper: Mappers.AzureADOnlyAuthentication + }, + 202: { + bodyMapper: Mappers.AzureADOnlyAuthentication + }, + 204: { + bodyMapper: Mappers.AzureADOnlyAuthentication + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.azureADOnlyAuthenticationInfo, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.azureADOnlyAuthenticationName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureADOnlyAuthenticationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureADOnlyAuthenticationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/bigDataPools.ts b/sdk/synapse/arm-synapse/src/operations/bigDataPools.ts index e7a8a4148470..c1d0582f3ddc 100644 --- a/sdk/synapse/arm-synapse/src/operations/bigDataPools.ts +++ b/sdk/synapse/arm-synapse/src/operations/bigDataPools.ts @@ -3,95 +3,152 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/bigDataPoolsMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { BigDataPools } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + BigDataPoolResourceInfo, + BigDataPoolsListByWorkspaceNextOptionalParams, + BigDataPoolsListByWorkspaceOptionalParams, + BigDataPoolsGetOptionalParams, + BigDataPoolsGetResponse, + BigDataPoolPatchInfo, + BigDataPoolsUpdateOptionalParams, + BigDataPoolsUpdateResponse, + BigDataPoolsCreateOrUpdateOptionalParams, + BigDataPoolsCreateOrUpdateResponse, + BigDataPoolsDeleteOptionalParams, + BigDataPoolsDeleteResponse, + BigDataPoolsListByWorkspaceResponse, + BigDataPoolsListByWorkspaceNextResponse +} from "../models"; -/** Class representing a BigDataPools. */ -export class BigDataPools { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing BigDataPools operations. */ +export class BigDataPoolsImpl implements BigDataPools { + private readonly client: SynapseManagementClient; /** - * Create a BigDataPools. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class BigDataPools class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** - * Get a Big Data pool. - * @summary Get Big Data pool - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param bigDataPoolName Big Data pool name - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, workspaceName: string, bigDataPoolName: 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 bigDataPoolName Big Data pool name - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, callback: msRest.ServiceCallback): void; - /** + * List Big Data pools in a workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param bigDataPoolName Big Data pool name - * @param options The optional parameters - * @param callback The callback + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: BigDataPoolsListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByWorkspacePagingAll( + resourceGroupName, + workspaceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + ); + } + }; + } + + private async *listByWorkspacePagingPage( + resourceGroupName: string, + workspaceName: string, + options?: BigDataPoolsListByWorkspaceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByWorkspace( + resourceGroupName, + workspaceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByWorkspaceNext( resourceGroupName, workspaceName, - bigDataPoolName, + continuationToken, options - }, - getOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByWorkspacePagingAll( + resourceGroupName: string, + workspaceName: string, + options?: BigDataPoolsListByWorkspaceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } } /** - * Patch a Big Data pool. - * @summary Update a Big Data pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param bigDataPoolName Big Data pool name - * @param bigDataPoolPatchInfo The updated Big Data pool properties - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, bigDataPoolPatchInfo: Models.BigDataPoolPatchInfo, options?: msRest.RequestOptionsBase): Promise; - /** + * Get a Big Data pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name - * @param bigDataPoolPatchInfo The updated Big Data pool properties - * @param callback The callback + * @param options The options parameters. */ - update(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, bigDataPoolPatchInfo: Models.BigDataPoolPatchInfo, callback: msRest.ServiceCallback): void; + get( + resourceGroupName: string, + workspaceName: string, + bigDataPoolName: string, + options?: BigDataPoolsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, bigDataPoolName, options }, + getOperationSpec + ); + } + /** + * Patch a Big Data pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name * @param bigDataPoolPatchInfo The updated Big Data pool properties - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - update(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, bigDataPoolPatchInfo: Models.BigDataPoolPatchInfo, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, bigDataPoolPatchInfo: Models.BigDataPoolPatchInfo, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update( + resourceGroupName: string, + workspaceName: string, + bigDataPoolName: string, + bigDataPoolPatchInfo: BigDataPoolPatchInfo, + options?: BigDataPoolsUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -100,163 +157,246 @@ export class BigDataPools { bigDataPoolPatchInfo, options }, - updateOperationSpec, - callback) as Promise; + updateOperationSpec + ); } /** * Create a new Big Data pool. - * @summary Create a Big Data pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name * @param bigDataPoolInfo The Big Data pool to create. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, bigDataPoolInfo: Models.BigDataPoolResourceInfo, options?: Models.BigDataPoolsCreateOrUpdateOptionalParams): Promise { - return this.beginCreateOrUpdate(resourceGroupName,workspaceName,bigDataPoolName,bigDataPoolInfo,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Delete a Big Data pool from the workspace. - * @summary Delete a Big Data pool. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param bigDataPoolName Big Data pool name - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,workspaceName,bigDataPoolName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + bigDataPoolName: string, + bigDataPoolInfo: BigDataPoolResourceInfo, + options?: BigDataPoolsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + BigDataPoolsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; - /** - * List Big Data pools in a workspace. - * @summary List the Big Data pools in a workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( + const lro = new LroImpl( + sendOperation, { resourceGroupName, workspaceName, + bigDataPoolName, + bigDataPoolInfo, options }, - listByWorkspaceOperationSpec, - callback) as Promise; + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); } /** * Create a new Big Data pool. - * @summary Create a Big Data pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name * @param bigDataPoolInfo The Big Data pool to create. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, bigDataPoolInfo: Models.BigDataPoolResourceInfo, options?: Models.BigDataPoolsBeginCreateOrUpdateOptionalParams): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - bigDataPoolName, - bigDataPoolInfo, - options - }, - beginCreateOrUpdateOperationSpec, - options); + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + bigDataPoolName: string, + bigDataPoolInfo: BigDataPoolResourceInfo, + options?: BigDataPoolsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + bigDataPoolName, + bigDataPoolInfo, + options + ); + return poller.pollUntilDone(); } /** * Delete a Big Data pool from the workspace. - * @summary Delete a Big Data pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param bigDataPoolName Big Data pool name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginDeleteMethod(resourceGroupName: string, workspaceName: string, bigDataPoolName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - bigDataPoolName, - options - }, - beginDeleteMethodOperationSpec, - options); + async beginDelete( + resourceGroupName: string, + workspaceName: string, + bigDataPoolName: string, + options?: BigDataPoolsDeleteOptionalParams + ): Promise< + PollerLike< + PollOperationState, + BigDataPoolsDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, bigDataPoolName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); } /** - * List Big Data pools in a workspace. - * @summary List the Big Data pools in a workspace. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise + * Delete a Big Data pool from the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param bigDataPoolName Big Data pool name + * @param options The options parameters. */ - listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + bigDataPoolName: string, + options?: BigDataPoolsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + bigDataPoolName, + options + ); + return poller.pollUntilDone(); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback + * List Big Data pools in a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - listByWorkspaceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + private _listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: BigDataPoolsListByWorkspaceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listByWorkspaceOperationSpec + ); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListByWorkspaceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method. + * @param options The options parameters. */ - listByWorkspaceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listByWorkspaceNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: BigDataPoolsListByWorkspaceNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByWorkspaceNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, nextLink, options }, + listByWorkspaceNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.bigDataPoolName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.BigDataPoolResourceInfo @@ -265,157 +405,141 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}", + queryParameters: [Parameters.apiVersion1], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.bigDataPoolName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "bigDataPoolPatchInfo", - mapper: { - ...Mappers.BigDataPoolPatchInfo, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.BigDataPoolResourceInfo - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, + headerParameters: [Parameters.accept], serializer }; - -const listByWorkspaceOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}", + httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.BigDataPoolResourceInfoListResult + bodyMapper: Mappers.BigDataPoolResourceInfo }, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}", + requestBody: Parameters.bigDataPoolPatchInfo, + queryParameters: [Parameters.apiVersion1], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.bigDataPoolName ], - queryParameters: [ - Parameters.apiVersion, - Parameters.force - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "bigDataPoolInfo", - mapper: { - ...Mappers.BigDataPoolResourceInfo, - required: true - } - }, + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.BigDataPoolResourceInfo }, + 201: { + bodyMapper: Mappers.BigDataPoolResourceInfo + }, 202: { bodyMapper: Mappers.BigDataPoolResourceInfo }, + 204: { + bodyMapper: Mappers.BigDataPoolResourceInfo + }, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}", + requestBody: Parameters.bigDataPoolInfo, + queryParameters: [Parameters.apiVersion1, Parameters.force], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.bigDataPoolName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}", + httpMethod: "DELETE", responses: { 200: { bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + }, + 201: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } } }, 202: { bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + }, + 204: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } } }, - 204: {}, default: { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.bigDataPoolName + ], + headerParameters: [Parameters.accept], serializer }; - -const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools", httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", + responses: { + 200: { + bodyMapper: Mappers.BigDataPoolResourceInfoListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName ], + headerParameters: [Parameters.accept], + serializer +}; +const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.BigDataPoolResourceInfoListResult @@ -424,5 +548,14 @@ const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/dataMaskingPolicies.ts b/sdk/synapse/arm-synapse/src/operations/dataMaskingPolicies.ts index 81d1700370e4..e0d3a04f9ef3 100644 --- a/sdk/synapse/arm-synapse/src/operations/dataMaskingPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operations/dataMaskingPolicies.ts @@ -3,130 +3,81 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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 { DataMaskingPolicies } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + DataMaskingPolicy, + DataMaskingPoliciesCreateOrUpdateOptionalParams, + DataMaskingPoliciesCreateOrUpdateResponse, + DataMaskingPoliciesGetOptionalParams, + DataMaskingPoliciesGetResponse +} from "../models"; -/** Class representing a DataMaskingPolicies. */ -export class DataMaskingPolicies { - private readonly client: SynapseManagementClientContext; +/** Class containing DataMaskingPolicies operations. */ +export class DataMaskingPoliciesImpl implements DataMaskingPolicies { + private readonly client: SynapseManagementClient; /** - * Create a DataMaskingPolicies. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class DataMaskingPolicies class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { 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 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 + * @param options The options parameters. */ - 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 { + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + parameters: DataMaskingPolicy, + options?: DataMaskingPoliciesCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, parameters, options }, + createOrUpdateOperationSpec + ); } /** * 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 workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - 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 { + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: DataMaskingPoliciesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - options - }, - getOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, options }, + getOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const createOrUpdateOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}", 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 @@ -135,25 +86,24 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}", + requestBody: Parameters.parameters13, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, Parameters.dataMaskingPolicyName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DataMaskingPolicy @@ -162,5 +112,15 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName, + Parameters.dataMaskingPolicyName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/dataMaskingRules.ts b/sdk/synapse/arm-synapse/src/operations/dataMaskingRules.ts index eac24c838590..f166976c55f4 100644 --- a/sdk/synapse/arm-synapse/src/operations/dataMaskingRules.ts +++ b/sdk/synapse/arm-synapse/src/operations/dataMaskingRules.ts @@ -3,59 +3,123 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { DataMaskingRules } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + DataMaskingRule, + DataMaskingRulesListBySqlPoolOptionalParams, + DataMaskingRulesCreateOrUpdateOptionalParams, + DataMaskingRulesCreateOrUpdateResponse, + DataMaskingRulesGetOptionalParams, + DataMaskingRulesGetResponse, + DataMaskingRulesListBySqlPoolResponse +} from "../models"; -/** Class representing a DataMaskingRules. */ -export class DataMaskingRules { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing DataMaskingRules operations. */ +export class DataMaskingRulesImpl implements DataMaskingRules { + private readonly client: SynapseManagementClient; /** - * Create a DataMaskingRules. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class DataMaskingRules class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { 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; - /** + * 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 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 + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, dataMaskingRuleName: string, parameters: Models.DataMaskingRule, callback: msRest.ServiceCallback): void; + public listBySqlPool( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: DataMaskingRulesListBySqlPoolOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySqlPoolPagingAll( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listBySqlPoolPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + } + }; + } + + private async *listBySqlPoolPagingPage( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: DataMaskingRulesListBySqlPoolOptionalParams + ): AsyncIterableIterator { + let result = await this._listBySqlPool( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + yield result.value || []; + } + + private async *listBySqlPoolPagingAll( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: DataMaskingRulesListBySqlPoolOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySqlPoolPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + )) { + yield* page; + } + } + /** + * 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 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 + * @param options The options parameters. */ - 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 { + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + dataMaskingRuleName: string, + parameters: DataMaskingRule, + options?: DataMaskingRulesCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -65,38 +129,25 @@ export class DataMaskingRules { parameters, options }, - createOrUpdateOperationSpec, - callback) as Promise; + createOrUpdateOperationSpec + ); } /** * Gets the specific 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 workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param dataMaskingRuleName The name of the data masking rule. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, dataMaskingRuleName: 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 dataMaskingRuleName The name of the data masking rule. - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, dataMaskingRuleName: 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 dataMaskingRuleName The name of the data masking rule. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, dataMaskingRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, dataMaskingRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + dataMaskingRuleName: string, + options?: DataMaskingRulesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -105,73 +156,36 @@ export class DataMaskingRules { dataMaskingRuleName, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } /** * 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 workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - 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 { + private _listBySqlPool( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: DataMaskingRulesListBySqlPoolOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - options - }, - listBySqlPoolOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, options }, + listBySqlPoolOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const createOrUpdateOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules/{dataMaskingRuleName}", 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 @@ -183,13 +197,10 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules/{dataMaskingRuleName}", + requestBody: Parameters.parameters14, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, @@ -197,12 +208,14 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.dataMaskingPolicyName, Parameters.dataMaskingRuleName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules/{dataMaskingRuleName}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DataMaskingRule @@ -211,25 +224,23 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const listBySqlPoolOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.dataMaskingPolicyName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.dataMaskingPolicyName, + Parameters.dataMaskingRuleName ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySqlPoolOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.DataMaskingRuleListResult @@ -238,5 +249,15 @@ const listBySqlPoolOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName, + Parameters.dataMaskingPolicyName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/extendedSqlPoolBlobAuditingPolicies.ts b/sdk/synapse/arm-synapse/src/operations/extendedSqlPoolBlobAuditingPolicies.ts index 5b5c0a3dfcf7..8a78ece29469 100644 --- a/sdk/synapse/arm-synapse/src/operations/extendedSqlPoolBlobAuditingPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operations/extendedSqlPoolBlobAuditingPolicies.ts @@ -3,221 +3,230 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { ExtendedSqlPoolBlobAuditingPolicies } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + ExtendedSqlPoolBlobAuditingPolicy, + ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolNextOptionalParams, + ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams, + ExtendedSqlPoolBlobAuditingPoliciesGetOptionalParams, + ExtendedSqlPoolBlobAuditingPoliciesGetResponse, + ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams, + ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateResponse, + ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolResponse, + ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolNextResponse +} from "../models"; -/** Class representing a ExtendedSqlPoolBlobAuditingPolicies. */ -export class ExtendedSqlPoolBlobAuditingPolicies { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing ExtendedSqlPoolBlobAuditingPolicies operations. */ +export class ExtendedSqlPoolBlobAuditingPoliciesImpl + implements ExtendedSqlPoolBlobAuditingPolicies { + private readonly client: SynapseManagementClient; /** - * Create a ExtendedSqlPoolBlobAuditingPolicies. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class ExtendedSqlPoolBlobAuditingPolicies class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { 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; - /** + * 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 workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - 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( - { + public listBySqlPool( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySqlPoolPagingAll( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listBySqlPoolPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + } + }; + } + + private async *listBySqlPoolPagingPage( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams + ): AsyncIterableIterator { + let result = await this._listBySqlPool( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listBySqlPoolNext( resourceGroupName, workspaceName, sqlPoolName, + continuationToken, options - }, - getOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listBySqlPoolPagingAll( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySqlPoolPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + )) { + yield* page; + } } /** - * 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; - /** + * 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 workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param parameters The extended Sql pool blob auditing policy. - * @param callback The callback + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.ExtendedSqlPoolBlobAuditingPolicy, callback: msRest.ServiceCallback): void; + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: ExtendedSqlPoolBlobAuditingPoliciesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, sqlPoolName, options }, + getOperationSpec + ); + } + /** + * 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 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 + * @param options The options parameters. */ - 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 { + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + parameters: ExtendedSqlPoolBlobAuditingPolicy, + options?: ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, parameters, options }, + createOrUpdateOperationSpec + ); } /** * 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 workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - 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 { + private _listBySqlPool( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - options - }, - listBySqlPoolOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, options }, + listBySqlPoolOperationSpec + ); } /** - * 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 + * @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 nextLink The nextLink from the previous successful call to the ListBySqlPool method. + * @param options The options parameters. */ - listBySqlPoolNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySqlPoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listBySqlPoolNext( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + nextLink: string, + options?: ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listBySqlPoolNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, + listBySqlPoolNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings/{blobAuditingPolicyName}", 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 - } + default: {} }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings/{blobAuditingPolicyName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, Parameters.blobAuditingPolicyName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ExtendedSqlPoolBlobAuditingPolicy, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings/{blobAuditingPolicyName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ExtendedSqlPoolBlobAuditingPolicy @@ -225,59 +234,61 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.ExtendedSqlPoolBlobAuditingPolicy }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, - serializer -}; - -const listBySqlPoolOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings", + requestBody: Parameters.parameters12, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.sqlPoolName, + Parameters.blobAuditingPolicyName ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listBySqlPoolOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/extendedAuditingSettings", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ExtendedSqlPoolBlobAuditingPolicyListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName + ], + headerParameters: [Parameters.accept], serializer }; - -const listBySqlPoolNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listBySqlPoolNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ExtendedSqlPoolBlobAuditingPolicyListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.sqlPoolName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/index.ts b/sdk/synapse/arm-synapse/src/operations/index.ts index 3ac30c608616..fd448ec55b64 100644 --- a/sdk/synapse/arm-synapse/src/operations/index.ts +++ b/sdk/synapse/arm-synapse/src/operations/index.ts @@ -3,25 +3,13 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export * from "./bigDataPools"; +export * from "./azureADOnlyAuthentications"; export * from "./operations"; export * from "./ipFirewallRules"; -export * from "./integrationRuntimes"; -export * from "./integrationRuntimeNodeIpAddressOperations"; -export * from "./integrationRuntimeObjectMetadata"; -export * from "./integrationRuntimeNodes"; -export * from "./integrationRuntimeCredentials"; -export * from "./integrationRuntimeConnectionInfos"; -export * from "./integrationRuntimeAuthKeysOperations"; -export * from "./integrationRuntimeMonitoringDataOperations"; -export * from "./integrationRuntimeStatusOperations"; export * from "./keys"; -export * from "./library"; -export * from "./libraries"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; export * from "./privateLinkHubPrivateLinkResources"; @@ -68,3 +56,25 @@ export * from "./workspaceAadAdmins"; export * from "./workspaceSqlAadAdmins"; export * from "./workspaceManagedIdentitySqlControlSettings"; export * from "./restorableDroppedSqlPools"; +export * from "./bigDataPools"; +export * from "./library"; +export * from "./libraries"; +export * from "./integrationRuntimes"; +export * from "./integrationRuntimeNodeIpAddressOperations"; +export * from "./integrationRuntimeObjectMetadata"; +export * from "./integrationRuntimeNodes"; +export * from "./integrationRuntimeCredentials"; +export * from "./integrationRuntimeConnectionInfos"; +export * from "./integrationRuntimeAuthKeysOperations"; +export * from "./integrationRuntimeMonitoringDataOperations"; +export * from "./integrationRuntimeStatusOperations"; +export * from "./sparkConfiguration"; +export * from "./sparkConfigurations"; +export * from "./kustoOperations"; +export * from "./kustoPools"; +export * from "./kustoPoolChildResource"; +export * from "./kustoPoolAttachedDatabaseConfigurations"; +export * from "./kustoPoolDatabases"; +export * from "./kustoPoolDataConnections"; +export * from "./kustoPoolPrincipalAssignments"; +export * from "./kustoPoolDatabasePrincipalAssignments"; diff --git a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeAuthKeysOperations.ts b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeAuthKeysOperations.ts index 1cecd991f653..8b9841caef9e 100644 --- a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeAuthKeysOperations.ts +++ b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeAuthKeysOperations.ts @@ -3,60 +3,51 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/integrationRuntimeAuthKeysOperationsMappers"; +import { IntegrationRuntimeAuthKeysOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + IntegrationRuntimeRegenerateKeyParameters, + IntegrationRuntimeAuthKeysRegenerateOptionalParams, + IntegrationRuntimeAuthKeysRegenerateResponse, + IntegrationRuntimeAuthKeysListOptionalParams, + IntegrationRuntimeAuthKeysListResponse +} from "../models"; -/** Class representing a IntegrationRuntimeAuthKeysOperations. */ -export class IntegrationRuntimeAuthKeysOperations { - private readonly client: SynapseManagementClientContext; +/** Class containing IntegrationRuntimeAuthKeysOperations operations. */ +export class IntegrationRuntimeAuthKeysOperationsImpl + implements IntegrationRuntimeAuthKeysOperations { + private readonly client: SynapseManagementClient; /** - * Create a IntegrationRuntimeAuthKeysOperations. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class IntegrationRuntimeAuthKeysOperations class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Regenerate the authentication key for an integration runtime - * @summary Regenerate integration runtime authentication key * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param regenerateKeyParameters The parameters for regenerating integration runtime - * authentication key. - * @param [options] The optional parameters - * @returns Promise + * @param regenerateKeyParameters The parameters for regenerating integration runtime authentication + * key. + * @param options The options parameters. */ - regenerate(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, regenerateKeyParameters: Models.IntegrationRuntimeRegenerateKeyParameters, 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 integrationRuntimeName Integration runtime name - * @param regenerateKeyParameters The parameters for regenerating integration runtime - * authentication key. - * @param callback The callback - */ - regenerate(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, regenerateKeyParameters: Models.IntegrationRuntimeRegenerateKeyParameters, 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 integrationRuntimeName Integration runtime name - * @param regenerateKeyParameters The parameters for regenerating integration runtime - * authentication key. - * @param options The optional parameters - * @param callback The callback - */ - regenerate(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, regenerateKeyParameters: Models.IntegrationRuntimeRegenerateKeyParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - regenerate(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, regenerateKeyParameters: Models.IntegrationRuntimeRegenerateKeyParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + regenerate( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + regenerateKeyParameters: IntegrationRuntimeRegenerateKeyParameters, + options?: IntegrationRuntimeAuthKeysRegenerateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -65,72 +56,36 @@ export class IntegrationRuntimeAuthKeysOperations { regenerateKeyParameters, options }, - regenerateOperationSpec, - callback) as Promise; + regenerateOperationSpec + ); } /** * List authentication keys in an integration runtime - * @summary List integration runtime authentication keys * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(resourceGroupName: string, workspaceName: string, integrationRuntimeName: 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 integrationRuntimeName Integration runtime name - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, integrationRuntimeName: 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 integrationRuntimeName Integration runtime name - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimeAuthKeysListOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - integrationRuntimeName, - options - }, - listOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, integrationRuntimeName, options }, + listOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const regenerateOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const regenerateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/regenerateAuthKey", httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/regenerateAuthKey", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.integrationRuntimeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "regenerateKeyParameters", - mapper: { - ...Mappers.IntegrationRuntimeRegenerateKeyParameters, - required: true - } - }, responses: { 200: { bodyMapper: Mappers.IntegrationRuntimeAuthKeys @@ -139,24 +94,23 @@ const regenerateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/listAuthKeys", + requestBody: Parameters.regenerateKeyParameters, + queryParameters: [Parameters.apiVersion1], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.integrationRuntimeName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/listAuthKeys", + httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.IntegrationRuntimeAuthKeys @@ -165,5 +119,14 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.integrationRuntimeName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeConnectionInfos.ts b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeConnectionInfos.ts index 53526f290abc..63b59977529d 100644 --- a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeConnectionInfos.ts +++ b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeConnectionInfos.ts @@ -3,83 +3,58 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/integrationRuntimeConnectionInfosMappers"; +import { IntegrationRuntimeConnectionInfos } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + IntegrationRuntimeConnectionInfosGetOptionalParams, + IntegrationRuntimeConnectionInfosGetResponse +} from "../models"; -/** Class representing a IntegrationRuntimeConnectionInfos. */ -export class IntegrationRuntimeConnectionInfos { - private readonly client: SynapseManagementClientContext; +/** Class containing IntegrationRuntimeConnectionInfos operations. */ +export class IntegrationRuntimeConnectionInfosImpl + implements IntegrationRuntimeConnectionInfos { + private readonly client: SynapseManagementClient; /** - * Create a IntegrationRuntimeConnectionInfos. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class IntegrationRuntimeConnectionInfos class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Get connection info for an integration runtime - * @summary Get integration runtime connection info * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: 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 integrationRuntimeName Integration runtime name - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: 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 integrationRuntimeName Integration runtime name - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimeConnectionInfosGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - integrationRuntimeName, - options - }, - getOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, integrationRuntimeName, options }, + getOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/getConnectionInfo", httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/getConnectionInfo", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.integrationRuntimeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.IntegrationRuntimeConnectionInfo @@ -88,5 +63,14 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.integrationRuntimeName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeCredentials.ts b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeCredentials.ts index 64afa8efde2d..02a2f2a5ff4a 100644 --- a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeCredentials.ts +++ b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeCredentials.ts @@ -3,90 +3,72 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as Mappers from "../models/integrationRuntimeCredentialsMappers"; +import { IntegrationRuntimeCredentials } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { IntegrationRuntimeCredentialsSyncOptionalParams } from "../models"; -/** Class representing a IntegrationRuntimeCredentials. */ -export class IntegrationRuntimeCredentials { - private readonly client: SynapseManagementClientContext; +/** Class containing IntegrationRuntimeCredentials operations. */ +export class IntegrationRuntimeCredentialsImpl + implements IntegrationRuntimeCredentials { + private readonly client: SynapseManagementClient; /** - * Create a IntegrationRuntimeCredentials. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class IntegrationRuntimeCredentials class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** - * Force the integration runtime to synchronize credentials across integration runtime nodes, and - * this will override the credentials across all worker nodes with those available on the - * dispatcher node. If you already have the latest credential backup file, you should manually - * import it (preferred) on any self-hosted integration runtime node than using this API directly. - * @summary Sync integration runtime credentials + * Force the integration runtime to synchronize credentials across integration runtime nodes, and this + * will override the credentials across all worker nodes with those available on the dispatcher node. + * If you already have the latest credential backup file, you should manually import it (preferred) on + * any self-hosted integration runtime node than using this API directly. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - sync(resourceGroupName: string, workspaceName: string, integrationRuntimeName: 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 integrationRuntimeName Integration runtime name - * @param callback The callback - */ - sync(resourceGroupName: string, workspaceName: string, integrationRuntimeName: 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 integrationRuntimeName Integration runtime name - * @param options The optional parameters - * @param callback The callback - */ - sync(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - sync(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + sync( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimeCredentialsSyncOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - integrationRuntimeName, - options - }, - syncOperationSpec, - callback); + { resourceGroupName, workspaceName, integrationRuntimeName, options }, + syncOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const syncOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const syncOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/syncCredentials", httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/syncCredentials", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.integrationRuntimeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: {}, default: { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.integrationRuntimeName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeMonitoringDataOperations.ts b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeMonitoringDataOperations.ts index a174f935dde5..ec15b04d9a33 100644 --- a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeMonitoringDataOperations.ts +++ b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeMonitoringDataOperations.ts @@ -3,83 +3,58 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/integrationRuntimeMonitoringDataOperationsMappers"; +import { IntegrationRuntimeMonitoringDataOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + IntegrationRuntimeMonitoringDataListOptionalParams, + IntegrationRuntimeMonitoringDataListResponse +} from "../models"; -/** Class representing a IntegrationRuntimeMonitoringDataOperations. */ -export class IntegrationRuntimeMonitoringDataOperations { - private readonly client: SynapseManagementClientContext; +/** Class containing IntegrationRuntimeMonitoringDataOperations operations. */ +export class IntegrationRuntimeMonitoringDataOperationsImpl + implements IntegrationRuntimeMonitoringDataOperations { + private readonly client: SynapseManagementClient; /** - * Create a IntegrationRuntimeMonitoringDataOperations. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class IntegrationRuntimeMonitoringDataOperations class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Get monitoring data for an integration runtime - * @summary Get integration runtime monitoring data * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(resourceGroupName: string, workspaceName: string, integrationRuntimeName: 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 integrationRuntimeName Integration runtime name - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, integrationRuntimeName: 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 integrationRuntimeName Integration runtime name - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimeMonitoringDataListOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - integrationRuntimeName, - options - }, - listOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, integrationRuntimeName, options }, + listOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/monitoringData", httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/monitoringData", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.integrationRuntimeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.IntegrationRuntimeMonitoringData @@ -88,5 +63,14 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.integrationRuntimeName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeNodeIpAddressOperations.ts b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeNodeIpAddressOperations.ts index 8cedcdaf8e4a..d884d157c261 100644 --- a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeNodeIpAddressOperations.ts +++ b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeNodeIpAddressOperations.ts @@ -3,57 +3,47 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/integrationRuntimeNodeIpAddressOperationsMappers"; +import { IntegrationRuntimeNodeIpAddressOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + IntegrationRuntimeNodeIpAddressGetOptionalParams, + IntegrationRuntimeNodeIpAddressGetResponse +} from "../models"; -/** Class representing a IntegrationRuntimeNodeIpAddressOperations. */ -export class IntegrationRuntimeNodeIpAddressOperations { - private readonly client: SynapseManagementClientContext; +/** Class containing IntegrationRuntimeNodeIpAddressOperations operations. */ +export class IntegrationRuntimeNodeIpAddressOperationsImpl + implements IntegrationRuntimeNodeIpAddressOperations { + private readonly client: SynapseManagementClient; /** - * Create a IntegrationRuntimeNodeIpAddressOperations. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class IntegrationRuntimeNodeIpAddressOperations class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Get the IP address of an integration runtime node - * @summary Get integration runtime node IP address * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name * @param nodeName Integration runtime node name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, nodeName: 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 integrationRuntimeName Integration runtime name - * @param nodeName Integration runtime node name - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, nodeName: 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 integrationRuntimeName Integration runtime name - * @param nodeName Integration runtime node name - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, nodeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, nodeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + nodeName: string, + options?: IntegrationRuntimeNodeIpAddressGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -62,29 +52,17 @@ export class IntegrationRuntimeNodeIpAddressOperations { nodeName, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress", httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.integrationRuntimeName, - Parameters.nodeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.IntegrationRuntimeNodeIpAddress @@ -93,5 +71,15 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.integrationRuntimeName, + Parameters.nodeName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeNodes.ts b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeNodes.ts index e94500f51005..3c4ea99f2427 100644 --- a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeNodes.ts +++ b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeNodes.ts @@ -3,57 +3,50 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/integrationRuntimeNodesMappers"; +import { IntegrationRuntimeNodes } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + IntegrationRuntimeNodesGetOptionalParams, + IntegrationRuntimeNodesGetResponse, + UpdateIntegrationRuntimeNodeRequest, + IntegrationRuntimeNodesUpdateOptionalParams, + IntegrationRuntimeNodesUpdateResponse, + IntegrationRuntimeNodesDeleteOptionalParams +} from "../models"; -/** Class representing a IntegrationRuntimeNodes. */ -export class IntegrationRuntimeNodes { - private readonly client: SynapseManagementClientContext; +/** Class containing IntegrationRuntimeNodes operations. */ +export class IntegrationRuntimeNodesImpl implements IntegrationRuntimeNodes { + private readonly client: SynapseManagementClient; /** - * Create a IntegrationRuntimeNodes. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class IntegrationRuntimeNodes class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Get an integration runtime node - * @summary Get integration runtime node * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name * @param nodeName Integration runtime node name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, nodeName: 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 integrationRuntimeName Integration runtime name - * @param nodeName Integration runtime node name - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, nodeName: 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 integrationRuntimeName Integration runtime name - * @param nodeName Integration runtime node name - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, nodeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, nodeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + nodeName: string, + options?: IntegrationRuntimeNodesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -62,45 +55,27 @@ export class IntegrationRuntimeNodes { nodeName, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } /** * Create an integration runtime node - * @summary Create integration runtime node * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name * @param nodeName Integration runtime node name - * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime - * node. - * @param [options] The optional parameters - * @returns Promise + * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime node. + * @param options The options parameters. */ - update(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, nodeName: string, updateIntegrationRuntimeNodeRequest: Models.UpdateIntegrationRuntimeNodeRequest, 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 integrationRuntimeName Integration runtime name - * @param nodeName Integration runtime node name - * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime - * node. - * @param callback The callback - */ - update(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, nodeName: string, updateIntegrationRuntimeNodeRequest: Models.UpdateIntegrationRuntimeNodeRequest, 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 integrationRuntimeName Integration runtime name - * @param nodeName Integration runtime node name - * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime - * node. - * @param options The optional parameters - * @param callback The callback - */ - update(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, nodeName: string, updateIntegrationRuntimeNodeRequest: Models.UpdateIntegrationRuntimeNodeRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, nodeName: string, updateIntegrationRuntimeNodeRequest: Models.UpdateIntegrationRuntimeNodeRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + nodeName: string, + updateIntegrationRuntimeNodeRequest: UpdateIntegrationRuntimeNodeRequest, + options?: IntegrationRuntimeNodesUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -110,39 +85,25 @@ export class IntegrationRuntimeNodes { updateIntegrationRuntimeNodeRequest, options }, - updateOperationSpec, - callback) as Promise; + updateOperationSpec + ); } /** * Delete an integration runtime node - * @summary Delete integration runtime node - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name - * @param nodeName Integration runtime node name - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, nodeName: 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 integrationRuntimeName Integration runtime name * @param nodeName Integration runtime node name - * @param callback The callback + * @param options The options parameters. */ - deleteMethod(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, nodeName: 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 integrationRuntimeName Integration runtime name - * @param nodeName Integration runtime node name - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, nodeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, nodeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + delete( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + nodeName: string, + options?: IntegrationRuntimeNodesDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -151,29 +112,17 @@ export class IntegrationRuntimeNodes { nodeName, options }, - deleteMethodOperationSpec, - callback); + deleteOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.integrationRuntimeName, - Parameters.nodeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.SelfHostedIntegrationRuntimeNode @@ -182,32 +131,22 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}", + queryParameters: [Parameters.apiVersion1], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.integrationRuntimeName, Parameters.nodeName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "updateIntegrationRuntimeNodeRequest", - mapper: { - ...Mappers.UpdateIntegrationRuntimeNodeRequest, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}", + httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.SelfHostedIntegrationRuntimeNode @@ -216,25 +155,24 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}", + requestBody: Parameters.updateIntegrationRuntimeNodeRequest, + queryParameters: [Parameters.apiVersion1], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.integrationRuntimeName, Parameters.nodeName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}", + httpMethod: "DELETE", responses: { 200: {}, 204: {}, @@ -242,5 +180,15 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.integrationRuntimeName, + Parameters.nodeName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeObjectMetadata.ts b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeObjectMetadata.ts index 9fcaf23f9387..345950ddc6bd 100644 --- a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeObjectMetadata.ts +++ b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeObjectMetadata.ts @@ -3,126 +3,152 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/integrationRuntimeObjectMetadataMappers"; +import { IntegrationRuntimeObjectMetadata } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + IntegrationRuntimeObjectMetadataListOptionalParams, + IntegrationRuntimeObjectMetadataListResponse, + IntegrationRuntimeObjectMetadataRefreshOptionalParams, + IntegrationRuntimeObjectMetadataRefreshResponse +} from "../models"; -/** Class representing a IntegrationRuntimeObjectMetadata. */ -export class IntegrationRuntimeObjectMetadata { - private readonly client: SynapseManagementClientContext; +/** Class containing IntegrationRuntimeObjectMetadata operations. */ +export class IntegrationRuntimeObjectMetadataImpl + implements IntegrationRuntimeObjectMetadata { + private readonly client: SynapseManagementClient; /** - * Create a IntegrationRuntimeObjectMetadata. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class IntegrationRuntimeObjectMetadata class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Get object metadata from an integration runtime - * @summary Get integration runtime object metadata * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: Models.IntegrationRuntimeObjectMetadataListOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, integrationRuntimeName: 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 integrationRuntimeName Integration runtime name - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options: Models.IntegrationRuntimeObjectMetadataListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: Models.IntegrationRuntimeObjectMetadataListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimeObjectMetadataListOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - integrationRuntimeName, - options - }, - listOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, integrationRuntimeName, options }, + listOperationSpec + ); } /** * Refresh the object metadata in an integration runtime - * @summary Refresh integration runtime object metadata * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - refresh(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginRefresh(resourceGroupName,workspaceName,integrationRuntimeName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + async beginRefresh( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimeObjectMetadataRefreshOptionalParams + ): Promise< + PollerLike< + PollOperationState, + IntegrationRuntimeObjectMetadataRefreshResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, integrationRuntimeName, options }, + refreshOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); } /** * Refresh the object metadata in an integration runtime - * @summary Refresh integration runtime object metadata * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginRefresh(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - integrationRuntimeName, - options - }, - beginRefreshOperationSpec, - options); + async beginRefreshAndWait( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimeObjectMetadataRefreshOptionalParams + ): Promise { + const poller = await this.beginRefresh( + resourceGroupName, + workspaceName, + integrationRuntimeName, + options + ); + return poller.pollUntilDone(); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/getObjectMetadata", httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/getObjectMetadata", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.integrationRuntimeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: [ - "options", - "getMetadataRequest" - ], - mapper: Mappers.GetSsisObjectMetadataRequest - }, responses: { 200: { bodyMapper: Mappers.SsisObjectMetadataListResponse @@ -131,32 +157,48 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginRefreshOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/refreshObjectMetadata", + requestBody: Parameters.getMetadataRequest, + queryParameters: [Parameters.apiVersion1], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.integrationRuntimeName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const refreshOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/refreshObjectMetadata", + httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.SsisObjectMetadataStatusResponse }, - 202: {}, + 201: { + bodyMapper: Mappers.SsisObjectMetadataStatusResponse + }, + 202: { + bodyMapper: Mappers.SsisObjectMetadataStatusResponse + }, + 204: { + bodyMapper: Mappers.SsisObjectMetadataStatusResponse + }, default: { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.integrationRuntimeName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeStatusOperations.ts b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeStatusOperations.ts index 21a1fbb3e499..535ac9272678 100644 --- a/sdk/synapse/arm-synapse/src/operations/integrationRuntimeStatusOperations.ts +++ b/sdk/synapse/arm-synapse/src/operations/integrationRuntimeStatusOperations.ts @@ -3,83 +3,58 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/integrationRuntimeStatusOperationsMappers"; +import { IntegrationRuntimeStatusOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + IntegrationRuntimeStatusGetOptionalParams, + IntegrationRuntimeStatusGetResponse +} from "../models"; -/** Class representing a IntegrationRuntimeStatusOperations. */ -export class IntegrationRuntimeStatusOperations { - private readonly client: SynapseManagementClientContext; +/** Class containing IntegrationRuntimeStatusOperations operations. */ +export class IntegrationRuntimeStatusOperationsImpl + implements IntegrationRuntimeStatusOperations { + private readonly client: SynapseManagementClient; /** - * Create a IntegrationRuntimeStatusOperations. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class IntegrationRuntimeStatusOperations class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Get the integration runtime status - * @summary Get integration runtime status * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: 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 integrationRuntimeName Integration runtime name - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: 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 integrationRuntimeName Integration runtime name - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimeStatusGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - integrationRuntimeName, - options - }, - getOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, integrationRuntimeName, options }, + getOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/getStatus", httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/getStatus", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.integrationRuntimeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.IntegrationRuntimeStatusResponse @@ -88,5 +63,14 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.integrationRuntimeName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/integrationRuntimes.ts b/sdk/synapse/arm-synapse/src/operations/integrationRuntimes.ts index eac56967097e..ba21cce40cfd 100644 --- a/sdk/synapse/arm-synapse/src/operations/integrationRuntimes.ts +++ b/sdk/synapse/arm-synapse/src/operations/integrationRuntimes.ts @@ -3,58 +3,140 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/integrationRuntimesMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { IntegrationRuntimes } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + IntegrationRuntimeResource, + IntegrationRuntimesListByWorkspaceNextOptionalParams, + IntegrationRuntimesListByWorkspaceOptionalParams, + UpdateIntegrationRuntimeRequest, + IntegrationRuntimesUpdateOptionalParams, + IntegrationRuntimesUpdateResponse, + IntegrationRuntimesGetOptionalParams, + IntegrationRuntimesGetResponse, + IntegrationRuntimesCreateOptionalParams, + IntegrationRuntimesCreateResponse, + IntegrationRuntimesDeleteOptionalParams, + IntegrationRuntimesUpgradeOptionalParams, + IntegrationRuntimesListByWorkspaceResponse, + IntegrationRuntimesStartOptionalParams, + IntegrationRuntimesStartResponse, + IntegrationRuntimesStopOptionalParams, + IntegrationRuntimesListOutboundNetworkDependenciesEndpointsOptionalParams, + IntegrationRuntimesListOutboundNetworkDependenciesEndpointsResponse, + IntegrationRuntimesEnableInteractiveQueryOptionalParams, + IntegrationRuntimesDisableInteractiveQueryOptionalParams, + IntegrationRuntimesListByWorkspaceNextResponse +} from "../models"; -/** Class representing a IntegrationRuntimes. */ -export class IntegrationRuntimes { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing IntegrationRuntimes operations. */ +export class IntegrationRuntimesImpl implements IntegrationRuntimes { + private readonly client: SynapseManagementClient; /** - * Create a IntegrationRuntimes. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class IntegrationRuntimes class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** - * Update an integration runtime - * @summary Update integration runtime - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name - * @param updateIntegrationRuntimeRequest The parameters for updating an integration runtime. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, updateIntegrationRuntimeRequest: Models.UpdateIntegrationRuntimeRequest, options?: msRest.RequestOptionsBase): Promise; - /** + * List all integration runtimes * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name - * @param updateIntegrationRuntimeRequest The parameters for updating an integration runtime. - * @param callback The callback + * @param options The options parameters. */ - update(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, updateIntegrationRuntimeRequest: Models.UpdateIntegrationRuntimeRequest, callback: msRest.ServiceCallback): void; + public listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: IntegrationRuntimesListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByWorkspacePagingAll( + resourceGroupName, + workspaceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + ); + } + }; + } + + private async *listByWorkspacePagingPage( + resourceGroupName: string, + workspaceName: string, + options?: IntegrationRuntimesListByWorkspaceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByWorkspace( + resourceGroupName, + workspaceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByWorkspaceNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByWorkspacePagingAll( + resourceGroupName: string, + workspaceName: string, + options?: IntegrationRuntimesListByWorkspaceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + /** + * Update an integration runtime * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name * @param updateIntegrationRuntimeRequest The parameters for updating an integration runtime. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - update(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, updateIntegrationRuntimeRequest: Models.UpdateIntegrationRuntimeRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, updateIntegrationRuntimeRequest: Models.UpdateIntegrationRuntimeRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + updateIntegrationRuntimeRequest: UpdateIntegrationRuntimeRequest, + options?: IntegrationRuntimesUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -63,304 +145,593 @@ export class IntegrationRuntimes { updateIntegrationRuntimeRequest, options }, - updateOperationSpec, - callback) as Promise; + updateOperationSpec + ); } /** * Get an integration runtime - * @summary Get integration runtime - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: Models.IntegrationRuntimesGetOptionalParams): Promise; - /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, callback: msRest.ServiceCallback): void; + get( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, integrationRuntimeName, options }, + getOperationSpec + ); + } + /** + * Create an integration runtime * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param options The optional parameters - * @param callback The callback + * @param integrationRuntime Integration runtime resource definition. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options: Models.IntegrationRuntimesGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: Models.IntegrationRuntimesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( + async beginCreate( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + integrationRuntime: IntegrationRuntimeResource, + options?: IntegrationRuntimesCreateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + IntegrationRuntimesCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, { resourceGroupName, workspaceName, integrationRuntimeName, + integrationRuntime, options }, - getOperationSpec, - callback) as Promise; + createOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); } /** * Create an integration runtime - * @summary Create integration runtime * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name * @param integrationRuntime Integration runtime resource definition. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - create(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, integrationRuntime: Models.IntegrationRuntimeResource, options?: Models.IntegrationRuntimesCreateOptionalParams): Promise { - return this.beginCreate(resourceGroupName,workspaceName,integrationRuntimeName,integrationRuntime,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + async beginCreateAndWait( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + integrationRuntime: IntegrationRuntimeResource, + options?: IntegrationRuntimesCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + workspaceName, + integrationRuntimeName, + integrationRuntime, + options + ); + return poller.pollUntilDone(); } /** * Delete an integration runtime - * @summary Delete integration runtime * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - deleteMethod(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,workspaceName,integrationRuntimeName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); + async beginDelete( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, integrationRuntimeName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); } /** - * Upgrade an integration runtime - * @summary Upgrade integration runtime - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name - * @param [options] The optional parameters - * @returns Promise - */ - upgrade(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: msRest.RequestOptionsBase): Promise; - /** + * Delete an integration runtime * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param callback The callback + * @param options The options parameters. */ - upgrade(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, callback: msRest.ServiceCallback): void; + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + integrationRuntimeName, + options + ); + return poller.pollUntilDone(); + } + /** + * Upgrade an integration runtime * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - upgrade(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - upgrade(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + upgrade( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesUpgradeOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - integrationRuntimeName, - options - }, - upgradeOperationSpec, - callback); + { resourceGroupName, workspaceName, integrationRuntimeName, options }, + upgradeOperationSpec + ); } /** * List all integration runtimes - * @summary List integration runtimes - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param [options] The optional parameters - * @returns Promise - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param callback The callback - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: IntegrationRuntimesListByWorkspaceOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - listByWorkspaceOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, options }, + listByWorkspaceOperationSpec + ); } /** * Start an integration runtime - * @summary Start integration runtime * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - start(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginStart(resourceGroupName,workspaceName,integrationRuntimeName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } + async beginStart( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesStartOptionalParams + ): Promise< + PollerLike< + PollOperationState, + IntegrationRuntimesStartResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; - /** - * Stop an integration runtime - * @summary Stop integration runtime - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param integrationRuntimeName Integration runtime name - * @param [options] The optional parameters - * @returns Promise - */ - stop(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginStop(resourceGroupName,workspaceName,integrationRuntimeName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, integrationRuntimeName, options }, + startOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); } /** - * Enable interactive query in integration runtime + * Start an integration runtime * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - enableInteractiveQuery(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginEnableInteractiveQuery(resourceGroupName,workspaceName,integrationRuntimeName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); + async beginStartAndWait( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesStartOptionalParams + ): Promise { + const poller = await this.beginStart( + resourceGroupName, + workspaceName, + integrationRuntimeName, + options + ); + return poller.pollUntilDone(); } /** - * Disable interactive query in integration runtime + * Stop an integration runtime * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - disableInteractiveQuery(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDisableInteractiveQuery(resourceGroupName,workspaceName,integrationRuntimeName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); + async beginStop( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesStopOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, integrationRuntimeName, options }, + stopOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); } /** - * Create an integration runtime - * @summary Create integration runtime + * Stop an integration runtime * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param integrationRuntime Integration runtime resource definition. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginCreate(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, integrationRuntime: Models.IntegrationRuntimeResource, options?: Models.IntegrationRuntimesBeginCreateOptionalParams): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - integrationRuntimeName, - integrationRuntime, - options - }, - beginCreateOperationSpec, - options); + async beginStopAndWait( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesStopOptionalParams + ): Promise { + const poller = await this.beginStop( + resourceGroupName, + workspaceName, + integrationRuntimeName, + options + ); + return poller.pollUntilDone(); } /** - * Delete an integration runtime - * @summary Delete integration runtime + * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginDeleteMethod(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - integrationRuntimeName, - options - }, - beginDeleteMethodOperationSpec, - options); + listOutboundNetworkDependenciesEndpoints( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesListOutboundNetworkDependenciesEndpointsOptionalParams + ): Promise< + IntegrationRuntimesListOutboundNetworkDependenciesEndpointsResponse + > { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, integrationRuntimeName, options }, + listOutboundNetworkDependenciesEndpointsOperationSpec + ); } /** - * Start an integration runtime - * @summary Start integration runtime + * Enable interactive query in integration runtime * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginStart(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - integrationRuntimeName, - options - }, - beginStartOperationSpec, - options); + async beginEnableInteractiveQuery( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesEnableInteractiveQueryOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, integrationRuntimeName, options }, + enableInteractiveQueryOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); } /** - * Stop an integration runtime - * @summary Stop integration runtime + * Enable interactive query in integration runtime * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginStop(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - integrationRuntimeName, - options - }, - beginStopOperationSpec, - options); + async beginEnableInteractiveQueryAndWait( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesEnableInteractiveQueryOptionalParams + ): Promise { + const poller = await this.beginEnableInteractiveQuery( + resourceGroupName, + workspaceName, + integrationRuntimeName, + options + ); + return poller.pollUntilDone(); } /** - * Enable interactive query in integration runtime + * Disable interactive query in integration runtime * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginEnableInteractiveQuery(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - integrationRuntimeName, - options - }, - beginEnableInteractiveQueryOperationSpec, - options); + async beginDisableInteractiveQuery( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesDisableInteractiveQueryOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, integrationRuntimeName, options }, + disableInteractiveQueryOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); } /** @@ -368,152 +739,181 @@ export class IntegrationRuntimes { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginDisableInteractiveQuery(resourceGroupName: string, workspaceName: string, integrationRuntimeName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - integrationRuntimeName, - options - }, - beginDisableInteractiveQueryOperationSpec, - options); + async beginDisableInteractiveQueryAndWait( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesDisableInteractiveQueryOptionalParams + ): Promise { + const poller = await this.beginDisableInteractiveQuery( + resourceGroupName, + workspaceName, + integrationRuntimeName, + options + ); + return poller.pollUntilDone(); } /** - * List all integration runtimes - * @summary List integration runtimes - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByWorkspaceNext(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 + * ListByWorkspaceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method. + * @param options The options parameters. */ - listByWorkspaceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listByWorkspaceNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: IntegrationRuntimesListByWorkspaceNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByWorkspaceNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, nextLink, options }, + listByWorkspaceNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const updateOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}", httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}", + responses: { + 200: { + bodyMapper: Mappers.IntegrationRuntimeResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.updateIntegrationRuntimeRequest, + queryParameters: [Parameters.apiVersion1], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.integrationRuntimeName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "updateIntegrationRuntimeRequest", - mapper: { - ...Mappers.UpdateIntegrationRuntimeRequest, - required: true - } - }, + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.IntegrationRuntimeResource }, + 304: {}, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}", + queryParameters: [Parameters.apiVersion1], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.integrationRuntimeName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.ifNoneMatch, - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept, Parameters.ifNoneMatch], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.IntegrationRuntimeResource }, - 304: {}, + 201: { + bodyMapper: Mappers.IntegrationRuntimeResource + }, + 202: { + bodyMapper: Mappers.IntegrationRuntimeResource + }, + 204: { + bodyMapper: Mappers.IntegrationRuntimeResource + }, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const upgradeOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/upgrade", + requestBody: Parameters.integrationRuntime, + queryParameters: [Parameters.apiVersion1], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.integrationRuntimeName ], - queryParameters: [ - Parameters.apiVersion - ], headerParameters: [ - Parameters.acceptLanguage + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}", + httpMethod: "DELETE", responses: { 200: {}, + 201: {}, + 202: {}, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.integrationRuntimeName + ], + headerParameters: [Parameters.accept], serializer }; - -const listByWorkspaceOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes", +const upgradeOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/upgrade", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workspaceName, + Parameters.integrationRuntimeName ], + headerParameters: [Parameters.accept], + serializer +}; +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.IntegrationRuntimeListResponse @@ -522,185 +922,147 @@ const listByWorkspaceOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginCreateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}", + queryParameters: [Parameters.apiVersion1], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.integrationRuntimeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.ifMatch, - Parameters.acceptLanguage + Parameters.workspaceName ], - requestBody: { - parameterPath: "integrationRuntime", - mapper: { - ...Mappers.IntegrationRuntimeResource, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const startOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/start", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.IntegrationRuntimeResource + bodyMapper: Mappers.IntegrationRuntimeStatusResponse + }, + 201: { + bodyMapper: Mappers.IntegrationRuntimeStatusResponse + }, + 202: { + bodyMapper: Mappers.IntegrationRuntimeStatusResponse + }, + 204: { + bodyMapper: Mappers.IntegrationRuntimeStatusResponse }, - 202: {}, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}", + queryParameters: [Parameters.apiVersion1], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.integrationRuntimeName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const stopOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/stop", + httpMethod: "POST", responses: { 200: {}, + 201: {}, 202: {}, 204: {}, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginStartOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/start", + queryParameters: [Parameters.apiVersion1], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.integrationRuntimeName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/outboundNetworkDependenciesEndpoints", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.IntegrationRuntimeStatusResponse + bodyMapper: + Mappers.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse }, - 202: {}, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginStopOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/stop", + queryParameters: [Parameters.apiVersion1], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.integrationRuntimeName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const enableInteractiveQueryOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/enableInteractiveQuery", + httpMethod: "POST", responses: { 200: {}, + 201: {}, 202: {}, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginEnableInteractiveQueryOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/enableInteractiveQuery", + queryParameters: [Parameters.apiVersion1], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.integrationRuntimeName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const disableInteractiveQueryOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/disableInteractiveQuery", + httpMethod: "POST", responses: { 200: {}, + 201: {}, 202: {}, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginDisableInteractiveQueryOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/disableInteractiveQuery", + queryParameters: [Parameters.apiVersion1], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.integrationRuntimeName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, + headerParameters: [Parameters.accept], serializer }; - -const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.IntegrationRuntimeListResponse @@ -709,5 +1071,14 @@ const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/ipFirewallRules.ts b/sdk/synapse/arm-synapse/src/operations/ipFirewallRules.ts index 4a8bc4a02f57..550077a52ef5 100644 --- a/sdk/synapse/arm-synapse/src/operations/ipFirewallRules.ts +++ b/sdk/synapse/arm-synapse/src/operations/ipFirewallRules.ts @@ -3,244 +3,464 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/ipFirewallRulesMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { IpFirewallRules } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + IpFirewallRuleInfo, + IpFirewallRulesListByWorkspaceNextOptionalParams, + IpFirewallRulesListByWorkspaceOptionalParams, + IpFirewallRulesListByWorkspaceResponse, + IpFirewallRulesCreateOrUpdateOptionalParams, + IpFirewallRulesCreateOrUpdateResponse, + IpFirewallRulesDeleteOptionalParams, + IpFirewallRulesDeleteResponse, + IpFirewallRulesGetOptionalParams, + IpFirewallRulesGetResponse, + ReplaceAllIpFirewallRulesRequest, + IpFirewallRulesReplaceAllOptionalParams, + IpFirewallRulesReplaceAllResponse, + IpFirewallRulesListByWorkspaceNextResponse +} from "../models"; -/** Class representing a IpFirewallRules. */ -export class IpFirewallRules { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing IpFirewallRules operations. */ +export class IpFirewallRulesImpl implements IpFirewallRules { + private readonly client: SynapseManagementClient; /** - * Create a IpFirewallRules. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class IpFirewallRules class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Returns a list of firewall rules * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + public listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: IpFirewallRulesListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByWorkspacePagingAll( + resourceGroupName, + workspaceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + ); + } + }; + } + + private async *listByWorkspacePagingPage( + resourceGroupName: string, + workspaceName: string, + options?: IpFirewallRulesListByWorkspaceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByWorkspace( + resourceGroupName, + workspaceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByWorkspaceNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByWorkspacePagingAll( + resourceGroupName: string, + workspaceName: string, + options?: IpFirewallRulesListByWorkspaceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + /** + * Returns a list of firewall rules * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - listByWorkspace(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + private _listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: IpFirewallRulesListByWorkspaceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listByWorkspaceOperationSpec + ); + } + /** + * Creates or updates a firewall rule * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback + * @param workspaceName The name of the workspace. + * @param ruleName The IP firewall rule name + * @param ipFirewallRuleInfo IP firewall rule properties + * @param options The options parameters. */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + ipFirewallRuleInfo: IpFirewallRuleInfo, + options?: IpFirewallRulesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + IpFirewallRulesCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, { resourceGroupName, workspaceName, + ruleName, + ipFirewallRuleInfo, options }, - listByWorkspaceOperationSpec, - callback) as Promise; + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); } /** * Creates or updates a firewall rule * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name * @param ipFirewallRuleInfo IP firewall rule properties - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, ruleName: string, ipFirewallRuleInfo: Models.IpFirewallRuleInfo, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,workspaceName,ruleName,ipFirewallRuleInfo,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + ipFirewallRuleInfo: IpFirewallRuleInfo, + options?: IpFirewallRulesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + ruleName, + ipFirewallRuleInfo, + options + ); + return poller.pollUntilDone(); } /** * Deletes a firewall rule * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - deleteMethod(resourceGroupName: string, workspaceName: string, ruleName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,workspaceName,ruleName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + async beginDelete( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: IpFirewallRulesDeleteOptionalParams + ): Promise< + PollerLike< + PollOperationState, + IpFirewallRulesDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, ruleName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); } /** - * Get a firewall rule - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param ruleName The IP firewall rule name - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, workspaceName: string, ruleName: string, options?: msRest.RequestOptionsBase): Promise; - /** + * Deletes a firewall rule * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, ruleName: string, callback: msRest.ServiceCallback): void; + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: IpFirewallRulesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + ruleName, + options + ); + return poller.pollUntilDone(); + } + /** + * Get a firewall rule * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param ruleName The IP firewall rule name - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, ruleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, ruleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: IpFirewallRulesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - ruleName, - options - }, - getOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, ruleName, options }, + getOperationSpec + ); } /** * Replaces firewall rules * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param request Replace all IP firewall rules request - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - replaceAll(resourceGroupName: string, workspaceName: string, request: Models.ReplaceAllIpFirewallRulesRequest, options?: msRest.RequestOptionsBase): Promise { - return this.beginReplaceAll(resourceGroupName,workspaceName,request,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Creates or updates a firewall rule - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param ruleName The IP firewall rule name - * @param ipFirewallRuleInfo IP firewall rule properties - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, ruleName: string, ipFirewallRuleInfo: Models.IpFirewallRuleInfo, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - ruleName, - ipFirewallRuleInfo, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } + async beginReplaceAll( + resourceGroupName: string, + workspaceName: string, + request: ReplaceAllIpFirewallRulesRequest, + options?: IpFirewallRulesReplaceAllOptionalParams + ): Promise< + PollerLike< + PollOperationState, + IpFirewallRulesReplaceAllResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; - /** - * Deletes a firewall rule - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param ruleName The IP firewall rule name - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, workspaceName: string, ruleName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - ruleName, - options - }, - beginDeleteMethodOperationSpec, - options); + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, request, options }, + replaceAllOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); } /** * Replaces firewall rules * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param request Replace all IP firewall rules request - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginReplaceAll(resourceGroupName: string, workspaceName: string, request: Models.ReplaceAllIpFirewallRulesRequest, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - request, - options - }, - beginReplaceAllOperationSpec, - options); + async beginReplaceAllAndWait( + resourceGroupName: string, + workspaceName: string, + request: ReplaceAllIpFirewallRulesRequest, + options?: IpFirewallRulesReplaceAllOptionalParams + ): Promise { + const poller = await this.beginReplaceAll( + resourceGroupName, + workspaceName, + request, + options + ); + return poller.pollUntilDone(); } /** - * Returns a list of firewall rules - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByWorkspaceNext(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 + * ListByWorkspaceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method. + * @param options The options parameters. */ - listByWorkspaceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listByWorkspaceNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: IpFirewallRulesListByWorkspaceNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByWorkspaceNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, nextLink, options }, + listByWorkspaceNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByWorkspaceOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/firewallRules", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/firewallRules", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.IpFirewallRuleInfoListResult @@ -249,150 +469,149 @@ const listByWorkspaceOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/firewallRules/{ruleName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.ruleName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workspaceName ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/firewallRules/{ruleName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.IpFirewallRuleInfo }, + 201: { + bodyMapper: Mappers.IpFirewallRuleInfo + }, + 202: { + bodyMapper: Mappers.IpFirewallRuleInfo + }, + 204: { + bodyMapper: Mappers.IpFirewallRuleInfo + }, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/firewallRules/{ruleName}", + requestBody: Parameters.ipFirewallRuleInfo, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.ruleName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "ipFirewallRuleInfo", - mapper: { - ...Mappers.IpFirewallRuleInfo, - required: true - } - }, + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/firewallRules/{ruleName}", + httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.IpFirewallRuleInfo + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } }, 201: { - bodyMapper: Mappers.IpFirewallRuleInfo + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + }, + 202: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + }, + 204: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } }, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/firewallRules/{ruleName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.ruleName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/firewallRules/{ruleName}", + httpMethod: "GET", responses: { 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } + bodyMapper: Mappers.IpFirewallRuleInfo }, - 202: {}, - 204: {}, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginReplaceAllOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/replaceAllIpFirewallRules", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workspaceName, + Parameters.ruleName ], - requestBody: { - parameterPath: "request", - mapper: { - ...Mappers.ReplaceAllIpFirewallRulesRequest, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const replaceAllOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/replaceAllIpFirewallRules", + httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.ReplaceAllFirewallRulesOperationResponse }, - 202: {}, + 201: { + bodyMapper: Mappers.ReplaceAllFirewallRulesOperationResponse + }, + 202: { + bodyMapper: Mappers.ReplaceAllFirewallRulesOperationResponse + }, + 204: { + bodyMapper: Mappers.ReplaceAllFirewallRulesOperationResponse + }, default: { bodyMapper: Mappers.ErrorResponse } }, + requestBody: Parameters.request1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; - -const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.IpFirewallRuleInfoListResult @@ -401,5 +620,14 @@ const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/keys.ts b/sdk/synapse/arm-synapse/src/operations/keys.ts index c6e1f5b98ead..dd4039aaff64 100644 --- a/sdk/synapse/arm-synapse/src/operations/keys.ts +++ b/sdk/synapse/arm-synapse/src/operations/keys.ts @@ -3,217 +3,215 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/keysMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Keys } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + Key, + KeysListByWorkspaceNextOptionalParams, + KeysListByWorkspaceOptionalParams, + KeysListByWorkspaceResponse, + KeysGetOptionalParams, + KeysGetResponse, + KeysCreateOrUpdateOptionalParams, + KeysCreateOrUpdateResponse, + KeysDeleteOptionalParams, + KeysDeleteResponse, + KeysListByWorkspaceNextResponse +} from "../models"; -/** Class representing a Keys. */ -export class Keys { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing Keys operations. */ +export class KeysImpl implements Keys { + private readonly client: SynapseManagementClient; /** - * Create a Keys. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class Keys class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Returns a list of keys in a workspace * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: KeysListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByWorkspacePagingAll( + resourceGroupName, + workspaceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + ); + } + }; + } + + private async *listByWorkspacePagingPage( + resourceGroupName: string, + workspaceName: string, + options?: KeysListByWorkspaceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByWorkspace( + resourceGroupName, + workspaceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByWorkspaceNext( resourceGroupName, workspaceName, + continuationToken, options - }, - listByWorkspaceOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByWorkspacePagingAll( + resourceGroupName: string, + workspaceName: string, + options?: KeysListByWorkspaceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } } /** - * Gets a workspace key - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param keyName The name of the workspace key - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, workspaceName: string, keyName: string, options?: msRest.RequestOptionsBase): Promise; - /** + * Returns a list of keys in a workspace * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param keyName The name of the workspace key - * @param callback The callback + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, keyName: string, callback: msRest.ServiceCallback): void; + private _listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: KeysListByWorkspaceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listByWorkspaceOperationSpec + ); + } + /** + * Gets a workspace key * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, keyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, keyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + keyName: string, + options?: KeysGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - keyName, - options - }, - getOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, keyName, options }, + getOperationSpec + ); } /** * Creates or updates a workspace key * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key * @param keyProperties Key put request properties - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, keyName: string, keyProperties: Models.Key, 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 keyName The name of the workspace key - * @param keyProperties Key put request properties - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, keyName: string, keyProperties: Models.Key, 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 keyName The name of the workspace key - * @param keyProperties Key put request properties - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, keyName: string, keyProperties: Models.Key, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, workspaceName: string, keyName: string, keyProperties: Models.Key, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + keyName: string, + keyProperties: Key, + options?: KeysCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - keyName, - keyProperties, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, keyName, keyProperties, options }, + createOrUpdateOperationSpec + ); } /** * Deletes a workspace key * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param keyName The name of the workspace key - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - deleteMethod(resourceGroupName: string, workspaceName: string, keyName: 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 keyName The name of the workspace key - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, workspaceName: string, keyName: 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 keyName The name of the workspace key - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, workspaceName: string, keyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, workspaceName: string, keyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + delete( + resourceGroupName: string, + workspaceName: string, + keyName: string, + options?: KeysDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - keyName, - options - }, - deleteMethodOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, keyName, options }, + deleteOperationSpec + ); } /** - * Returns a list of keys in a workspace - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByWorkspaceNext(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 + * ListByWorkspaceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method. + * @param options The options parameters. */ - listByWorkspaceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listByWorkspaceNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: KeysListByWorkspaceNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByWorkspaceNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, nextLink, options }, + listByWorkspaceNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByWorkspaceOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.KeyInfoListResult @@ -222,24 +220,20 @@ const listByWorkspaceOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys/{keyName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.keyName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workspaceName ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys/{keyName}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.Key @@ -248,31 +242,21 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys/{keyName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.keyName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "keyProperties", - mapper: { - ...Mappers.Key, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys/{keyName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.Key @@ -281,24 +265,23 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys/{keyName}", + requestBody: Parameters.keyProperties, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.keyName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys/{keyName}", + httpMethod: "DELETE", responses: { 200: { bodyMapper: Mappers.Key @@ -308,22 +291,20 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.keyName + ], + headerParameters: [Parameters.accept], serializer }; - -const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.KeyInfoListResult @@ -332,5 +313,14 @@ const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/kustoOperations.ts b/sdk/synapse/arm-synapse/src/operations/kustoOperations.ts new file mode 100644 index 000000000000..26213fa3e103 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/kustoOperations.ts @@ -0,0 +1,137 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { KustoOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + Operation, + KustoOperationsListNextOptionalParams, + KustoOperationsListOptionalParams, + KustoOperationsListResponse, + KustoOperationsListNextResponse +} from "../models"; + +/// +/** Class containing KustoOperations operations. */ +export class KustoOperationsImpl implements KustoOperations { + private readonly client: SynapseManagementClient; + + /** + * Initialize a new instance of the class KustoOperations class. + * @param client Reference to the service client + */ + constructor(client: SynapseManagementClient) { + this.client = client; + } + + /** + * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. + * @param options The options parameters. + */ + public list( + options?: KustoOperationsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(options); + } + }; + } + + private async *listPagingPage( + options?: KustoOperationsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + options?: KustoOperationsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + + /** + * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. + * @param options The options parameters. + */ + private _list( + options?: KustoOperationsListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + + /** + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + nextLink: string, + options?: KustoOperationsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Synapse/kustooperations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [Parameters.$host, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/kustoPoolAttachedDatabaseConfigurations.ts b/sdk/synapse/arm-synapse/src/operations/kustoPoolAttachedDatabaseConfigurations.ts new file mode 100644 index 000000000000..eb70185d3299 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/kustoPoolAttachedDatabaseConfigurations.ts @@ -0,0 +1,470 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { KustoPoolAttachedDatabaseConfigurations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + AttachedDatabaseConfiguration, + KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams, + KustoPoolAttachedDatabaseConfigurationsListByKustoPoolResponse, + KustoPoolAttachedDatabaseConfigurationsGetOptionalParams, + KustoPoolAttachedDatabaseConfigurationsGetResponse, + KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams, + KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse, + KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams +} from "../models"; + +/// +/** Class containing KustoPoolAttachedDatabaseConfigurations operations. */ +export class KustoPoolAttachedDatabaseConfigurationsImpl + implements KustoPoolAttachedDatabaseConfigurations { + private readonly client: SynapseManagementClient; + + /** + * Initialize a new instance of the class KustoPoolAttachedDatabaseConfigurations class. + * @param client Reference to the service client + */ + constructor(client: SynapseManagementClient) { + this.client = client; + } + + /** + * Returns the list of attached database configurations of the given Kusto Pool. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public listByKustoPool( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByKustoPoolPagingAll( + workspaceName, + kustoPoolName, + resourceGroupName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByKustoPoolPagingPage( + workspaceName, + kustoPoolName, + resourceGroupName, + options + ); + } + }; + } + + private async *listByKustoPoolPagingPage( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams + ): AsyncIterableIterator { + let result = await this._listByKustoPool( + workspaceName, + kustoPoolName, + resourceGroupName, + options + ); + yield result.value || []; + } + + private async *listByKustoPoolPagingAll( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByKustoPoolPagingPage( + workspaceName, + kustoPoolName, + resourceGroupName, + options + )) { + yield* page; + } + } + + /** + * Returns the list of attached database configurations of the given Kusto Pool. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _listByKustoPool( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { workspaceName, kustoPoolName, resourceGroupName, options }, + listByKustoPoolOperationSpec + ); + } + + /** + * Returns an attached database configuration. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param attachedDatabaseConfigurationName The name of the attached database configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + get( + workspaceName: string, + kustoPoolName: string, + attachedDatabaseConfigurationName: string, + resourceGroupName: string, + options?: KustoPoolAttachedDatabaseConfigurationsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + workspaceName, + kustoPoolName, + attachedDatabaseConfigurationName, + resourceGroupName, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates an attached database configuration. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param attachedDatabaseConfigurationName The name of the attached database configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The database parameters supplied to the CreateOrUpdate operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + workspaceName: string, + kustoPoolName: string, + attachedDatabaseConfigurationName: string, + resourceGroupName: string, + parameters: AttachedDatabaseConfiguration, + options?: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState< + KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse + >, + KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + workspaceName, + kustoPoolName, + attachedDatabaseConfigurationName, + resourceGroupName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Creates or updates an attached database configuration. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param attachedDatabaseConfigurationName The name of the attached database configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The database parameters supplied to the CreateOrUpdate operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + workspaceName: string, + kustoPoolName: string, + attachedDatabaseConfigurationName: string, + resourceGroupName: string, + parameters: AttachedDatabaseConfiguration, + options?: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + workspaceName, + kustoPoolName, + attachedDatabaseConfigurationName, + resourceGroupName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes the attached database configuration with the given name. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param attachedDatabaseConfigurationName The name of the attached database configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + async beginDelete( + workspaceName: string, + kustoPoolName: string, + attachedDatabaseConfigurationName: string, + resourceGroupName: string, + options?: KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + workspaceName, + kustoPoolName, + attachedDatabaseConfigurationName, + resourceGroupName, + options + }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Deletes the attached database configuration with the given name. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param attachedDatabaseConfigurationName The name of the attached database configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + async beginDeleteAndWait( + workspaceName: string, + kustoPoolName: string, + attachedDatabaseConfigurationName: string, + resourceGroupName: string, + options?: KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + workspaceName, + kustoPoolName, + attachedDatabaseConfigurationName, + resourceGroupName, + options + ); + return poller.pollUntilDone(); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByKustoPoolOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AttachedDatabaseConfigurationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AttachedDatabaseConfiguration + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1, + Parameters.attachedDatabaseConfigurationName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.AttachedDatabaseConfiguration + }, + 201: { + bodyMapper: Mappers.AttachedDatabaseConfiguration + }, + 202: { + bodyMapper: Mappers.AttachedDatabaseConfiguration + }, + 204: { + bodyMapper: Mappers.AttachedDatabaseConfiguration + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters24, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1, + Parameters.attachedDatabaseConfigurationName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1, + Parameters.attachedDatabaseConfigurationName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/kustoPoolChildResource.ts b/sdk/synapse/arm-synapse/src/operations/kustoPoolChildResource.ts new file mode 100644 index 000000000000..08a05495bcce --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/kustoPoolChildResource.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { KustoPoolChildResource } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + DatabaseCheckNameRequest, + KustoPoolChildResourceCheckNameAvailabilityOptionalParams, + KustoPoolChildResourceCheckNameAvailabilityResponse +} from "../models"; + +/** Class containing KustoPoolChildResource operations. */ +export class KustoPoolChildResourceImpl implements KustoPoolChildResource { + private readonly client: SynapseManagementClient; + + /** + * Initialize a new instance of the class KustoPoolChildResource class. + * @param client Reference to the service client + */ + constructor(client: SynapseManagementClient) { + this.client = client; + } + + /** + * Checks that the Kusto Pool child resource name is valid and is not already in use. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Kusto Pool child resource. + * @param options The options parameters. + */ + checkNameAvailability( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + resourceName: DatabaseCheckNameRequest, + options?: KustoPoolChildResourceCheckNameAvailabilityOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + workspaceName, + kustoPoolName, + resourceGroupName, + resourceName, + options + }, + checkNameAvailabilityOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/checkNameAvailability", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CheckNameResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.resourceName, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/kustoPoolDataConnections.ts b/sdk/synapse/arm-synapse/src/operations/kustoPoolDataConnections.ts new file mode 100644 index 000000000000..b916485e5460 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/kustoPoolDataConnections.ts @@ -0,0 +1,860 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { KustoPoolDataConnections } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + DataConnectionUnion, + KustoPoolDataConnectionsListByDatabaseOptionalParams, + DataConnectionCheckNameRequest, + KustoPoolDataConnectionsCheckNameAvailabilityOptionalParams, + KustoPoolDataConnectionsCheckNameAvailabilityResponse, + DataConnectionValidation, + KustoPoolDataConnectionsDataConnectionValidationOptionalParams, + KustoPoolDataConnectionsDataConnectionValidationResponse, + KustoPoolDataConnectionsListByDatabaseResponse, + KustoPoolDataConnectionsGetOptionalParams, + KustoPoolDataConnectionsGetResponse, + KustoPoolDataConnectionsCreateOrUpdateOptionalParams, + KustoPoolDataConnectionsCreateOrUpdateResponse, + KustoPoolDataConnectionsUpdateOptionalParams, + KustoPoolDataConnectionsUpdateResponse, + KustoPoolDataConnectionsDeleteOptionalParams +} from "../models"; + +/// +/** Class containing KustoPoolDataConnections operations. */ +export class KustoPoolDataConnectionsImpl implements KustoPoolDataConnections { + private readonly client: SynapseManagementClient; + + /** + * Initialize a new instance of the class KustoPoolDataConnections class. + * @param client Reference to the service client + */ + constructor(client: SynapseManagementClient) { + this.client = client; + } + + /** + * Returns the list of data connections of the given Kusto pool database. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param options The options parameters. + */ + public listByDatabase( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + options?: KustoPoolDataConnectionsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByDatabasePagingAll( + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByDatabasePagingPage( + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + options + ); + } + }; + } + + private async *listByDatabasePagingPage( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + options?: KustoPoolDataConnectionsListByDatabaseOptionalParams + ): AsyncIterableIterator { + let result = await this._listByDatabase( + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + options + ); + yield result.value || []; + } + + private async *listByDatabasePagingAll( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + options?: KustoPoolDataConnectionsListByDatabaseOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByDatabasePagingPage( + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + options + )) { + yield* page; + } + } + + /** + * Checks that the data connection name is valid and is not already in use. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param options The options parameters. + */ + checkNameAvailability( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + dataConnectionName: DataConnectionCheckNameRequest, + options?: KustoPoolDataConnectionsCheckNameAvailabilityOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + dataConnectionName, + options + }, + checkNameAvailabilityOperationSpec + ); + } + + /** + * Checks that the data connection parameters are valid. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. + * @param options The options parameters. + */ + async beginDataConnectionValidation( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + parameters: DataConnectionValidation, + options?: KustoPoolDataConnectionsDataConnectionValidationOptionalParams + ): Promise< + PollerLike< + PollOperationState< + KustoPoolDataConnectionsDataConnectionValidationResponse + >, + KustoPoolDataConnectionsDataConnectionValidationResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + parameters, + options + }, + dataConnectionValidationOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + } + + /** + * Checks that the data connection parameters are valid. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. + * @param options The options parameters. + */ + async beginDataConnectionValidationAndWait( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + parameters: DataConnectionValidation, + options?: KustoPoolDataConnectionsDataConnectionValidationOptionalParams + ): Promise { + const poller = await this.beginDataConnectionValidation( + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Returns the list of data connections of the given Kusto pool database. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param options The options parameters. + */ + private _listByDatabase( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + options?: KustoPoolDataConnectionsListByDatabaseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + options + }, + listByDatabaseOperationSpec + ); + } + + /** + * Returns a data connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + dataConnectionName: string, + options?: KustoPoolDataConnectionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + dataConnectionName, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates a data connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + dataConnectionName: string, + parameters: DataConnectionUnion, + options?: KustoPoolDataConnectionsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + KustoPoolDataConnectionsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + dataConnectionName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Creates or updates a data connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + dataConnectionName: string, + parameters: DataConnectionUnion, + options?: KustoPoolDataConnectionsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + dataConnectionName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates a data connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param parameters The data connection parameters supplied to the Update operation. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + dataConnectionName: string, + parameters: DataConnectionUnion, + options?: KustoPoolDataConnectionsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + KustoPoolDataConnectionsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + dataConnectionName, + parameters, + options + }, + updateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Updates a data connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param parameters The data connection parameters supplied to the Update operation. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + dataConnectionName: string, + parameters: DataConnectionUnion, + options?: KustoPoolDataConnectionsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + dataConnectionName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes the data connection with the given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + dataConnectionName: string, + options?: KustoPoolDataConnectionsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + dataConnectionName, + options + }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Deletes the data connection with the given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + dataConnectionName: string, + options?: KustoPoolDataConnectionsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + dataConnectionName, + options + ); + return poller.pollUntilDone(); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/checkNameAvailability", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CheckNameResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.dataConnectionName, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1, + Parameters.databaseName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const dataConnectionValidationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnectionValidation", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.DataConnectionValidationListResult + }, + 201: { + bodyMapper: Mappers.DataConnectionValidationListResult + }, + 202: { + bodyMapper: Mappers.DataConnectionValidationListResult + }, + 204: { + bodyMapper: Mappers.DataConnectionValidationListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters26, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1, + Parameters.databaseName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listByDatabaseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataConnectionListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1, + Parameters.databaseName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataConnection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1, + Parameters.databaseName, + Parameters.dataConnectionName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DataConnection + }, + 201: { + bodyMapper: Mappers.DataConnection + }, + 202: { + bodyMapper: Mappers.DataConnection + }, + 204: { + bodyMapper: Mappers.DataConnection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters27, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1, + Parameters.databaseName, + Parameters.dataConnectionName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.DataConnection + }, + 201: { + bodyMapper: Mappers.DataConnection + }, + 202: { + bodyMapper: Mappers.DataConnection + }, + 204: { + bodyMapper: Mappers.DataConnection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters27, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1, + Parameters.databaseName, + Parameters.dataConnectionName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/dataConnections/{dataConnectionName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1, + Parameters.databaseName, + Parameters.dataConnectionName1 + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/kustoPoolDatabasePrincipalAssignments.ts b/sdk/synapse/arm-synapse/src/operations/kustoPoolDatabasePrincipalAssignments.ts new file mode 100644 index 000000000000..e59aa8a40d3a --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/kustoPoolDatabasePrincipalAssignments.ts @@ -0,0 +1,566 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { KustoPoolDatabasePrincipalAssignments } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + DatabasePrincipalAssignment, + KustoPoolDatabasePrincipalAssignmentsListOptionalParams, + DatabasePrincipalAssignmentCheckNameRequest, + KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityOptionalParams, + KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityResponse, + KustoPoolDatabasePrincipalAssignmentsListResponse, + KustoPoolDatabasePrincipalAssignmentsGetOptionalParams, + KustoPoolDatabasePrincipalAssignmentsGetResponse, + KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams, + KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateResponse, + KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams +} from "../models"; + +/// +/** Class containing KustoPoolDatabasePrincipalAssignments operations. */ +export class KustoPoolDatabasePrincipalAssignmentsImpl + implements KustoPoolDatabasePrincipalAssignments { + private readonly client: SynapseManagementClient; + + /** + * Initialize a new instance of the class KustoPoolDatabasePrincipalAssignments class. + * @param client Reference to the service client + */ + constructor(client: SynapseManagementClient) { + this.client = client; + } + + /** + * Lists all Kusto pool database principalAssignments. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public list( + workspaceName: string, + kustoPoolName: string, + databaseName: string, + resourceGroupName: string, + options?: KustoPoolDatabasePrincipalAssignmentsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + workspaceName, + kustoPoolName, + databaseName, + resourceGroupName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + workspaceName, + kustoPoolName, + databaseName, + resourceGroupName, + options + ); + } + }; + } + + private async *listPagingPage( + workspaceName: string, + kustoPoolName: string, + databaseName: string, + resourceGroupName: string, + options?: KustoPoolDatabasePrincipalAssignmentsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + workspaceName, + kustoPoolName, + databaseName, + resourceGroupName, + options + ); + yield result.value || []; + } + + private async *listPagingAll( + workspaceName: string, + kustoPoolName: string, + databaseName: string, + resourceGroupName: string, + options?: KustoPoolDatabasePrincipalAssignmentsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + workspaceName, + kustoPoolName, + databaseName, + resourceGroupName, + options + )) { + yield* page; + } + } + + /** + * Checks that the database principal assignment is valid and is not already in use. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param principalAssignmentName The name of the resource. + * @param options The options parameters. + */ + checkNameAvailability( + workspaceName: string, + kustoPoolName: string, + databaseName: string, + resourceGroupName: string, + principalAssignmentName: DatabasePrincipalAssignmentCheckNameRequest, + options?: KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityOptionalParams + ): Promise< + KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityResponse + > { + return this.client.sendOperationRequest( + { + workspaceName, + kustoPoolName, + databaseName, + resourceGroupName, + principalAssignmentName, + options + }, + checkNameAvailabilityOperationSpec + ); + } + + /** + * Lists all Kusto pool database principalAssignments. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _list( + workspaceName: string, + kustoPoolName: string, + databaseName: string, + resourceGroupName: string, + options?: KustoPoolDatabasePrincipalAssignmentsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + workspaceName, + kustoPoolName, + databaseName, + resourceGroupName, + options + }, + listOperationSpec + ); + } + + /** + * Gets a Kusto pool database principalAssignment. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + get( + workspaceName: string, + kustoPoolName: string, + databaseName: string, + principalAssignmentName: string, + resourceGroupName: string, + options?: KustoPoolDatabasePrincipalAssignmentsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + workspaceName, + kustoPoolName, + databaseName, + principalAssignmentName, + resourceGroupName, + options + }, + getOperationSpec + ); + } + + /** + * Creates a Kusto pool database principalAssignment. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The Kusto principalAssignments parameters supplied for the operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + workspaceName: string, + kustoPoolName: string, + databaseName: string, + principalAssignmentName: string, + resourceGroupName: string, + parameters: DatabasePrincipalAssignment, + options?: KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState< + KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateResponse + >, + KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + workspaceName, + kustoPoolName, + databaseName, + principalAssignmentName, + resourceGroupName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Creates a Kusto pool database principalAssignment. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The Kusto principalAssignments parameters supplied for the operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + workspaceName: string, + kustoPoolName: string, + databaseName: string, + principalAssignmentName: string, + resourceGroupName: string, + parameters: DatabasePrincipalAssignment, + options?: KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + workspaceName, + kustoPoolName, + databaseName, + principalAssignmentName, + resourceGroupName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a Kusto pool principalAssignment. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + async beginDelete( + workspaceName: string, + kustoPoolName: string, + databaseName: string, + principalAssignmentName: string, + resourceGroupName: string, + options?: KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + workspaceName, + kustoPoolName, + databaseName, + principalAssignmentName, + resourceGroupName, + options + }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Deletes a Kusto pool principalAssignment. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + async beginDeleteAndWait( + workspaceName: string, + kustoPoolName: string, + databaseName: string, + principalAssignmentName: string, + resourceGroupName: string, + options?: KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + workspaceName, + kustoPoolName, + databaseName, + principalAssignmentName, + resourceGroupName, + options + ); + return poller.pollUntilDone(); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/checkPrincipalAssignmentNameAvailability", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CheckNameResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.principalAssignmentName2, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1, + Parameters.databaseName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatabasePrincipalAssignmentListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1, + Parameters.databaseName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatabasePrincipalAssignment + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1, + Parameters.databaseName, + Parameters.principalAssignmentName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DatabasePrincipalAssignment + }, + 201: { + bodyMapper: Mappers.DatabasePrincipalAssignment + }, + 202: { + bodyMapper: Mappers.DatabasePrincipalAssignment + }, + 204: { + bodyMapper: Mappers.DatabasePrincipalAssignment + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters29, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1, + Parameters.databaseName, + Parameters.principalAssignmentName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1, + Parameters.databaseName, + Parameters.principalAssignmentName1 + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/kustoPoolDatabases.ts b/sdk/synapse/arm-synapse/src/operations/kustoPoolDatabases.ts new file mode 100644 index 000000000000..09a9e978174a --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/kustoPoolDatabases.ts @@ -0,0 +1,611 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { KustoPoolDatabases } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + DatabaseUnion, + KustoPoolDatabasesListByKustoPoolOptionalParams, + KustoPoolDatabasesListByKustoPoolResponse, + KustoPoolDatabasesGetOptionalParams, + KustoPoolDatabasesGetResponse, + KustoPoolDatabasesCreateOrUpdateOptionalParams, + KustoPoolDatabasesCreateOrUpdateResponse, + KustoPoolDatabasesUpdateOptionalParams, + KustoPoolDatabasesUpdateResponse, + KustoPoolDatabasesDeleteOptionalParams +} from "../models"; + +/// +/** Class containing KustoPoolDatabases operations. */ +export class KustoPoolDatabasesImpl implements KustoPoolDatabases { + private readonly client: SynapseManagementClient; + + /** + * Initialize a new instance of the class KustoPoolDatabases class. + * @param client Reference to the service client + */ + constructor(client: SynapseManagementClient) { + this.client = client; + } + + /** + * Returns the list of databases of the given Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param options The options parameters. + */ + public listByKustoPool( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + options?: KustoPoolDatabasesListByKustoPoolOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByKustoPoolPagingAll( + resourceGroupName, + workspaceName, + kustoPoolName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByKustoPoolPagingPage( + resourceGroupName, + workspaceName, + kustoPoolName, + options + ); + } + }; + } + + private async *listByKustoPoolPagingPage( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + options?: KustoPoolDatabasesListByKustoPoolOptionalParams + ): AsyncIterableIterator { + let result = await this._listByKustoPool( + resourceGroupName, + workspaceName, + kustoPoolName, + options + ); + yield result.value || []; + } + + private async *listByKustoPoolPagingAll( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + options?: KustoPoolDatabasesListByKustoPoolOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByKustoPoolPagingPage( + resourceGroupName, + workspaceName, + kustoPoolName, + options + )) { + yield* page; + } + } + + /** + * Returns the list of databases of the given Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param options The options parameters. + */ + private _listByKustoPool( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + options?: KustoPoolDatabasesListByKustoPoolOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, kustoPoolName, options }, + listByKustoPoolOperationSpec + ); + } + + /** + * Returns a database. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + options?: KustoPoolDatabasesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates a database. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param parameters The database parameters supplied to the CreateOrUpdate operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + parameters: DatabaseUnion, + options?: KustoPoolDatabasesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + KustoPoolDatabasesCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Creates or updates a database. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param parameters The database parameters supplied to the CreateOrUpdate operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + parameters: DatabaseUnion, + options?: KustoPoolDatabasesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates a database. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param parameters The database parameters supplied to the Update operation. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + parameters: DatabaseUnion, + options?: KustoPoolDatabasesUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + KustoPoolDatabasesUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + parameters, + options + }, + updateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Updates a database. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param parameters The database parameters supplied to the Update operation. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + parameters: DatabaseUnion, + options?: KustoPoolDatabasesUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes the database with the given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + options?: KustoPoolDatabasesDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + options + }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Deletes the database with the given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + options?: KustoPoolDatabasesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + kustoPoolName, + databaseName, + options + ); + return poller.pollUntilDone(); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByKustoPoolOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DatabaseListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.Database + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1, + Parameters.databaseName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.Database + }, + 201: { + bodyMapper: Mappers.Database + }, + 202: { + bodyMapper: Mappers.Database + }, + 204: { + bodyMapper: Mappers.Database + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters25, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1, + Parameters.databaseName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.Database + }, + 201: { + bodyMapper: Mappers.Database + }, + 202: { + bodyMapper: Mappers.Database + }, + 204: { + bodyMapper: Mappers.Database + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters25, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1, + Parameters.databaseName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1, + Parameters.databaseName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/kustoPoolPrincipalAssignments.ts b/sdk/synapse/arm-synapse/src/operations/kustoPoolPrincipalAssignments.ts new file mode 100644 index 000000000000..8b6e06773924 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/kustoPoolPrincipalAssignments.ts @@ -0,0 +1,523 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { KustoPoolPrincipalAssignments } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + ClusterPrincipalAssignment, + KustoPoolPrincipalAssignmentsListOptionalParams, + ClusterPrincipalAssignmentCheckNameRequest, + KustoPoolPrincipalAssignmentsCheckNameAvailabilityOptionalParams, + KustoPoolPrincipalAssignmentsCheckNameAvailabilityResponse, + KustoPoolPrincipalAssignmentsListResponse, + KustoPoolPrincipalAssignmentsGetOptionalParams, + KustoPoolPrincipalAssignmentsGetResponse, + KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams, + KustoPoolPrincipalAssignmentsCreateOrUpdateResponse, + KustoPoolPrincipalAssignmentsDeleteOptionalParams +} from "../models"; + +/// +/** Class containing KustoPoolPrincipalAssignments operations. */ +export class KustoPoolPrincipalAssignmentsImpl + implements KustoPoolPrincipalAssignments { + private readonly client: SynapseManagementClient; + + /** + * Initialize a new instance of the class KustoPoolPrincipalAssignments class. + * @param client Reference to the service client + */ + constructor(client: SynapseManagementClient) { + this.client = client; + } + + /** + * Lists all Kusto pool principalAssignments. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public list( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolPrincipalAssignmentsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + workspaceName, + kustoPoolName, + resourceGroupName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + workspaceName, + kustoPoolName, + resourceGroupName, + options + ); + } + }; + } + + private async *listPagingPage( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolPrincipalAssignmentsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + workspaceName, + kustoPoolName, + resourceGroupName, + options + ); + yield result.value || []; + } + + private async *listPagingAll( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolPrincipalAssignmentsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + workspaceName, + kustoPoolName, + resourceGroupName, + options + )) { + yield* page; + } + } + + /** + * Checks that the principal assignment name is valid and is not already in use. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param principalAssignmentName The name of the principal assignment. + * @param options The options parameters. + */ + checkNameAvailability( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + principalAssignmentName: ClusterPrincipalAssignmentCheckNameRequest, + options?: KustoPoolPrincipalAssignmentsCheckNameAvailabilityOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + workspaceName, + kustoPoolName, + resourceGroupName, + principalAssignmentName, + options + }, + checkNameAvailabilityOperationSpec + ); + } + + /** + * Lists all Kusto pool principalAssignments. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _list( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolPrincipalAssignmentsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { workspaceName, kustoPoolName, resourceGroupName, options }, + listOperationSpec + ); + } + + /** + * Gets a Kusto pool principalAssignment. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + get( + workspaceName: string, + kustoPoolName: string, + principalAssignmentName: string, + resourceGroupName: string, + options?: KustoPoolPrincipalAssignmentsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + workspaceName, + kustoPoolName, + principalAssignmentName, + resourceGroupName, + options + }, + getOperationSpec + ); + } + + /** + * Create a Kusto pool principalAssignment. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The Kusto pool principalAssignment's parameters supplied for the operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + workspaceName: string, + kustoPoolName: string, + principalAssignmentName: string, + resourceGroupName: string, + parameters: ClusterPrincipalAssignment, + options?: KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + KustoPoolPrincipalAssignmentsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + workspaceName, + kustoPoolName, + principalAssignmentName, + resourceGroupName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Create a Kusto pool principalAssignment. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The Kusto pool principalAssignment's parameters supplied for the operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + workspaceName: string, + kustoPoolName: string, + principalAssignmentName: string, + resourceGroupName: string, + parameters: ClusterPrincipalAssignment, + options?: KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + workspaceName, + kustoPoolName, + principalAssignmentName, + resourceGroupName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a Kusto pool principalAssignment. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + async beginDelete( + workspaceName: string, + kustoPoolName: string, + principalAssignmentName: string, + resourceGroupName: string, + options?: KustoPoolPrincipalAssignmentsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + workspaceName, + kustoPoolName, + principalAssignmentName, + resourceGroupName, + options + }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Deletes a Kusto pool principalAssignment. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + async beginDeleteAndWait( + workspaceName: string, + kustoPoolName: string, + principalAssignmentName: string, + resourceGroupName: string, + options?: KustoPoolPrincipalAssignmentsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + workspaceName, + kustoPoolName, + principalAssignmentName, + resourceGroupName, + options + ); + return poller.pollUntilDone(); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/checkPrincipalAssignmentNameAvailability", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CheckNameResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.principalAssignmentName, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ClusterPrincipalAssignmentListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ClusterPrincipalAssignment + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1, + Parameters.principalAssignmentName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ClusterPrincipalAssignment + }, + 201: { + bodyMapper: Mappers.ClusterPrincipalAssignment + }, + 202: { + bodyMapper: Mappers.ClusterPrincipalAssignment + }, + 204: { + bodyMapper: Mappers.ClusterPrincipalAssignment + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters28, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1, + Parameters.principalAssignmentName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/principalAssignments/{principalAssignmentName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1, + Parameters.principalAssignmentName1 + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/kustoPools.ts b/sdk/synapse/arm-synapse/src/operations/kustoPools.ts new file mode 100644 index 000000000000..45c9cb56fc8c --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/kustoPools.ts @@ -0,0 +1,1542 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { KustoPools } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + SkuDescription, + KustoPoolsListSkusOptionalParams, + AzureResourceSku, + KustoPoolsListSkusByResourceOptionalParams, + LanguageExtension, + KustoPoolsListLanguageExtensionsOptionalParams, + FollowerDatabaseDefinition, + KustoPoolsListFollowerDatabasesOptionalParams, + KustoPoolsListSkusResponse, + KustoPoolCheckNameRequest, + KustoPoolsCheckNameAvailabilityOptionalParams, + KustoPoolsCheckNameAvailabilityResponse, + KustoPoolsListByWorkspaceOptionalParams, + KustoPoolsListByWorkspaceResponse, + KustoPoolsGetOptionalParams, + KustoPoolsGetResponse, + KustoPool, + KustoPoolsCreateOrUpdateOptionalParams, + KustoPoolsCreateOrUpdateResponse, + KustoPoolUpdate, + KustoPoolsUpdateOptionalParams, + KustoPoolsUpdateResponse, + KustoPoolsDeleteOptionalParams, + KustoPoolsStopOptionalParams, + KustoPoolsStartOptionalParams, + KustoPoolsListSkusByResourceResponse, + KustoPoolsListLanguageExtensionsResponse, + LanguageExtensionsList, + KustoPoolsAddLanguageExtensionsOptionalParams, + KustoPoolsRemoveLanguageExtensionsOptionalParams, + KustoPoolsListFollowerDatabasesResponse, + KustoPoolsDetachFollowerDatabasesOptionalParams +} from "../models"; + +/// +/** Class containing KustoPools operations. */ +export class KustoPoolsImpl implements KustoPools { + private readonly client: SynapseManagementClient; + + /** + * Initialize a new instance of the class KustoPools class. + * @param client Reference to the service client + */ + constructor(client: SynapseManagementClient) { + this.client = client; + } + + /** + * Lists eligible SKUs for Kusto Pool resource. + * @param options The options parameters. + */ + public listSkus( + options?: KustoPoolsListSkusOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listSkusPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listSkusPagingPage(options); + } + }; + } + + private async *listSkusPagingPage( + options?: KustoPoolsListSkusOptionalParams + ): AsyncIterableIterator { + let result = await this._listSkus(options); + yield result.value || []; + } + + private async *listSkusPagingAll( + options?: KustoPoolsListSkusOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listSkusPagingPage(options)) { + yield* page; + } + } + + /** + * Returns the SKUs available for the provided resource. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public listSkusByResource( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsListSkusByResourceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listSkusByResourcePagingAll( + workspaceName, + kustoPoolName, + resourceGroupName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listSkusByResourcePagingPage( + workspaceName, + kustoPoolName, + resourceGroupName, + options + ); + } + }; + } + + private async *listSkusByResourcePagingPage( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsListSkusByResourceOptionalParams + ): AsyncIterableIterator { + let result = await this._listSkusByResource( + workspaceName, + kustoPoolName, + resourceGroupName, + options + ); + yield result.value || []; + } + + private async *listSkusByResourcePagingAll( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsListSkusByResourceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listSkusByResourcePagingPage( + workspaceName, + kustoPoolName, + resourceGroupName, + options + )) { + yield* page; + } + } + + /** + * Returns a list of language extensions that can run within KQL queries. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public listLanguageExtensions( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsListLanguageExtensionsOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listLanguageExtensionsPagingAll( + workspaceName, + kustoPoolName, + resourceGroupName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listLanguageExtensionsPagingPage( + workspaceName, + kustoPoolName, + resourceGroupName, + options + ); + } + }; + } + + private async *listLanguageExtensionsPagingPage( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsListLanguageExtensionsOptionalParams + ): AsyncIterableIterator { + let result = await this._listLanguageExtensions( + workspaceName, + kustoPoolName, + resourceGroupName, + options + ); + yield result.value || []; + } + + private async *listLanguageExtensionsPagingAll( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsListLanguageExtensionsOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listLanguageExtensionsPagingPage( + workspaceName, + kustoPoolName, + resourceGroupName, + options + )) { + yield* page; + } + } + + /** + * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto + * Pool. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public listFollowerDatabases( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsListFollowerDatabasesOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listFollowerDatabasesPagingAll( + workspaceName, + kustoPoolName, + resourceGroupName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listFollowerDatabasesPagingPage( + workspaceName, + kustoPoolName, + resourceGroupName, + options + ); + } + }; + } + + private async *listFollowerDatabasesPagingPage( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsListFollowerDatabasesOptionalParams + ): AsyncIterableIterator { + let result = await this._listFollowerDatabases( + workspaceName, + kustoPoolName, + resourceGroupName, + options + ); + yield result.value || []; + } + + private async *listFollowerDatabasesPagingAll( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsListFollowerDatabasesOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listFollowerDatabasesPagingPage( + workspaceName, + kustoPoolName, + resourceGroupName, + options + )) { + yield* page; + } + } + + /** + * Lists eligible SKUs for Kusto Pool resource. + * @param options The options parameters. + */ + private _listSkus( + options?: KustoPoolsListSkusOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listSkusOperationSpec); + } + + /** + * Checks that the kusto pool name is valid and is not already in use. + * @param location The name of Azure region. + * @param kustoPoolName The name of the cluster. + * @param options The options parameters. + */ + checkNameAvailability( + location: string, + kustoPoolName: KustoPoolCheckNameRequest, + options?: KustoPoolsCheckNameAvailabilityOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { location, kustoPoolName, options }, + checkNameAvailabilityOperationSpec + ); + } + + /** + * List all Kusto pools + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: KustoPoolsListByWorkspaceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listByWorkspaceOperationSpec + ); + } + + /** + * Gets a Kusto pool. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + get( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { workspaceName, kustoPoolName, resourceGroupName, options }, + getOperationSpec + ); + } + + /** + * Create or update a Kusto pool. + * @param workspaceName The name of the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kustoPoolName The name of the Kusto pool. + * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + workspaceName: string, + resourceGroupName: string, + kustoPoolName: string, + parameters: KustoPool, + options?: KustoPoolsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + KustoPoolsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { workspaceName, resourceGroupName, kustoPoolName, parameters, options }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Create or update a Kusto pool. + * @param workspaceName The name of the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kustoPoolName The name of the Kusto pool. + * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + workspaceName: string, + resourceGroupName: string, + kustoPoolName: string, + parameters: KustoPool, + options?: KustoPoolsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + workspaceName, + resourceGroupName, + kustoPoolName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Update a Kusto Kusto Pool. + * @param workspaceName The name of the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kustoPoolName The name of the Kusto pool. + * @param parameters The Kusto pool parameters supplied to the Update operation. + * @param options The options parameters. + */ + async beginUpdate( + workspaceName: string, + resourceGroupName: string, + kustoPoolName: string, + parameters: KustoPoolUpdate, + options?: KustoPoolsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + KustoPoolsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { workspaceName, resourceGroupName, kustoPoolName, parameters, options }, + updateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Update a Kusto Kusto Pool. + * @param workspaceName The name of the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kustoPoolName The name of the Kusto pool. + * @param parameters The Kusto pool parameters supplied to the Update operation. + * @param options The options parameters. + */ + async beginUpdateAndWait( + workspaceName: string, + resourceGroupName: string, + kustoPoolName: string, + parameters: KustoPoolUpdate, + options?: KustoPoolsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + workspaceName, + resourceGroupName, + kustoPoolName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a Kusto pool. + * @param workspaceName The name of the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kustoPoolName The name of the Kusto pool. + * @param options The options parameters. + */ + async beginDelete( + workspaceName: string, + resourceGroupName: string, + kustoPoolName: string, + options?: KustoPoolsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { workspaceName, resourceGroupName, kustoPoolName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Deletes a Kusto pool. + * @param workspaceName The name of the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kustoPoolName The name of the Kusto pool. + * @param options The options parameters. + */ + async beginDeleteAndWait( + workspaceName: string, + resourceGroupName: string, + kustoPoolName: string, + options?: KustoPoolsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + workspaceName, + resourceGroupName, + kustoPoolName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Stops a Kusto pool. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + async beginStop( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsStopOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { workspaceName, kustoPoolName, resourceGroupName, options }, + stopOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Stops a Kusto pool. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + async beginStopAndWait( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsStopOptionalParams + ): Promise { + const poller = await this.beginStop( + workspaceName, + kustoPoolName, + resourceGroupName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Starts a Kusto pool. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + async beginStart( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsStartOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { workspaceName, kustoPoolName, resourceGroupName, options }, + startOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Starts a Kusto pool. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + async beginStartAndWait( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsStartOptionalParams + ): Promise { + const poller = await this.beginStart( + workspaceName, + kustoPoolName, + resourceGroupName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Returns the SKUs available for the provided resource. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _listSkusByResource( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsListSkusByResourceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { workspaceName, kustoPoolName, resourceGroupName, options }, + listSkusByResourceOperationSpec + ); + } + + /** + * Returns a list of language extensions that can run within KQL queries. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _listLanguageExtensions( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsListLanguageExtensionsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { workspaceName, kustoPoolName, resourceGroupName, options }, + listLanguageExtensionsOperationSpec + ); + } + + /** + * Add a list of language extensions that can run within KQL queries. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param languageExtensionsToAdd The language extensions to add. + * @param options The options parameters. + */ + async beginAddLanguageExtensions( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + languageExtensionsToAdd: LanguageExtensionsList, + options?: KustoPoolsAddLanguageExtensionsOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + workspaceName, + kustoPoolName, + resourceGroupName, + languageExtensionsToAdd, + options + }, + addLanguageExtensionsOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Add a list of language extensions that can run within KQL queries. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param languageExtensionsToAdd The language extensions to add. + * @param options The options parameters. + */ + async beginAddLanguageExtensionsAndWait( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + languageExtensionsToAdd: LanguageExtensionsList, + options?: KustoPoolsAddLanguageExtensionsOptionalParams + ): Promise { + const poller = await this.beginAddLanguageExtensions( + workspaceName, + kustoPoolName, + resourceGroupName, + languageExtensionsToAdd, + options + ); + return poller.pollUntilDone(); + } + + /** + * Remove a list of language extensions that can run within KQL queries. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param languageExtensionsToRemove The language extensions to remove. + * @param options The options parameters. + */ + async beginRemoveLanguageExtensions( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + languageExtensionsToRemove: LanguageExtensionsList, + options?: KustoPoolsRemoveLanguageExtensionsOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + workspaceName, + kustoPoolName, + resourceGroupName, + languageExtensionsToRemove, + options + }, + removeLanguageExtensionsOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Remove a list of language extensions that can run within KQL queries. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param languageExtensionsToRemove The language extensions to remove. + * @param options The options parameters. + */ + async beginRemoveLanguageExtensionsAndWait( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + languageExtensionsToRemove: LanguageExtensionsList, + options?: KustoPoolsRemoveLanguageExtensionsOptionalParams + ): Promise { + const poller = await this.beginRemoveLanguageExtensions( + workspaceName, + kustoPoolName, + resourceGroupName, + languageExtensionsToRemove, + options + ); + return poller.pollUntilDone(); + } + + /** + * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto + * Pool. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _listFollowerDatabases( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsListFollowerDatabasesOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { workspaceName, kustoPoolName, resourceGroupName, options }, + listFollowerDatabasesOperationSpec + ); + } + + /** + * Detaches all followers of a database owned by this Kusto Pool. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param followerDatabaseToRemove The follower databases properties to remove. + * @param options The options parameters. + */ + async beginDetachFollowerDatabases( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + followerDatabaseToRemove: FollowerDatabaseDefinition, + options?: KustoPoolsDetachFollowerDatabasesOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + workspaceName, + kustoPoolName, + resourceGroupName, + followerDatabaseToRemove, + options + }, + detachFollowerDatabasesOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Detaches all followers of a database owned by this Kusto Pool. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param followerDatabaseToRemove The follower databases properties to remove. + * @param options The options parameters. + */ + async beginDetachFollowerDatabasesAndWait( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + followerDatabaseToRemove: FollowerDatabaseDefinition, + options?: KustoPoolsDetachFollowerDatabasesOptionalParams + ): Promise { + const poller = await this.beginDetachFollowerDatabases( + workspaceName, + kustoPoolName, + resourceGroupName, + followerDatabaseToRemove, + options + ); + return poller.pollUntilDone(); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listSkusOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/skus", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SkuDescriptionList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/locations/{location}/kustoPoolCheckNameAvailability", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CheckNameResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.kustoPoolName, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.KustoPoolListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.KustoPool + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.KustoPool + }, + 201: { + bodyMapper: Mappers.KustoPool + }, + 202: { + bodyMapper: Mappers.KustoPool + }, + 204: { + bodyMapper: Mappers.KustoPool + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters22, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1 + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifNoneMatch, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.KustoPool + }, + 201: { + bodyMapper: Mappers.KustoPool + }, + 202: { + bodyMapper: Mappers.KustoPool + }, + 204: { + bodyMapper: Mappers.KustoPool + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters23, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1 + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const stopOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/stop", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const startOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/start", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listSkusByResourceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/skus", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ListResourceSkusResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listLanguageExtensionsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/listLanguageExtensions", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.LanguageExtensionsList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const addLanguageExtensionsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/addLanguageExtensions", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.languageExtensionsToAdd, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const removeLanguageExtensionsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/removeLanguageExtensions", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.languageExtensionsToRemove, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listFollowerDatabasesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/listFollowerDatabases", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.FollowerDatabaseListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const detachFollowerDatabasesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/detachFollowerDatabases", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.followerDatabaseToRemove, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.kustoPoolName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/libraries.ts b/sdk/synapse/arm-synapse/src/operations/libraries.ts index 72a575f9b69f..d634f2645ec1 100644 --- a/sdk/synapse/arm-synapse/src/operations/libraries.ts +++ b/sdk/synapse/arm-synapse/src/operations/libraries.ts @@ -3,107 +3,150 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/librariesMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Libraries } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + LibraryResource, + LibrariesListByWorkspaceNextOptionalParams, + LibrariesListByWorkspaceOptionalParams, + LibrariesListByWorkspaceResponse, + LibrariesListByWorkspaceNextResponse +} from "../models"; -/** Class representing a Libraries. */ -export class Libraries { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing Libraries operations. */ +export class LibrariesImpl implements Libraries { + private readonly client: SynapseManagementClient; /** - * Create a Libraries. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class Libraries class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * List libraries in a workspace. - * @summary List the libraries in a workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: LibrariesListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByWorkspacePagingAll( + resourceGroupName, + workspaceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + ); + } + }; + } + + private async *listByWorkspacePagingPage( + resourceGroupName: string, + workspaceName: string, + options?: LibrariesListByWorkspaceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByWorkspace( + resourceGroupName, + workspaceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByWorkspaceNext( resourceGroupName, workspaceName, + continuationToken, options - }, - listByWorkspaceOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByWorkspacePagingAll( + resourceGroupName: string, + workspaceName: string, + options?: LibrariesListByWorkspaceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } } /** * List libraries in a workspace. - * @summary List the libraries in a workspace. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - listByWorkspaceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + private _listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: LibrariesListByWorkspaceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listByWorkspaceOperationSpec + ); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListByWorkspaceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method. + * @param options The options parameters. */ - listByWorkspaceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listByWorkspaceNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: LibrariesListByWorkspaceNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByWorkspaceNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, nextLink, options }, + listByWorkspaceNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByWorkspaceOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/libraries", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/libraries", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.LibraryListResponse @@ -112,22 +155,19 @@ const listByWorkspaceOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], serializer }; - -const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.LibraryListResponse @@ -136,5 +176,14 @@ const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/library.ts b/sdk/synapse/arm-synapse/src/operations/library.ts index 7ca8707bc263..dab4f01d6ac5 100644 --- a/sdk/synapse/arm-synapse/src/operations/library.ts +++ b/sdk/synapse/arm-synapse/src/operations/library.ts @@ -3,83 +3,54 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/libraryMappers"; +import { Library } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { LibraryGetOptionalParams, LibraryGetResponse } from "../models"; -/** Class representing a Library. */ -export class Library { - private readonly client: SynapseManagementClientContext; +/** Class containing Library operations. */ +export class LibraryImpl implements Library { + private readonly client: SynapseManagementClient; /** - * Create a Library. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class Library class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Get library by name in a workspace. - * @summary Get library by name. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param libraryName Library name - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - get(resourceGroupName: string, libraryName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param libraryName Library name - * @param workspaceName The name of the workspace - * @param callback The callback - */ - get(resourceGroupName: string, libraryName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param libraryName Library name - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, libraryName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, libraryName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + libraryName: string, + workspaceName: string, + options?: LibraryGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - libraryName, - workspaceName, - options - }, - getOperationSpec, - callback) as Promise; + { resourceGroupName, libraryName, workspaceName, options }, + getOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/libraries/{libraryName}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/libraries/{libraryName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.libraryName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.LibraryResource @@ -88,5 +59,14 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.libraryName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/operations.ts b/sdk/synapse/arm-synapse/src/operations/operations.ts index ecbf7f920860..dced66aef4d5 100644 --- a/sdk/synapse/arm-synapse/src/operations/operations.ts +++ b/sdk/synapse/arm-synapse/src/operations/operations.ts @@ -3,178 +3,107 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/operationsMappers"; +import { Operations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + CheckNameAvailabilityRequest, + OperationsCheckNameAvailabilityOptionalParams, + OperationsCheckNameAvailabilityResponse, + OperationsListOptionalParams, + OperationsListResponse, + OperationsGetLocationHeaderResultOptionalParams, + OperationsGetAzureAsyncHeaderResultOptionalParams, + OperationsGetAzureAsyncHeaderResultResponse +} from "../models"; -/** Class representing a Operations. */ -export class Operations { - private readonly client: SynapseManagementClientContext; +/** Class containing Operations operations. */ +export class OperationsImpl implements Operations { + private readonly client: SynapseManagementClient; /** - * Create a Operations. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class Operations class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Check whether a workspace name is available - * @summary Check name availability * @param request The check request - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - checkNameAvailability(request: Models.CheckNameAvailabilityRequest, options?: msRest.RequestOptionsBase): Promise; - /** - * @param request The check request - * @param callback The callback - */ - checkNameAvailability(request: Models.CheckNameAvailabilityRequest, callback: msRest.ServiceCallback): void; - /** - * @param request The check request - * @param options The optional parameters - * @param callback The callback - */ - checkNameAvailability(request: Models.CheckNameAvailabilityRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkNameAvailability(request: Models.CheckNameAvailabilityRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + checkNameAvailability( + request: CheckNameAvailabilityRequest, + options?: OperationsCheckNameAvailabilityOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - request, - options - }, - checkNameAvailabilityOperationSpec, - callback) as Promise; + { request, options }, + checkNameAvailabilityOperationSpec + ); } /** * Get all available operations - * @summary All operations - * @param [options] The optional parameters - * @returns Promise - */ - list(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback + * @param options The options parameters. */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback) as Promise; + list( + options?: OperationsListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); } /** * Get the result of an operation - * @summary Get operation result - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param operationId Operation ID - * @param [options] The optional parameters - * @returns Promise - */ - getLocationHeaderResult(resourceGroupName: string, workspaceName: string, operationId: 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 workspaceName The name of the workspace. * @param operationId Operation ID - * @param callback The callback + * @param options The options parameters. */ - getLocationHeaderResult(resourceGroupName: string, workspaceName: string, operationId: 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 operationId Operation ID - * @param options The optional parameters - * @param callback The callback - */ - getLocationHeaderResult(resourceGroupName: string, workspaceName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getLocationHeaderResult(resourceGroupName: string, workspaceName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getLocationHeaderResult( + resourceGroupName: string, + workspaceName: string, + operationId: string, + options?: OperationsGetLocationHeaderResultOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - operationId, - options - }, - getLocationHeaderResultOperationSpec, - callback); + { resourceGroupName, workspaceName, operationId, options }, + getLocationHeaderResultOperationSpec + ); } /** * Get the status of an operation - * @summary Get operation status - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param operationId Operation ID - * @param [options] The optional parameters - * @returns Promise - */ - getAzureAsyncHeaderResult(resourceGroupName: string, workspaceName: string, operationId: 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 workspaceName The name of the workspace. * @param operationId Operation ID - * @param callback The callback + * @param options The options parameters. */ - getAzureAsyncHeaderResult(resourceGroupName: string, workspaceName: string, operationId: 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 operationId Operation ID - * @param options The optional parameters - * @param callback The callback - */ - getAzureAsyncHeaderResult(resourceGroupName: string, workspaceName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getAzureAsyncHeaderResult(resourceGroupName: string, workspaceName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getAzureAsyncHeaderResult( + resourceGroupName: string, + workspaceName: string, + operationId: string, + options?: OperationsGetAzureAsyncHeaderResultOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - operationId, - options - }, - getAzureAsyncHeaderResultOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, operationId, options }, + getAzureAsyncHeaderResultOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/checkNameAvailability", httpMethod: "POST", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Synapse/checkNameAvailability", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "request", - mapper: { - ...Mappers.CheckNameAvailabilityRequest, - required: true - } - }, responses: { 200: { bodyMapper: Mappers.CheckNameAvailabilityResponse @@ -183,26 +112,23 @@ const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + requestBody: Parameters.request, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; - -const listOperationSpec: msRest.OperationSpec = { +const listOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Synapse/operations", httpMethod: "GET", - path: "providers/Microsoft.Synapse/operations", - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: { - serializedName: "parsedResponse", type: { name: "Sequence", element: { - type: { - name: "Composite", - className: "AvailableRpOperation" - } + type: { name: "Composite", className: "AvailableRpOperation" } } } } @@ -211,24 +137,14 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept], serializer }; - -const getLocationHeaderResultOperationSpec: msRest.OperationSpec = { +const getLocationHeaderResultOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/operationResults/{operationId}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/operationResults/{operationId}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.operationId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: {}, 201: {}, @@ -238,24 +154,21 @@ const getLocationHeaderResultOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const getAzureAsyncHeaderResultOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/operationStatuses/{operationId}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.operationId ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const getAzureAsyncHeaderResultOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/operationStatuses/{operationId}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.OperationResource @@ -265,5 +178,14 @@ const getAzureAsyncHeaderResultOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.operationId + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/privateEndpointConnections.ts b/sdk/synapse/arm-synapse/src/operations/privateEndpointConnections.ts index 01cbfd379621..a9e0add1013c 100644 --- a/sdk/synapse/arm-synapse/src/operations/privateEndpointConnections.ts +++ b/sdk/synapse/arm-synapse/src/operations/privateEndpointConnections.ts @@ -3,54 +3,116 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/privateEndpointConnectionsMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PrivateEndpointConnections } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + PrivateEndpointConnection, + PrivateEndpointConnectionsListNextOptionalParams, + PrivateEndpointConnectionsListOptionalParams, + PrivateEndpointConnectionsGetOptionalParams, + PrivateEndpointConnectionsGetResponse, + PrivateEndpointConnectionsCreateOptionalParams, + PrivateEndpointConnectionsCreateResponse, + PrivateEndpointConnectionsDeleteOptionalParams, + PrivateEndpointConnectionsListResponse, + PrivateEndpointConnectionsListNextResponse +} from "../models"; -/** Class representing a PrivateEndpointConnections. */ -export class PrivateEndpointConnections { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing PrivateEndpointConnections operations. */ +export class PrivateEndpointConnectionsImpl + implements PrivateEndpointConnections { + private readonly client: SynapseManagementClient; /** - * Create a PrivateEndpointConnections. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class PrivateEndpointConnections class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** - * Gets a private endpoint connection. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; - /** + * Lists private endpoint connection in workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; + public list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + /** + * Gets a private endpoint connection. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -58,89 +120,110 @@ export class PrivateEndpointConnections { privateEndpointConnectionName, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } /** * Approve or reject a private endpoint connection. - * @param request Request body of private endpoint connection to create. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param [options] The optional parameters - * @returns Promise - */ - create(request: Models.PrivateEndpointConnection, resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreate(request,resourceGroupName,workspaceName,privateEndpointConnectionName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Delete a private endpoint connection. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param [options] The optional parameters - * @returns Promise + * @param request Request body of private endpoint connection to create. + * @param options The options parameters. */ - deleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,workspaceName,privateEndpointConnectionName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } + async beginCreate( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + request: PrivateEndpointConnection, + options?: PrivateEndpointConnectionsCreateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + PrivateEndpointConnectionsCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; - /** - * Lists private endpoint connection in workspace. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param [options] The optional parameters - * @returns Promise - */ - list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace. - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( + const lro = new LroImpl( + sendOperation, { resourceGroupName, workspaceName, + privateEndpointConnectionName, + request, options }, - listOperationSpec, - callback) as Promise; + createOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); } /** * Approve or reject a private endpoint connection. - * @param request Request body of private endpoint connection to create. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param [options] The optional parameters - * @returns Promise + * @param request Request body of private endpoint connection to create. + * @param options The options parameters. */ - beginCreate(request: Models.PrivateEndpointConnection, resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - request, - resourceGroupName, - workspaceName, - privateEndpointConnectionName, - options - }, - beginCreateOperationSpec, - options); + async beginCreateAndWait( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + request: PrivateEndpointConnection, + options?: PrivateEndpointConnectionsCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + workspaceName, + privateEndpointConnectionName, + request, + options + ); + return poller.pollUntilDone(); } /** @@ -148,67 +231,134 @@ export class PrivateEndpointConnections { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginDeleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( + async beginDelete( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, { resourceGroupName, workspaceName, privateEndpointConnectionName, options }, - beginDeleteMethodOperationSpec, - options); + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); } /** - * Lists private endpoint connection in workspace. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise + * Delete a private endpoint connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param options The options parameters. */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + privateEndpointConnectionName, + options + ); + return poller.pollUntilDone(); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback + * Lists private endpoint connection in workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + private _list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: PrivateEndpointConnectionsListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.privateEndpointConnectionName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.PrivateEndpointConnection @@ -217,111 +367,100 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workspaceName, + Parameters.privateEndpointConnectionName ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionList + bodyMapper: Mappers.PrivateEndpointConnection + }, + 201: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + 202: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + 204: { + bodyMapper: Mappers.PrivateEndpointConnection }, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginCreateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + requestBody: Parameters.request2, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.privateEndpointConnectionName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "request", - mapper: { - ...Mappers.PrivateEndpointConnection, - required: true - } - }, + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "DELETE", responses: { - 200: { - bodyMapper: Mappers.PrivateEndpointConnection - }, - 201: { - bodyMapper: Mappers.PrivateEndpointConnection - }, + 200: {}, + 201: {}, + 202: {}, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.privateEndpointConnectionName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateEndpointConnections", + httpMethod: "GET", responses: { - 200: {}, - 202: { - bodyMapper: Mappers.OperationResource + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionList }, - 204: {}, default: { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PrivateEndpointConnectionList @@ -330,5 +469,14 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/privateEndpointConnectionsPrivateLinkHub.ts b/sdk/synapse/arm-synapse/src/operations/privateEndpointConnectionsPrivateLinkHub.ts index c4b1ebfe2946..eeee43cc27a2 100644 --- a/sdk/synapse/arm-synapse/src/operations/privateEndpointConnectionsPrivateLinkHub.ts +++ b/sdk/synapse/arm-synapse/src/operations/privateEndpointConnectionsPrivateLinkHub.ts @@ -3,25 +3,36 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/privateEndpointConnectionsPrivateLinkHubMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PrivateEndpointConnectionsPrivateLinkHub } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + PrivateEndpointConnectionForPrivateLinkHub, + PrivateEndpointConnectionsPrivateLinkHubListNextOptionalParams, + PrivateEndpointConnectionsPrivateLinkHubListOptionalParams, + PrivateEndpointConnectionsPrivateLinkHubListResponse, + PrivateEndpointConnectionsPrivateLinkHubGetOptionalParams, + PrivateEndpointConnectionsPrivateLinkHubGetResponse, + PrivateEndpointConnectionsPrivateLinkHubListNextResponse +} from "../models"; -/** Class representing a PrivateEndpointConnectionsPrivateLinkHub. */ -export class PrivateEndpointConnectionsPrivateLinkHub { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing PrivateEndpointConnectionsPrivateLinkHub operations. */ +export class PrivateEndpointConnectionsPrivateLinkHubImpl + implements PrivateEndpointConnectionsPrivateLinkHub { + private readonly client: SynapseManagementClient; /** - * Create a PrivateEndpointConnectionsPrivateLinkHub. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class PrivateEndpointConnectionsPrivateLinkHub class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } @@ -29,110 +40,202 @@ export class PrivateEndpointConnectionsPrivateLinkHub { * Get all PrivateEndpointConnections in the PrivateLinkHub * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(resourceGroupName: string, privateLinkHubName: string, options?: msRest.RequestOptionsBase): Promise; + public list( + resourceGroupName: string, + privateLinkHubName: string, + options?: PrivateEndpointConnectionsPrivateLinkHubListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + privateLinkHubName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + privateLinkHubName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + privateLinkHubName: string, + options?: PrivateEndpointConnectionsPrivateLinkHubListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + privateLinkHubName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + privateLinkHubName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + privateLinkHubName: string, + options?: PrivateEndpointConnectionsPrivateLinkHubListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + privateLinkHubName, + options + )) { + yield* page; + } + } + /** + * Get all PrivateEndpointConnections in the PrivateLinkHub * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub - * @param callback The callback + * @param options The options parameters. */ - list(resourceGroupName: string, privateLinkHubName: string, callback: msRest.ServiceCallback): void; + private _list( + resourceGroupName: string, + privateLinkHubName: string, + options?: PrivateEndpointConnectionsPrivateLinkHubListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, privateLinkHubName, options }, + listOperationSpec + ); + } + /** + * Get all PrivateEndpointConnection in the PrivateLinkHub by name * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub - * @param options The optional parameters - * @param callback The callback + * @param privateEndpointConnectionName Name of the privateEndpointConnection + * @param options The options parameters. */ - list(resourceGroupName: string, privateLinkHubName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, privateLinkHubName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + privateLinkHubName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsPrivateLinkHubGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, privateLinkHubName, + privateEndpointConnectionName, options }, - listOperationSpec, - callback) as Promise; + getOperationSpec + ); } /** - * Get all PrivateEndpointConnections in the PrivateLinkHub - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateLinkHubName Name of the privateLinkHub + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + resourceGroupName: string, + privateLinkHubName: string, + nextLink: string, + options?: PrivateEndpointConnectionsPrivateLinkHubListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { resourceGroupName, privateLinkHubName, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}/privateEndpointConnections", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}/privateEndpointConnections", + responses: { + 200: { + bodyMapper: + Mappers.PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.privateLinkHubName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse + bodyMapper: Mappers.PrivateEndpointConnectionForPrivateLinkHub }, default: { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateEndpointConnectionName, + Parameters.privateLinkHubName + ], + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse + bodyMapper: + Mappers.PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse }, default: { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.privateLinkHubName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/privateLinkHubPrivateLinkResources.ts b/sdk/synapse/arm-synapse/src/operations/privateLinkHubPrivateLinkResources.ts index 1def37032ff4..f9b3f7e38a80 100644 --- a/sdk/synapse/arm-synapse/src/operations/privateLinkHubPrivateLinkResources.ts +++ b/sdk/synapse/arm-synapse/src/operations/privateLinkHubPrivateLinkResources.ts @@ -3,87 +3,140 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/privateLinkHubPrivateLinkResourcesMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PrivateLinkHubPrivateLinkResources } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + PrivateLinkResource, + PrivateLinkHubPrivateLinkResourcesListNextOptionalParams, + PrivateLinkHubPrivateLinkResourcesListOptionalParams, + PrivateLinkHubPrivateLinkResourcesListResponse, + PrivateLinkHubPrivateLinkResourcesGetOptionalParams, + PrivateLinkHubPrivateLinkResourcesGetResponse, + PrivateLinkHubPrivateLinkResourcesListNextResponse +} from "../models"; -/** Class representing a PrivateLinkHubPrivateLinkResources. */ -export class PrivateLinkHubPrivateLinkResources { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing PrivateLinkHubPrivateLinkResources operations. */ +export class PrivateLinkHubPrivateLinkResourcesImpl + implements PrivateLinkHubPrivateLinkResources { + private readonly client: SynapseManagementClient; /** - * Create a PrivateLinkHubPrivateLinkResources. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class PrivateLinkHubPrivateLinkResources class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Get all private link resources for a private link hub - * @summary Private Link Resources * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(resourceGroupName: string, privateLinkHubName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateLinkHubName The name of the private link hub - * @param callback The callback - */ - list(resourceGroupName: string, privateLinkHubName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateLinkHubName The name of the private link hub - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, privateLinkHubName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, privateLinkHubName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public list( + resourceGroupName: string, + privateLinkHubName: string, + options?: PrivateLinkHubPrivateLinkResourcesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + privateLinkHubName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + privateLinkHubName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + privateLinkHubName: string, + options?: PrivateLinkHubPrivateLinkResourcesListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + privateLinkHubName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( resourceGroupName, privateLinkHubName, + continuationToken, options - }, - listOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + privateLinkHubName: string, + options?: PrivateLinkHubPrivateLinkResourcesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + privateLinkHubName, + options + )) { + yield* page; + } } /** - * Get private link resource in private link hub - * @summary Get Private Link Hub Private Link Resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateLinkHubName The name of the private link hub - * @param privateLinkResourceName The name of the private link resource - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, privateLinkHubName: string, privateLinkResourceName: string, options?: msRest.RequestOptionsBase): Promise; - /** + * Get all private link resources for a private link hub * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub - * @param privateLinkResourceName The name of the private link resource - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, privateLinkHubName: string, privateLinkResourceName: string, callback: msRest.ServiceCallback): void; + private _list( + resourceGroupName: string, + privateLinkHubName: string, + options?: PrivateLinkHubPrivateLinkResourcesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, privateLinkHubName, options }, + listOperationSpec + ); + } + /** + * Get private link resource in private link hub * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName The name of the private link hub * @param privateLinkResourceName The name of the private link resource - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, privateLinkHubName: string, privateLinkResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, privateLinkHubName: string, privateLinkResourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + privateLinkHubName: string, + privateLinkResourceName: string, + options?: PrivateLinkHubPrivateLinkResourcesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -91,56 +144,36 @@ export class PrivateLinkHubPrivateLinkResources { privateLinkResourceName, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } /** - * Get all private link resources for a private link hub - * @summary Private Link Resources - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateLinkHubName The name of the private link hub + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + resourceGroupName: string, + privateLinkHubName: string, + nextLink: string, + options?: PrivateLinkHubPrivateLinkResourcesListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { resourceGroupName, privateLinkHubName, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}/privateLinkResources", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}/privateLinkResources", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.privateLinkHubName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.PrivateLinkResourceListResult @@ -149,24 +182,20 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}/privateLinkResources/{privateLinkResourceName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.privateLinkHubName, - Parameters.privateLinkResourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.privateLinkHubName ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}/privateLinkResources/{privateLinkResourceName}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PrivateLinkResource @@ -175,22 +204,20 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateLinkResourceName, + Parameters.privateLinkHubName + ], + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PrivateLinkResourceListResult @@ -199,5 +226,14 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + Parameters.privateLinkHubName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/privateLinkHubs.ts b/sdk/synapse/arm-synapse/src/operations/privateLinkHubs.ts index b112ee6d2aca..0e246e29beff 100644 --- a/sdk/synapse/arm-synapse/src/operations/privateLinkHubs.ts +++ b/sdk/synapse/arm-synapse/src/operations/privateLinkHubs.ts @@ -3,287 +3,349 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/privateLinkHubsMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PrivateLinkHubs } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + PrivateLinkHub, + PrivateLinkHubsListByResourceGroupNextOptionalParams, + PrivateLinkHubsListByResourceGroupOptionalParams, + PrivateLinkHubsListNextOptionalParams, + PrivateLinkHubsListOptionalParams, + PrivateLinkHubsListByResourceGroupResponse, + PrivateLinkHubsGetOptionalParams, + PrivateLinkHubsGetResponse, + PrivateLinkHubPatchInfo, + PrivateLinkHubsUpdateOptionalParams, + PrivateLinkHubsUpdateResponse, + PrivateLinkHubsCreateOrUpdateOptionalParams, + PrivateLinkHubsCreateOrUpdateResponse, + PrivateLinkHubsDeleteOptionalParams, + PrivateLinkHubsListResponse, + PrivateLinkHubsListByResourceGroupNextResponse, + PrivateLinkHubsListNextResponse +} from "../models"; -/** Class representing a PrivateLinkHubs. */ -export class PrivateLinkHubs { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing PrivateLinkHubs operations. */ +export class PrivateLinkHubsImpl implements PrivateLinkHubs { + private readonly client: SynapseManagementClient; /** - * Create a PrivateLinkHubs. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class PrivateLinkHubs class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Returns a list of privateLinkHubs in a resource group * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param callback The callback - */ - listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The optional parameters - * @param callback The callback - */ - listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public listByResourceGroup( + resourceGroupName: string, + options?: PrivateLinkHubsListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByResourceGroupPagingPage(resourceGroupName, options); + } + }; + } + + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: PrivateLinkHubsListByResourceGroupOptionalParams + ): AsyncIterableIterator { + let result = await this._listByResourceGroup(resourceGroupName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByResourceGroupNext( resourceGroupName, + continuationToken, options - }, - listByResourceGroupOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: PrivateLinkHubsListByResourceGroupOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options + )) { + yield* page; + } } /** - * Gets a privateLinkHub - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateLinkHubName Name of the privateLinkHub - * @param [options] The optional parameters - * @returns Promise + * Returns a list of privateLinkHubs in a subscription + * @param options The options parameters. */ - get(resourceGroupName: string, privateLinkHubName: string, options?: msRest.RequestOptionsBase): Promise; + public list( + options?: PrivateLinkHubsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(options); + } + }; + } + + private async *listPagingPage( + options?: PrivateLinkHubsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + options?: PrivateLinkHubsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + /** + * Returns a list of privateLinkHubs in a resource group * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateLinkHubName Name of the privateLinkHub - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, privateLinkHubName: string, callback: msRest.ServiceCallback): void; + private _listByResourceGroup( + resourceGroupName: string, + options?: PrivateLinkHubsListByResourceGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec + ); + } + /** + * Gets a privateLinkHub * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, privateLinkHubName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, privateLinkHubName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + privateLinkHubName: string, + options?: PrivateLinkHubsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - privateLinkHubName, - options - }, - getOperationSpec, - callback) as Promise; + { resourceGroupName, privateLinkHubName, options }, + getOperationSpec + ); } /** * Updates a privateLinkHub - * @param privateLinkHubPatchInfo PrivateLinkHub patch request properties - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateLinkHubName Name of the privateLinkHub - * @param [options] The optional parameters - * @returns Promise - */ - update(privateLinkHubPatchInfo: Models.PrivateLinkHubPatchInfo, resourceGroupName: string, privateLinkHubName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param privateLinkHubPatchInfo PrivateLinkHub patch request properties * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub - * @param callback The callback - */ - update(privateLinkHubPatchInfo: Models.PrivateLinkHubPatchInfo, resourceGroupName: string, privateLinkHubName: string, callback: msRest.ServiceCallback): void; - /** * @param privateLinkHubPatchInfo PrivateLinkHub patch request properties - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateLinkHubName Name of the privateLinkHub - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - update(privateLinkHubPatchInfo: Models.PrivateLinkHubPatchInfo, resourceGroupName: string, privateLinkHubName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(privateLinkHubPatchInfo: Models.PrivateLinkHubPatchInfo, resourceGroupName: string, privateLinkHubName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update( + resourceGroupName: string, + privateLinkHubName: string, + privateLinkHubPatchInfo: PrivateLinkHubPatchInfo, + options?: PrivateLinkHubsUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { - privateLinkHubPatchInfo, resourceGroupName, privateLinkHubName, + privateLinkHubPatchInfo, options }, - updateOperationSpec, - callback) as Promise; + updateOperationSpec + ); } /** * Creates or updates a privateLinkHub - * @param privateLinkHubInfo PrivateLinkHub create or update request properties * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(privateLinkHubInfo: Models.PrivateLinkHub, resourceGroupName: string, privateLinkHubName: string, options?: msRest.RequestOptionsBase): Promise; - /** * @param privateLinkHubInfo PrivateLinkHub create or update request properties - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateLinkHubName Name of the privateLinkHub - * @param callback The callback + * @param options The options parameters. */ - createOrUpdate(privateLinkHubInfo: Models.PrivateLinkHub, resourceGroupName: string, privateLinkHubName: string, callback: msRest.ServiceCallback): void; - /** - * @param privateLinkHubInfo PrivateLinkHub create or update request properties - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param privateLinkHubName Name of the privateLinkHub - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(privateLinkHubInfo: Models.PrivateLinkHub, resourceGroupName: string, privateLinkHubName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(privateLinkHubInfo: Models.PrivateLinkHub, resourceGroupName: string, privateLinkHubName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate( + resourceGroupName: string, + privateLinkHubName: string, + privateLinkHubInfo: PrivateLinkHub, + options?: PrivateLinkHubsCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - privateLinkHubInfo, - resourceGroupName, - privateLinkHubName, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; + { resourceGroupName, privateLinkHubName, privateLinkHubInfo, options }, + createOrUpdateOperationSpec + ); } /** * Deletes a privateLinkHub * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - deleteMethod(resourceGroupName: string, privateLinkHubName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,privateLinkHubName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } + async beginDelete( + resourceGroupName: string, + privateLinkHubName: string, + options?: PrivateLinkHubsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; - /** - * Returns a list of privateLinkHubs in a subscription - * @param [options] The optional parameters - * @returns Promise - */ - list(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback) as Promise; + const lro = new LroImpl( + sendOperation, + { resourceGroupName, privateLinkHubName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); } /** * Deletes a privateLinkHub * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateLinkHubName Name of the privateLinkHub - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginDeleteMethod(resourceGroupName: string, privateLinkHubName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - privateLinkHubName, - options - }, - beginDeleteMethodOperationSpec, - options); + async beginDeleteAndWait( + resourceGroupName: string, + privateLinkHubName: string, + options?: PrivateLinkHubsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + privateLinkHubName, + options + ); + return poller.pollUntilDone(); } /** - * Returns a list of privateLinkHubs in a resource group - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback + * Returns a list of privateLinkHubs in a subscription + * @param options The options parameters. */ - listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + private _list( + options?: PrivateLinkHubsListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: PrivateLinkHubsListByResourceGroupNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByResourceGroupNextOperationSpec, - callback) as Promise; + { resourceGroupName, nextLink, options }, + listByResourceGroupNextOperationSpec + ); } /** - * Returns a list of privateLinkHubs in a subscription - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + nextLink: string, + options?: PrivateLinkHubsListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByResourceGroupOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.PrivateLinkHubInfoListResult @@ -292,23 +354,19 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.privateLinkHubName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.resourceGroupName ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PrivateLinkHub @@ -317,30 +375,20 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.privateLinkHubName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "privateLinkHubPatchInfo", - mapper: { - ...Mappers.PrivateLinkHubPatchInfo, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}", + httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.PrivateLinkHub @@ -352,30 +400,22 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}", + requestBody: Parameters.privateLinkHubPatchInfo, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.privateLinkHubName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "privateLinkHubInfo", - mapper: { - ...Mappers.PrivateLinkHub, - required: true - } - }, + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PrivateLinkHub @@ -387,70 +427,61 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Synapse/privateLinkHubs", + requestBody: Parameters.privateLinkHubInfo, + queryParameters: [Parameters.apiVersion], urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateLinkHubName ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}", + httpMethod: "DELETE", responses: { - 200: { - bodyMapper: Mappers.PrivateLinkHubInfoListResult - }, + 200: {}, + 201: {}, + 202: {}, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/privateLinkHubs/{privateLinkHubName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.privateLinkHubName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/privateLinkHubs", + httpMethod: "GET", responses: { - 200: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.PrivateLinkHubInfoListResult + }, default: { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], serializer }; - -const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PrivateLinkHubInfoListResult @@ -459,22 +490,19 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PrivateLinkHubInfoListResult @@ -483,5 +511,12 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/privateLinkResources.ts b/sdk/synapse/arm-synapse/src/operations/privateLinkResources.ts index 42070be8adf1..a7205b406961 100644 --- a/sdk/synapse/arm-synapse/src/operations/privateLinkResources.ts +++ b/sdk/synapse/arm-synapse/src/operations/privateLinkResources.ts @@ -3,144 +3,159 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/privateLinkResourcesMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PrivateLinkResources } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + PrivateLinkResource, + PrivateLinkResourcesListNextOptionalParams, + PrivateLinkResourcesListOptionalParams, + PrivateLinkResourcesListResponse, + PrivateLinkResourcesGetOptionalParams, + PrivateLinkResourcesGetResponse, + PrivateLinkResourcesListNextResponse +} from "../models"; -/** Class representing a PrivateLinkResources. */ -export class PrivateLinkResources { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing PrivateLinkResources operations. */ +export class PrivateLinkResourcesImpl implements PrivateLinkResources { + private readonly client: SynapseManagementClient; /** - * Create a PrivateLinkResources. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class PrivateLinkResources class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Get all private link resources for a workspaces - * @summary Private Link Resources * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateLinkResourcesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: PrivateLinkResourcesListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( resourceGroupName, workspaceName, + continuationToken, options - }, - listOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: PrivateLinkResourcesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } } /** - * Get private link resource in workspace - * @summary Get Private Link Resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param privateLinkResourceName The name of the private link resource - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, workspaceName: string, privateLinkResourceName: string, options?: msRest.RequestOptionsBase): Promise; - /** + * Get all private link resources for a workspaces * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param privateLinkResourceName The name of the private link resource - * @param callback The callback + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, privateLinkResourceName: string, callback: msRest.ServiceCallback): void; + private _list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateLinkResourcesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + /** + * Get private link resource in workspace * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param privateLinkResourceName The name of the private link resource - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, privateLinkResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, privateLinkResourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + privateLinkResourceName: string, + options?: PrivateLinkResourcesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - privateLinkResourceName, - options - }, - getOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, privateLinkResourceName, options }, + getOperationSpec + ); } /** - * Get all private link resources for a workspaces - * @summary Private Link Resources - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: PrivateLinkResourcesListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateLinkResources", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateLinkResources", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.PrivateLinkResourceListResult @@ -149,24 +164,20 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateLinkResources/{privateLinkResourceName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.privateLinkResourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workspaceName ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/privateLinkResources/{privateLinkResourceName}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PrivateLinkResource @@ -175,22 +186,20 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.privateLinkResourceName + ], + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PrivateLinkResourceListResult @@ -199,5 +208,14 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/restorableDroppedSqlPools.ts b/sdk/synapse/arm-synapse/src/operations/restorableDroppedSqlPools.ts index 7a4f7b7b240f..4f7864265f56 100644 --- a/sdk/synapse/arm-synapse/src/operations/restorableDroppedSqlPools.ts +++ b/sdk/synapse/arm-synapse/src/operations/restorableDroppedSqlPools.ts @@ -3,117 +3,141 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/restorableDroppedSqlPoolsMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { RestorableDroppedSqlPools } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + RestorableDroppedSqlPool, + RestorableDroppedSqlPoolsListByWorkspaceOptionalParams, + RestorableDroppedSqlPoolsGetOptionalParams, + RestorableDroppedSqlPoolsGetResponse, + RestorableDroppedSqlPoolsListByWorkspaceResponse +} from "../models"; -/** Class representing a RestorableDroppedSqlPools. */ -export class RestorableDroppedSqlPools { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing RestorableDroppedSqlPools operations. */ +export class RestorableDroppedSqlPoolsImpl + implements RestorableDroppedSqlPools { + private readonly client: SynapseManagementClient; /** - * Create a RestorableDroppedSqlPools. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class RestorableDroppedSqlPools class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** - * Gets a deleted sql pool that can be restored - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param restorableDroppedSqlPoolId The id of the deleted Sql Pool in the form of - * sqlPoolName,deletionTimeInFileTimeFormat - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, workspaceName: string, restorableDroppedSqlPoolId: string, options?: msRest.RequestOptionsBase): Promise; - /** + * Gets a list of deleted Sql pools that can be restored * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param restorableDroppedSqlPoolId The id of the deleted Sql Pool in the form of - * sqlPoolName,deletionTimeInFileTimeFormat - * @param callback The callback + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, restorableDroppedSqlPoolId: string, callback: msRest.ServiceCallback): void; + public listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: RestorableDroppedSqlPoolsListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByWorkspacePagingAll( + resourceGroupName, + workspaceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + ); + } + }; + } + + private async *listByWorkspacePagingPage( + resourceGroupName: string, + workspaceName: string, + options?: RestorableDroppedSqlPoolsListByWorkspaceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByWorkspace( + resourceGroupName, + workspaceName, + options + ); + yield result.value || []; + } + + private async *listByWorkspacePagingAll( + resourceGroupName: string, + workspaceName: string, + options?: RestorableDroppedSqlPoolsListByWorkspaceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + /** + * Gets a deleted sql pool that can be restored * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param restorableDroppedSqlPoolId The id of the deleted Sql Pool in the form of - * sqlPoolName,deletionTimeInFileTimeFormat - * @param options The optional parameters - * @param callback The callback + * sqlPoolName,deletionTimeInFileTimeFormat + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, restorableDroppedSqlPoolId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, restorableDroppedSqlPoolId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + restorableDroppedSqlPoolId: string, + options?: RestorableDroppedSqlPoolsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - restorableDroppedSqlPoolId, - options - }, - getOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, restorableDroppedSqlPoolId, options }, + getOperationSpec + ); } /** * Gets a list of deleted Sql pools that can be restored * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: RestorableDroppedSqlPoolsListByWorkspaceOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - listByWorkspaceOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, options }, + listByWorkspaceOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/restorableDroppedSqlPools/{restorableDroppedSqlPoolId}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/restorableDroppedSqlPools/{restorableDroppedSqlPoolId}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.restorableDroppedSqlPoolId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.RestorableDroppedSqlPool @@ -122,23 +146,21 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const listByWorkspaceOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/restorableDroppedSqlPools", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workspaceName, + Parameters.restorableDroppedSqlPoolId ], + headerParameters: [Parameters.accept], + serializer +}; +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/restorableDroppedSqlPools", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.RestorableDroppedSqlPoolListResult @@ -147,5 +169,13 @@ const listByWorkspaceOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sparkConfiguration.ts b/sdk/synapse/arm-synapse/src/operations/sparkConfiguration.ts new file mode 100644 index 000000000000..721bbdbd90e3 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/sparkConfiguration.ts @@ -0,0 +1,75 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { SparkConfiguration } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + SparkConfigurationGetOptionalParams, + SparkConfigurationGetResponse +} from "../models"; + +/** Class containing SparkConfiguration operations. */ +export class SparkConfigurationImpl implements SparkConfiguration { + private readonly client: SynapseManagementClient; + + /** + * Initialize a new instance of the class SparkConfiguration class. + * @param client Reference to the service client + */ + constructor(client: SynapseManagementClient) { + this.client = client; + } + + /** + * Get SparkConfiguration by name in a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sparkConfigurationName SparkConfiguration name + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + sparkConfigurationName: string, + workspaceName: string, + options?: SparkConfigurationGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, sparkConfigurationName, workspaceName, options }, + getOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sparkconfigurations/{sparkConfigurationName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SparkConfigurationResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sparkConfigurationName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/sparkConfigurations.ts b/sdk/synapse/arm-synapse/src/operations/sparkConfigurations.ts new file mode 100644 index 000000000000..12165cfb3760 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operations/sparkConfigurations.ts @@ -0,0 +1,189 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SparkConfigurations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + SparkConfigurationResource, + SparkConfigurationsListByWorkspaceNextOptionalParams, + SparkConfigurationsListByWorkspaceOptionalParams, + SparkConfigurationsListByWorkspaceResponse, + SparkConfigurationsListByWorkspaceNextResponse +} from "../models"; + +/// +/** Class containing SparkConfigurations operations. */ +export class SparkConfigurationsImpl implements SparkConfigurations { + private readonly client: SynapseManagementClient; + + /** + * Initialize a new instance of the class SparkConfigurations class. + * @param client Reference to the service client + */ + constructor(client: SynapseManagementClient) { + this.client = client; + } + + /** + * List sparkConfigurations in a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + public listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: SparkConfigurationsListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByWorkspacePagingAll( + resourceGroupName, + workspaceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + ); + } + }; + } + + private async *listByWorkspacePagingPage( + resourceGroupName: string, + workspaceName: string, + options?: SparkConfigurationsListByWorkspaceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByWorkspace( + resourceGroupName, + workspaceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByWorkspaceNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByWorkspacePagingAll( + resourceGroupName: string, + workspaceName: string, + options?: SparkConfigurationsListByWorkspaceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List sparkConfigurations in a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + private _listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: SparkConfigurationsListByWorkspaceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listByWorkspaceOperationSpec + ); + } + + /** + * ListByWorkspaceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method. + * @param options The options parameters. + */ + private _listByWorkspaceNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: SparkConfigurationsListByWorkspaceNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listByWorkspaceNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sparkconfigurations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SparkConfigurationListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SparkConfigurationListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolBlobAuditingPolicies.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolBlobAuditingPolicies.ts index 7c349ace71ea..50e1bc7ed173 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolBlobAuditingPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolBlobAuditingPolicies.ts @@ -3,223 +3,230 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/sqlPoolBlobAuditingPoliciesMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SqlPoolBlobAuditingPolicies } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + SqlPoolBlobAuditingPolicy, + SqlPoolBlobAuditingPoliciesListBySqlPoolNextOptionalParams, + SqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams, + SqlPoolBlobAuditingPoliciesGetOptionalParams, + SqlPoolBlobAuditingPoliciesGetResponse, + SqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams, + SqlPoolBlobAuditingPoliciesCreateOrUpdateResponse, + SqlPoolBlobAuditingPoliciesListBySqlPoolResponse, + SqlPoolBlobAuditingPoliciesListBySqlPoolNextResponse +} from "../models"; -/** Class representing a SqlPoolBlobAuditingPolicies. */ -export class SqlPoolBlobAuditingPolicies { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing SqlPoolBlobAuditingPolicies operations. */ +export class SqlPoolBlobAuditingPoliciesImpl + implements SqlPoolBlobAuditingPolicies { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolBlobAuditingPolicies. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolBlobAuditingPolicies class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** - * Get a SQL pool's blob auditing policy. - * @summary Get a 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; - /** + * 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 workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - 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( - { + public listBySqlPool( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySqlPoolPagingAll( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listBySqlPoolPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + } + }; + } + + private async *listBySqlPoolPagingPage( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams + ): AsyncIterableIterator { + let result = await this._listBySqlPool( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listBySqlPoolNext( resourceGroupName, workspaceName, sqlPoolName, + continuationToken, options - }, - getOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listBySqlPoolPagingAll( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySqlPoolPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + )) { + yield* page; + } } /** - * Creates or updates a SQL pool's blob auditing policy. - * @summary Creates or updates a 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 database blob auditing policy. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.SqlPoolBlobAuditingPolicy, options?: msRest.RequestOptionsBase): Promise; - /** + * Get a 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 workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param parameters The database blob auditing policy. - * @param callback The callback + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.SqlPoolBlobAuditingPolicy, callback: msRest.ServiceCallback): void; + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolBlobAuditingPoliciesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, sqlPoolName, options }, + getOperationSpec + ); + } + /** + * Creates or updates a 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 workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param parameters The database blob auditing policy. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.SqlPoolBlobAuditingPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.SqlPoolBlobAuditingPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + parameters: SqlPoolBlobAuditingPolicy, + options?: SqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, parameters, options }, + createOrUpdateOperationSpec + ); } /** * 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 workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - 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 { + private _listBySqlPool( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - options - }, - listBySqlPoolOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, options }, + listBySqlPoolOperationSpec + ); } /** - * 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 + * @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 nextLink The nextLink from the previous successful call to the ListBySqlPool method. + * @param options The options parameters. */ - listBySqlPoolNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySqlPoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listBySqlPoolNext( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + nextLink: string, + options?: SqlPoolBlobAuditingPoliciesListBySqlPoolNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listBySqlPoolNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, + listBySqlPoolNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings/{blobAuditingPolicyName}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings/{blobAuditingPolicyName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.sqlPoolName, - Parameters.blobAuditingPolicyName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.SqlPoolBlobAuditingPolicy }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings/{blobAuditingPolicyName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, Parameters.blobAuditingPolicyName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.SqlPoolBlobAuditingPolicy, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings/{blobAuditingPolicyName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.SqlPoolBlobAuditingPolicy @@ -227,59 +234,61 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.SqlPoolBlobAuditingPolicy }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, - serializer -}; - -const listBySqlPoolOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings", + requestBody: Parameters.parameters5, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.sqlPoolName, + Parameters.blobAuditingPolicyName ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listBySqlPoolOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/auditingSettings", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SqlPoolBlobAuditingPolicyListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName + ], + headerParameters: [Parameters.accept], serializer }; - -const listBySqlPoolNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listBySqlPoolNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SqlPoolBlobAuditingPolicyListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.sqlPoolName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolColumns.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolColumns.ts index f486438b0e74..891b150a72ed 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolColumns.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolColumns.ts @@ -3,62 +3,50 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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 { SqlPoolColumns } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + SqlPoolColumnsGetOptionalParams, + SqlPoolColumnsGetResponse +} from "../models"; -/** Class representing a SqlPoolColumns. */ -export class SqlPoolColumns { - private readonly client: SynapseManagementClientContext; +/** Class containing SqlPoolColumns operations. */ +export class SqlPoolColumnsImpl implements SqlPoolColumns { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolColumns. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolColumns class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { 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 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 + * @param options The options parameters. */ - 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 { + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + tableName: string, + columnName: string, + options?: SqlPoolColumnsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -69,17 +57,26 @@ export class SqlPoolColumns { columnName, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}", + responses: { + 200: { + bodyMapper: Mappers.SqlPoolColumn + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, @@ -88,19 +85,6 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.tableName, Parameters.columnName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SqlPoolColumn - }, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolConnectionPolicies.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolConnectionPolicies.ts index 004d549ea813..97dbe2226edb 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolConnectionPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolConnectionPolicies.ts @@ -3,87 +3,67 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/sqlPoolConnectionPoliciesMappers"; +import { SqlPoolConnectionPolicies } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + ConnectionPolicyName, + SqlPoolConnectionPoliciesGetOptionalParams, + SqlPoolConnectionPoliciesGetResponse +} from "../models"; -/** Class representing a SqlPoolConnectionPolicies. */ -export class SqlPoolConnectionPolicies { - private readonly client: SynapseManagementClientContext; +/** Class containing SqlPoolConnectionPolicies operations. */ +export class SqlPoolConnectionPoliciesImpl + implements SqlPoolConnectionPolicies { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolConnectionPolicies. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolConnectionPolicies class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Get a Sql pool's connection policy, which is used with table auditing. - * @summary Get a Sql pool's connection policy, which is used with table auditing * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @deprecated This operation is deprecated. Please do not use it any longer. - * @returns Promise + * @param connectionPolicyName The name of the connection policy. + * @param options The options parameters. */ - 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 - * @deprecated This operation is deprecated. Please do not use it any longer. - */ - 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 - * @deprecated This operation is deprecated. Please do not use it any longer. - */ - 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 { + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + connectionPolicyName: ConnectionPolicyName, + options?: SqlPoolConnectionPoliciesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, + connectionPolicyName, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/connectionPolicies/{connectionPolicyName}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/connectionPolicies/{connectionPolicyName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.sqlPoolName, - Parameters.connectionPolicyName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.SqlPoolConnectionPolicy @@ -92,5 +72,15 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName, + Parameters.connectionPolicyName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolDataWarehouseUserActivities.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolDataWarehouseUserActivities.ts index 21b0c02e0b35..244fce25a5a3 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolDataWarehouseUserActivities.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolDataWarehouseUserActivities.ts @@ -3,91 +3,82 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/sqlPoolDataWarehouseUserActivitiesMappers"; +import { SqlPoolDataWarehouseUserActivities } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + DataWarehouseUserActivityName, + SqlPoolDataWarehouseUserActivitiesGetOptionalParams, + SqlPoolDataWarehouseUserActivitiesGetResponse +} from "../models"; -/** Class representing a SqlPoolDataWarehouseUserActivities. */ -export class SqlPoolDataWarehouseUserActivities { - private readonly client: SynapseManagementClientContext; +/** Class containing SqlPoolDataWarehouseUserActivities operations. */ +export class SqlPoolDataWarehouseUserActivitiesImpl + implements SqlPoolDataWarehouseUserActivities { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolDataWarehouseUserActivities. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolDataWarehouseUserActivities class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Gets the user activities of a SQL pool which includes running and suspended queries - * @summary Get SQL pool user activities * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @returns Promise + * @param dataWarehouseUserActivityName The activity name of the Sql pool. + * @param options The options parameters. */ - 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 { + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + dataWarehouseUserActivityName: DataWarehouseUserActivityName, + options?: SqlPoolDataWarehouseUserActivitiesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, + dataWarehouseUserActivityName, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataWarehouseUserActivities/{dataWarehouseUserActivityName}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataWarehouseUserActivities/{dataWarehouseUserActivityName}", + responses: { + 200: { + bodyMapper: Mappers.DataWarehouseUserActivities + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, Parameters.dataWarehouseUserActivityName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DataWarehouseUserActivities - }, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolGeoBackupPolicies.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolGeoBackupPolicies.ts index 5ed5903bc963..0adbebd42fcb 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolGeoBackupPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolGeoBackupPolicies.ts @@ -3,160 +3,190 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/sqlPoolGeoBackupPoliciesMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SqlPoolGeoBackupPolicies } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + GeoBackupPolicy, + SqlPoolGeoBackupPoliciesListOptionalParams, + SqlPoolGeoBackupPoliciesListResponse, + GeoBackupPolicyName, + SqlPoolGeoBackupPoliciesCreateOrUpdateOptionalParams, + SqlPoolGeoBackupPoliciesCreateOrUpdateResponse, + SqlPoolGeoBackupPoliciesGetOptionalParams, + SqlPoolGeoBackupPoliciesGetResponse +} from "../models"; -/** Class representing a SqlPoolGeoBackupPolicies. */ -export class SqlPoolGeoBackupPolicies { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing SqlPoolGeoBackupPolicies operations. */ +export class SqlPoolGeoBackupPoliciesImpl implements SqlPoolGeoBackupPolicies { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolGeoBackupPolicies. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolGeoBackupPolicies class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Get list of SQL pool geo backup policies - * @summary List SQL pool geo backup policies * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(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 - */ - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, callback: msRest.ServiceCallback): void; + public list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolGeoBackupPoliciesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolGeoBackupPoliciesListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + yield result.value || []; + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolGeoBackupPoliciesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + )) { + yield* page; + } + } + /** + * Get list of SQL pool geo backup policies * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolGeoBackupPoliciesListOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - options - }, - listOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, options }, + listOperationSpec + ); } /** * Updates a SQL Pool geo backup policy. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name + * @param geoBackupPolicyName The name of the geo backup policy. * @param parameters The required parameters for creating or updating the geo backup policy. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.GeoBackupPolicy, 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 required parameters for creating or updating the geo backup policy. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.GeoBackupPolicy, 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 required parameters for creating or updating the geo backup policy. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.GeoBackupPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.GeoBackupPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + geoBackupPolicyName: GeoBackupPolicyName, + parameters: GeoBackupPolicy, + options?: SqlPoolGeoBackupPoliciesCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, + geoBackupPolicyName, parameters, options }, - createOrUpdateOperationSpec, - callback) as Promise; + createOrUpdateOperationSpec + ); } /** * Get the specified SQL pool geo backup policy - * @summary Get a SQL pool geo backup policy * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @returns Promise + * @param geoBackupPolicyName The name of the geo backup policy. + * @param options The options parameters. */ - 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 { + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + geoBackupPolicyName: GeoBackupPolicyName, + options?: SqlPoolGeoBackupPoliciesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, + geoBackupPolicyName, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/geoBackupPolicies", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/geoBackupPolicies", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.sqlPoolName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.GeoBackupPolicyListResult @@ -165,32 +195,21 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/geoBackupPolicies/{geoBackupPolicyName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName, - Parameters.geoBackupPolicyName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.sqlPoolName ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.GeoBackupPolicy, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/geoBackupPolicies/{geoBackupPolicyName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.GeoBackupPolicy @@ -202,25 +221,24 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/geoBackupPolicies/{geoBackupPolicyName}", + requestBody: Parameters.parameters1, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, Parameters.geoBackupPolicyName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/geoBackupPolicies/{geoBackupPolicyName}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.GeoBackupPolicy @@ -229,5 +247,15 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName, + Parameters.geoBackupPolicyName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolMaintenanceWindowOptions.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolMaintenanceWindowOptions.ts index c714c5d1c182..c42a0070c559 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolMaintenanceWindowOptions.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolMaintenanceWindowOptions.ts @@ -3,57 +3,47 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/sqlPoolMaintenanceWindowOptionsMappers"; +import { SqlPoolMaintenanceWindowOptions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + SqlPoolMaintenanceWindowOptionsGetOptionalParams, + SqlPoolMaintenanceWindowOptionsGetResponse +} from "../models"; -/** Class representing a SqlPoolMaintenanceWindowOptions. */ -export class SqlPoolMaintenanceWindowOptions { - private readonly client: SynapseManagementClientContext; +/** Class containing SqlPoolMaintenanceWindowOptions operations. */ +export class SqlPoolMaintenanceWindowOptionsImpl + implements SqlPoolMaintenanceWindowOptions { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolMaintenanceWindowOptions. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolMaintenanceWindowOptions class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Get list of SQL pool's available maintenance windows. - * @summary SQL pool's available maintenance windows. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param maintenanceWindowOptionsName Maintenance window options name. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, maintenanceWindowOptionsName: 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 maintenanceWindowOptionsName Maintenance window options name. - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, maintenanceWindowOptionsName: 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 maintenanceWindowOptionsName Maintenance window options name. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, maintenanceWindowOptionsName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, maintenanceWindowOptionsName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + maintenanceWindowOptionsName: string, + options?: SqlPoolMaintenanceWindowOptionsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -62,36 +52,34 @@ export class SqlPoolMaintenanceWindowOptions { maintenanceWindowOptionsName, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/maintenanceWindowOptions/current", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/maintenanceWindowOptions/current", + responses: { + 200: { + bodyMapper: Mappers.MaintenanceWindowOptions + }, + default: {} + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.maintenanceWindowOptionsName + ], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName ], - queryParameters: [ - Parameters.apiVersion, - Parameters.maintenanceWindowOptionsName - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.MaintenanceWindowOptions - }, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolMaintenanceWindows.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolMaintenanceWindows.ts index 69f82d399faa..bbe5028642c7 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolMaintenanceWindows.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolMaintenanceWindows.ts @@ -3,57 +3,49 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/sqlPoolMaintenanceWindowsMappers"; +import { SqlPoolMaintenanceWindows } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + SqlPoolMaintenanceWindowsGetOptionalParams, + SqlPoolMaintenanceWindowsGetResponse, + MaintenanceWindows, + SqlPoolMaintenanceWindowsCreateOrUpdateOptionalParams +} from "../models"; -/** Class representing a SqlPoolMaintenanceWindows. */ -export class SqlPoolMaintenanceWindows { - private readonly client: SynapseManagementClientContext; +/** Class containing SqlPoolMaintenanceWindows operations. */ +export class SqlPoolMaintenanceWindowsImpl + implements SqlPoolMaintenanceWindows { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolMaintenanceWindows. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolMaintenanceWindows class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Get a SQL pool's Maintenance Windows. - * @summary Get a SQL pool's Maintenance Windows. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param maintenanceWindowName Maintenance window name. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, maintenanceWindowName: 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 maintenanceWindowName Maintenance window name. - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, maintenanceWindowName: 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 maintenanceWindowName Maintenance window name. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, maintenanceWindowName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, maintenanceWindowName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + maintenanceWindowName: string, + options?: SqlPoolMaintenanceWindowsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -62,42 +54,27 @@ export class SqlPoolMaintenanceWindows { maintenanceWindowName, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } /** * Creates or updates a Sql pool's maintenance windows settings. - * @summary Creates or updates a Sql pool's maintenance windows settings. - * @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 maintenanceWindowName Maintenance window name. - * @param parameters The required parameters for creating or updating Maintenance Windows settings - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, maintenanceWindowName: string, parameters: Models.MaintenanceWindows, 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 maintenanceWindowName Maintenance window name. - * @param parameters The required parameters for creating or updating Maintenance Windows settings - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, maintenanceWindowName: string, parameters: Models.MaintenanceWindows, 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 workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param maintenanceWindowName Maintenance window name. * @param parameters The required parameters for creating or updating Maintenance Windows settings - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, maintenanceWindowName: string, parameters: Models.MaintenanceWindows, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, maintenanceWindowName: string, parameters: Models.MaintenanceWindows, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + maintenanceWindowName: string, + parameters: MaintenanceWindows, + options?: SqlPoolMaintenanceWindowsCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -107,29 +84,17 @@ export class SqlPoolMaintenanceWindows { parameters, options }, - createOrUpdateOperationSpec, - callback); + createOrUpdateOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/maintenancewindows/current", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/maintenancewindows/current", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.sqlPoolName - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.maintenanceWindowName - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.MaintenanceWindows @@ -138,37 +103,32 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion, Parameters.maintenanceWindowName], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName + ], + headerParameters: [Parameters.accept], serializer }; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/maintenancewindows/current", httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/maintenancewindows/current", + responses: { 200: {}, default: {} }, + requestBody: Parameters.parameters3, + queryParameters: [Parameters.apiVersion, Parameters.maintenanceWindowName], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName ], - queryParameters: [ - Parameters.apiVersion, - Parameters.maintenanceWindowName - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.MaintenanceWindows, - required: true - } - }, - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.contentType], + mediaType: "json", serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolMetadataSyncConfigs.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolMetadataSyncConfigs.ts index ce002fd31b1b..09b0facd5b3f 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolMetadataSyncConfigs.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolMetadataSyncConfigs.ts @@ -3,94 +3,69 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/sqlPoolMetadataSyncConfigsMappers"; +import { SqlPoolMetadataSyncConfigs } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + SqlPoolMetadataSyncConfigsGetOptionalParams, + SqlPoolMetadataSyncConfigsGetResponse, + MetadataSyncConfig, + SqlPoolMetadataSyncConfigsCreateOptionalParams, + SqlPoolMetadataSyncConfigsCreateResponse +} from "../models"; -/** Class representing a SqlPoolMetadataSyncConfigs. */ -export class SqlPoolMetadataSyncConfigs { - private readonly client: SynapseManagementClientContext; +/** Class containing SqlPoolMetadataSyncConfigs operations. */ +export class SqlPoolMetadataSyncConfigsImpl + implements SqlPoolMetadataSyncConfigs { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolMetadataSyncConfigs. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolMetadataSyncConfigs class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Get the metadata sync configuration for a SQL pool - * @summary Get SQL pool metadata sync config * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - 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 { + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolMetadataSyncConfigsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - options - }, - getOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, options }, + getOperationSpec + ); } /** * Set the metadata sync configuration for a SQL pool - * @summary Set SQL pool metadata sync config * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param metadataSyncConfiguration Metadata sync configuration - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - create(resourceGroupName: string, workspaceName: string, sqlPoolName: string, metadataSyncConfiguration: Models.MetadataSyncConfig, 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 metadataSyncConfiguration Metadata sync configuration - * @param callback The callback - */ - create(resourceGroupName: string, workspaceName: string, sqlPoolName: string, metadataSyncConfiguration: Models.MetadataSyncConfig, 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 metadataSyncConfiguration Metadata sync configuration - * @param options The optional parameters - * @param callback The callback - */ - create(resourceGroupName: string, workspaceName: string, sqlPoolName: string, metadataSyncConfiguration: Models.MetadataSyncConfig, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - create(resourceGroupName: string, workspaceName: string, sqlPoolName: string, metadataSyncConfiguration: Models.MetadataSyncConfig, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + create( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + metadataSyncConfiguration: MetadataSyncConfig, + options?: SqlPoolMetadataSyncConfigsCreateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -99,28 +74,17 @@ export class SqlPoolMetadataSyncConfigs { metadataSyncConfiguration, options }, - createOperationSpec, - callback) as Promise; + createOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/metadataSync/config", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/metadataSync/config", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.sqlPoolName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.MetadataSyncConfig @@ -130,31 +94,21 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const createOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/metadataSync/config", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "metadataSyncConfiguration", - mapper: { - ...Mappers.MetadataSyncConfig, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/metadataSync/config", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.MetadataSyncConfig @@ -164,5 +118,16 @@ const createOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + requestBody: Parameters.metadataSyncConfiguration, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolOperationResults.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolOperationResults.ts index 73105db60f1d..3b2b8750716e 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolOperationResults.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolOperationResults.ts @@ -3,108 +3,83 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/sqlPoolOperationResultsMappers"; +import { SqlPoolOperationResults } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + SqlPoolOperationResultsGetLocationHeaderResultOptionalParams, + SqlPoolOperationResultsGetLocationHeaderResultResponse +} from "../models"; -/** Class representing a SqlPoolOperationResults. */ -export class SqlPoolOperationResults { - private readonly client: SynapseManagementClientContext; +/** Class containing SqlPoolOperationResults operations. */ +export class SqlPoolOperationResultsImpl implements SqlPoolOperationResults { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolOperationResults. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolOperationResults class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Get the status of a SQL pool operation - * @summary Get SQL pool operation status * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param operationId Operation ID - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - getLocationHeaderResult(resourceGroupName: string, workspaceName: string, sqlPoolName: string, operationId: 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 operationId Operation ID - * @param callback The callback - */ - getLocationHeaderResult(resourceGroupName: string, workspaceName: string, sqlPoolName: string, operationId: 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 operationId Operation ID - * @param options The optional parameters - * @param callback The callback - */ - getLocationHeaderResult(resourceGroupName: string, workspaceName: string, sqlPoolName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getLocationHeaderResult(resourceGroupName: string, workspaceName: string, sqlPoolName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getLocationHeaderResult( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + operationId: string, + options?: SqlPoolOperationResultsGetLocationHeaderResultOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - operationId, - options - }, - getLocationHeaderResultOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, operationId, options }, + getLocationHeaderResultOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getLocationHeaderResultOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getLocationHeaderResultOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/operationResults/{operationId}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/operationResults/{operationId}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.sqlPoolName, - Parameters.operationId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } + type: { name: "Dictionary", value: { type: { name: "any" } } } } }, 202: { bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } + type: { name: "Dictionary", value: { type: { name: "any" } } } } }, default: { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.operationId, + Parameters.sqlPoolName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolOperations.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolOperations.ts index 5a589da68079..90538e225b85 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolOperations.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolOperations.ts @@ -3,143 +3,198 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/sqlPoolOperationsMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SqlPoolOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + SqlPoolOperation, + SqlPoolOperationsListNextOptionalParams, + SqlPoolOperationsListOptionalParams, + SqlPoolOperationsListResponse, + SqlPoolOperationsListNextResponse +} from "../models"; -/** Class representing a SqlPoolOperations. */ -export class SqlPoolOperations { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing SqlPoolOperations operations. */ +export class SqlPoolOperationsImpl implements SqlPoolOperations { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolOperations. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolOperations class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Gets a list of operations performed on the SQL pool. - * @summary Gets a list of operations performed on the SQL pool * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(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 - */ - list(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 - */ - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolOperationsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolOperationsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( resourceGroupName, workspaceName, sqlPoolName, + continuationToken, options - }, - listOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolOperationsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + )) { + yield* page; + } } /** * Gets a list of operations performed on the SQL pool. - * @summary Gets a list of operations performed on the SQL pool - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback + * @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 options parameters. */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + private _list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolOperationsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, sqlPoolName, options }, + listOperationSpec + ); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @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 nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + nextLink: string, + options?: SqlPoolOperationsListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/operations", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/operations", + responses: { + 200: { + bodyMapper: Mappers.SqlPoolBlobAuditingPolicySqlPoolOperationListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SqlPoolBlobAuditingPolicySqlPoolOperationListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SqlPoolBlobAuditingPolicySqlPoolOperationListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.sqlPoolName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolRecommendedSensitivityLabels.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolRecommendedSensitivityLabels.ts index 112543a6803b..1594f5602707 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolRecommendedSensitivityLabels.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolRecommendedSensitivityLabels.ts @@ -3,98 +3,71 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/sqlPoolRecommendedSensitivityLabelsMappers"; +import { SqlPoolRecommendedSensitivityLabels } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + RecommendedSensitivityLabelUpdateList, + SqlPoolRecommendedSensitivityLabelsUpdateOptionalParams +} from "../models"; -/** Class representing a SqlPoolRecommendedSensitivityLabels. */ -export class SqlPoolRecommendedSensitivityLabels { - private readonly client: SynapseManagementClientContext; +/** Class containing SqlPoolRecommendedSensitivityLabels operations. */ +export class SqlPoolRecommendedSensitivityLabelsImpl + implements SqlPoolRecommendedSensitivityLabels { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolRecommendedSensitivityLabels. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolRecommendedSensitivityLabels class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Update recommended sensitivity labels states of a given SQL Pool using an operations batch. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param parameters - * @param [options] The optional parameters - * @returns Promise + * @param parameters A list of recommended sensitivity label update operations. + * @param options The options parameters. */ - update(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.RecommendedSensitivityLabelUpdateList, 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 - * @param callback The callback - */ - update(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.RecommendedSensitivityLabelUpdateList, 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 - * @param options The optional parameters - * @param callback The callback - */ - update(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.RecommendedSensitivityLabelUpdateList, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.RecommendedSensitivityLabelUpdateList, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + parameters: RecommendedSensitivityLabelUpdateList, + options?: SqlPoolRecommendedSensitivityLabelsUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - parameters, - options - }, - updateOperationSpec, - callback); + { resourceGroupName, workspaceName, sqlPoolName, parameters, options }, + updateOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const updateOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/recommendedSensitivityLabels", httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/recommendedSensitivityLabels", + responses: { 200: {}, default: {} }, + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.RecommendedSensitivityLabelUpdateList, - required: true - } - }, - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.contentType], + mediaType: "json", serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolReplicationLinks.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolReplicationLinks.ts index 5e24bab2f74a..336243b7f519 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolReplicationLinks.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolReplicationLinks.ts @@ -3,153 +3,186 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/sqlPoolReplicationLinksMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SqlPoolReplicationLinks } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + ReplicationLink, + SqlPoolReplicationLinksListNextOptionalParams, + SqlPoolReplicationLinksListOptionalParams, + SqlPoolReplicationLinksListResponse, + SqlPoolReplicationLinksGetByNameOptionalParams, + SqlPoolReplicationLinksGetByNameResponse, + SqlPoolReplicationLinksListNextResponse +} from "../models"; -/** Class representing a SqlPoolReplicationLinks. */ -export class SqlPoolReplicationLinks { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing SqlPoolReplicationLinks operations. */ +export class SqlPoolReplicationLinksImpl implements SqlPoolReplicationLinks { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolReplicationLinks. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolReplicationLinks class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Lists a Sql pool's replication links. - * @summary Get SQL pool replication links * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(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 - */ - list(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 - */ - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolReplicationLinksListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolReplicationLinksListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( resourceGroupName, workspaceName, sqlPoolName, + continuationToken, options - }, - listOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolReplicationLinksListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + )) { + yield* page; + } } /** - * Get SQL pool replication link by name. - * @summary Get SQL pool replication link by name - * @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 linkId The ID of the replication link. - * @param [options] The optional parameters - * @returns Promise - */ - getByName(resourceGroupName: string, workspaceName: string, sqlPoolName: string, linkId: string, options?: msRest.RequestOptionsBase): Promise; - /** + * Lists a Sql pool's replication links. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param linkId The ID of the replication link. - * @param callback The callback + * @param options The options parameters. */ - getByName(resourceGroupName: string, workspaceName: string, sqlPoolName: string, linkId: string, callback: msRest.ServiceCallback): void; + private _list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolReplicationLinksListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, sqlPoolName, options }, + listOperationSpec + ); + } + /** + * Get SQL pool replication link by name. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param linkId The ID of the replication link. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - getByName(resourceGroupName: string, workspaceName: string, sqlPoolName: string, linkId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getByName(resourceGroupName: string, workspaceName: string, sqlPoolName: string, linkId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getByName( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + linkId: string, + options?: SqlPoolReplicationLinksGetByNameOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - linkId, - options - }, - getByNameOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, linkId, options }, + getByNameOperationSpec + ); } /** - * Lists a Sql pool's replication links. - * @summary Get SQL pool replication links - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @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 nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + nextLink: string, + options?: SqlPoolReplicationLinksListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/replicationLinks", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/replicationLinks", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.sqlPoolName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.ReplicationLinkListResult @@ -158,25 +191,21 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const getByNameOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/replicationLinks/{linkId}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName, - Parameters.linkId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.sqlPoolName ], + headerParameters: [Parameters.accept], + serializer +}; +const getByNameOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/replicationLinks/{linkId}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ReplicationLink @@ -185,22 +214,21 @@ const getByNameOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName, + Parameters.linkId + ], + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ReplicationLinkListResult @@ -209,5 +237,15 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.sqlPoolName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolRestorePoints.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolRestorePoints.ts index 80e7cf8591e3..ffad2361df79 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolRestorePoints.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolRestorePoints.ts @@ -3,108 +3,254 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/sqlPoolRestorePointsMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SqlPoolRestorePoints } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + RestorePoint, + SqlPoolRestorePointsListNextOptionalParams, + SqlPoolRestorePointsListOptionalParams, + SqlPoolRestorePointsListResponse, + CreateSqlPoolRestorePointDefinition, + SqlPoolRestorePointsCreateOptionalParams, + SqlPoolRestorePointsCreateResponse, + SqlPoolRestorePointsGetOptionalParams, + SqlPoolRestorePointsGetResponse, + SqlPoolRestorePointsDeleteOptionalParams, + SqlPoolRestorePointsListNextResponse +} from "../models"; -/** Class representing a SqlPoolRestorePoints. */ -export class SqlPoolRestorePoints { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing SqlPoolRestorePoints operations. */ +export class SqlPoolRestorePointsImpl implements SqlPoolRestorePoints { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolRestorePoints. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolRestorePoints class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Get SQL pool backup information - * @summary Get SQL pool backup * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(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 - */ - list(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 - */ - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolRestorePointsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolRestorePointsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( resourceGroupName, workspaceName, sqlPoolName, + continuationToken, options - }, - listOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolRestorePointsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + )) { + yield* page; + } } /** - * Creates a restore point for a data warehouse. + * Get SQL pool backup information * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param parameters The definition for creating the restore point of this Sql pool. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - create(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.CreateSqlPoolRestorePointDefinition, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreate(resourceGroupName,workspaceName,sqlPoolName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + private _list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolRestorePointsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, sqlPoolName, options }, + listOperationSpec + ); } /** - * Gets a restore point. + * Creates a restore point for a data warehouse. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param restorePointName The name of the restore point. - * @param [options] The optional parameters - * @returns Promise + * @param parameters The definition for creating the restore point of this Sql pool. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, restorePointName: string, options?: msRest.RequestOptionsBase): Promise; + async beginCreate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + parameters: CreateSqlPoolRestorePointDefinition, + options?: SqlPoolRestorePointsCreateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + SqlPoolRestorePointsCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, sqlPoolName, parameters, options }, + createOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + } + /** + * Creates a restore point for a data warehouse. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param restorePointName The name of the restore point. - * @param callback The callback + * @param parameters The definition for creating the restore point of this Sql pool. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, restorePointName: string, callback: msRest.ServiceCallback): void; + async beginCreateAndWait( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + parameters: CreateSqlPoolRestorePointDefinition, + options?: SqlPoolRestorePointsCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + workspaceName, + sqlPoolName, + parameters, + options + ); + return poller.pollUntilDone(); + } + /** + * Gets a restore point. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param restorePointName The name of the restore point. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, restorePointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, restorePointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + restorePointName: string, + options?: SqlPoolRestorePointsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -113,38 +259,25 @@ export class SqlPoolRestorePoints { restorePointName, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } /** * Deletes a restore point. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param restorePointName The name of the restore point. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - deleteMethod(resourceGroupName: string, workspaceName: string, sqlPoolName: string, restorePointName: 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 restorePointName The name of the restore point. - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, workspaceName: string, sqlPoolName: string, restorePointName: 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 restorePointName The name of the restore point. - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, workspaceName: string, sqlPoolName: string, restorePointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, workspaceName: string, sqlPoolName: string, restorePointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + delete( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + restorePointName: string, + options?: SqlPoolRestorePointsDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -153,79 +286,38 @@ export class SqlPoolRestorePoints { restorePointName, options }, - deleteMethodOperationSpec, - callback); + deleteOperationSpec + ); } /** - * Creates a restore point for a data warehouse. + * ListNext * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param parameters The definition for creating the restore point of this Sql pool. - * @param [options] The optional parameters - * @returns Promise + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - beginCreate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.CreateSqlPoolRestorePointDefinition, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - parameters, - options - }, - beginCreateOperationSpec, - options); - } - - /** - * Get SQL pool backup information - * @summary Get SQL pool backup - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + nextLink: string, + options?: SqlPoolRestorePointsListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.sqlPoolName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.RestorePointListResult @@ -234,112 +326,90 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints/{restorePointName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName, - Parameters.restorePointName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.sqlPoolName ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints", + httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.RestorePoint }, - default: { - bodyMapper: Mappers.CloudError - } + 201: { + bodyMapper: Mappers.RestorePoint + }, + 202: { + bodyMapper: Mappers.RestorePoint + }, + 204: { + bodyMapper: Mappers.RestorePoint + }, + default: {} }, + requestBody: Parameters.parameters2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints/{restorePointName}", +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints/{restorePointName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RestorePoint + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, Parameters.restorePointName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.accept], serializer }; - -const beginCreateOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints", +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/restorePoints/{restorePointName}", + httpMethod: "DELETE", + responses: { 200: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.sqlPoolName, + Parameters.restorePointName ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.CreateSqlPoolRestorePointDefinition, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.RestorePoint - }, - 201: { - bodyMapper: Mappers.RestorePoint - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.RestorePointListResult @@ -348,5 +418,15 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.sqlPoolName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolSchemas.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolSchemas.ts index 779af4699fce..b0f2ec80ebb3 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolSchemas.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolSchemas.ts @@ -3,212 +3,243 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/sqlPoolSchemasMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SqlPoolSchemas } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + SqlPoolSchema, + SqlPoolSchemasListNextOptionalParams, + SqlPoolSchemasListOptionalParams, + SqlPoolSchemasListResponse, + SqlPoolSchemasGetOptionalParams, + SqlPoolSchemasGetResponse, + SqlPoolSchemasListNextResponse +} from "../models"; -/** Class representing a SqlPoolSchemas. */ -export class SqlPoolSchemas { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing SqlPoolSchemas operations. */ +export class SqlPoolSchemasImpl implements SqlPoolSchemas { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolSchemas. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolSchemas class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Gets schemas of a given SQL pool. - * @summary Gets schemas of a given SQL pool * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: Models.SqlPoolSchemasListOptionalParams): 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 - */ - list(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 - */ - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options: Models.SqlPoolSchemasListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: Models.SqlPoolSchemasListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolSchemasListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolSchemasListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( resourceGroupName, workspaceName, sqlPoolName, + continuationToken, options - }, - listOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolSchemasListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + )) { + yield* page; + } } /** - * 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; - /** + * Gets schemas of a given SQL pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param schemaName The name of the schema. - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, callback: msRest.ServiceCallback): void; + private _list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolSchemasListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, sqlPoolName, options }, + listOperationSpec + ); + } + /** + * 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 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 + * @param options The options parameters. */ - 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 { + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + options?: SqlPoolSchemasGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - schemaName, - options - }, - getOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, schemaName, options }, + getOperationSpec + ); } /** - * Gets schemas of a given SQL pool. - * @summary Gets schemas of a given SQL pool - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: Models.SqlPoolSchemasListNextOptionalParams): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @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 nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: Models.SqlPoolSchemasListNextOptionalParams, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: Models.SqlPoolSchemasListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + nextLink: string, + options?: SqlPoolSchemasListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas", + responses: { + 200: { + bodyMapper: Mappers.SqlPoolSchemaListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName ], - queryParameters: [ - Parameters.apiVersion, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolSchemaListResult + bodyMapper: Mappers.SqlPoolSchema }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, 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 - } - }, + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SqlPoolSchemaListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion, Parameters.filter], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.sqlPoolName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolSecurityAlertPolicies.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolSecurityAlertPolicies.ts index 51d9a77253d8..705d723b413f 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolSecurityAlertPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolSecurityAlertPolicies.ts @@ -3,251 +3,269 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/sqlPoolSecurityAlertPoliciesMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SqlPoolSecurityAlertPolicies } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + SqlPoolSecurityAlertPolicy, + SqlPoolSecurityAlertPoliciesListNextOptionalParams, + SqlPoolSecurityAlertPoliciesListOptionalParams, + SqlPoolSecurityAlertPoliciesListResponse, + SecurityAlertPolicyName, + SqlPoolSecurityAlertPoliciesGetOptionalParams, + SqlPoolSecurityAlertPoliciesGetResponse, + SqlPoolSecurityAlertPoliciesCreateOrUpdateOptionalParams, + SqlPoolSecurityAlertPoliciesCreateOrUpdateResponse, + SqlPoolSecurityAlertPoliciesListNextResponse +} from "../models"; -/** Class representing a SqlPoolSecurityAlertPolicies. */ -export class SqlPoolSecurityAlertPolicies { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing SqlPoolSecurityAlertPolicies operations. */ +export class SqlPoolSecurityAlertPoliciesImpl + implements SqlPoolSecurityAlertPolicies { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolSecurityAlertPolicies. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolSecurityAlertPolicies class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Get a list of Sql pool's security alert policies. - * @summary List Sql pool's security alert policies * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(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 - */ - list(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 - */ - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolSecurityAlertPoliciesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolSecurityAlertPoliciesListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( resourceGroupName, workspaceName, sqlPoolName, + continuationToken, options - }, - listOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolSecurityAlertPoliciesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + )) { + yield* page; + } } /** - * Get a Sql pool's security alert policy. - * @summary Get a Sql pool's security alert 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; - /** + * Get a list of Sql pool's security alert policies. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, callback: msRest.ServiceCallback): void; + private _list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolSecurityAlertPoliciesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, sqlPoolName, options }, + listOperationSpec + ); + } + /** + * Get a Sql pool's security alert policy. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param options The optional parameters - * @param callback The callback + * @param securityAlertPolicyName The name of the security alert policy. + * @param options The options parameters. */ - 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 { + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + securityAlertPolicyName: SecurityAlertPolicyName, + options?: SqlPoolSecurityAlertPoliciesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, + securityAlertPolicyName, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } /** * Create or update a Sql pool's security alert policy. - * @summary Create or update a Sql pool's security alert 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 Sql pool security alert policy. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.SqlPoolSecurityAlertPolicy, 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 Sql pool security alert policy. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.SqlPoolSecurityAlertPolicy, 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 workspaceName The name of the workspace. * @param sqlPoolName SQL pool name + * @param securityAlertPolicyName The name of the security alert policy. * @param parameters The Sql pool security alert policy. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.SqlPoolSecurityAlertPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.SqlPoolSecurityAlertPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + securityAlertPolicyName: SecurityAlertPolicyName, + parameters: SqlPoolSecurityAlertPolicy, + options?: SqlPoolSecurityAlertPoliciesCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, + securityAlertPolicyName, parameters, options }, - createOrUpdateOperationSpec, - callback) as Promise; + createOrUpdateOperationSpec + ); } /** - * Get a list of Sql pool's security alert policies. - * @summary List Sql pool's security alert policies - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @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 nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + nextLink: string, + options?: SqlPoolSecurityAlertPoliciesListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/securityAlertPolicies", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/securityAlertPolicies", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.sqlPoolName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.ListSqlPoolSecurityAlertPolicies }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/securityAlertPolicies/{securityAlertPolicyName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName, - Parameters.securityAlertPolicyName0 - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.sqlPoolName ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/securityAlertPolicies/{securityAlertPolicyName}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SqlPoolSecurityAlertPolicy }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/securityAlertPolicies/{securityAlertPolicyName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.securityAlertPolicyName0 - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.securityAlertPolicyName ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.SqlPoolSecurityAlertPolicy, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/securityAlertPolicies/{securityAlertPolicyName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.SqlPoolSecurityAlertPolicy @@ -255,33 +273,40 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.SqlPoolSecurityAlertPolicy }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + requestBody: Parameters.parameters10, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName, + Parameters.securityAlertPolicyName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ListSqlPoolSecurityAlertPolicies }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.sqlPoolName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolSensitivityLabels.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolSensitivityLabels.ts index 61292ba4c5c4..7fa75eb8f820 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolSensitivityLabels.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolSensitivityLabels.ts @@ -3,179 +3,290 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/sqlPoolSensitivityLabelsMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SqlPoolSensitivityLabels } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + SensitivityLabel, + SqlPoolSensitivityLabelsListCurrentNextOptionalParams, + SqlPoolSensitivityLabelsListCurrentOptionalParams, + SqlPoolSensitivityLabelsListRecommendedNextOptionalParams, + SqlPoolSensitivityLabelsListRecommendedOptionalParams, + SqlPoolSensitivityLabelsListCurrentResponse, + SensitivityLabelUpdateList, + SqlPoolSensitivityLabelsUpdateOptionalParams, + SqlPoolSensitivityLabelsListRecommendedResponse, + SqlPoolSensitivityLabelsCreateOrUpdateOptionalParams, + SqlPoolSensitivityLabelsCreateOrUpdateResponse, + SqlPoolSensitivityLabelsDeleteOptionalParams, + SensitivityLabelSource, + SqlPoolSensitivityLabelsGetOptionalParams, + SqlPoolSensitivityLabelsGetResponse, + SqlPoolSensitivityLabelsEnableRecommendationOptionalParams, + SqlPoolSensitivityLabelsDisableRecommendationOptionalParams, + SqlPoolSensitivityLabelsListCurrentNextResponse, + SqlPoolSensitivityLabelsListRecommendedNextResponse +} from "../models"; -/** Class representing a SqlPoolSensitivityLabels. */ -export class SqlPoolSensitivityLabels { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing SqlPoolSensitivityLabels operations. */ +export class SqlPoolSensitivityLabelsImpl implements SqlPoolSensitivityLabels { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolSensitivityLabels. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolSensitivityLabels class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Gets SQL pool sensitivity labels. - * @summary Gets SQL pool sensitivity labels * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - listCurrent(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: Models.SqlPoolSensitivityLabelsListCurrentOptionalParams): 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 - */ - listCurrent(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 - */ - listCurrent(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options: Models.SqlPoolSensitivityLabelsListCurrentOptionalParams, callback: msRest.ServiceCallback): void; - listCurrent(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: Models.SqlPoolSensitivityLabelsListCurrentOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public listCurrent( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolSensitivityLabelsListCurrentOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listCurrentPagingAll( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listCurrentPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + } + }; + } + + private async *listCurrentPagingPage( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolSensitivityLabelsListCurrentOptionalParams + ): AsyncIterableIterator { + let result = await this._listCurrent( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listCurrentNext( resourceGroupName, workspaceName, sqlPoolName, + continuationToken, options - }, - listCurrentOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listCurrentPagingAll( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolSensitivityLabelsListCurrentOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listCurrentPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + )) { + yield* page; + } } /** - * Update sensitivity labels of a given SQL Pool using an operations batch. - * @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 - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.SensitivityLabelUpdateList, 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 - * @param callback The callback - */ - update(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.SensitivityLabelUpdateList, callback: msRest.ServiceCallback): void; - /** + * Gets sensitivity labels of a given SQL pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param parameters - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - update(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.SensitivityLabelUpdateList, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.SensitivityLabelUpdateList, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public listRecommended( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolSensitivityLabelsListRecommendedOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listRecommendedPagingAll( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listRecommendedPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + } + }; + } + + private async *listRecommendedPagingPage( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolSensitivityLabelsListRecommendedOptionalParams + ): AsyncIterableIterator { + let result = await this._listRecommended( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listRecommendedNext( resourceGroupName, workspaceName, sqlPoolName, - parameters, + continuationToken, options - }, - updateOperationSpec, - callback); + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listRecommendedPagingAll( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolSensitivityLabelsListRecommendedOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listRecommendedPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + )) { + yield* page; + } } /** - * Gets sensitivity labels of a given SQL pool. - * @summary Gets sensitivity labels of a given SQL pool + * Gets SQL pool sensitivity labels. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - listRecommended(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: Models.SqlPoolSensitivityLabelsListRecommendedOptionalParams): Promise; + private _listCurrent( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolSensitivityLabelsListCurrentOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, sqlPoolName, options }, + listCurrentOperationSpec + ); + } + /** + * Update sensitivity labels of a given SQL Pool using an operations batch. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param callback The callback + * @param parameters A list of sensitivity label update operations. + * @param options The options parameters. */ - listRecommended(resourceGroupName: string, workspaceName: string, sqlPoolName: string, callback: msRest.ServiceCallback): void; + update( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + parameters: SensitivityLabelUpdateList, + options?: SqlPoolSensitivityLabelsUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, sqlPoolName, parameters, options }, + updateOperationSpec + ); + } + /** + * Gets sensitivity labels of a given SQL pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - listRecommended(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options: Models.SqlPoolSensitivityLabelsListRecommendedOptionalParams, callback: msRest.ServiceCallback): void; - listRecommended(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: Models.SqlPoolSensitivityLabelsListRecommendedOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listRecommended( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolSensitivityLabelsListRecommendedOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - options - }, - listRecommendedOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, options }, + listRecommendedOperationSpec + ); } /** * Creates or updates the sensitivity label of a given column in 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 schemaName The name of the schema. - * @param tableName The name of the table. - * @param columnName The name of the column. - * @param parameters The column sensitivity label resource. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, parameters: Models.SensitivityLabel, 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 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 parameters The column sensitivity label resource. - * @param callback The callback + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, parameters: Models.SensitivityLabel, 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 parameters The column sensitivity label resource. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, parameters: Models.SensitivityLabel, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, parameters: Models.SensitivityLabel, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + tableName: string, + columnName: string, + parameters: SensitivityLabel, + options?: SqlPoolSensitivityLabelsCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -187,44 +298,29 @@ export class SqlPoolSensitivityLabels { parameters, options }, - createOrUpdateOperationSpec, - callback) as Promise; + createOrUpdateOperationSpec + ); } /** * Deletes the sensitivity label of a given column in 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 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 - */ - deleteMethod(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 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 + * @param options The options parameters. */ - deleteMethod(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 - */ - deleteMethod(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + delete( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + tableName: string, + columnName: string, + options?: SqlPoolSensitivityLabelsDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -235,50 +331,31 @@ export class SqlPoolSensitivityLabels { columnName, options }, - deleteMethodOperationSpec, - callback); + deleteOperationSpec + ); } /** * 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 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 + * @param sensitivityLabelSource The source of the sensitivity label. + * @param options The options parameters. */ - 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 { + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + tableName: string, + columnName: string, + sensitivityLabelSource: SensitivityLabelSource, + options?: SqlPoolSensitivityLabelsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -290,45 +367,30 @@ export class SqlPoolSensitivityLabels { sensitivityLabelSource, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } /** - * Enables sensitivity recommendations on a given column (recommendations are enabled by default on - * all columns) - * @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 - */ - enableRecommendation(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 - */ - enableRecommendation(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, callback: msRest.ServiceCallback): void; - /** + * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all + * columns) * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @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 + * @param options The options parameters. */ - enableRecommendation(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - enableRecommendation(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + enableRecommendation( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + tableName: string, + columnName: string, + options?: SqlPoolSensitivityLabelsEnableRecommendationOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -339,44 +401,29 @@ export class SqlPoolSensitivityLabels { columnName, options }, - enableRecommendationOperationSpec, - callback); + enableRecommendationOperationSpec + ); } /** * Disables sensitivity recommendations on a given column * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @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 + * @param options The options parameters. */ - disableRecommendation(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 - */ - disableRecommendation(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 - */ - disableRecommendation(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - disableRecommendation(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, columnName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + disableRecommendation( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + tableName: string, + columnName: string, + options?: SqlPoolSensitivityLabelsDisableRecommendationOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -387,87 +434,59 @@ export class SqlPoolSensitivityLabels { columnName, options }, - disableRecommendationOperationSpec, - callback); + disableRecommendationOperationSpec + ); } /** - * Gets SQL pool sensitivity labels. - * @summary Gets SQL pool sensitivity labels - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listCurrentNext(nextPageLink: string, options?: Models.SqlPoolSensitivityLabelsListCurrentNextOptionalParams): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listCurrentNext(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 + * ListCurrentNext + * @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 nextLink The nextLink from the previous successful call to the ListCurrent method. + * @param options The options parameters. */ - listCurrentNext(nextPageLink: string, options: Models.SqlPoolSensitivityLabelsListCurrentNextOptionalParams, callback: msRest.ServiceCallback): void; - listCurrentNext(nextPageLink: string, options?: Models.SqlPoolSensitivityLabelsListCurrentNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listCurrentNext( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + nextLink: string, + options?: SqlPoolSensitivityLabelsListCurrentNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listCurrentNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, + listCurrentNextOperationSpec + ); } /** - * Gets sensitivity labels of a given SQL pool. - * @summary Gets sensitivity labels of a given SQL pool - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listRecommendedNext(nextPageLink: string, options?: Models.SqlPoolSensitivityLabelsListRecommendedNextOptionalParams): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listRecommendedNext(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 + * ListRecommendedNext + * @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 nextLink The nextLink from the previous successful call to the ListRecommended method. + * @param options The options parameters. */ - listRecommendedNext(nextPageLink: string, options: Models.SqlPoolSensitivityLabelsListRecommendedNextOptionalParams, callback: msRest.ServiceCallback): void; - listRecommendedNext(nextPageLink: string, options?: Models.SqlPoolSensitivityLabelsListRecommendedNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listRecommendedNext( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + nextLink: string, + options?: SqlPoolSensitivityLabelsListRecommendedNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listRecommendedNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, + listRecommendedNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listCurrentOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listCurrentOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/currentSensitivityLabels", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/currentSensitivityLabels", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.sqlPoolName - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.SensitivityLabelListResult @@ -476,95 +495,65 @@ const listCurrentOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/currentSensitivityLabels", + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.SensitivityLabelUpdateList, - required: true - } - }, - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.accept], serializer }; - -const listRecommendedOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/recommendedSensitivityLabels", +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/currentSensitivityLabels", + httpMethod: "PATCH", + responses: { 200: {}, default: {} }, + requestBody: Parameters.parameters6, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName ], - queryParameters: [ - Parameters.apiVersion, - Parameters.includeDisabledRecommendations, - Parameters.skipToken, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.contentType], + mediaType: "json", + serializer +}; +const listRecommendedOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/recommendedSensitivityLabels", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SensitivityLabelListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.includeDisabledRecommendations, + Parameters.skipToken + ], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName, - Parameters.schemaName, - Parameters.tableName, - Parameters.columnName, - Parameters.sensitivityLabelSource0 - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.sqlPoolName ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.SensitivityLabel, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.SensitivityLabel @@ -572,17 +561,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.SensitivityLabel }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, @@ -590,28 +574,20 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource0 - ], - queryParameters: [ - Parameters.apiVersion + Parameters.sensitivityLabelSource ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", 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}", +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", + httpMethod: "DELETE", + responses: { 200: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, @@ -619,29 +595,43 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource1 - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.sensitivityLabelSource ], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SensitivityLabel }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName, + Parameters.schemaName, + Parameters.tableName, + Parameters.columnName, + Parameters.sensitivityLabelSource1 + ], + headerParameters: [Parameters.accept], serializer }; - -const enableRecommendationOperationSpec: msRest.OperationSpec = { +const enableRecommendationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/enable", httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/enable", + responses: { 200: {}, default: {} }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, @@ -651,25 +641,16 @@ const enableRecommendationOperationSpec: msRest.OperationSpec = { Parameters.columnName, Parameters.sensitivityLabelSource2 ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, serializer }; - -const disableRecommendationOperationSpec: msRest.OperationSpec = { +const disableRecommendationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/disable", httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/{sensitivityLabelSource}/disable", + responses: { 200: {}, default: {} }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, @@ -679,35 +660,11 @@ const disableRecommendationOperationSpec: msRest.OperationSpec = { Parameters.columnName, Parameters.sensitivityLabelSource2 ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, serializer }; - -const listCurrentNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listCurrentNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SensitivityLabelListResult @@ -716,32 +673,41 @@ const listCurrentNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion, Parameters.filter], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.sqlPoolName + ], + headerParameters: [Parameters.accept], serializer }; - -const listRecommendedNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listRecommendedNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.includeDisabledRecommendations, - Parameters.skipToken, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SensitivityLabelListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.includeDisabledRecommendations, + Parameters.skipToken + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.sqlPoolName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolTableColumns.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolTableColumns.ts index 7faa01750e88..e20035cba2e4 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolTableColumns.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolTableColumns.ts @@ -3,60 +3,151 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/sqlPoolTableColumnsMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SqlPoolTableColumns } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + SqlPoolColumn, + SqlPoolTableColumnsListByTableNameNextOptionalParams, + SqlPoolTableColumnsListByTableNameOptionalParams, + SqlPoolTableColumnsListByTableNameResponse, + SqlPoolTableColumnsListByTableNameNextResponse +} from "../models"; -/** Class representing a SqlPoolTableColumns. */ -export class SqlPoolTableColumns { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing SqlPoolTableColumns operations. */ +export class SqlPoolTableColumnsImpl implements SqlPoolTableColumns { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolTableColumns. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolTableColumns class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Gets columns in a given table in a SQL pool. - * @summary Gets columns in a given table in a SQL pool * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @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 + * @param options The options parameters. */ - listByTableName(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, options?: Models.SqlPoolTableColumnsListByTableNameOptionalParams): 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 - */ - listByTableName(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, callback: msRest.ServiceCallback): void; + public listByTableName( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + tableName: string, + options?: SqlPoolTableColumnsListByTableNameOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByTableNamePagingAll( + resourceGroupName, + workspaceName, + sqlPoolName, + schemaName, + tableName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByTableNamePagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + schemaName, + tableName, + options + ); + } + }; + } + + private async *listByTableNamePagingPage( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + tableName: string, + options?: SqlPoolTableColumnsListByTableNameOptionalParams + ): AsyncIterableIterator { + let result = await this._listByTableName( + resourceGroupName, + workspaceName, + sqlPoolName, + schemaName, + tableName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByTableNameNext( + resourceGroupName, + workspaceName, + sqlPoolName, + schemaName, + tableName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByTableNamePagingAll( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + tableName: string, + options?: SqlPoolTableColumnsListByTableNameOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByTableNamePagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + schemaName, + tableName, + options + )) { + yield* page; + } + } + /** + * Gets columns in a given table in a SQL pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @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 + * @param options The options parameters. */ - listByTableName(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, options: Models.SqlPoolTableColumnsListByTableNameOptionalParams, callback: msRest.ServiceCallback): void; - listByTableName(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, options?: Models.SqlPoolTableColumnsListByTableNameOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listByTableName( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + tableName: string, + options?: SqlPoolTableColumnsListByTableNameOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -66,46 +157,59 @@ export class SqlPoolTableColumns { tableName, options }, - listByTableNameOperationSpec, - callback) as Promise; + listByTableNameOperationSpec + ); } /** - * Gets columns in a given table in a SQL pool. - * @summary Gets columns in a given table in a SQL pool - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByTableNameNext(nextPageLink: string, options?: Models.SqlPoolTableColumnsListByTableNameNextOptionalParams): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByTableNameNext(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 + * ListByTableNameNext + * @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 nextLink The nextLink from the previous successful call to the ListByTableName method. + * @param options The options parameters. */ - listByTableNameNext(nextPageLink: string, options: Models.SqlPoolTableColumnsListByTableNameNextOptionalParams, callback: msRest.ServiceCallback): void; - listByTableNameNext(nextPageLink: string, options?: Models.SqlPoolTableColumnsListByTableNameNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listByTableNameNext( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + tableName: string, + nextLink: string, + options?: SqlPoolTableColumnsListByTableNameNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { - nextPageLink, + resourceGroupName, + workspaceName, + sqlPoolName, + schemaName, + tableName, + nextLink, options }, - listByTableNameNextOperationSpec, - callback) as Promise; + listByTableNameNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByTableNameOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByTableNameOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}/columns", + responses: { + 200: { + bodyMapper: Mappers.SqlPoolColumnListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, @@ -113,45 +217,29 @@ const listByTableNameOperationSpec: msRest.OperationSpec = { Parameters.schemaName, Parameters.tableName ], - queryParameters: [ - Parameters.apiVersion, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SqlPoolColumnListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.accept], serializer }; - -const listByTableNameNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listByTableNameNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SqlPoolColumnListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion, Parameters.filter], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.sqlPoolName, + Parameters.schemaName, + Parameters.tableName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolTables.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolTables.ts index a743883aaffe..b8904b192e6e 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolTables.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolTables.ts @@ -3,100 +3,165 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/sqlPoolTablesMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SqlPoolTables } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + SqlPoolTable, + SqlPoolTablesListBySchemaNextOptionalParams, + SqlPoolTablesListBySchemaOptionalParams, + SqlPoolTablesListBySchemaResponse, + SqlPoolTablesGetOptionalParams, + SqlPoolTablesGetResponse, + SqlPoolTablesListBySchemaNextResponse +} from "../models"; -/** Class representing a SqlPoolTables. */ -export class SqlPoolTables { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing SqlPoolTables operations. */ +export class SqlPoolTablesImpl implements SqlPoolTables { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolTables. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolTables class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Gets tables of a given schema in a SQL pool. - * @summary Gets tables of a given schema in a SQL pool * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @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 + * @param options The options parameters. */ - listBySchema(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, options?: Models.SqlPoolTablesListBySchemaOptionalParams): 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 - */ - listBySchema(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 - */ - listBySchema(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, options: Models.SqlPoolTablesListBySchemaOptionalParams, callback: msRest.ServiceCallback): void; - listBySchema(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, options?: Models.SqlPoolTablesListBySchemaOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public listBySchema( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + options?: SqlPoolTablesListBySchemaOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySchemaPagingAll( + resourceGroupName, + workspaceName, + sqlPoolName, + schemaName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listBySchemaPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + schemaName, + options + ); + } + }; + } + + private async *listBySchemaPagingPage( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + options?: SqlPoolTablesListBySchemaOptionalParams + ): AsyncIterableIterator { + let result = await this._listBySchema( + resourceGroupName, + workspaceName, + sqlPoolName, + schemaName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listBySchemaNext( resourceGroupName, workspaceName, sqlPoolName, schemaName, + continuationToken, options - }, - listBySchemaOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listBySchemaPagingAll( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + options?: SqlPoolTablesListBySchemaOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySchemaPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + schemaName, + options + )) { + yield* page; + } } /** - * 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; - /** + * Gets tables of a given schema in a SQL pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @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 + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, schemaName: string, tableName: string, callback: msRest.ServiceCallback): void; + private _listBySchema( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + options?: SqlPoolTablesListBySchemaOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, sqlPoolName, schemaName, options }, + listBySchemaOperationSpec + ); + } + /** + * 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 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 + * @param options The options parameters. */ - 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 { + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + tableName: string, + options?: SqlPoolTablesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -106,74 +171,78 @@ export class SqlPoolTables { tableName, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } /** - * Gets tables of a given schema in a SQL pool. - * @summary Gets tables of a given schema in a SQL pool - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listBySchemaNext(nextPageLink: string, options?: Models.SqlPoolTablesListBySchemaNextOptionalParams): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listBySchemaNext(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 + * ListBySchemaNext + * @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 nextLink The nextLink from the previous successful call to the ListBySchema method. + * @param options The options parameters. */ - listBySchemaNext(nextPageLink: string, options: Models.SqlPoolTablesListBySchemaNextOptionalParams, callback: msRest.ServiceCallback): void; - listBySchemaNext(nextPageLink: string, options?: Models.SqlPoolTablesListBySchemaNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listBySchemaNext( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + nextLink: string, + options?: SqlPoolTablesListBySchemaNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { - nextPageLink, + resourceGroupName, + workspaceName, + sqlPoolName, + schemaName, + nextLink, options }, - listBySchemaNextOperationSpec, - callback) as Promise; + listBySchemaNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listBySchemaOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listBySchemaOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables", + responses: { + 200: { + bodyMapper: Mappers.SqlPoolTableListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion, Parameters.filter], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, Parameters.schemaName ], - queryParameters: [ - Parameters.apiVersion, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPoolTableListResult + bodyMapper: Mappers.SqlPoolTable }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/schemas/{schemaName}/tables/{tableName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, @@ -181,44 +250,28 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.schemaName, Parameters.tableName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SqlPoolTable - }, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.accept], serializer }; - -const listBySchemaNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listBySchemaNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.filter - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SqlPoolTableListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion, Parameters.filter], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.sqlPoolName, + Parameters.schemaName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolTransparentDataEncryptions.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolTransparentDataEncryptions.ts index 92ab71c97ec7..734932205b98 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolTransparentDataEncryptions.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolTransparentDataEncryptions.ts @@ -3,191 +3,226 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/sqlPoolTransparentDataEncryptionsMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SqlPoolTransparentDataEncryptions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + TransparentDataEncryption, + SqlPoolTransparentDataEncryptionsListNextOptionalParams, + SqlPoolTransparentDataEncryptionsListOptionalParams, + TransparentDataEncryptionName, + SqlPoolTransparentDataEncryptionsGetOptionalParams, + SqlPoolTransparentDataEncryptionsGetResponse, + SqlPoolTransparentDataEncryptionsCreateOrUpdateOptionalParams, + SqlPoolTransparentDataEncryptionsCreateOrUpdateResponse, + SqlPoolTransparentDataEncryptionsListResponse, + SqlPoolTransparentDataEncryptionsListNextResponse +} from "../models"; -/** Class representing a SqlPoolTransparentDataEncryptions. */ -export class SqlPoolTransparentDataEncryptions { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing SqlPoolTransparentDataEncryptions operations. */ +export class SqlPoolTransparentDataEncryptionsImpl + implements SqlPoolTransparentDataEncryptions { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolTransparentDataEncryptions. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolTransparentDataEncryptions class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** - * Get a SQL pool's transparent data encryption configuration. - * @summary Get a SQL pool's transparent data encryption configuration - * @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; - /** + * Get list of SQL pool's transparent data encryption configurations. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, callback: msRest.ServiceCallback): void; + public list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolTransparentDataEncryptionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolTransparentDataEncryptionsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + sqlPoolName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolTransparentDataEncryptionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + )) { + yield* page; + } + } + /** + * Get a SQL pool's transparent data encryption configuration. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param options The optional parameters - * @param callback The callback + * @param transparentDataEncryptionName The name of the transparent data encryption configuration. + * @param options The options parameters. */ - 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 { + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + transparentDataEncryptionName: TransparentDataEncryptionName, + options?: SqlPoolTransparentDataEncryptionsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, + transparentDataEncryptionName, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } /** * Creates or updates a Sql pool's transparent data encryption configuration. - * @summary Creates or updates a Sql pool's transparent data encryption configuration - * @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 required parameters for creating or updating transparent data encryption. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.TransparentDataEncryption, 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 required parameters for creating or updating transparent data encryption. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.TransparentDataEncryption, 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 workspaceName The name of the workspace. * @param sqlPoolName SQL pool name + * @param transparentDataEncryptionName The name of the transparent data encryption configuration. * @param parameters The required parameters for creating or updating transparent data encryption. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.TransparentDataEncryption, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.TransparentDataEncryption, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + transparentDataEncryptionName: TransparentDataEncryptionName, + parameters: TransparentDataEncryption, + options?: SqlPoolTransparentDataEncryptionsCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, + transparentDataEncryptionName, parameters, options }, - createOrUpdateOperationSpec, - callback) as Promise; + createOrUpdateOperationSpec + ); } /** * Get list of SQL pool's transparent data encryption configurations. - * @summary SQL pool's transparent data encryption configurations - * @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 - */ - list(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 workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param callback The callback + * @param options The options parameters. */ - list(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 - */ - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolTransparentDataEncryptionsListOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - options - }, - listOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, options }, + listOperationSpec + ); } /** - * Get list of SQL pool's transparent data encryption configurations. - * @summary SQL pool's transparent data encryption configurations - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @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 nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + nextLink: string, + options?: SqlPoolTransparentDataEncryptionsListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/transparentDataEncryption/{transparentDataEncryptionName}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/transparentDataEncryption/{transparentDataEncryptionName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.sqlPoolName, - Parameters.transparentDataEncryptionName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.TransparentDataEncryption @@ -196,32 +231,22 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/transparentDataEncryption/{transparentDataEncryptionName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, Parameters.transparentDataEncryptionName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.TransparentDataEncryption, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/transparentDataEncryption/{transparentDataEncryptionName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.TransparentDataEncryption @@ -233,55 +258,59 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/transparentDataEncryption", + requestBody: Parameters.parameters4, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.sqlPoolName, + Parameters.transparentDataEncryptionName ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/transparentDataEncryption", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.TransparentDataEncryptionListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName + ], + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.TransparentDataEncryptionListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.sqlPoolName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolUsages.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolUsages.ts index e5fbc33392c3..89cf3627e0b5 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolUsages.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolUsages.ts @@ -3,112 +3,163 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/sqlPoolUsagesMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SqlPoolUsages } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + SqlPoolUsage, + SqlPoolUsagesListNextOptionalParams, + SqlPoolUsagesListOptionalParams, + SqlPoolUsagesListResponse, + SqlPoolUsagesListNextResponse +} from "../models"; -/** Class representing a SqlPoolUsages. */ -export class SqlPoolUsages { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing SqlPoolUsages operations. */ +export class SqlPoolUsagesImpl implements SqlPoolUsages { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolUsages. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolUsages class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Gets SQL pool usages. - * @summary Gets SQL pool usages * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(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 - */ - list(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 - */ - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolUsagesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolUsagesListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( resourceGroupName, workspaceName, sqlPoolName, + continuationToken, options - }, - listOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolUsagesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + )) { + yield* page; + } } /** * Gets SQL pool usages. - * @summary Gets SQL pool usages - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback + * @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 options parameters. */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + private _list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolUsagesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, sqlPoolName, options }, + listOperationSpec + ); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @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 nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + nextLink: string, + options?: SqlPoolUsagesListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/usages", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/usages", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.sqlPoolName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.SqlPoolUsageListResult @@ -117,22 +168,20 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName + ], + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SqlPoolUsageListResult @@ -141,5 +190,15 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.sqlPoolName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentRuleBaselines.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentRuleBaselines.ts index 2e0bec440b0e..d18e42487bbc 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentRuleBaselines.ts @@ -3,189 +3,162 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/sqlPoolVulnerabilityAssessmentRuleBaselinesMappers"; +import { SqlPoolVulnerabilityAssessmentRuleBaselines } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + VulnerabilityAssessmentName, + SqlPoolVulnerabilityAssessmentRuleBaseline, + VulnerabilityAssessmentPolicyBaselineName, + SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams, + SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse, + SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams, + SqlPoolVulnerabilityAssessmentRuleBaselinesGetOptionalParams, + SqlPoolVulnerabilityAssessmentRuleBaselinesGetResponse +} from "../models"; -/** Class representing a SqlPoolVulnerabilityAssessmentRuleBaselines. */ -export class SqlPoolVulnerabilityAssessmentRuleBaselines { - private readonly client: SynapseManagementClientContext; +/** Class containing SqlPoolVulnerabilityAssessmentRuleBaselines operations. */ +export class SqlPoolVulnerabilityAssessmentRuleBaselinesImpl + implements SqlPoolVulnerabilityAssessmentRuleBaselines { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolVulnerabilityAssessmentRuleBaselines. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolVulnerabilityAssessmentRuleBaselines class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Creates or updates a Sql pool'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 workspaceName The name of the workspace. * @param sqlPoolName SQL pool name + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @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 workspace level rule). Possible values include: - * 'master', 'default' + * baseline on a Sql pool level rule and master for workspace level rule). * @param parameters The requested rule baseline resource. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.SqlPoolVulnerabilityAssessmentRuleBaseline, 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 workspace level rule). Possible values include: - * 'master', 'default' - * @param parameters The requested rule baseline resource. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.SqlPoolVulnerabilityAssessmentRuleBaseline, 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 workspace level rule). Possible values include: - * 'master', 'default' - * @param parameters The requested rule baseline resource. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.SqlPoolVulnerabilityAssessmentRuleBaseline, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.SqlPoolVulnerabilityAssessmentRuleBaseline, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + ruleId: string, + baselineName: VulnerabilityAssessmentPolicyBaselineName, + parameters: SqlPoolVulnerabilityAssessmentRuleBaseline, + options?: SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams + ): Promise< + SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse + > { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, ruleId, baselineName, parameters, options }, - createOrUpdateOperationSpec, - callback) as Promise; + createOrUpdateOperationSpec + ); } /** * Removes the database'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 workspace level rule). Possible values include: - * 'master', 'default' - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(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 workspaceName The name of the workspace. * @param sqlPoolName SQL pool name + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @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 workspace level rule). Possible values include: - * 'master', 'default' - * @param callback The callback + * baseline on a Sql pool level rule and master for workspace level rule). + * @param options The options parameters. */ - deleteMethod(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 workspace level rule). Possible values include: - * 'master', 'default' - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, workspaceName: string, sqlPoolName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, workspaceName: string, sqlPoolName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + delete( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + ruleId: string, + baselineName: VulnerabilityAssessmentPolicyBaselineName, + options?: SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, ruleId, baselineName, options }, - deleteMethodOperationSpec, - callback); + deleteOperationSpec + ); } /** * 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 workspaceName The name of the workspace. * @param sqlPoolName SQL pool name + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @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 + * baseline on a Sql pool level rule and master for server level rule). + * @param options The options parameters. */ - 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 { + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + ruleId: string, + baselineName: VulnerabilityAssessmentPolicyBaselineName, + options?: SqlPoolVulnerabilityAssessmentRuleBaselinesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, ruleId, baselineName, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const createOrUpdateOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", + responses: { + 200: { + bodyMapper: Mappers.SqlPoolVulnerabilityAssessmentRuleBaseline + }, + default: {} + }, + requestBody: Parameters.parameters11, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, @@ -194,34 +167,18 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.ruleId, Parameters.baselineName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.SqlPoolVulnerabilityAssessmentRuleBaseline, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.SqlPoolVulnerabilityAssessmentRuleBaseline - }, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; - -const deleteMethodOperationSpec: msRest.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", + responses: { 200: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, @@ -230,26 +187,21 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.ruleId, Parameters.baselineName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, serializer }; - -const getOperationSpec: msRest.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}", + responses: { + 200: { + bodyMapper: Mappers.SqlPoolVulnerabilityAssessmentRuleBaseline + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, @@ -258,19 +210,6 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.ruleId, Parameters.baselineName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SqlPoolVulnerabilityAssessmentRuleBaseline - }, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentScans.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentScans.ts index 22e3f374b27d..99a438e7c942 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentScans.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessmentScans.ts @@ -3,245 +3,386 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/sqlPoolVulnerabilityAssessmentScansMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SqlPoolVulnerabilityAssessmentScans } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + VulnerabilityAssessmentScanRecord, + VulnerabilityAssessmentName, + SqlPoolVulnerabilityAssessmentScansListNextOptionalParams, + SqlPoolVulnerabilityAssessmentScansListOptionalParams, + SqlPoolVulnerabilityAssessmentScansListResponse, + SqlPoolVulnerabilityAssessmentScansInitiateScanOptionalParams, + SqlPoolVulnerabilityAssessmentScansExportOptionalParams, + SqlPoolVulnerabilityAssessmentScansExportResponse, + SqlPoolVulnerabilityAssessmentScansGetOptionalParams, + SqlPoolVulnerabilityAssessmentScansGetResponse, + SqlPoolVulnerabilityAssessmentScansListNextResponse +} from "../models"; -/** Class representing a SqlPoolVulnerabilityAssessmentScans. */ -export class SqlPoolVulnerabilityAssessmentScans { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing SqlPoolVulnerabilityAssessmentScans operations. */ +export class SqlPoolVulnerabilityAssessmentScansImpl + implements SqlPoolVulnerabilityAssessmentScans { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolVulnerabilityAssessmentScans. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolVulnerabilityAssessmentScans class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Lists the vulnerability assessment scans of a SQL pool. - * @summary Lists the vulnerability assessment scans 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 workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @returns Promise + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. */ - list(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 - */ - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, callback: msRest.ServiceCallback): void; + public list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlPoolVulnerabilityAssessmentScansListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + sqlPoolName, + vulnerabilityAssessmentName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + vulnerabilityAssessmentName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlPoolVulnerabilityAssessmentScansListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + workspaceName, + sqlPoolName, + vulnerabilityAssessmentName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + sqlPoolName, + vulnerabilityAssessmentName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlPoolVulnerabilityAssessmentScansListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + vulnerabilityAssessmentName, + options + )) { + yield* page; + } + } + /** + * Lists the vulnerability assessment scans 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 workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param options The optional parameters - * @param callback The callback + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. */ - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlPoolVulnerabilityAssessmentScansListOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, options }, - listOperationSpec, - callback) as Promise; + listOperationSpec + ); } /** * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - initiateScan(resourceGroupName: string, workspaceName: string, sqlPoolName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginInitiateScan(resourceGroupName,workspaceName,sqlPoolName,scanId,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } + async beginInitiateScan( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: SqlPoolVulnerabilityAssessmentScansInitiateScanOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; - /** - * Convert an existing scan result to a human readable format. If already exists nothing happens - * @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 - */ - exportMethod(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 - */ - exportMethod(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 - */ - exportMethod(resourceGroupName: string, workspaceName: string, sqlPoolName: string, scanId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - exportMethod(resourceGroupName: string, workspaceName: string, sqlPoolName: string, scanId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( + const lro = new LroImpl( + sendOperation, { resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, scanId, options }, - exportMethodOperationSpec, - callback) as Promise; + initiateScanOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); } /** - * 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; - /** + * Executes a Vulnerability Assessment database scan. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, scanId: string, callback: msRest.ServiceCallback): void; + async beginInitiateScanAndWait( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: SqlPoolVulnerabilityAssessmentScansInitiateScanOptionalParams + ): Promise { + const poller = await this.beginInitiateScan( + resourceGroupName, + workspaceName, + sqlPoolName, + vulnerabilityAssessmentName, + scanId, + options + ); + return poller.pollUntilDone(); + } + /** + * Convert an existing scan result to a human readable format. If already exists nothing happens * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - 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 { + export( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: SqlPoolVulnerabilityAssessmentScansExportOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, scanId, options }, - getOperationSpec, - callback) as Promise; + exportOperationSpec + ); } /** - * Executes a Vulnerability Assessment database scan. + * 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 workspaceName The name of the workspace. * @param sqlPoolName SQL pool name + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginInitiateScan(resourceGroupName: string, workspaceName: string, sqlPoolName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: SqlPoolVulnerabilityAssessmentScansGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, scanId, options }, - beginInitiateScanOperationSpec, - options); + getOperationSpec + ); } /** - * Lists the vulnerability assessment scans of a SQL pool. - * @summary Lists the vulnerability assessment scans of a SQL pool - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + nextLink: string, + options?: SqlPoolVulnerabilityAssessmentScansListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { - nextPageLink, + resourceGroupName, + workspaceName, + sqlPoolName, + vulnerabilityAssessmentName, + nextLink, options }, - listNextOperationSpec, - callback) as Promise; + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", + responses: { + 200: { + bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, Parameters.vulnerabilityAssessmentName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.accept], serializer }; - -const exportMethodOperationSpec: msRest.OperationSpec = { +const initiateScanOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan", httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/export", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, @@ -249,12 +390,12 @@ const exportMethodOperationSpec: msRest.OperationSpec = { Parameters.vulnerabilityAssessmentName, Parameters.scanId ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + serializer +}; +const exportOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/export", + httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.SqlPoolVulnerabilityAssessmentScansExport @@ -262,17 +403,11 @@ const exportMethodOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.SqlPoolVulnerabilityAssessmentScansExport }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, @@ -280,27 +415,22 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.vulnerabilityAssessmentName, Parameters.scanId ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.VulnerabilityAssessmentScanRecord }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, - serializer -}; - -const beginInitiateScanOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/initiateScan", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, @@ -308,42 +438,28 @@ const beginInitiateScanOperationSpec: msRest.OperationSpec = { Parameters.vulnerabilityAssessmentName, Parameters.scanId ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.sqlPoolName, + Parameters.vulnerabilityAssessmentName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessments.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessments.ts index b8cb8095fdf4..9dc6b9187639 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessments.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolVulnerabilityAssessments.ts @@ -3,288 +3,297 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/sqlPoolVulnerabilityAssessmentsMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SqlPoolVulnerabilityAssessments } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + SqlPoolVulnerabilityAssessment, + SqlPoolVulnerabilityAssessmentsListNextOptionalParams, + SqlPoolVulnerabilityAssessmentsListOptionalParams, + SqlPoolVulnerabilityAssessmentsListResponse, + VulnerabilityAssessmentName, + SqlPoolVulnerabilityAssessmentsGetOptionalParams, + SqlPoolVulnerabilityAssessmentsGetResponse, + SqlPoolVulnerabilityAssessmentsCreateOrUpdateOptionalParams, + SqlPoolVulnerabilityAssessmentsCreateOrUpdateResponse, + SqlPoolVulnerabilityAssessmentsDeleteOptionalParams, + SqlPoolVulnerabilityAssessmentsListNextResponse +} from "../models"; -/** Class representing a SqlPoolVulnerabilityAssessments. */ -export class SqlPoolVulnerabilityAssessments { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing SqlPoolVulnerabilityAssessments operations. */ +export class SqlPoolVulnerabilityAssessmentsImpl + implements SqlPoolVulnerabilityAssessments { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolVulnerabilityAssessments. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolVulnerabilityAssessments class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Lists the vulnerability assessment policies associated with a SQL pool. - * @summary Lists the vulnerability assessment policies associated with a SQL pool * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(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 - */ - list(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 - */ - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolVulnerabilityAssessmentsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolVulnerabilityAssessmentsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( resourceGroupName, workspaceName, sqlPoolName, + continuationToken, options - }, - listOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolVulnerabilityAssessmentsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + )) { + yield* page; + } } /** - * Gets the Sql pool's vulnerability assessment. - * @summary Gets the Sql pool's vulnerability assessment - * @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; - /** + * Lists the vulnerability assessment policies associated with a SQL pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, callback: msRest.ServiceCallback): void; + private _list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolVulnerabilityAssessmentsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, sqlPoolName, options }, + listOperationSpec + ); + } + /** + * Gets the Sql pool's vulnerability assessment. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param options The optional parameters - * @param callback The callback + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. */ - 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 { + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlPoolVulnerabilityAssessmentsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } /** * Creates or updates the Sql pool vulnerability assessment. - * @summary Creates or updates the Sql pool vulnerability assessment - * @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 requested resource. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.SqlPoolVulnerabilityAssessment, 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 workspaceName The name of the workspace. * @param sqlPoolName SQL pool name + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param parameters The requested resource. - * @param callback The callback + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.SqlPoolVulnerabilityAssessment, 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 requested resource. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.SqlPoolVulnerabilityAssessment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.SqlPoolVulnerabilityAssessment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + parameters: SqlPoolVulnerabilityAssessment, + options?: SqlPoolVulnerabilityAssessmentsCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, parameters, options }, - createOrUpdateOperationSpec, - callback) as Promise; + createOrUpdateOperationSpec + ); } /** * Removes the database's vulnerability assessment. - * @summary Removes the database's vulnerability assessment - * @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 - */ - deleteMethod(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 - */ - deleteMethod(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 workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param options The optional parameters - * @param callback The callback + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. */ - deleteMethod(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + delete( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlPoolVulnerabilityAssessmentsDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, + vulnerabilityAssessmentName, options }, - deleteMethodOperationSpec, - callback); + deleteOperationSpec + ); } /** - * Lists the vulnerability assessment policies associated with a SQL pool. - * @summary Lists the vulnerability assessment policies associated with a SQL pool - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @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 nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + nextLink: string, + options?: SqlPoolVulnerabilityAssessmentsListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.sqlPoolName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.SqlPoolVulnerabilityAssessmentListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName, - Parameters.vulnerabilityAssessmentName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.sqlPoolName ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SqlPoolVulnerabilityAssessment }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, Parameters.vulnerabilityAssessmentName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.SqlPoolVulnerabilityAssessment, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.SqlPoolVulnerabilityAssessment @@ -292,59 +301,56 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.SqlPoolVulnerabilityAssessment }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + requestBody: Parameters.parameters9, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName, + Parameters.vulnerabilityAssessmentName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; - -const deleteMethodOperationSpec: msRest.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", + responses: { 200: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, Parameters.vulnerabilityAssessmentName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SqlPoolVulnerabilityAssessmentListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.sqlPoolName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolWorkloadClassifier.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolWorkloadClassifier.ts index 0ec32f4da3c3..c819669dbf6f 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolWorkloadClassifier.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolWorkloadClassifier.ts @@ -3,61 +3,150 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/sqlPoolWorkloadClassifierMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SqlPoolWorkloadClassifier } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + WorkloadClassifier, + SqlPoolWorkloadClassifierListNextOptionalParams, + SqlPoolWorkloadClassifierListOptionalParams, + SqlPoolWorkloadClassifierGetOptionalParams, + SqlPoolWorkloadClassifierGetResponse, + SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams, + SqlPoolWorkloadClassifierCreateOrUpdateResponse, + SqlPoolWorkloadClassifierDeleteOptionalParams, + SqlPoolWorkloadClassifierListResponse, + SqlPoolWorkloadClassifierListNextResponse +} from "../models"; -/** Class representing a SqlPoolWorkloadClassifier. */ -export class SqlPoolWorkloadClassifier { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing SqlPoolWorkloadClassifier operations. */ +export class SqlPoolWorkloadClassifierImpl + implements SqlPoolWorkloadClassifier { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolWorkloadClassifier. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolWorkloadClassifier class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** - * Get a workload classifier of Sql pool's workload group. - * @summary Get workload classifier - * @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 workloadGroupName The name of the workload group. - * @param workloadClassifierName The name of the workload classifier. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, options?: msRest.RequestOptionsBase): Promise; - /** + * Get list of Sql pool's workload classifier for workload groups. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param workloadGroupName The name of the workload group. - * @param workloadClassifierName The name of the workload classifier. - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, callback: msRest.ServiceCallback): void; + public list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + options?: SqlPoolWorkloadClassifierListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + sqlPoolName, + workloadGroupName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + workloadGroupName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + options?: SqlPoolWorkloadClassifierListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + workspaceName, + sqlPoolName, + workloadGroupName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + sqlPoolName, + workloadGroupName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + options?: SqlPoolWorkloadClassifierListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + workloadGroupName, + options + )) { + yield* page; + } + } + /** + * Get a workload classifier of Sql pool's workload group. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param workloadGroupName The name of the workload group. * @param workloadClassifierName The name of the workload classifier. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + workloadClassifierName: string, + options?: SqlPoolWorkloadClassifierGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -67,172 +156,298 @@ export class SqlPoolWorkloadClassifier { workloadClassifierName, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } /** * Create Or Update workload classifier for a Sql pool's workload group. - * @summary Create Or Update workload classifier * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param workloadGroupName The name of the workload group. * @param workloadClassifierName The name of the workload classifier. * @param parameters The properties of the workload classifier. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, parameters: Models.WorkloadClassifier, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,workspaceName,sqlPoolName,workloadGroupName,workloadClassifierName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + workloadClassifierName: string, + parameters: WorkloadClassifier, + options?: SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + SqlPoolWorkloadClassifierCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { + resourceGroupName, + workspaceName, + sqlPoolName, + workloadGroupName, + workloadClassifierName, + parameters, + options + }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); } /** - * Remove workload classifier of a Sql pool's workload group. - * @summary Remove workload classifier + * Create Or Update workload classifier for a Sql pool's workload group. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param workloadGroupName The name of the workload group. * @param workloadClassifierName The name of the workload classifier. - * @param [options] The optional parameters - * @returns Promise + * @param parameters The properties of the workload classifier. + * @param options The options parameters. */ - deleteMethod(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,workspaceName,sqlPoolName,workloadGroupName,workloadClassifierName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + workloadClassifierName: string, + parameters: WorkloadClassifier, + options?: SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + sqlPoolName, + workloadGroupName, + workloadClassifierName, + parameters, + options + ); + return poller.pollUntilDone(); } /** - * Get list of Sql pool's workload classifier for workload groups. - * @summary Sql pool's workload classifier - * @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 workloadGroupName The name of the workload group. - * @param [options] The optional parameters - * @returns Promise - */ - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: 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 workloadGroupName The name of the workload group. - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, callback: msRest.ServiceCallback): void; - /** + * Remove workload classifier of a Sql pool's workload group. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param workloadGroupName The name of the workload group. - * @param options The optional parameters - * @param callback The callback + * @param workloadClassifierName The name of the workload classifier. + * @param options The options parameters. */ - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( + async beginDelete( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + workloadClassifierName: string, + options?: SqlPoolWorkloadClassifierDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, { resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, + workloadClassifierName, options }, - listOperationSpec, - callback) as Promise; + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); } /** - * Create Or Update workload classifier for a Sql pool's workload group. - * @summary Create Or Update workload classifier + * Remove workload classifier of a Sql pool's workload group. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param workloadGroupName The name of the workload group. * @param workloadClassifierName The name of the workload classifier. - * @param parameters The properties of the workload classifier. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, parameters: Models.WorkloadClassifier, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - workloadClassifierName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + workloadClassifierName: string, + options?: SqlPoolWorkloadClassifierDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + sqlPoolName, + workloadGroupName, + workloadClassifierName, + options + ); + return poller.pollUntilDone(); } /** - * Remove workload classifier of a Sql pool's workload group. - * @summary Remove workload classifier + * Get list of Sql pool's workload classifier for workload groups. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param workloadGroupName The name of the workload group. - * @param workloadClassifierName The name of the workload classifier. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginDeleteMethod(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, workloadClassifierName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( + private _list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + options?: SqlPoolWorkloadClassifierListOptionalParams + ): Promise { + return this.client.sendOperationRequest( { resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, - workloadClassifierName, options }, - beginDeleteMethodOperationSpec, - options); + listOperationSpec + ); } /** - * Get list of Sql pool's workload classifier for workload groups. - * @summary Sql pool's workload classifier - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @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 workloadGroupName The name of the workload group. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + nextLink: string, + options?: SqlPoolWorkloadClassifierListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { - nextPageLink, + resourceGroupName, + workspaceName, + sqlPoolName, + workloadGroupName, + nextLink, options }, - listNextOperationSpec, - callback) as Promise; + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}", + responses: { + 200: { + bodyMapper: Mappers.WorkloadClassifier + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, @@ -240,54 +455,51 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.workloadGroupName, Parameters.workloadClassifierName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.WorkloadClassifier }, - default: { - bodyMapper: Mappers.CloudError - } + 201: { + bodyMapper: Mappers.WorkloadClassifier + }, + 202: { + bodyMapper: Mappers.WorkloadClassifier + }, + 204: { + bodyMapper: Mappers.WorkloadClassifier + }, + default: {} }, - serializer -}; - -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers", + requestBody: Parameters.parameters16, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.workloadGroupName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workloadGroupName, + Parameters.workloadClassifierName ], - responses: { - 200: { - bodyMapper: Mappers.WorkloadClassifierListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}", +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}", + httpMethod: "DELETE", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, @@ -295,82 +507,49 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.workloadGroupName, Parameters.workloadClassifierName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.WorkloadClassifier, - required: true - } - }, + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkloadClassifier - }, - 201: { - bodyMapper: Mappers.WorkloadClassifier + bodyMapper: Mappers.WorkloadClassifierListResult }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, - Parameters.workloadGroupName, - Parameters.workloadClassifierName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workloadGroupName ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.WorkloadClassifierListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.sqlPoolName, + Parameters.workloadGroupName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPoolWorkloadGroup.ts b/sdk/synapse/arm-synapse/src/operations/sqlPoolWorkloadGroup.ts index c608550377c9..466d7815819a 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPoolWorkloadGroup.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPoolWorkloadGroup.ts @@ -3,58 +3,138 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/sqlPoolWorkloadGroupMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SqlPoolWorkloadGroup } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + WorkloadGroup, + SqlPoolWorkloadGroupListNextOptionalParams, + SqlPoolWorkloadGroupListOptionalParams, + SqlPoolWorkloadGroupGetOptionalParams, + SqlPoolWorkloadGroupGetResponse, + SqlPoolWorkloadGroupCreateOrUpdateOptionalParams, + SqlPoolWorkloadGroupCreateOrUpdateResponse, + SqlPoolWorkloadGroupDeleteOptionalParams, + SqlPoolWorkloadGroupListResponse, + SqlPoolWorkloadGroupListNextResponse +} from "../models"; -/** Class representing a SqlPoolWorkloadGroup. */ -export class SqlPoolWorkloadGroup { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing SqlPoolWorkloadGroup operations. */ +export class SqlPoolWorkloadGroupImpl implements SqlPoolWorkloadGroup { + private readonly client: SynapseManagementClient; /** - * Create a SqlPoolWorkloadGroup. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPoolWorkloadGroup class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** - * Get a Sql pool's workload group. - * @summary Sql pool's workload group - * @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 workloadGroupName The name of the workload group. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, options?: msRest.RequestOptionsBase): Promise; - /** + * Get list of Sql pool's workload groups. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param workloadGroupName The name of the workload group. - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, callback: msRest.ServiceCallback): void; + public list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolWorkloadGroupListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolWorkloadGroupListOptionalParams + ): AsyncIterableIterator { + let result = await this._list( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + sqlPoolName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolWorkloadGroupListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + sqlPoolName, + options + )) { + yield* page; + } + } + /** + * Get a Sql pool's workload group. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param workloadGroupName The name of the workload group. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + options?: SqlPoolWorkloadGroupGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -63,115 +143,173 @@ export class SqlPoolWorkloadGroup { workloadGroupName, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } /** * Create Or Update a Sql pool's workload group. - * @summary Create Or Update workload group * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param workloadGroupName The name of the workload group. * @param parameters The requested workload group state. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, parameters: Models.WorkloadGroup, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,workspaceName,sqlPoolName,workloadGroupName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + parameters: WorkloadGroup, + options?: SqlPoolWorkloadGroupCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + SqlPoolWorkloadGroupCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; - /** - * Remove Sql pool's workload group. - * @summary Remove workload group - * @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 workloadGroupName The name of the workload group. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,workspaceName,sqlPoolName,workloadGroupName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Get list of Sql pool's workload groups. - * @summary Sql pool's workload groups - * @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 - */ - list(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 - */ - list(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 - */ - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( + const lro = new LroImpl( + sendOperation, { resourceGroupName, workspaceName, sqlPoolName, + workloadGroupName, + parameters, options }, - listOperationSpec, - callback) as Promise; + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); } /** * Create Or Update a Sql pool's workload group. - * @summary Create Or Update workload group * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param workloadGroupName The name of the workload group. * @param parameters The requested workload group state. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, parameters: Models.WorkloadGroup, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - workloadGroupName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + parameters: WorkloadGroup, + options?: SqlPoolWorkloadGroupCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + sqlPoolName, + workloadGroupName, + parameters, + options + ); + return poller.pollUntilDone(); } /** * Remove Sql pool's workload group. - * @summary Remove workload group * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param workloadGroupName The name of the workload group. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginDeleteMethod(resourceGroupName: string, workspaceName: string, sqlPoolName: string, workloadGroupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( + async beginDelete( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + options?: SqlPoolWorkloadGroupDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, { resourceGroupName, workspaceName, @@ -179,180 +317,192 @@ export class SqlPoolWorkloadGroup { workloadGroupName, options }, - beginDeleteMethodOperationSpec, - options); + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); } /** - * Get list of Sql pool's workload groups. - * @summary Sql pool's workload groups - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise + * Remove Sql pool's workload group. + * @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 workloadGroupName The name of the workload group. + * @param options The options parameters. */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + options?: SqlPoolWorkloadGroupDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + sqlPoolName, + workloadGroupName, + options + ); + return poller.pollUntilDone(); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback + * Get list of Sql pool's workload groups. + * @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 options parameters. */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + private _list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolWorkloadGroupListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, sqlPoolName, options }, + listOperationSpec + ); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @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 nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + nextLink: string, + options?: SqlPoolWorkloadGroupListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}", + responses: { + 200: { + bodyMapper: Mappers.WorkloadGroup + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, Parameters.workloadGroupName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.WorkloadGroup }, - default: { - bodyMapper: Mappers.CloudError - } + 201: { + bodyMapper: Mappers.WorkloadGroup + }, + 202: { + bodyMapper: Mappers.WorkloadGroup + }, + 204: { + bodyMapper: Mappers.WorkloadGroup + }, + default: {} }, - serializer -}; - -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups", + requestBody: Parameters.parameters15, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.sqlPoolName, + Parameters.workloadGroupName ], - responses: { - 200: { - bodyMapper: Mappers.WorkloadGroupListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}", +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}", + httpMethod: "DELETE", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName, Parameters.workloadGroupName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.WorkloadGroup, - required: true - } - }, + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkloadGroup - }, - 201: { - bodyMapper: Mappers.WorkloadGroup + bodyMapper: Mappers.WorkloadGroupListResult }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.sqlPoolName, - Parameters.workloadGroupName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.sqlPoolName ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.WorkloadGroupListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.sqlPoolName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/sqlPools.ts b/sdk/synapse/arm-synapse/src/operations/sqlPools.ts index 44f07b7ecdb6..d5bd289bdcbb 100644 --- a/sdk/synapse/arm-synapse/src/operations/sqlPools.ts +++ b/sdk/synapse/arm-synapse/src/operations/sqlPools.ts @@ -3,371 +3,594 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/sqlPoolsMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SqlPools } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + SqlPool, + SqlPoolsListByWorkspaceNextOptionalParams, + SqlPoolsListByWorkspaceOptionalParams, + SqlPoolsGetOptionalParams, + SqlPoolsGetResponse, + SqlPoolPatchInfo, + SqlPoolsUpdateOptionalParams, + SqlPoolsUpdateResponse, + SqlPoolsCreateOptionalParams, + SqlPoolsCreateResponse, + SqlPoolsDeleteOptionalParams, + SqlPoolsDeleteResponse, + SqlPoolsListByWorkspaceResponse, + SqlPoolsPauseOptionalParams, + SqlPoolsPauseResponse, + SqlPoolsResumeOptionalParams, + SqlPoolsResumeResponse, + ResourceMoveDefinition, + SqlPoolsRenameOptionalParams, + SqlPoolsListByWorkspaceNextResponse +} from "../models"; -/** Class representing a SqlPools. */ -export class SqlPools { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing SqlPools operations. */ +export class SqlPoolsImpl implements SqlPools { + private readonly client: SynapseManagementClient; /** - * Create a SqlPools. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class SqlPools class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** - * Get SQL pool properties - * @summary Get 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 - */ - 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; - /** + * List all SQL pools * @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 + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - 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( - { + public listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: SqlPoolsListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByWorkspacePagingAll( + resourceGroupName, + workspaceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + ); + } + }; + } + + private async *listByWorkspacePagingPage( + resourceGroupName: string, + workspaceName: string, + options?: SqlPoolsListByWorkspaceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByWorkspace( + resourceGroupName, + workspaceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByWorkspaceNext( resourceGroupName, workspaceName, - sqlPoolName, + continuationToken, options - }, - getOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByWorkspacePagingAll( + resourceGroupName: string, + workspaceName: string, + options?: SqlPoolsListByWorkspaceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } } /** - * Apply a partial update to a SQL pool - * @summary Update 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 sqlPoolInfo The updated SQL pool properties - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, workspaceName: string, sqlPoolName: string, sqlPoolInfo: Models.SqlPoolPatchInfo, options?: msRest.RequestOptionsBase): Promise; - /** + * Get SQL pool properties * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param sqlPoolInfo The updated SQL pool properties - * @param callback The callback + * @param options The options parameters. */ - update(resourceGroupName: string, workspaceName: string, sqlPoolName: string, sqlPoolInfo: Models.SqlPoolPatchInfo, callback: msRest.ServiceCallback): void; + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, sqlPoolName, options }, + getOperationSpec + ); + } + /** + * Apply a partial update to a SQL pool * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param sqlPoolInfo The updated SQL pool properties - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - update(resourceGroupName: string, workspaceName: string, sqlPoolName: string, sqlPoolInfo: Models.SqlPoolPatchInfo, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, workspaceName: string, sqlPoolName: string, sqlPoolInfo: Models.SqlPoolPatchInfo, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + sqlPoolInfo: SqlPoolPatchInfo, + options?: SqlPoolsUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - sqlPoolInfo, - options - }, - updateOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, options }, + updateOperationSpec + ); } /** * Create a SQL pool - * @summary Create SQL pool * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name * @param sqlPoolInfo The SQL pool to create - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - create(resourceGroupName: string, workspaceName: string, sqlPoolName: string, sqlPoolInfo: Models.SqlPool, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreate(resourceGroupName,workspaceName,sqlPoolName,sqlPoolInfo,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + async beginCreate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + sqlPoolInfo: SqlPool, + options?: SqlPoolsCreateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + SqlPoolsCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, options }, + createOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); } /** - * Delete a SQL pool - * @summary Delete SQL pool + * Create a SQL pool * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @returns Promise + * @param sqlPoolInfo The SQL pool to create + * @param options The options parameters. */ - deleteMethod(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,workspaceName,sqlPoolName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + async beginCreateAndWait( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + sqlPoolInfo: SqlPool, + options?: SqlPoolsCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + workspaceName, + sqlPoolName, + sqlPoolInfo, + options + ); + return poller.pollUntilDone(); } /** - * List all SQL pools - * @summary List SQL pools - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** + * Delete a SQL pool * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback + * @param workspaceName The name of the workspace. + * @param sqlPoolName SQL pool name + * @param options The options parameters. */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - listByWorkspaceOperationSpec, - callback) as Promise; + async beginDelete( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolsDeleteOptionalParams + ): Promise< + PollerLike< + PollOperationState, + SqlPoolsDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, sqlPoolName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); } /** - * Pause a SQL pool - * @summary Pause SQL pool + * Delete a SQL pool * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - pause(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginPause(resourceGroupName,workspaceName,sqlPoolName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + return poller.pollUntilDone(); } /** - * Resume a SQL pool - * @summary Resume SQL pool + * List all SQL pools * @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 + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - resume(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginResume(resourceGroupName,workspaceName,sqlPoolName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + private _listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: SqlPoolsListByWorkspaceOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listByWorkspaceOperationSpec + ); } /** - * Rename a SQL pool. - * @summary Rename 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 parameters The resource move definition for renaming this Sql pool. - * @param [options] The optional parameters - * @returns Promise - */ - rename(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.ResourceMoveDefinition, 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 resource move definition for renaming this Sql pool. - * @param callback The callback - */ - rename(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.ResourceMoveDefinition, callback: msRest.ServiceCallback): void; - /** + * Pause a SQL pool * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param parameters The resource move definition for renaming this Sql pool. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - rename(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.ResourceMoveDefinition, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - rename(resourceGroupName: string, workspaceName: string, sqlPoolName: string, parameters: Models.ResourceMoveDefinition, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - parameters, - options - }, - renameOperationSpec, - callback); + async beginPause( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolsPauseOptionalParams + ): Promise< + PollerLike, SqlPoolsPauseResponse> + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, sqlPoolName, options }, + pauseOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); } /** - * Create a SQL pool - * @summary Create SQL pool + * Pause a SQL pool * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param sqlPoolInfo The SQL pool to create - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginCreate(resourceGroupName: string, workspaceName: string, sqlPoolName: string, sqlPoolInfo: Models.SqlPool, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - sqlPoolInfo, - options - }, - beginCreateOperationSpec, - options); + async beginPauseAndWait( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolsPauseOptionalParams + ): Promise { + const poller = await this.beginPause( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + return poller.pollUntilDone(); } /** - * Delete a SQL pool - * @summary Delete SQL pool + * Resume a SQL pool * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginDeleteMethod(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - options - }, - beginDeleteMethodOperationSpec, - options); + async beginResume( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolsResumeOptionalParams + ): Promise< + PollerLike< + PollOperationState, + SqlPoolsResumeResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, sqlPoolName, options }, + resumeOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); } /** - * Pause a SQL pool - * @summary Pause SQL pool + * Resume a SQL pool * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginPause(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - options - }, - beginPauseOperationSpec, - options); + async beginResumeAndWait( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolsResumeOptionalParams + ): Promise { + const poller = await this.beginResume( + resourceGroupName, + workspaceName, + sqlPoolName, + options + ); + return poller.pollUntilDone(); } /** - * Resume a SQL pool - * @summary Resume SQL pool + * Rename a SQL pool. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName SQL pool name - * @param [options] The optional parameters - * @returns Promise + * @param parameters The resource move definition for renaming this Sql pool. + * @param options The options parameters. */ - beginResume(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - options - }, - beginResumeOperationSpec, - options); + rename( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + parameters: ResourceMoveDefinition, + options?: SqlPoolsRenameOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, sqlPoolName, parameters, options }, + renameOperationSpec + ); } /** - * List all SQL pools - * @summary List SQL pools - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByWorkspaceNext(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 + * ListByWorkspaceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method. + * @param options The options parameters. */ - listByWorkspaceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listByWorkspaceNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: SqlPoolsListByWorkspaceNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByWorkspaceNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, nextLink, options }, + listByWorkspaceNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.sqlPoolName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.SqlPool @@ -376,31 +599,21 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "sqlPoolInfo", - mapper: { - ...Mappers.SqlPoolPatchInfo, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}", + httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.SqlPool @@ -410,217 +623,216 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const listByWorkspaceOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools", + requestBody: Parameters.sqlPoolInfo, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workspaceName, + Parameters.sqlPoolName ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SqlPoolInfoListResult + bodyMapper: Mappers.SqlPool + }, + 201: { + bodyMapper: Mappers.SqlPool + }, + 202: { + bodyMapper: Mappers.SqlPool + }, + 204: { + bodyMapper: Mappers.SqlPool }, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const renameOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/move", + requestBody: Parameters.sqlPoolInfo1, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ResourceMoveDefinition, - required: true - } - }, + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}", + httpMethod: "DELETE", responses: { - 200: {}, + 200: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + }, + 201: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + }, + 202: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + }, + 204: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginCreateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "sqlPoolInfo", - mapper: { - ...Mappers.SqlPool, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SqlPool + bodyMapper: Mappers.SqlPoolInfoListResult }, - 202: {}, - 404: {}, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.sqlPoolName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workspaceName ], + headerParameters: [Parameters.accept], + serializer +}; +const pauseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/pause", + httpMethod: "POST", responses: { 200: { bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + }, + 201: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } } }, 202: { bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + }, + 204: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } } }, - 204: {}, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginPauseOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/pause", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const resumeOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/resume", + httpMethod: "POST", responses: { 200: { bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + }, + 201: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + }, + 202: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + }, + 204: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } } }, - 202: {}, default: { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.sqlPoolName + ], + headerParameters: [Parameters.accept], serializer }; - -const beginResumeOperationSpec: msRest.OperationSpec = { +const renameOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/move", httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/resume", + responses: { 200: {}, default: {} }, + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, - 202: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, + headerParameters: [Parameters.contentType], + mediaType: "json", serializer }; - -const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.SqlPoolInfoListResult @@ -629,5 +841,14 @@ const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaceAadAdmins.ts b/sdk/synapse/arm-synapse/src/operations/workspaceAadAdmins.ts index 22b9e0039742..c7500feea4a1 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaceAadAdmins.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaceAadAdmins.ts @@ -3,141 +3,233 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/workspaceAadAdminsMappers"; +import { WorkspaceAadAdmins } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + WorkspaceAadAdminsGetOptionalParams, + WorkspaceAadAdminsGetResponse, + WorkspaceAadAdminInfo, + WorkspaceAadAdminsCreateOrUpdateOptionalParams, + WorkspaceAadAdminsCreateOrUpdateResponse, + WorkspaceAadAdminsDeleteOptionalParams +} from "../models"; -/** Class representing a WorkspaceAadAdmins. */ -export class WorkspaceAadAdmins { - private readonly client: SynapseManagementClientContext; +/** Class containing WorkspaceAadAdmins operations. */ +export class WorkspaceAadAdminsImpl implements WorkspaceAadAdmins { + private readonly client: SynapseManagementClient; /** - * Create a WorkspaceAadAdmins. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class WorkspaceAadAdmins class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Gets a workspace active directory admin * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceAadAdminsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - getOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, options }, + getOperationSpec + ); } /** * Creates or updates a workspace active directory admin * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, aadAdminInfo: Models.WorkspaceAadAdminInfo, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,workspaceName,aadAdminInfo,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + aadAdminInfo: WorkspaceAadAdminInfo, + options?: WorkspaceAadAdminsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspaceAadAdminsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, aadAdminInfo, options }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); } /** - * Deletes a workspace active directory admin + * Creates or updates a workspace active directory admin * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param aadAdminInfo Workspace active directory administrator properties + * @param options The options parameters. */ - deleteMethod(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,workspaceName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + aadAdminInfo: WorkspaceAadAdminInfo, + options?: WorkspaceAadAdminsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + aadAdminInfo, + options + ); + return poller.pollUntilDone(); } /** - * Creates or updates a workspace active directory admin + * Deletes a workspace active directory admin * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param aadAdminInfo Workspace active directory administrator properties - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, aadAdminInfo: Models.WorkspaceAadAdminInfo, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - aadAdminInfo, - options - }, - beginCreateOrUpdateOperationSpec, - options); + async beginDelete( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceAadAdminsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); } /** * Deletes a workspace active directory admin * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - beginDeleteMethod(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - options - }, - beginDeleteMethodOperationSpec, - options); + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceAadAdminsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + options + ); + return poller.pollUntilDone(); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/administrators/activeDirectory", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/administrators/activeDirectory", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.WorkspaceAadAdminInfo @@ -146,65 +238,69 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/administrators/activeDirectory", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "aadAdminInfo", - mapper: { - ...Mappers.WorkspaceAadAdminInfo, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/administrators/activeDirectory", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.WorkspaceAadAdminInfo }, + 201: { + bodyMapper: Mappers.WorkspaceAadAdminInfo + }, 202: { bodyMapper: Mappers.WorkspaceAadAdminInfo }, + 204: { + bodyMapper: Mappers.WorkspaceAadAdminInfo + }, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/administrators/activeDirectory", + requestBody: Parameters.aadAdminInfo, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/administrators/activeDirectory", + httpMethod: "DELETE", responses: { 200: {}, + 201: {}, 202: {}, 204: {}, default: { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaceManagedIdentitySqlControlSettings.ts b/sdk/synapse/arm-synapse/src/operations/workspaceManagedIdentitySqlControlSettings.ts index d4b1c52af9cd..e2496c23d27f 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaceManagedIdentitySqlControlSettings.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaceManagedIdentitySqlControlSettings.ts @@ -3,111 +3,159 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/workspaceManagedIdentitySqlControlSettingsMappers"; +import { WorkspaceManagedIdentitySqlControlSettings } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + WorkspaceManagedIdentitySqlControlSettingsGetOptionalParams, + WorkspaceManagedIdentitySqlControlSettingsGetResponse, + ManagedIdentitySqlControlSettingsModel, + WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams, + WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse +} from "../models"; -/** Class representing a WorkspaceManagedIdentitySqlControlSettings. */ -export class WorkspaceManagedIdentitySqlControlSettings { - private readonly client: SynapseManagementClientContext; +/** Class containing WorkspaceManagedIdentitySqlControlSettings operations. */ +export class WorkspaceManagedIdentitySqlControlSettingsImpl + implements WorkspaceManagedIdentitySqlControlSettings { + private readonly client: SynapseManagementClient; /** - * Create a WorkspaceManagedIdentitySqlControlSettings. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class WorkspaceManagedIdentitySqlControlSettings class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** - * @summary Get Managed Identity Sql Control Settings + * Get Managed Identity Sql Control Settings * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedIdentitySqlControlSettingsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - getOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, options }, + getOperationSpec + ); } /** - * @summary Create or update Managed Identity Sql Control Settings + * Create or update Managed Identity Sql Control Settings * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param managedIdentitySqlControlSettings Managed Identity Sql Control Settings - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, managedIdentitySqlControlSettings: Models.ManagedIdentitySqlControlSettingsModel, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,workspaceName,managedIdentitySqlControlSettings,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + managedIdentitySqlControlSettings: ManagedIdentitySqlControlSettingsModel, + options?: WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState< + WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse + >, + WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; - /** - * @summary Create or update Managed Identity Sql Control Settings - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param managedIdentitySqlControlSettings Managed Identity Sql Control Settings - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, managedIdentitySqlControlSettings: Models.ManagedIdentitySqlControlSettingsModel, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( + const lro = new LroImpl( + sendOperation, { resourceGroupName, workspaceName, managedIdentitySqlControlSettings, options }, - beginCreateOrUpdateOperationSpec, - options); + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); } -} + /** + * Create or update Managed Identity Sql Control Settings + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param managedIdentitySqlControlSettings Managed Identity Sql Control Settings + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + managedIdentitySqlControlSettings: ManagedIdentitySqlControlSettingsModel, + options?: WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + managedIdentitySqlControlSettings, + options + ); + return poller.pollUntilDone(); + } +} // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/managedIdentitySqlControlSettings/default", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/managedIdentitySqlControlSettings/default", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.ManagedIdentitySqlControlSettingsModel @@ -116,38 +164,46 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/managedIdentitySqlControlSettings/default", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "managedIdentitySqlControlSettings", - mapper: { - ...Mappers.ManagedIdentitySqlControlSettingsModel, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/managedIdentitySqlControlSettings/default", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ManagedIdentitySqlControlSettingsModel }, - 201: {}, + 201: { + bodyMapper: Mappers.ManagedIdentitySqlControlSettingsModel + }, + 202: { + bodyMapper: Mappers.ManagedIdentitySqlControlSettingsModel + }, + 204: { + bodyMapper: Mappers.ManagedIdentitySqlControlSettingsModel + }, default: { bodyMapper: Mappers.ErrorResponse } }, + requestBody: Parameters.managedIdentitySqlControlSettings, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerBlobAuditingPolicies.ts b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerBlobAuditingPolicies.ts index c9ec1e5232e9..5c3ae0ccd4f1 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerBlobAuditingPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerBlobAuditingPolicies.ts @@ -3,268 +3,372 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/workspaceManagedSqlServerBlobAuditingPoliciesMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { WorkspaceManagedSqlServerBlobAuditingPolicies } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + ServerBlobAuditingPolicy, + WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceNextOptionalParams, + WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOptionalParams, + BlobAuditingPolicyName, + WorkspaceManagedSqlServerBlobAuditingPoliciesGetOptionalParams, + WorkspaceManagedSqlServerBlobAuditingPoliciesGetResponse, + WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams, + WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse, + WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceResponse, + WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceNextResponse +} from "../models"; -/** Class representing a WorkspaceManagedSqlServerBlobAuditingPolicies. */ -export class WorkspaceManagedSqlServerBlobAuditingPolicies { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing WorkspaceManagedSqlServerBlobAuditingPolicies operations. */ +export class WorkspaceManagedSqlServerBlobAuditingPoliciesImpl + implements WorkspaceManagedSqlServerBlobAuditingPolicies { + private readonly client: SynapseManagementClient; /** - * Create a WorkspaceManagedSqlServerBlobAuditingPolicies. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class WorkspaceManagedSqlServerBlobAuditingPolicies class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** - * Get a workspace managed sql server's blob auditing policy. - * @summary Get server'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 [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** + * List workspace managed sql server's blob auditing policies. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByWorkspacePagingAll( + resourceGroupName, + workspaceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + ); + } + }; + } + + private async *listByWorkspacePagingPage( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByWorkspace( + resourceGroupName, + workspaceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByWorkspaceNext( resourceGroupName, workspaceName, + continuationToken, options - }, - getOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } } - /** - * Create or Update a workspace managed sql server's blob auditing policy. - * @summary Create or Update server'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 parameters Properties of extended blob auditing policy. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Models.ServerBlobAuditingPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,workspaceName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + private async *listByWorkspacePagingAll( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } } /** - * List workspace managed sql server's blob auditing policies. - * @summary List workspace server's blob auditing policies. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** + * Get a workspace managed sql server'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 options The optional parameters - * @param callback The callback + * @param workspaceName The name of the workspace. + * @param blobAuditingPolicyName The name of the blob auditing policy. + * @param options The options parameters. */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + blobAuditingPolicyName: BlobAuditingPolicyName, + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - listByWorkspaceOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, blobAuditingPolicyName, options }, + getOperationSpec + ); } /** * Create or Update a workspace managed sql server's blob auditing policy. - * @summary Create or Update server'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 workspaceName The name of the workspace. + * @param blobAuditingPolicyName The name of the blob auditing policy. * @param parameters Properties of extended blob auditing policy. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Models.ServerBlobAuditingPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + blobAuditingPolicyName: BlobAuditingPolicyName, + parameters: ServerBlobAuditingPolicy, + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState< + WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse + >, + WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, { resourceGroupName, workspaceName, + blobAuditingPolicyName, parameters, options }, - beginCreateOrUpdateOperationSpec, - options); + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); } /** - * List workspace managed sql server's blob auditing policies. - * @summary List workspace server's blob auditing policies. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns - * Promise + * Create or Update a workspace managed sql server'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 blobAuditingPolicyName The name of the blob auditing policy. + * @param parameters Properties of extended blob auditing policy. + * @param options The options parameters. */ - listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + blobAuditingPolicyName: BlobAuditingPolicyName, + parameters: ServerBlobAuditingPolicy, + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams + ): Promise< + WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse + > { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + blobAuditingPolicyName, + parameters, + options + ); + return poller.pollUntilDone(); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback + * List workspace managed sql server's blob auditing policies. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - listByWorkspaceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + private _listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOptionalParams + ): Promise< + WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceResponse + > { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listByWorkspaceOperationSpec + ); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListByWorkspaceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method. + * @param options The options parameters. */ - listByWorkspaceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listByWorkspaceNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceNextOptionalParams + ): Promise< + WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceNextResponse + > { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByWorkspaceNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, nextLink, options }, + listByWorkspaceNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/auditingSettings/{blobAuditingPolicyName}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/auditingSettings/{blobAuditingPolicyName}", + responses: { + 200: { + bodyMapper: Mappers.ServerBlobAuditingPolicy + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.blobAuditingPolicyName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.blobAuditingPolicyName1 ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/auditingSettings/{blobAuditingPolicyName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ServerBlobAuditingPolicy }, - default: { - bodyMapper: Mappers.CloudError - } + 201: { + bodyMapper: Mappers.ServerBlobAuditingPolicy + }, + 202: { + bodyMapper: Mappers.ServerBlobAuditingPolicy + }, + 204: { + bodyMapper: Mappers.ServerBlobAuditingPolicy + }, + default: {} }, - serializer -}; - -const listByWorkspaceOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/auditingSettings", + requestBody: Parameters.parameters17, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workspaceName, + Parameters.blobAuditingPolicyName1 ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/auditingSettings", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ServerBlobAuditingPolicyListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/auditingSettings/{blobAuditingPolicyName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.blobAuditingPolicyName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workspaceName ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ServerBlobAuditingPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ServerBlobAuditingPolicy - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.accept], serializer }; - -const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ServerBlobAuditingPolicyListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerEncryptionProtector.ts b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerEncryptionProtector.ts index e64069c67513..2ee36b817e98 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerEncryptionProtector.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerEncryptionProtector.ts @@ -3,209 +3,356 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/workspaceManagedSqlServerEncryptionProtectorMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { WorkspaceManagedSqlServerEncryptionProtector } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + EncryptionProtector, + WorkspaceManagedSqlServerEncryptionProtectorListNextOptionalParams, + WorkspaceManagedSqlServerEncryptionProtectorListOptionalParams, + EncryptionProtectorName, + WorkspaceManagedSqlServerEncryptionProtectorGetOptionalParams, + WorkspaceManagedSqlServerEncryptionProtectorGetResponse, + WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams, + WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse, + WorkspaceManagedSqlServerEncryptionProtectorListResponse, + WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams, + WorkspaceManagedSqlServerEncryptionProtectorListNextResponse +} from "../models"; -/** Class representing a WorkspaceManagedSqlServerEncryptionProtector. */ -export class WorkspaceManagedSqlServerEncryptionProtector { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing WorkspaceManagedSqlServerEncryptionProtector operations. */ +export class WorkspaceManagedSqlServerEncryptionProtectorImpl + implements WorkspaceManagedSqlServerEncryptionProtector { + private readonly client: SynapseManagementClient; /** - * Create a WorkspaceManagedSqlServerEncryptionProtector. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class WorkspaceManagedSqlServerEncryptionProtector class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** - * Get workspace managed sql server's encryption protector. - * @summary Get workspace server's encryption protector. + * Get list of encryption protectors for workspace managed sql server. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + public list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerEncryptionProtectorListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerEncryptionProtectorListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerEncryptionProtectorListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + /** + * Get workspace managed sql server's encryption protector. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback + * @param workspaceName The name of the workspace. + * @param encryptionProtectorName The name of the encryption protector. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + get( + resourceGroupName: string, + workspaceName: string, + encryptionProtectorName: EncryptionProtectorName, + options?: WorkspaceManagedSqlServerEncryptionProtectorGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, encryptionProtectorName, options }, + getOperationSpec + ); + } + /** + * Updates workspace managed sql server's encryption protector. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback + * @param workspaceName The name of the workspace. + * @param encryptionProtectorName The name of the encryption protector. + * @param parameters The requested encryption protector resource state. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + encryptionProtectorName: EncryptionProtectorName, + parameters: EncryptionProtector, + options?: WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState< + WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse + >, + WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, { resourceGroupName, workspaceName, + encryptionProtectorName, + parameters, options }, - getOperationSpec, - callback) as Promise; + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); } /** * Updates workspace managed sql server's encryption protector. - * @summary Updates workspace server's encryption protector. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. + * @param encryptionProtectorName The name of the encryption protector. * @param parameters The requested encryption protector resource state. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Models.EncryptionProtector, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,workspaceName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + encryptionProtectorName: EncryptionProtectorName, + parameters: EncryptionProtector, + options?: WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams + ): Promise< + WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse + > { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + encryptionProtectorName, + parameters, + options + ); + return poller.pollUntilDone(); } /** * Get list of encryption protectors for workspace managed sql server. - * @summary Get list of encryption protectors for the server. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerEncryptionProtectorListOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - listOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); } /** * Revalidates workspace managed sql server's existing encryption protector. - * @summary Revalidates server's existing encryption protector. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param encryptionProtectorName The name of the encryption protector. + * @param options The options parameters. */ - revalidate(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginRevalidate(resourceGroupName,workspaceName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } + async beginRevalidate( + resourceGroupName: string, + workspaceName: string, + encryptionProtectorName: EncryptionProtectorName, + options?: WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; - /** - * Updates workspace managed sql server's encryption protector. - * @summary Updates workspace server's encryption protector. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param parameters The requested encryption protector resource state. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Models.EncryptionProtector, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, encryptionProtectorName, options }, + revalidateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); } /** * Revalidates workspace managed sql server's existing encryption protector. - * @summary Revalidates server's existing encryption protector. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param encryptionProtectorName The name of the encryption protector. + * @param options The options parameters. */ - beginRevalidate(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - options - }, - beginRevalidateOperationSpec, - options); + async beginRevalidateAndWait( + resourceGroupName: string, + workspaceName: string, + encryptionProtectorName: EncryptionProtectorName, + options?: WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams + ): Promise { + const poller = await this.beginRevalidate( + resourceGroupName, + workspaceName, + encryptionProtectorName, + options + ); + return poller.pollUntilDone(); } /** - * Get list of encryption protectors for workspace managed sql server. - * @summary Get list of encryption protectors for the server. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: WorkspaceManagedSqlServerEncryptionProtectorListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/encryptionProtector/{encryptionProtectorName}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/encryptionProtector/{encryptionProtectorName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.encryptionProtectorName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.EncryptionProtector @@ -214,113 +361,103 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/encryptionProtector", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workspaceName, + Parameters.encryptionProtectorName ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/encryptionProtector/{encryptionProtectorName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.EncryptionProtectorListResult + bodyMapper: Mappers.EncryptionProtector + }, + 201: { + bodyMapper: Mappers.EncryptionProtector + }, + 202: { + bodyMapper: Mappers.EncryptionProtector + }, + 204: { + bodyMapper: Mappers.EncryptionProtector }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/encryptionProtector/{encryptionProtectorName}", + requestBody: Parameters.parameters21, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.encryptionProtectorName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.EncryptionProtector, - required: true - } - }, + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/encryptionProtector", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EncryptionProtector + bodyMapper: Mappers.EncryptionProtectorListResult }, - 202: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], serializer }; - -const beginRevalidateOperationSpec: msRest.OperationSpec = { +const revalidateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/encryptionProtector/{encryptionProtectorName}/revalidate", httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/encryptionProtector/{encryptionProtectorName}/revalidate", + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.encryptionProtectorName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.EncryptionProtectorListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerExtendedBlobAuditingPolicies.ts b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerExtendedBlobAuditingPolicies.ts index f3e2f450f135..80030fcc5e7e 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerExtendedBlobAuditingPolicies.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerExtendedBlobAuditingPolicies.ts @@ -3,270 +3,372 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/workspaceManagedSqlServerExtendedBlobAuditingPoliciesMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { WorkspaceManagedSqlServerExtendedBlobAuditingPolicies } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + ExtendedServerBlobAuditingPolicy, + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceNextOptionalParams, + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOptionalParams, + BlobAuditingPolicyName, + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetOptionalParams, + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetResponse, + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams, + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse, + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceResponse, + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceNextResponse +} from "../models"; -/** Class representing a WorkspaceManagedSqlServerExtendedBlobAuditingPolicies. */ -export class WorkspaceManagedSqlServerExtendedBlobAuditingPolicies { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing WorkspaceManagedSqlServerExtendedBlobAuditingPolicies operations. */ +export class WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl + implements WorkspaceManagedSqlServerExtendedBlobAuditingPolicies { + private readonly client: SynapseManagementClient; /** - * Create a WorkspaceManagedSqlServerExtendedBlobAuditingPolicies. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class WorkspaceManagedSqlServerExtendedBlobAuditingPolicies class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** - * Get a workspace SQL server's extended blob auditing policy. - * @summary Get server's extended blob auditing policy. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** + * List workspace managed sql server's extended blob auditing policies. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByWorkspacePagingAll( + resourceGroupName, + workspaceName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + ); + } + }; + } + + private async *listByWorkspacePagingPage( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOptionalParams + ): AsyncIterableIterator { + let result = await this._listByWorkspace( + resourceGroupName, + workspaceName, + options + ); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByWorkspaceNext( resourceGroupName, workspaceName, + continuationToken, options - }, - getOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } } - /** - * Create or Update a workspace managed sql server's extended blob auditing policy. - * @summary Create or Update server's extended blob auditing policy. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param parameters Properties of extended blob auditing policy. - * @param [options] The optional parameters - * @returns - * Promise - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Models.ExtendedServerBlobAuditingPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,workspaceName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + private async *listByWorkspacePagingAll( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByWorkspacePagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } } /** - * List workspace managed sql server's extended blob auditing policies. - * @summary List server's extended blob auditing policies. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns - * Promise - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** + * Get a workspace SQL server's extended blob auditing policy. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback + * @param workspaceName The name of the workspace. + * @param blobAuditingPolicyName The name of the blob auditing policy. + * @param options The options parameters. */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + blobAuditingPolicyName: BlobAuditingPolicyName, + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - listByWorkspaceOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, blobAuditingPolicyName, options }, + getOperationSpec + ); } /** * Create or Update a workspace managed sql server's extended blob auditing policy. - * @summary Create or Update server's extended blob auditing policy. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. + * @param blobAuditingPolicyName The name of the blob auditing policy. * @param parameters Properties of extended blob auditing policy. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Models.ExtendedServerBlobAuditingPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + blobAuditingPolicyName: BlobAuditingPolicyName, + parameters: ExtendedServerBlobAuditingPolicy, + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState< + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse + >, + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, { resourceGroupName, workspaceName, + blobAuditingPolicyName, parameters, options }, - beginCreateOrUpdateOperationSpec, - options); + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); } /** - * List workspace managed sql server's extended blob auditing policies. - * @summary List server's extended blob auditing policies. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns - * Promise + * Create or Update a workspace managed sql server's extended blob auditing policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param blobAuditingPolicyName The name of the blob auditing policy. + * @param parameters Properties of extended blob auditing policy. + * @param options The options parameters. */ - listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + blobAuditingPolicyName: BlobAuditingPolicyName, + parameters: ExtendedServerBlobAuditingPolicy, + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams + ): Promise< + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse + > { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + blobAuditingPolicyName, + parameters, + options + ); + return poller.pollUntilDone(); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback + * List workspace managed sql server's extended blob auditing policies. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - listByWorkspaceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + private _listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOptionalParams + ): Promise< + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceResponse + > { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listByWorkspaceOperationSpec + ); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListByWorkspaceNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method. + * @param options The options parameters. */ - listByWorkspaceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listByWorkspaceNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceNextOptionalParams + ): Promise< + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceNextResponse + > { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByWorkspaceNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, nextLink, options }, + listByWorkspaceNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/extendedAuditingSettings/{blobAuditingPolicyName}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/extendedAuditingSettings/{blobAuditingPolicyName}", + responses: { + 200: { + bodyMapper: Mappers.ExtendedServerBlobAuditingPolicy + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.blobAuditingPolicyName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.blobAuditingPolicyName1 ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/extendedAuditingSettings/{blobAuditingPolicyName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ExtendedServerBlobAuditingPolicy }, - default: { - bodyMapper: Mappers.CloudError - } + 201: { + bodyMapper: Mappers.ExtendedServerBlobAuditingPolicy + }, + 202: { + bodyMapper: Mappers.ExtendedServerBlobAuditingPolicy + }, + 204: { + bodyMapper: Mappers.ExtendedServerBlobAuditingPolicy + }, + default: {} }, - serializer -}; - -const listByWorkspaceOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/extendedAuditingSettings", + requestBody: Parameters.parameters18, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workspaceName, + Parameters.blobAuditingPolicyName1 ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listByWorkspaceOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/extendedAuditingSettings", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ExtendedServerBlobAuditingPolicyListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/extendedAuditingSettings/{blobAuditingPolicyName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.blobAuditingPolicyName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workspaceName ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ExtendedServerBlobAuditingPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ExtendedServerBlobAuditingPolicy - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.accept], serializer }; - -const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ExtendedServerBlobAuditingPolicyListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerRecoverableSqlPools.ts b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerRecoverableSqlPools.ts index ee02275db27b..1e5be5702b2a 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerRecoverableSqlPools.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerRecoverableSqlPools.ts @@ -3,201 +3,214 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/workspaceManagedSqlServerRecoverableSqlPoolsMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { WorkspaceManagedSqlServerRecoverableSqlPools } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + RecoverableSqlPool, + WorkspaceManagedSqlServerRecoverableSqlPoolsListNextOptionalParams, + WorkspaceManagedSqlServerRecoverableSqlPoolsListOptionalParams, + WorkspaceManagedSqlServerRecoverableSqlPoolsListResponse, + WorkspaceManagedSqlServerRecoverableSqlPoolsGetOptionalParams, + WorkspaceManagedSqlServerRecoverableSqlPoolsGetResponse, + WorkspaceManagedSqlServerRecoverableSqlPoolsListNextResponse +} from "../models"; -/** Class representing a WorkspaceManagedSqlServerRecoverableSqlPools. */ -export class WorkspaceManagedSqlServerRecoverableSqlPools { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing WorkspaceManagedSqlServerRecoverableSqlPools operations. */ +export class WorkspaceManagedSqlServerRecoverableSqlPoolsImpl + implements WorkspaceManagedSqlServerRecoverableSqlPools { + private readonly client: SynapseManagementClient; /** - * Create a WorkspaceManagedSqlServerRecoverableSqlPools. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class WorkspaceManagedSqlServerRecoverableSqlPools class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Get list of recoverable sql pools for workspace managed sql server. - * @summary Get list of recoverable sql pools for the server. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerRecoverableSqlPoolsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerRecoverableSqlPoolsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( resourceGroupName, workspaceName, + continuationToken, options - }, - listOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerRecoverableSqlPoolsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } } /** - * Get recoverable sql pools for workspace managed sql server. - * @summary Get recoverable sql pools for the server. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param sqlPoolName The name of the sql pool - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, options?: msRest.RequestOptionsBase): Promise; - /** + * Get list of recoverable sql pools for workspace managed sql server. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param sqlPoolName The name of the sql pool - * @param callback The callback + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, sqlPoolName: string, callback: msRest.ServiceCallback): void; + private _list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerRecoverableSqlPoolsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + /** + * Get recoverable sql pools for workspace managed sql server. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param sqlPoolName The name of the sql pool - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - 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 { + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: WorkspaceManagedSqlServerRecoverableSqlPoolsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - sqlPoolName, - options - }, - getOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, sqlPoolName, options }, + getOperationSpec + ); } /** - * Get list of recoverable sql pools for workspace managed sql server. - * @summary Get list of recoverable sql pools for the server. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: WorkspaceManagedSqlServerRecoverableSqlPoolsListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/recoverableSqlPools", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/recoverableSqlPools", + responses: { + 200: { + bodyMapper: Mappers.RecoverableSqlPoolListResult + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/recoverableSqlPools/{sqlPoolName}", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RecoverableSqlPoolListResult + bodyMapper: Mappers.RecoverableSqlPool }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/recoverableSqlPools/{sqlPoolName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.sqlPoolName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RecoverableSqlPool - }, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.RecoverableSqlPoolListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerSecurityAlertPolicy.ts b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerSecurityAlertPolicy.ts index 24a3174b247b..5744f5ef2422 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerSecurityAlertPolicy.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerSecurityAlertPolicy.ts @@ -3,267 +3,356 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/workspaceManagedSqlServerSecurityAlertPolicyMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { WorkspaceManagedSqlServerSecurityAlertPolicy } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + ServerSecurityAlertPolicy, + WorkspaceManagedSqlServerSecurityAlertPolicyListNextOptionalParams, + WorkspaceManagedSqlServerSecurityAlertPolicyListOptionalParams, + SecurityAlertPolicyNameAutoGenerated, + WorkspaceManagedSqlServerSecurityAlertPolicyGetOptionalParams, + WorkspaceManagedSqlServerSecurityAlertPolicyGetResponse, + WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams, + WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse, + WorkspaceManagedSqlServerSecurityAlertPolicyListResponse, + WorkspaceManagedSqlServerSecurityAlertPolicyListNextResponse +} from "../models"; -/** Class representing a WorkspaceManagedSqlServerSecurityAlertPolicy. */ -export class WorkspaceManagedSqlServerSecurityAlertPolicy { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing WorkspaceManagedSqlServerSecurityAlertPolicy operations. */ +export class WorkspaceManagedSqlServerSecurityAlertPolicyImpl + implements WorkspaceManagedSqlServerSecurityAlertPolicy { + private readonly client: SynapseManagementClient; /** - * Create a WorkspaceManagedSqlServerSecurityAlertPolicy. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class WorkspaceManagedSqlServerSecurityAlertPolicy class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** - * Get a workspace managed sql server's security alert policy. - * @summary Get server's security alert policy. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** + * Get workspace managed sql server's threat detection policies. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerSecurityAlertPolicyListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerSecurityAlertPolicyListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( resourceGroupName, workspaceName, + continuationToken, options - }, - getOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } } - /** - * Create or Update a workspace managed sql server's threat detection policy. - * @summary Create or Update server's threat detection policy. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param parameters The workspace managed sql server security alert policy. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Models.ServerSecurityAlertPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,workspaceName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerSecurityAlertPolicyListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } } /** - * Get workspace managed sql server's threat detection policies. - * @summary Get server's threat detection policies. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise - */ - list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** + * Get a workspace managed sql server's security alert policy. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback + * @param workspaceName The name of the workspace. + * @param securityAlertPolicyName The name of the security alert policy. + * @param options The options parameters. */ - list(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, + options?: WorkspaceManagedSqlServerSecurityAlertPolicyGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - listOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, securityAlertPolicyName, options }, + getOperationSpec + ); } /** * Create or Update a workspace managed sql server's threat detection policy. - * @summary Create or Update server's threat detection policy. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. + * @param securityAlertPolicyName The name of the security alert policy. * @param parameters The workspace managed sql server security alert policy. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Models.ServerSecurityAlertPolicy, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, + parameters: ServerSecurityAlertPolicy, + options?: WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState< + WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse + >, + WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, { resourceGroupName, workspaceName, + securityAlertPolicyName, parameters, options }, - beginCreateOrUpdateOperationSpec, - options); + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); } /** - * Get workspace managed sql server's threat detection policies. - * @summary Get server's threat detection policies. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise + * Create or Update a workspace managed sql server's threat detection policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param securityAlertPolicyName The name of the security alert policy. + * @param parameters The workspace managed sql server security alert policy. + * @param options The options parameters. */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, + parameters: ServerSecurityAlertPolicy, + options?: WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams + ): Promise< + WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse + > { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + securityAlertPolicyName, + parameters, + options + ); + return poller.pollUntilDone(); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback + * Get workspace managed sql server's threat detection policies. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + private _list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerSecurityAlertPolicyListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: WorkspaceManagedSqlServerSecurityAlertPolicyListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/securityAlertPolicies/{securityAlertPolicyName}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/securityAlertPolicies/{securityAlertPolicyName}", + responses: { + 200: { + bodyMapper: Mappers.ServerSecurityAlertPolicy + }, + default: {} + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.securityAlertPolicyName1 ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/securityAlertPolicies/{securityAlertPolicyName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ServerSecurityAlertPolicy }, - default: { - bodyMapper: Mappers.CloudError - } + 201: { + bodyMapper: Mappers.ServerSecurityAlertPolicy + }, + 202: { + bodyMapper: Mappers.ServerSecurityAlertPolicy + }, + 204: { + bodyMapper: Mappers.ServerSecurityAlertPolicy + }, + default: {} }, - serializer -}; - -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/securityAlertPolicies", + requestBody: Parameters.parameters19, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workspaceName, + Parameters.securityAlertPolicyName1 ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/securityAlertPolicies", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ServerSecurityAlertPolicyListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/securityAlertPolicies/{securityAlertPolicyName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.securityAlertPolicyName1 - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workspaceName ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ServerSecurityAlertPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ServerSecurityAlertPolicy - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ServerSecurityAlertPolicyListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerUsages.ts b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerUsages.ts index 6397cbe02124..670d3a5b7ca8 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerUsages.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerUsages.ts @@ -3,138 +3,172 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/workspaceManagedSqlServerUsagesMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { WorkspaceManagedSqlServerUsages } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + ServerUsage, + WorkspaceManagedSqlServerUsagesListNextOptionalParams, + WorkspaceManagedSqlServerUsagesListOptionalParams, + WorkspaceManagedSqlServerUsagesListResponse, + WorkspaceManagedSqlServerUsagesListNextResponse +} from "../models"; -/** Class representing a WorkspaceManagedSqlServerUsages. */ -export class WorkspaceManagedSqlServerUsages { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing WorkspaceManagedSqlServerUsages operations. */ +export class WorkspaceManagedSqlServerUsagesImpl + implements WorkspaceManagedSqlServerUsages { + private readonly client: SynapseManagementClient; /** - * Create a WorkspaceManagedSqlServerUsages. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class WorkspaceManagedSqlServerUsages class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Get list of server usages metric for workspace managed sql server. - * @summary Get list of usages metric for the server. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerUsagesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerUsagesListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( resourceGroupName, workspaceName, + continuationToken, options - }, - listOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerUsagesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } } /** * Get list of server usages metric for workspace managed sql server. - * @summary Get list of usages metric for the server. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + private _list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerUsagesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: WorkspaceManagedSqlServerUsagesListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlUsages", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlUsages", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.ServerUsageListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ServerUsageListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerVulnerabilityAssessments.ts b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerVulnerabilityAssessments.ts index da0d0ece0be9..e4a1ccaddc69 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerVulnerabilityAssessments.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaceManagedSqlServerVulnerabilityAssessments.ts @@ -3,244 +3,245 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/workspaceManagedSqlServerVulnerabilityAssessmentsMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { WorkspaceManagedSqlServerVulnerabilityAssessments } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { + ServerVulnerabilityAssessment, + WorkspaceManagedSqlServerVulnerabilityAssessmentsListNextOptionalParams, + WorkspaceManagedSqlServerVulnerabilityAssessmentsListOptionalParams, + VulnerabilityAssessmentName, + WorkspaceManagedSqlServerVulnerabilityAssessmentsGetOptionalParams, + WorkspaceManagedSqlServerVulnerabilityAssessmentsGetResponse, + WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams, + WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateResponse, + WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteOptionalParams, + WorkspaceManagedSqlServerVulnerabilityAssessmentsListResponse, + WorkspaceManagedSqlServerVulnerabilityAssessmentsListNextResponse +} from "../models"; -/** Class representing a WorkspaceManagedSqlServerVulnerabilityAssessments. */ -export class WorkspaceManagedSqlServerVulnerabilityAssessments { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing WorkspaceManagedSqlServerVulnerabilityAssessments operations. */ +export class WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl + implements WorkspaceManagedSqlServerVulnerabilityAssessments { + private readonly client: SynapseManagementClient; /** - * Create a WorkspaceManagedSqlServerVulnerabilityAssessments. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class WorkspaceManagedSqlServerVulnerabilityAssessments class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** - * Get workspace managed sql server's vulnerability assessment. - * @summary Get server's vulnerability assessment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** + * Lists the vulnerability assessment policies associated with a workspace managed sql server. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + public list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + /** + * Get workspace managed sql server's vulnerability assessment. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback + * @param workspaceName The name of the workspace. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, + vulnerabilityAssessmentName, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } /** * Create or Update workspace managed sql server's vulnerability assessment. - * @summary Create or Update server's vulnerability assessment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param parameters Properties for vulnerability assessment. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Models.ServerVulnerabilityAssessment, 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 workspaceName The name of the workspace. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. * @param parameters Properties for vulnerability assessment. - * @param callback The callback + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Models.ServerVulnerabilityAssessment, 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 parameters Properties for vulnerability assessment. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Models.ServerVulnerabilityAssessment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Models.ServerVulnerabilityAssessment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + parameters: ServerVulnerabilityAssessment, + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams + ): Promise< + WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateResponse + > { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, + vulnerabilityAssessmentName, parameters, options }, - createOrUpdateOperationSpec, - callback) as Promise; + createOrUpdateOperationSpec + ); } /** * Remove workspace managed sql server's vulnerability assessment. - * @summary Remove server's vulnerability assessment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback + * @param workspaceName The name of the workspace. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. */ - deleteMethod(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + delete( + resourceGroupName: string, + workspaceName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, + vulnerabilityAssessmentName, options }, - deleteMethodOperationSpec, - callback); + deleteOperationSpec + ); } /** * Lists the vulnerability assessment policies associated with a workspace managed sql server. - * @summary Lists the vulnerability assessment policies associated with a server. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsListOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - listOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); } /** - * Lists the vulnerability assessment policies associated with a workspace managed sql server. - * @summary Lists the vulnerability assessment policies associated with a server. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsListNextOptionalParams + ): Promise< + WorkspaceManagedSqlServerVulnerabilityAssessmentsListNextResponse + > { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.vulnerabilityAssessmentName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.ServerVulnerabilityAssessment }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.vulnerabilityAssessmentName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ServerVulnerabilityAssessment, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.ServerVulnerabilityAssessment @@ -248,83 +249,73 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.ServerVulnerabilityAssessment }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", + requestBody: Parameters.parameters20, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.vulnerabilityAssessmentName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; - -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/vulnerabilityAssessments", +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}", + httpMethod: "DELETE", + responses: { 200: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workspaceName, + Parameters.vulnerabilityAssessmentName ], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/vulnerabilityAssessments", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ServerVulnerabilityAssessmentListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ServerVulnerabilityAssessmentListResult }, - default: { - bodyMapper: Mappers.CloudError - } + default: {} }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaceSqlAadAdmins.ts b/sdk/synapse/arm-synapse/src/operations/workspaceSqlAadAdmins.ts index 24e6ff5b6436..fc3c62182ef1 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaceSqlAadAdmins.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaceSqlAadAdmins.ts @@ -3,141 +3,233 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/workspaceSqlAadAdminsMappers"; +import { WorkspaceSqlAadAdmins } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + WorkspaceSqlAadAdminsGetOptionalParams, + WorkspaceSqlAadAdminsGetResponse, + WorkspaceAadAdminInfo, + WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams, + WorkspaceSqlAadAdminsCreateOrUpdateResponse, + WorkspaceSqlAadAdminsDeleteOptionalParams +} from "../models"; -/** Class representing a WorkspaceSqlAadAdmins. */ -export class WorkspaceSqlAadAdmins { - private readonly client: SynapseManagementClientContext; +/** Class containing WorkspaceSqlAadAdmins operations. */ +export class WorkspaceSqlAadAdminsImpl implements WorkspaceSqlAadAdmins { + private readonly client: SynapseManagementClient; /** - * Create a WorkspaceSqlAadAdmins. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class WorkspaceSqlAadAdmins class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Gets a workspace SQL active directory admin * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceSqlAadAdminsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - getOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, options }, + getOperationSpec + ); } /** * Creates or updates a workspace SQL active directory admin * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param aadAdminInfo Workspace active directory administrator properties - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, aadAdminInfo: Models.WorkspaceAadAdminInfo, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,workspaceName,aadAdminInfo,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + aadAdminInfo: WorkspaceAadAdminInfo, + options?: WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspaceSqlAadAdminsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, aadAdminInfo, options }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); } /** - * Deletes a workspace SQL active directory admin + * Creates or updates a workspace SQL active directory admin * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param aadAdminInfo Workspace active directory administrator properties + * @param options The options parameters. */ - deleteMethod(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,workspaceName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + aadAdminInfo: WorkspaceAadAdminInfo, + options?: WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + aadAdminInfo, + options + ); + return poller.pollUntilDone(); } /** - * Creates or updates a workspace SQL active directory admin + * Deletes a workspace SQL active directory admin * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param aadAdminInfo Workspace active directory administrator properties - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, aadAdminInfo: Models.WorkspaceAadAdminInfo, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - aadAdminInfo, - options - }, - beginCreateOrUpdateOperationSpec, - options); + async beginDelete( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceSqlAadAdminsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); } /** * Deletes a workspace SQL active directory admin * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - beginDeleteMethod(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - options - }, - beginDeleteMethodOperationSpec, - options); + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceSqlAadAdminsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + options + ); + return poller.pollUntilDone(); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlAdministrators/activeDirectory", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlAdministrators/activeDirectory", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.WorkspaceAadAdminInfo @@ -146,65 +238,69 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlAdministrators/activeDirectory", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "aadAdminInfo", - mapper: { - ...Mappers.WorkspaceAadAdminInfo, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlAdministrators/activeDirectory", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.WorkspaceAadAdminInfo }, + 201: { + bodyMapper: Mappers.WorkspaceAadAdminInfo + }, 202: { bodyMapper: Mappers.WorkspaceAadAdminInfo }, + 204: { + bodyMapper: Mappers.WorkspaceAadAdminInfo + }, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlAdministrators/activeDirectory", + requestBody: Parameters.aadAdminInfo, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlAdministrators/activeDirectory", + httpMethod: "DELETE", responses: { 200: {}, + 201: {}, 202: {}, 204: {}, default: { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operations/workspaces.ts b/sdk/synapse/arm-synapse/src/operations/workspaces.ts index 83cb596622a3..084adde16d9b 100644 --- a/sdk/synapse/arm-synapse/src/operations/workspaces.ts +++ b/sdk/synapse/arm-synapse/src/operations/workspaces.ts @@ -3,281 +3,495 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/workspacesMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Workspaces } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { SynapseManagementClientContext } from "../synapseManagementClientContext"; +import { SynapseManagementClient } from "../synapseManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + Workspace, + WorkspacesListByResourceGroupNextOptionalParams, + WorkspacesListByResourceGroupOptionalParams, + WorkspacesListNextOptionalParams, + WorkspacesListOptionalParams, + WorkspacesListByResourceGroupResponse, + WorkspacesGetOptionalParams, + WorkspacesGetResponse, + WorkspacePatchInfo, + WorkspacesUpdateOptionalParams, + WorkspacesUpdateResponse, + WorkspacesCreateOrUpdateOptionalParams, + WorkspacesCreateOrUpdateResponse, + WorkspacesDeleteOptionalParams, + WorkspacesDeleteResponse, + WorkspacesListResponse, + WorkspacesListByResourceGroupNextResponse, + WorkspacesListNextResponse +} from "../models"; -/** Class representing a Workspaces. */ -export class Workspaces { - private readonly client: SynapseManagementClientContext; +/// +/** Class containing Workspaces operations. */ +export class WorkspacesImpl implements Workspaces { + private readonly client: SynapseManagementClient; /** - * Create a Workspaces. - * @param {SynapseManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class Workspaces class. + * @param client Reference to the service client */ - constructor(client: SynapseManagementClientContext) { + constructor(client: SynapseManagementClient) { this.client = client; } /** * Returns a list of workspaces in a resource group * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param callback The callback - */ - listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The optional parameters - * @param callback The callback - */ - listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public listByResourceGroup( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByResourceGroupPagingPage(resourceGroupName, options); + } + }; + } + + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams + ): AsyncIterableIterator { + let result = await this._listByResourceGroup(resourceGroupName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByResourceGroupNext( resourceGroupName, + continuationToken, options - }, - listByResourceGroupOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options + )) { + yield* page; + } } /** - * Gets a workspace - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * Returns a list of workspaces in a subscription + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + public list( + options?: WorkspacesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(options); + } + }; + } + + private async *listPagingPage( + options?: WorkspacesListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + options?: WorkspacesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + /** + * Returns a list of workspaces in a resource group * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + private _listByResourceGroup( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec + ); + } + /** + * Gets a workspace * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param options The optional parameters - * @param callback The callback + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - getOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, options }, + getOperationSpec + ); } /** * Updates a workspace * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace + * @param workspaceName The name of the workspace. * @param workspacePatchInfo Workspace patch request properties - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - update(resourceGroupName: string, workspaceName: string, workspacePatchInfo: Models.WorkspacePatchInfo, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(resourceGroupName,workspaceName,workspacePatchInfo,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + async beginUpdate( + resourceGroupName: string, + workspaceName: string, + workspacePatchInfo: WorkspacePatchInfo, + options?: WorkspacesUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, workspacePatchInfo, options }, + updateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); } /** - * Creates or updates a workspace + * Updates a workspace * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param workspaceInfo Workspace create or update request properties - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param workspacePatchInfo Workspace patch request properties + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, workspaceInfo: Models.Workspace, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,workspaceName,workspaceInfo,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + async beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + workspacePatchInfo: WorkspacePatchInfo, + options?: WorkspacesUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + workspacePatchInfo, + options + ); + return poller.pollUntilDone(); } /** - * Deletes a workspace + * Creates or updates a workspace * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param workspaceInfo Workspace create or update request properties + * @param options The options parameters. */ - deleteMethod(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,workspaceName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + workspaceInfo: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; - /** - * Returns a list of workspaces in a subscription - * @param [options] The optional parameters - * @returns Promise - */ - list(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback) as Promise; + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, workspaceInfo, options }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); } /** - * Updates a workspace + * Creates or updates a workspace * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param workspacePatchInfo Workspace patch request properties - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param workspaceInfo Workspace create or update request properties + * @param options The options parameters. */ - beginUpdate(resourceGroupName: string, workspaceName: string, workspacePatchInfo: Models.WorkspacePatchInfo, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - workspacePatchInfo, - options - }, - beginUpdateOperationSpec, - options); + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + workspaceInfo: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + workspaceInfo, + options + ); + return poller.pollUntilDone(); } /** - * Creates or updates a workspace + * Deletes a workspace * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param workspaceInfo Workspace create or update request properties - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, workspaceInfo: Models.Workspace, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - workspaceInfo, - options - }, - beginCreateOrUpdateOperationSpec, - options); + async beginDelete( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDeleteOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); } /** * Deletes a workspace * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param workspaceName The name of the workspace - * @param [options] The optional parameters - * @returns Promise + * @param workspaceName The name of the workspace. + * @param options The options parameters. */ - beginDeleteMethod(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - options - }, - beginDeleteMethodOperationSpec, - options); + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + options + ); + return poller.pollUntilDone(); } /** - * Returns a list of workspaces in a resource group - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback + * Returns a list of workspaces in a subscription + * @param options The options parameters. */ - listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + private _list( + options?: WorkspacesListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: WorkspacesListByResourceGroupNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByResourceGroupNextOperationSpec, - callback) as Promise; + { resourceGroupName, nextLink, options }, + listByResourceGroupNextOperationSpec + ); } /** - * Returns a list of workspaces in a subscription - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + nextLink: string, + options?: WorkspacesListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByResourceGroupOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.WorkspaceInfoListResult @@ -286,78 +500,41 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.resourceGroupName ], - responses: { - 200: { - bodyMapper: Mappers.Workspace - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, + headerParameters: [Parameters.accept], serializer }; - -const listOperationSpec: msRest.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Synapse/workspaces", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { - bodyMapper: Mappers.WorkspaceInfoListResult + bodyMapper: Mappers.Workspace }, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "workspacePatchInfo", - mapper: { - ...Mappers.WorkspacePatchInfo, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}", + httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.Workspace @@ -365,34 +542,32 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.Workspace }, + 202: { + bodyMapper: Mappers.Workspace + }, + 204: { + bodyMapper: Mappers.Workspace + }, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}", + requestBody: Parameters.workspacePatchInfo, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "workspaceInfo", - mapper: { - ...Mappers.Workspace, - required: true - } - }, + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.Workspace @@ -400,65 +575,71 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.Workspace }, + 202: { + bodyMapper: Mappers.Workspace + }, + 204: { + bodyMapper: Mappers.Workspace + }, default: { bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}", + requestBody: Parameters.workspaceInfo, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}", + httpMethod: "DELETE", responses: { 200: { bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + }, + 201: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } } }, 202: { bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + }, + 204: { + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } } }, - 204: {}, default: { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], serializer }; - -const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/workspaces", httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.WorkspaceInfoListResult @@ -467,22 +648,35 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceInfoListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.WorkspaceInfoListResult @@ -491,5 +685,12 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/azureADOnlyAuthentications.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/azureADOnlyAuthentications.ts new file mode 100644 index 000000000000..dfd79b419286 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/azureADOnlyAuthentications.ts @@ -0,0 +1,83 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + AzureADOnlyAuthentication, + AzureADOnlyAuthenticationsListOptionalParams, + AzureADOnlyAuthenticationName, + AzureADOnlyAuthenticationsGetOptionalParams, + AzureADOnlyAuthenticationsGetResponse, + AzureADOnlyAuthenticationsCreateOptionalParams, + AzureADOnlyAuthenticationsCreateResponse +} from "../models"; + +/// +/** Interface representing a AzureADOnlyAuthentications. */ +export interface AzureADOnlyAuthentications { + /** + * Gets a list of Azure Active Directory only authentication property for a workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: AzureADOnlyAuthenticationsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a Azure Active Directory only authentication property + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param azureADOnlyAuthenticationName name of the property + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + azureADOnlyAuthenticationName: AzureADOnlyAuthenticationName, + options?: AzureADOnlyAuthenticationsGetOptionalParams + ): Promise; + /** + * Create or Update a Azure Active Directory only authentication property for the workspaces + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param azureADOnlyAuthenticationName name of the property + * @param azureADOnlyAuthenticationInfo Azure Active Directory Property + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + workspaceName: string, + azureADOnlyAuthenticationName: AzureADOnlyAuthenticationName, + azureADOnlyAuthenticationInfo: AzureADOnlyAuthentication, + options?: AzureADOnlyAuthenticationsCreateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + AzureADOnlyAuthenticationsCreateResponse + > + >; + /** + * Create or Update a Azure Active Directory only authentication property for the workspaces + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param azureADOnlyAuthenticationName name of the property + * @param azureADOnlyAuthenticationInfo Azure Active Directory Property + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + workspaceName: string, + azureADOnlyAuthenticationName: AzureADOnlyAuthenticationName, + azureADOnlyAuthenticationInfo: AzureADOnlyAuthentication, + options?: AzureADOnlyAuthenticationsCreateOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/bigDataPools.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/bigDataPools.ts new file mode 100644 index 000000000000..7c62516764f7 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/bigDataPools.ts @@ -0,0 +1,133 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + BigDataPoolResourceInfo, + BigDataPoolsListByWorkspaceOptionalParams, + BigDataPoolsGetOptionalParams, + BigDataPoolsGetResponse, + BigDataPoolPatchInfo, + BigDataPoolsUpdateOptionalParams, + BigDataPoolsUpdateResponse, + BigDataPoolsCreateOrUpdateOptionalParams, + BigDataPoolsCreateOrUpdateResponse, + BigDataPoolsDeleteOptionalParams, + BigDataPoolsDeleteResponse +} from "../models"; + +/// +/** Interface representing a BigDataPools. */ +export interface BigDataPools { + /** + * List Big Data pools in a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: BigDataPoolsListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get a Big Data pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param bigDataPoolName Big Data pool name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + bigDataPoolName: string, + options?: BigDataPoolsGetOptionalParams + ): Promise; + /** + * Patch a Big Data pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param bigDataPoolName Big Data pool name + * @param bigDataPoolPatchInfo The updated Big Data pool properties + * @param options The options parameters. + */ + update( + resourceGroupName: string, + workspaceName: string, + bigDataPoolName: string, + bigDataPoolPatchInfo: BigDataPoolPatchInfo, + options?: BigDataPoolsUpdateOptionalParams + ): Promise; + /** + * Create a new Big Data pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param bigDataPoolName Big Data pool name + * @param bigDataPoolInfo The Big Data pool to create. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + bigDataPoolName: string, + bigDataPoolInfo: BigDataPoolResourceInfo, + options?: BigDataPoolsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + BigDataPoolsCreateOrUpdateResponse + > + >; + /** + * Create a new Big Data pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param bigDataPoolName Big Data pool name + * @param bigDataPoolInfo The Big Data pool to create. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + bigDataPoolName: string, + bigDataPoolInfo: BigDataPoolResourceInfo, + options?: BigDataPoolsCreateOrUpdateOptionalParams + ): Promise; + /** + * Delete a Big Data pool from the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param bigDataPoolName Big Data pool name + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + bigDataPoolName: string, + options?: BigDataPoolsDeleteOptionalParams + ): Promise< + PollerLike< + PollOperationState, + BigDataPoolsDeleteResponse + > + >; + /** + * Delete a Big Data pool from the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param bigDataPoolName Big Data pool name + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + bigDataPoolName: string, + options?: BigDataPoolsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/dataMaskingPolicies.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/dataMaskingPolicies.ts new file mode 100644 index 000000000000..421130ed1ea0 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/dataMaskingPolicies.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + DataMaskingPolicy, + DataMaskingPoliciesCreateOrUpdateOptionalParams, + DataMaskingPoliciesCreateOrUpdateResponse, + DataMaskingPoliciesGetOptionalParams, + DataMaskingPoliciesGetResponse +} from "../models"; + +/** Interface representing a DataMaskingPolicies. */ +export interface DataMaskingPolicies { + /** + * 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 options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + parameters: DataMaskingPolicy, + options?: DataMaskingPoliciesCreateOrUpdateOptionalParams + ): 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 options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: DataMaskingPoliciesGetOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/dataMaskingRules.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/dataMaskingRules.ts new file mode 100644 index 000000000000..765ac2023826 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/dataMaskingRules.ts @@ -0,0 +1,67 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + DataMaskingRule, + DataMaskingRulesListBySqlPoolOptionalParams, + DataMaskingRulesCreateOrUpdateOptionalParams, + DataMaskingRulesCreateOrUpdateResponse, + DataMaskingRulesGetOptionalParams, + DataMaskingRulesGetResponse +} from "../models"; + +/// +/** Interface representing a DataMaskingRules. */ +export interface DataMaskingRules { + /** + * 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 options parameters. + */ + listBySqlPool( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: DataMaskingRulesListBySqlPoolOptionalParams + ): PagedAsyncIterableIterator; + /** + * 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 options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + dataMaskingRuleName: string, + parameters: DataMaskingRule, + options?: DataMaskingRulesCreateOrUpdateOptionalParams + ): Promise; + /** + * Gets the specific 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 options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + dataMaskingRuleName: string, + options?: DataMaskingRulesGetOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/extendedSqlPoolBlobAuditingPolicies.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/extendedSqlPoolBlobAuditingPolicies.ts new file mode 100644 index 000000000000..0e6ddb732e9a --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/extendedSqlPoolBlobAuditingPolicies.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ExtendedSqlPoolBlobAuditingPolicy, + ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams, + ExtendedSqlPoolBlobAuditingPoliciesGetOptionalParams, + ExtendedSqlPoolBlobAuditingPoliciesGetResponse, + ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams, + ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a ExtendedSqlPoolBlobAuditingPolicies. */ +export interface ExtendedSqlPoolBlobAuditingPolicies { + /** + * 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 options parameters. + */ + listBySqlPool( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: ExtendedSqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams + ): PagedAsyncIterableIterator; + /** + * 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 options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: ExtendedSqlPoolBlobAuditingPoliciesGetOptionalParams + ): 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 options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + parameters: ExtendedSqlPoolBlobAuditingPolicy, + options?: ExtendedSqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/index.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/index.ts new file mode 100644 index 000000000000..fd448ec55b64 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/index.ts @@ -0,0 +1,80 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export * from "./azureADOnlyAuthentications"; +export * from "./operations"; +export * from "./ipFirewallRules"; +export * from "./keys"; +export * from "./privateEndpointConnections"; +export * from "./privateLinkResources"; +export * from "./privateLinkHubPrivateLinkResources"; +export * from "./privateLinkHubs"; +export * from "./privateEndpointConnectionsPrivateLinkHub"; +export * from "./sqlPools"; +export * from "./sqlPoolMetadataSyncConfigs"; +export * from "./sqlPoolOperationResults"; +export * from "./sqlPoolGeoBackupPolicies"; +export * from "./sqlPoolDataWarehouseUserActivities"; +export * from "./sqlPoolRestorePoints"; +export * from "./sqlPoolReplicationLinks"; +export * from "./sqlPoolMaintenanceWindows"; +export * from "./sqlPoolMaintenanceWindowOptions"; +export * from "./sqlPoolTransparentDataEncryptions"; +export * from "./sqlPoolBlobAuditingPolicies"; +export * from "./sqlPoolOperations"; +export * from "./sqlPoolUsages"; +export * from "./sqlPoolSensitivityLabels"; +export * from "./sqlPoolRecommendedSensitivityLabels"; +export * from "./sqlPoolSchemas"; +export * from "./sqlPoolTables"; +export * from "./sqlPoolTableColumns"; +export * from "./sqlPoolConnectionPolicies"; +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 "./sqlPoolWorkloadGroup"; +export * from "./sqlPoolWorkloadClassifier"; +export * from "./workspaceManagedSqlServerBlobAuditingPolicies"; +export * from "./workspaceManagedSqlServerExtendedBlobAuditingPolicies"; +export * from "./workspaceManagedSqlServerSecurityAlertPolicy"; +export * from "./workspaceManagedSqlServerVulnerabilityAssessments"; +export * from "./workspaceManagedSqlServerEncryptionProtector"; +export * from "./workspaceManagedSqlServerUsages"; +export * from "./workspaceManagedSqlServerRecoverableSqlPools"; +export * from "./workspaces"; +export * from "./workspaceAadAdmins"; +export * from "./workspaceSqlAadAdmins"; +export * from "./workspaceManagedIdentitySqlControlSettings"; +export * from "./restorableDroppedSqlPools"; +export * from "./bigDataPools"; +export * from "./library"; +export * from "./libraries"; +export * from "./integrationRuntimes"; +export * from "./integrationRuntimeNodeIpAddressOperations"; +export * from "./integrationRuntimeObjectMetadata"; +export * from "./integrationRuntimeNodes"; +export * from "./integrationRuntimeCredentials"; +export * from "./integrationRuntimeConnectionInfos"; +export * from "./integrationRuntimeAuthKeysOperations"; +export * from "./integrationRuntimeMonitoringDataOperations"; +export * from "./integrationRuntimeStatusOperations"; +export * from "./sparkConfiguration"; +export * from "./sparkConfigurations"; +export * from "./kustoOperations"; +export * from "./kustoPools"; +export * from "./kustoPoolChildResource"; +export * from "./kustoPoolAttachedDatabaseConfigurations"; +export * from "./kustoPoolDatabases"; +export * from "./kustoPoolDataConnections"; +export * from "./kustoPoolPrincipalAssignments"; +export * from "./kustoPoolDatabasePrincipalAssignments"; diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeAuthKeysOperations.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeAuthKeysOperations.ts new file mode 100644 index 000000000000..1a1e08c273d9 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeAuthKeysOperations.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + IntegrationRuntimeRegenerateKeyParameters, + IntegrationRuntimeAuthKeysRegenerateOptionalParams, + IntegrationRuntimeAuthKeysRegenerateResponse, + IntegrationRuntimeAuthKeysListOptionalParams, + IntegrationRuntimeAuthKeysListResponse +} from "../models"; + +/** Interface representing a IntegrationRuntimeAuthKeysOperations. */ +export interface IntegrationRuntimeAuthKeysOperations { + /** + * Regenerate the authentication key for an integration runtime + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param regenerateKeyParameters The parameters for regenerating integration runtime authentication + * key. + * @param options The options parameters. + */ + regenerate( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + regenerateKeyParameters: IntegrationRuntimeRegenerateKeyParameters, + options?: IntegrationRuntimeAuthKeysRegenerateOptionalParams + ): Promise; + /** + * List authentication keys in an integration runtime + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimeAuthKeysListOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeConnectionInfos.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeConnectionInfos.ts new file mode 100644 index 000000000000..7000bc57eae7 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeConnectionInfos.ts @@ -0,0 +1,29 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + IntegrationRuntimeConnectionInfosGetOptionalParams, + IntegrationRuntimeConnectionInfosGetResponse +} from "../models"; + +/** Interface representing a IntegrationRuntimeConnectionInfos. */ +export interface IntegrationRuntimeConnectionInfos { + /** + * Get connection info for an integration runtime + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimeConnectionInfosGetOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeCredentials.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeCredentials.ts new file mode 100644 index 000000000000..c45441dc83e4 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeCredentials.ts @@ -0,0 +1,29 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { IntegrationRuntimeCredentialsSyncOptionalParams } from "../models"; + +/** Interface representing a IntegrationRuntimeCredentials. */ +export interface IntegrationRuntimeCredentials { + /** + * Force the integration runtime to synchronize credentials across integration runtime nodes, and this + * will override the credentials across all worker nodes with those available on the dispatcher node. + * If you already have the latest credential backup file, you should manually import it (preferred) on + * any self-hosted integration runtime node than using this API directly. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param options The options parameters. + */ + sync( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimeCredentialsSyncOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeMonitoringDataOperations.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeMonitoringDataOperations.ts new file mode 100644 index 000000000000..23a897c0602a --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeMonitoringDataOperations.ts @@ -0,0 +1,29 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + IntegrationRuntimeMonitoringDataListOptionalParams, + IntegrationRuntimeMonitoringDataListResponse +} from "../models"; + +/** Interface representing a IntegrationRuntimeMonitoringDataOperations. */ +export interface IntegrationRuntimeMonitoringDataOperations { + /** + * Get monitoring data for an integration runtime + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimeMonitoringDataListOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeNodeIpAddressOperations.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeNodeIpAddressOperations.ts new file mode 100644 index 000000000000..a6b82d2d67cf --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeNodeIpAddressOperations.ts @@ -0,0 +1,31 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + IntegrationRuntimeNodeIpAddressGetOptionalParams, + IntegrationRuntimeNodeIpAddressGetResponse +} from "../models"; + +/** Interface representing a IntegrationRuntimeNodeIpAddressOperations. */ +export interface IntegrationRuntimeNodeIpAddressOperations { + /** + * Get the IP address of an integration runtime node + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param nodeName Integration runtime node name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + nodeName: string, + options?: IntegrationRuntimeNodeIpAddressGetOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeNodes.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeNodes.ts new file mode 100644 index 000000000000..7e1894f9d20a --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeNodes.ts @@ -0,0 +1,67 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + IntegrationRuntimeNodesGetOptionalParams, + IntegrationRuntimeNodesGetResponse, + UpdateIntegrationRuntimeNodeRequest, + IntegrationRuntimeNodesUpdateOptionalParams, + IntegrationRuntimeNodesUpdateResponse, + IntegrationRuntimeNodesDeleteOptionalParams +} from "../models"; + +/** Interface representing a IntegrationRuntimeNodes. */ +export interface IntegrationRuntimeNodes { + /** + * Get an integration runtime node + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param nodeName Integration runtime node name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + nodeName: string, + options?: IntegrationRuntimeNodesGetOptionalParams + ): Promise; + /** + * Create an integration runtime node + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param nodeName Integration runtime node name + * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime node. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + nodeName: string, + updateIntegrationRuntimeNodeRequest: UpdateIntegrationRuntimeNodeRequest, + options?: IntegrationRuntimeNodesUpdateOptionalParams + ): Promise; + /** + * Delete an integration runtime node + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param nodeName Integration runtime node name + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + nodeName: string, + options?: IntegrationRuntimeNodesDeleteOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeObjectMetadata.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeObjectMetadata.ts new file mode 100644 index 000000000000..c7b5f8ba3096 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeObjectMetadata.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + IntegrationRuntimeObjectMetadataListOptionalParams, + IntegrationRuntimeObjectMetadataListResponse, + IntegrationRuntimeObjectMetadataRefreshOptionalParams, + IntegrationRuntimeObjectMetadataRefreshResponse +} from "../models"; + +/** Interface representing a IntegrationRuntimeObjectMetadata. */ +export interface IntegrationRuntimeObjectMetadata { + /** + * Get object metadata from an integration runtime + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimeObjectMetadataListOptionalParams + ): Promise; + /** + * Refresh the object metadata in an integration runtime + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param options The options parameters. + */ + beginRefresh( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimeObjectMetadataRefreshOptionalParams + ): Promise< + PollerLike< + PollOperationState, + IntegrationRuntimeObjectMetadataRefreshResponse + > + >; + /** + * Refresh the object metadata in an integration runtime + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param options The options parameters. + */ + beginRefreshAndWait( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimeObjectMetadataRefreshOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeStatusOperations.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeStatusOperations.ts new file mode 100644 index 000000000000..56ad60cad7b7 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimeStatusOperations.ts @@ -0,0 +1,29 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + IntegrationRuntimeStatusGetOptionalParams, + IntegrationRuntimeStatusGetResponse +} from "../models"; + +/** Interface representing a IntegrationRuntimeStatusOperations. */ +export interface IntegrationRuntimeStatusOperations { + /** + * Get the integration runtime status + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimeStatusGetOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimes.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimes.ts new file mode 100644 index 000000000000..954bec8933a7 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/integrationRuntimes.ts @@ -0,0 +1,272 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + IntegrationRuntimeResource, + IntegrationRuntimesListByWorkspaceOptionalParams, + UpdateIntegrationRuntimeRequest, + IntegrationRuntimesUpdateOptionalParams, + IntegrationRuntimesUpdateResponse, + IntegrationRuntimesGetOptionalParams, + IntegrationRuntimesGetResponse, + IntegrationRuntimesCreateOptionalParams, + IntegrationRuntimesCreateResponse, + IntegrationRuntimesDeleteOptionalParams, + IntegrationRuntimesUpgradeOptionalParams, + IntegrationRuntimesStartOptionalParams, + IntegrationRuntimesStartResponse, + IntegrationRuntimesStopOptionalParams, + IntegrationRuntimesListOutboundNetworkDependenciesEndpointsOptionalParams, + IntegrationRuntimesListOutboundNetworkDependenciesEndpointsResponse, + IntegrationRuntimesEnableInteractiveQueryOptionalParams, + IntegrationRuntimesDisableInteractiveQueryOptionalParams +} from "../models"; + +/// +/** Interface representing a IntegrationRuntimes. */ +export interface IntegrationRuntimes { + /** + * List all integration runtimes + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: IntegrationRuntimesListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Update an integration runtime + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param updateIntegrationRuntimeRequest The parameters for updating an integration runtime. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + updateIntegrationRuntimeRequest: UpdateIntegrationRuntimeRequest, + options?: IntegrationRuntimesUpdateOptionalParams + ): Promise; + /** + * Get an integration runtime + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesGetOptionalParams + ): Promise; + /** + * Create an integration runtime + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param integrationRuntime Integration runtime resource definition. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + integrationRuntime: IntegrationRuntimeResource, + options?: IntegrationRuntimesCreateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + IntegrationRuntimesCreateResponse + > + >; + /** + * Create an integration runtime + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param integrationRuntime Integration runtime resource definition. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + integrationRuntime: IntegrationRuntimeResource, + options?: IntegrationRuntimesCreateOptionalParams + ): Promise; + /** + * Delete an integration runtime + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesDeleteOptionalParams + ): Promise, void>>; + /** + * Delete an integration runtime + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesDeleteOptionalParams + ): Promise; + /** + * Upgrade an integration runtime + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param options The options parameters. + */ + upgrade( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesUpgradeOptionalParams + ): Promise; + /** + * Start an integration runtime + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param options The options parameters. + */ + beginStart( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesStartOptionalParams + ): Promise< + PollerLike< + PollOperationState, + IntegrationRuntimesStartResponse + > + >; + /** + * Start an integration runtime + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param options The options parameters. + */ + beginStartAndWait( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesStartOptionalParams + ): Promise; + /** + * Stop an integration runtime + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param options The options parameters. + */ + beginStop( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesStopOptionalParams + ): Promise, void>>; + /** + * Stop an integration runtime + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param options The options parameters. + */ + beginStopAndWait( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesStopOptionalParams + ): Promise; + /** + * Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param options The options parameters. + */ + listOutboundNetworkDependenciesEndpoints( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesListOutboundNetworkDependenciesEndpointsOptionalParams + ): Promise< + IntegrationRuntimesListOutboundNetworkDependenciesEndpointsResponse + >; + /** + * Enable interactive query in integration runtime + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param options The options parameters. + */ + beginEnableInteractiveQuery( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesEnableInteractiveQueryOptionalParams + ): Promise, void>>; + /** + * Enable interactive query in integration runtime + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param options The options parameters. + */ + beginEnableInteractiveQueryAndWait( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesEnableInteractiveQueryOptionalParams + ): Promise; + /** + * Disable interactive query in integration runtime + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param options The options parameters. + */ + beginDisableInteractiveQuery( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesDisableInteractiveQueryOptionalParams + ): Promise, void>>; + /** + * Disable interactive query in integration runtime + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param integrationRuntimeName Integration runtime name + * @param options The options parameters. + */ + beginDisableInteractiveQueryAndWait( + resourceGroupName: string, + workspaceName: string, + integrationRuntimeName: string, + options?: IntegrationRuntimesDisableInteractiveQueryOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/ipFirewallRules.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/ipFirewallRules.ts new file mode 100644 index 000000000000..675e43c4219b --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/ipFirewallRules.ts @@ -0,0 +1,149 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + IpFirewallRuleInfo, + IpFirewallRulesListByWorkspaceOptionalParams, + IpFirewallRulesCreateOrUpdateOptionalParams, + IpFirewallRulesCreateOrUpdateResponse, + IpFirewallRulesDeleteOptionalParams, + IpFirewallRulesDeleteResponse, + IpFirewallRulesGetOptionalParams, + IpFirewallRulesGetResponse, + ReplaceAllIpFirewallRulesRequest, + IpFirewallRulesReplaceAllOptionalParams, + IpFirewallRulesReplaceAllResponse +} from "../models"; + +/// +/** Interface representing a IpFirewallRules. */ +export interface IpFirewallRules { + /** + * Returns a list of firewall rules + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: IpFirewallRulesListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Creates or updates a firewall rule + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param ruleName The IP firewall rule name + * @param ipFirewallRuleInfo IP firewall rule properties + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + ipFirewallRuleInfo: IpFirewallRuleInfo, + options?: IpFirewallRulesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + IpFirewallRulesCreateOrUpdateResponse + > + >; + /** + * Creates or updates a firewall rule + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param ruleName The IP firewall rule name + * @param ipFirewallRuleInfo IP firewall rule properties + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + ipFirewallRuleInfo: IpFirewallRuleInfo, + options?: IpFirewallRulesCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a firewall rule + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param ruleName The IP firewall rule name + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: IpFirewallRulesDeleteOptionalParams + ): Promise< + PollerLike< + PollOperationState, + IpFirewallRulesDeleteResponse + > + >; + /** + * Deletes a firewall rule + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param ruleName The IP firewall rule name + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: IpFirewallRulesDeleteOptionalParams + ): Promise; + /** + * Get a firewall rule + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param ruleName The IP firewall rule name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: IpFirewallRulesGetOptionalParams + ): Promise; + /** + * Replaces firewall rules + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param request Replace all IP firewall rules request + * @param options The options parameters. + */ + beginReplaceAll( + resourceGroupName: string, + workspaceName: string, + request: ReplaceAllIpFirewallRulesRequest, + options?: IpFirewallRulesReplaceAllOptionalParams + ): Promise< + PollerLike< + PollOperationState, + IpFirewallRulesReplaceAllResponse + > + >; + /** + * Replaces firewall rules + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param request Replace all IP firewall rules request + * @param options The options parameters. + */ + beginReplaceAllAndWait( + resourceGroupName: string, + workspaceName: string, + request: ReplaceAllIpFirewallRulesRequest, + options?: IpFirewallRulesReplaceAllOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/keys.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/keys.ts new file mode 100644 index 000000000000..36d4b090746e --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/keys.ts @@ -0,0 +1,76 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + Key, + KeysListByWorkspaceOptionalParams, + KeysGetOptionalParams, + KeysGetResponse, + KeysCreateOrUpdateOptionalParams, + KeysCreateOrUpdateResponse, + KeysDeleteOptionalParams, + KeysDeleteResponse +} from "../models"; + +/// +/** Interface representing a Keys. */ +export interface Keys { + /** + * Returns a list of keys in a workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: KeysListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a workspace key + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param keyName The name of the workspace key + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + keyName: string, + options?: KeysGetOptionalParams + ): Promise; + /** + * Creates or updates a workspace key + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param keyName The name of the workspace key + * @param keyProperties Key put request properties + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + keyName: string, + keyProperties: Key, + options?: KeysCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a workspace key + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param keyName The name of the workspace key + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + keyName: string, + options?: KeysDeleteOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoOperations.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoOperations.ts new file mode 100644 index 000000000000..0f1f94d0392c --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoOperations.ts @@ -0,0 +1,22 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Operation, KustoOperationsListOptionalParams } from "../models"; + +/// +/** Interface representing a KustoOperations. */ +export interface KustoOperations { + /** + * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. + * @param options The options parameters. + */ + list( + options?: KustoOperationsListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolAttachedDatabaseConfigurations.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolAttachedDatabaseConfigurations.ts new file mode 100644 index 000000000000..4f28006d9178 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolAttachedDatabaseConfigurations.ts @@ -0,0 +1,123 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + AttachedDatabaseConfiguration, + KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams, + KustoPoolAttachedDatabaseConfigurationsGetOptionalParams, + KustoPoolAttachedDatabaseConfigurationsGetResponse, + KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams, + KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse, + KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a KustoPoolAttachedDatabaseConfigurations. */ +export interface KustoPoolAttachedDatabaseConfigurations { + /** + * Returns the list of attached database configurations of the given Kusto Pool. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByKustoPool( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns an attached database configuration. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param attachedDatabaseConfigurationName The name of the attached database configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + get( + workspaceName: string, + kustoPoolName: string, + attachedDatabaseConfigurationName: string, + resourceGroupName: string, + options?: KustoPoolAttachedDatabaseConfigurationsGetOptionalParams + ): Promise; + /** + * Creates or updates an attached database configuration. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param attachedDatabaseConfigurationName The name of the attached database configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The database parameters supplied to the CreateOrUpdate operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + workspaceName: string, + kustoPoolName: string, + attachedDatabaseConfigurationName: string, + resourceGroupName: string, + parameters: AttachedDatabaseConfiguration, + options?: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState< + KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse + >, + KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse + > + >; + /** + * Creates or updates an attached database configuration. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param attachedDatabaseConfigurationName The name of the attached database configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The database parameters supplied to the CreateOrUpdate operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + workspaceName: string, + kustoPoolName: string, + attachedDatabaseConfigurationName: string, + resourceGroupName: string, + parameters: AttachedDatabaseConfiguration, + options?: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the attached database configuration with the given name. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param attachedDatabaseConfigurationName The name of the attached database configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + beginDelete( + workspaceName: string, + kustoPoolName: string, + attachedDatabaseConfigurationName: string, + resourceGroupName: string, + options?: KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes the attached database configuration with the given name. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param attachedDatabaseConfigurationName The name of the attached database configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + beginDeleteAndWait( + workspaceName: string, + kustoPoolName: string, + attachedDatabaseConfigurationName: string, + resourceGroupName: string, + options?: KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolChildResource.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolChildResource.ts new file mode 100644 index 000000000000..d240c0e6359d --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolChildResource.ts @@ -0,0 +1,32 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + DatabaseCheckNameRequest, + KustoPoolChildResourceCheckNameAvailabilityOptionalParams, + KustoPoolChildResourceCheckNameAvailabilityResponse +} from "../models"; + +/** Interface representing a KustoPoolChildResource. */ +export interface KustoPoolChildResource { + /** + * Checks that the Kusto Pool child resource name is valid and is not already in use. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Kusto Pool child resource. + * @param options The options parameters. + */ + checkNameAvailability( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + resourceName: DatabaseCheckNameRequest, + options?: KustoPoolChildResourceCheckNameAvailabilityOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDataConnections.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDataConnections.ts new file mode 100644 index 000000000000..a2177606496e --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDataConnections.ts @@ -0,0 +1,242 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + DataConnectionUnion, + KustoPoolDataConnectionsListByDatabaseOptionalParams, + DataConnectionCheckNameRequest, + KustoPoolDataConnectionsCheckNameAvailabilityOptionalParams, + KustoPoolDataConnectionsCheckNameAvailabilityResponse, + DataConnectionValidation, + KustoPoolDataConnectionsDataConnectionValidationOptionalParams, + KustoPoolDataConnectionsDataConnectionValidationResponse, + KustoPoolDataConnectionsGetOptionalParams, + KustoPoolDataConnectionsGetResponse, + KustoPoolDataConnectionsCreateOrUpdateOptionalParams, + KustoPoolDataConnectionsCreateOrUpdateResponse, + KustoPoolDataConnectionsUpdateOptionalParams, + KustoPoolDataConnectionsUpdateResponse, + KustoPoolDataConnectionsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a KustoPoolDataConnections. */ +export interface KustoPoolDataConnections { + /** + * Returns the list of data connections of the given Kusto pool database. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param options The options parameters. + */ + listByDatabase( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + options?: KustoPoolDataConnectionsListByDatabaseOptionalParams + ): PagedAsyncIterableIterator; + /** + * Checks that the data connection name is valid and is not already in use. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param options The options parameters. + */ + checkNameAvailability( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + dataConnectionName: DataConnectionCheckNameRequest, + options?: KustoPoolDataConnectionsCheckNameAvailabilityOptionalParams + ): Promise; + /** + * Checks that the data connection parameters are valid. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. + * @param options The options parameters. + */ + beginDataConnectionValidation( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + parameters: DataConnectionValidation, + options?: KustoPoolDataConnectionsDataConnectionValidationOptionalParams + ): Promise< + PollerLike< + PollOperationState< + KustoPoolDataConnectionsDataConnectionValidationResponse + >, + KustoPoolDataConnectionsDataConnectionValidationResponse + > + >; + /** + * Checks that the data connection parameters are valid. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. + * @param options The options parameters. + */ + beginDataConnectionValidationAndWait( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + parameters: DataConnectionValidation, + options?: KustoPoolDataConnectionsDataConnectionValidationOptionalParams + ): Promise; + /** + * Returns a data connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + dataConnectionName: string, + options?: KustoPoolDataConnectionsGetOptionalParams + ): Promise; + /** + * Creates or updates a data connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + dataConnectionName: string, + parameters: DataConnectionUnion, + options?: KustoPoolDataConnectionsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + KustoPoolDataConnectionsCreateOrUpdateResponse + > + >; + /** + * Creates or updates a data connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param parameters The data connection parameters supplied to the CreateOrUpdate operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + dataConnectionName: string, + parameters: DataConnectionUnion, + options?: KustoPoolDataConnectionsCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates a data connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param parameters The data connection parameters supplied to the Update operation. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + dataConnectionName: string, + parameters: DataConnectionUnion, + options?: KustoPoolDataConnectionsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + KustoPoolDataConnectionsUpdateResponse + > + >; + /** + * Updates a data connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param parameters The data connection parameters supplied to the Update operation. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + dataConnectionName: string, + parameters: DataConnectionUnion, + options?: KustoPoolDataConnectionsUpdateOptionalParams + ): Promise; + /** + * Deletes the data connection with the given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + dataConnectionName: string, + options?: KustoPoolDataConnectionsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes the data connection with the given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param dataConnectionName The name of the data connection. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + dataConnectionName: string, + options?: KustoPoolDataConnectionsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDatabasePrincipalAssignments.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDatabasePrincipalAssignments.ts new file mode 100644 index 000000000000..777bb3f08bc3 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDatabasePrincipalAssignments.ts @@ -0,0 +1,157 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + DatabasePrincipalAssignment, + KustoPoolDatabasePrincipalAssignmentsListOptionalParams, + DatabasePrincipalAssignmentCheckNameRequest, + KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityOptionalParams, + KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityResponse, + KustoPoolDatabasePrincipalAssignmentsGetOptionalParams, + KustoPoolDatabasePrincipalAssignmentsGetResponse, + KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams, + KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateResponse, + KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a KustoPoolDatabasePrincipalAssignments. */ +export interface KustoPoolDatabasePrincipalAssignments { + /** + * Lists all Kusto pool database principalAssignments. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + list( + workspaceName: string, + kustoPoolName: string, + databaseName: string, + resourceGroupName: string, + options?: KustoPoolDatabasePrincipalAssignmentsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Checks that the database principal assignment is valid and is not already in use. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param principalAssignmentName The name of the resource. + * @param options The options parameters. + */ + checkNameAvailability( + workspaceName: string, + kustoPoolName: string, + databaseName: string, + resourceGroupName: string, + principalAssignmentName: DatabasePrincipalAssignmentCheckNameRequest, + options?: KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityOptionalParams + ): Promise< + KustoPoolDatabasePrincipalAssignmentsCheckNameAvailabilityResponse + >; + /** + * Gets a Kusto pool database principalAssignment. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + get( + workspaceName: string, + kustoPoolName: string, + databaseName: string, + principalAssignmentName: string, + resourceGroupName: string, + options?: KustoPoolDatabasePrincipalAssignmentsGetOptionalParams + ): Promise; + /** + * Creates a Kusto pool database principalAssignment. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The Kusto principalAssignments parameters supplied for the operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + workspaceName: string, + kustoPoolName: string, + databaseName: string, + principalAssignmentName: string, + resourceGroupName: string, + parameters: DatabasePrincipalAssignment, + options?: KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState< + KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateResponse + >, + KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateResponse + > + >; + /** + * Creates a Kusto pool database principalAssignment. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The Kusto principalAssignments parameters supplied for the operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + workspaceName: string, + kustoPoolName: string, + databaseName: string, + principalAssignmentName: string, + resourceGroupName: string, + parameters: DatabasePrincipalAssignment, + options?: KustoPoolDatabasePrincipalAssignmentsCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a Kusto pool principalAssignment. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + beginDelete( + workspaceName: string, + kustoPoolName: string, + databaseName: string, + principalAssignmentName: string, + resourceGroupName: string, + options?: KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a Kusto pool principalAssignment. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + beginDeleteAndWait( + workspaceName: string, + kustoPoolName: string, + databaseName: string, + principalAssignmentName: string, + resourceGroupName: string, + options?: KustoPoolDatabasePrincipalAssignmentsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDatabases.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDatabases.ts new file mode 100644 index 000000000000..3dcc499baaa4 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolDatabases.ts @@ -0,0 +1,162 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + DatabaseUnion, + KustoPoolDatabasesListByKustoPoolOptionalParams, + KustoPoolDatabasesGetOptionalParams, + KustoPoolDatabasesGetResponse, + KustoPoolDatabasesCreateOrUpdateOptionalParams, + KustoPoolDatabasesCreateOrUpdateResponse, + KustoPoolDatabasesUpdateOptionalParams, + KustoPoolDatabasesUpdateResponse, + KustoPoolDatabasesDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a KustoPoolDatabases. */ +export interface KustoPoolDatabases { + /** + * Returns the list of databases of the given Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param options The options parameters. + */ + listByKustoPool( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + options?: KustoPoolDatabasesListByKustoPoolOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns a database. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + options?: KustoPoolDatabasesGetOptionalParams + ): Promise; + /** + * Creates or updates a database. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param parameters The database parameters supplied to the CreateOrUpdate operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + parameters: DatabaseUnion, + options?: KustoPoolDatabasesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + KustoPoolDatabasesCreateOrUpdateResponse + > + >; + /** + * Creates or updates a database. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param parameters The database parameters supplied to the CreateOrUpdate operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + parameters: DatabaseUnion, + options?: KustoPoolDatabasesCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates a database. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param parameters The database parameters supplied to the Update operation. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + parameters: DatabaseUnion, + options?: KustoPoolDatabasesUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + KustoPoolDatabasesUpdateResponse + > + >; + /** + * Updates a database. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param parameters The database parameters supplied to the Update operation. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + parameters: DatabaseUnion, + options?: KustoPoolDatabasesUpdateOptionalParams + ): Promise; + /** + * Deletes the database with the given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + options?: KustoPoolDatabasesDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes the database with the given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param databaseName The name of the database in the Kusto pool. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + kustoPoolName: string, + databaseName: string, + options?: KustoPoolDatabasesDeleteOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolPrincipalAssignments.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolPrincipalAssignments.ts new file mode 100644 index 000000000000..54bb84beade0 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPoolPrincipalAssignments.ts @@ -0,0 +1,139 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + ClusterPrincipalAssignment, + KustoPoolPrincipalAssignmentsListOptionalParams, + ClusterPrincipalAssignmentCheckNameRequest, + KustoPoolPrincipalAssignmentsCheckNameAvailabilityOptionalParams, + KustoPoolPrincipalAssignmentsCheckNameAvailabilityResponse, + KustoPoolPrincipalAssignmentsGetOptionalParams, + KustoPoolPrincipalAssignmentsGetResponse, + KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams, + KustoPoolPrincipalAssignmentsCreateOrUpdateResponse, + KustoPoolPrincipalAssignmentsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a KustoPoolPrincipalAssignments. */ +export interface KustoPoolPrincipalAssignments { + /** + * Lists all Kusto pool principalAssignments. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + list( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolPrincipalAssignmentsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Checks that the principal assignment name is valid and is not already in use. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param principalAssignmentName The name of the principal assignment. + * @param options The options parameters. + */ + checkNameAvailability( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + principalAssignmentName: ClusterPrincipalAssignmentCheckNameRequest, + options?: KustoPoolPrincipalAssignmentsCheckNameAvailabilityOptionalParams + ): Promise; + /** + * Gets a Kusto pool principalAssignment. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + get( + workspaceName: string, + kustoPoolName: string, + principalAssignmentName: string, + resourceGroupName: string, + options?: KustoPoolPrincipalAssignmentsGetOptionalParams + ): Promise; + /** + * Create a Kusto pool principalAssignment. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The Kusto pool principalAssignment's parameters supplied for the operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + workspaceName: string, + kustoPoolName: string, + principalAssignmentName: string, + resourceGroupName: string, + parameters: ClusterPrincipalAssignment, + options?: KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + KustoPoolPrincipalAssignmentsCreateOrUpdateResponse + > + >; + /** + * Create a Kusto pool principalAssignment. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param parameters The Kusto pool principalAssignment's parameters supplied for the operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + workspaceName: string, + kustoPoolName: string, + principalAssignmentName: string, + resourceGroupName: string, + parameters: ClusterPrincipalAssignment, + options?: KustoPoolPrincipalAssignmentsCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a Kusto pool principalAssignment. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + beginDelete( + workspaceName: string, + kustoPoolName: string, + principalAssignmentName: string, + resourceGroupName: string, + options?: KustoPoolPrincipalAssignmentsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a Kusto pool principalAssignment. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param principalAssignmentName The name of the Kusto principalAssignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + beginDeleteAndWait( + workspaceName: string, + kustoPoolName: string, + principalAssignmentName: string, + resourceGroupName: string, + options?: KustoPoolPrincipalAssignmentsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPools.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPools.ts new file mode 100644 index 000000000000..c7d83cc0c53d --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/kustoPools.ts @@ -0,0 +1,365 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + SkuDescription, + KustoPoolsListSkusOptionalParams, + AzureResourceSku, + KustoPoolsListSkusByResourceOptionalParams, + LanguageExtension, + KustoPoolsListLanguageExtensionsOptionalParams, + FollowerDatabaseDefinition, + KustoPoolsListFollowerDatabasesOptionalParams, + KustoPoolCheckNameRequest, + KustoPoolsCheckNameAvailabilityOptionalParams, + KustoPoolsCheckNameAvailabilityResponse, + KustoPoolsListByWorkspaceOptionalParams, + KustoPoolsListByWorkspaceResponse, + KustoPoolsGetOptionalParams, + KustoPoolsGetResponse, + KustoPool, + KustoPoolsCreateOrUpdateOptionalParams, + KustoPoolsCreateOrUpdateResponse, + KustoPoolUpdate, + KustoPoolsUpdateOptionalParams, + KustoPoolsUpdateResponse, + KustoPoolsDeleteOptionalParams, + KustoPoolsStopOptionalParams, + KustoPoolsStartOptionalParams, + LanguageExtensionsList, + KustoPoolsAddLanguageExtensionsOptionalParams, + KustoPoolsRemoveLanguageExtensionsOptionalParams, + KustoPoolsDetachFollowerDatabasesOptionalParams +} from "../models"; + +/// +/** Interface representing a KustoPools. */ +export interface KustoPools { + /** + * Lists eligible SKUs for Kusto Pool resource. + * @param options The options parameters. + */ + listSkus( + options?: KustoPoolsListSkusOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns the SKUs available for the provided resource. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listSkusByResource( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsListSkusByResourceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns a list of language extensions that can run within KQL queries. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listLanguageExtensions( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsListLanguageExtensionsOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns a list of databases that are owned by this Kusto Pool and were followed by another Kusto + * Pool. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listFollowerDatabases( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsListFollowerDatabasesOptionalParams + ): PagedAsyncIterableIterator; + /** + * Checks that the kusto pool name is valid and is not already in use. + * @param location The name of Azure region. + * @param kustoPoolName The name of the cluster. + * @param options The options parameters. + */ + checkNameAvailability( + location: string, + kustoPoolName: KustoPoolCheckNameRequest, + options?: KustoPoolsCheckNameAvailabilityOptionalParams + ): Promise; + /** + * List all Kusto pools + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: KustoPoolsListByWorkspaceOptionalParams + ): Promise; + /** + * Gets a Kusto pool. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + get( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsGetOptionalParams + ): Promise; + /** + * Create or update a Kusto pool. + * @param workspaceName The name of the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kustoPoolName The name of the Kusto pool. + * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + workspaceName: string, + resourceGroupName: string, + kustoPoolName: string, + parameters: KustoPool, + options?: KustoPoolsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + KustoPoolsCreateOrUpdateResponse + > + >; + /** + * Create or update a Kusto pool. + * @param workspaceName The name of the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kustoPoolName The name of the Kusto pool. + * @param parameters The Kusto pool parameters supplied to the CreateOrUpdate operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + workspaceName: string, + resourceGroupName: string, + kustoPoolName: string, + parameters: KustoPool, + options?: KustoPoolsCreateOrUpdateOptionalParams + ): Promise; + /** + * Update a Kusto Kusto Pool. + * @param workspaceName The name of the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kustoPoolName The name of the Kusto pool. + * @param parameters The Kusto pool parameters supplied to the Update operation. + * @param options The options parameters. + */ + beginUpdate( + workspaceName: string, + resourceGroupName: string, + kustoPoolName: string, + parameters: KustoPoolUpdate, + options?: KustoPoolsUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + KustoPoolsUpdateResponse + > + >; + /** + * Update a Kusto Kusto Pool. + * @param workspaceName The name of the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kustoPoolName The name of the Kusto pool. + * @param parameters The Kusto pool parameters supplied to the Update operation. + * @param options The options parameters. + */ + beginUpdateAndWait( + workspaceName: string, + resourceGroupName: string, + kustoPoolName: string, + parameters: KustoPoolUpdate, + options?: KustoPoolsUpdateOptionalParams + ): Promise; + /** + * Deletes a Kusto pool. + * @param workspaceName The name of the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kustoPoolName The name of the Kusto pool. + * @param options The options parameters. + */ + beginDelete( + workspaceName: string, + resourceGroupName: string, + kustoPoolName: string, + options?: KustoPoolsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a Kusto pool. + * @param workspaceName The name of the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param kustoPoolName The name of the Kusto pool. + * @param options The options parameters. + */ + beginDeleteAndWait( + workspaceName: string, + resourceGroupName: string, + kustoPoolName: string, + options?: KustoPoolsDeleteOptionalParams + ): Promise; + /** + * Stops a Kusto pool. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + beginStop( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsStopOptionalParams + ): Promise, void>>; + /** + * Stops a Kusto pool. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + beginStopAndWait( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsStopOptionalParams + ): Promise; + /** + * Starts a Kusto pool. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + beginStart( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsStartOptionalParams + ): Promise, void>>; + /** + * Starts a Kusto pool. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + beginStartAndWait( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + options?: KustoPoolsStartOptionalParams + ): Promise; + /** + * Add a list of language extensions that can run within KQL queries. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param languageExtensionsToAdd The language extensions to add. + * @param options The options parameters. + */ + beginAddLanguageExtensions( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + languageExtensionsToAdd: LanguageExtensionsList, + options?: KustoPoolsAddLanguageExtensionsOptionalParams + ): Promise, void>>; + /** + * Add a list of language extensions that can run within KQL queries. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param languageExtensionsToAdd The language extensions to add. + * @param options The options parameters. + */ + beginAddLanguageExtensionsAndWait( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + languageExtensionsToAdd: LanguageExtensionsList, + options?: KustoPoolsAddLanguageExtensionsOptionalParams + ): Promise; + /** + * Remove a list of language extensions that can run within KQL queries. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param languageExtensionsToRemove The language extensions to remove. + * @param options The options parameters. + */ + beginRemoveLanguageExtensions( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + languageExtensionsToRemove: LanguageExtensionsList, + options?: KustoPoolsRemoveLanguageExtensionsOptionalParams + ): Promise, void>>; + /** + * Remove a list of language extensions that can run within KQL queries. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param languageExtensionsToRemove The language extensions to remove. + * @param options The options parameters. + */ + beginRemoveLanguageExtensionsAndWait( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + languageExtensionsToRemove: LanguageExtensionsList, + options?: KustoPoolsRemoveLanguageExtensionsOptionalParams + ): Promise; + /** + * Detaches all followers of a database owned by this Kusto Pool. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param followerDatabaseToRemove The follower databases properties to remove. + * @param options The options parameters. + */ + beginDetachFollowerDatabases( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + followerDatabaseToRemove: FollowerDatabaseDefinition, + options?: KustoPoolsDetachFollowerDatabasesOptionalParams + ): Promise, void>>; + /** + * Detaches all followers of a database owned by this Kusto Pool. + * @param workspaceName The name of the workspace. + * @param kustoPoolName The name of the Kusto pool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param followerDatabaseToRemove The follower databases properties to remove. + * @param options The options parameters. + */ + beginDetachFollowerDatabasesAndWait( + workspaceName: string, + kustoPoolName: string, + resourceGroupName: string, + followerDatabaseToRemove: FollowerDatabaseDefinition, + options?: KustoPoolsDetachFollowerDatabasesOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/libraries.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/libraries.ts new file mode 100644 index 000000000000..e5f381555adc --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/libraries.ts @@ -0,0 +1,29 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + LibraryResource, + LibrariesListByWorkspaceOptionalParams +} from "../models"; + +/// +/** Interface representing a Libraries. */ +export interface Libraries { + /** + * List libraries in a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: LibrariesListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/library.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/library.ts new file mode 100644 index 000000000000..ae576736df04 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/library.ts @@ -0,0 +1,26 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { LibraryGetOptionalParams, LibraryGetResponse } from "../models"; + +/** Interface representing a Library. */ +export interface Library { + /** + * Get library by name in a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param libraryName Library name + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + libraryName: string, + workspaceName: string, + options?: LibraryGetOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/operations.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/operations.ts new file mode 100644 index 000000000000..dad3b6b1d5eb --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/operations.ts @@ -0,0 +1,62 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + CheckNameAvailabilityRequest, + OperationsCheckNameAvailabilityOptionalParams, + OperationsCheckNameAvailabilityResponse, + OperationsListOptionalParams, + OperationsListResponse, + OperationsGetLocationHeaderResultOptionalParams, + OperationsGetAzureAsyncHeaderResultOptionalParams, + OperationsGetAzureAsyncHeaderResultResponse +} from "../models"; + +/** Interface representing a Operations. */ +export interface Operations { + /** + * Check whether a workspace name is available + * @param request The check request + * @param options The options parameters. + */ + checkNameAvailability( + request: CheckNameAvailabilityRequest, + options?: OperationsCheckNameAvailabilityOptionalParams + ): Promise; + /** + * Get all available operations + * @param options The options parameters. + */ + list(options?: OperationsListOptionalParams): Promise; + /** + * Get the result of an operation + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param operationId Operation ID + * @param options The options parameters. + */ + getLocationHeaderResult( + resourceGroupName: string, + workspaceName: string, + operationId: string, + options?: OperationsGetLocationHeaderResultOptionalParams + ): Promise; + /** + * Get the status of an operation + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param operationId Operation ID + * @param options The options parameters. + */ + getAzureAsyncHeaderResult( + resourceGroupName: string, + workspaceName: string, + operationId: string, + options?: OperationsGetAzureAsyncHeaderResultOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/privateEndpointConnections.ts new file mode 100644 index 000000000000..fc2cb339e0d8 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/privateEndpointConnections.ts @@ -0,0 +1,109 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + PrivateEndpointConnection, + PrivateEndpointConnectionsListOptionalParams, + PrivateEndpointConnectionsGetOptionalParams, + PrivateEndpointConnectionsGetResponse, + PrivateEndpointConnectionsCreateOptionalParams, + PrivateEndpointConnectionsCreateResponse, + PrivateEndpointConnectionsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a PrivateEndpointConnections. */ +export interface PrivateEndpointConnections { + /** + * Lists private endpoint connection in workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a private endpoint connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsGetOptionalParams + ): Promise; + /** + * Approve or reject a private endpoint connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param request Request body of private endpoint connection to create. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + request: PrivateEndpointConnection, + options?: PrivateEndpointConnectionsCreateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + PrivateEndpointConnectionsCreateResponse + > + >; + /** + * Approve or reject a private endpoint connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param request Request body of private endpoint connection to create. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + request: PrivateEndpointConnection, + options?: PrivateEndpointConnectionsCreateOptionalParams + ): Promise; + /** + * Delete a private endpoint connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete a private endpoint connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/privateEndpointConnectionsPrivateLinkHub.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/privateEndpointConnectionsPrivateLinkHub.ts new file mode 100644 index 000000000000..1797d1771fb1 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/privateEndpointConnectionsPrivateLinkHub.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + PrivateEndpointConnectionForPrivateLinkHub, + PrivateEndpointConnectionsPrivateLinkHubListOptionalParams, + PrivateEndpointConnectionsPrivateLinkHubGetOptionalParams, + PrivateEndpointConnectionsPrivateLinkHubGetResponse +} from "../models"; + +/// +/** Interface representing a PrivateEndpointConnectionsPrivateLinkHub. */ +export interface PrivateEndpointConnectionsPrivateLinkHub { + /** + * Get all PrivateEndpointConnections in the PrivateLinkHub + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateLinkHubName Name of the privateLinkHub + * @param options The options parameters. + */ + list( + resourceGroupName: string, + privateLinkHubName: string, + options?: PrivateEndpointConnectionsPrivateLinkHubListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get all PrivateEndpointConnection in the PrivateLinkHub by name + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateLinkHubName Name of the privateLinkHub + * @param privateEndpointConnectionName Name of the privateEndpointConnection + * @param options The options parameters. + */ + get( + resourceGroupName: string, + privateLinkHubName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsPrivateLinkHubGetOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkHubPrivateLinkResources.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkHubPrivateLinkResources.ts new file mode 100644 index 000000000000..b8fec922549d --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkHubPrivateLinkResources.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + PrivateLinkResource, + PrivateLinkHubPrivateLinkResourcesListOptionalParams, + PrivateLinkHubPrivateLinkResourcesGetOptionalParams, + PrivateLinkHubPrivateLinkResourcesGetResponse +} from "../models"; + +/// +/** Interface representing a PrivateLinkHubPrivateLinkResources. */ +export interface PrivateLinkHubPrivateLinkResources { + /** + * Get all private link resources for a private link hub + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateLinkHubName The name of the private link hub + * @param options The options parameters. + */ + list( + resourceGroupName: string, + privateLinkHubName: string, + options?: PrivateLinkHubPrivateLinkResourcesListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get private link resource in private link hub + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateLinkHubName The name of the private link hub + * @param privateLinkResourceName The name of the private link resource + * @param options The options parameters. + */ + get( + resourceGroupName: string, + privateLinkHubName: string, + privateLinkResourceName: string, + options?: PrivateLinkHubPrivateLinkResourcesGetOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkHubs.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkHubs.ts new file mode 100644 index 000000000000..6395a9d70f43 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkHubs.ts @@ -0,0 +1,103 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + PrivateLinkHub, + PrivateLinkHubsListByResourceGroupOptionalParams, + PrivateLinkHubsListOptionalParams, + PrivateLinkHubsGetOptionalParams, + PrivateLinkHubsGetResponse, + PrivateLinkHubPatchInfo, + PrivateLinkHubsUpdateOptionalParams, + PrivateLinkHubsUpdateResponse, + PrivateLinkHubsCreateOrUpdateOptionalParams, + PrivateLinkHubsCreateOrUpdateResponse, + PrivateLinkHubsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a PrivateLinkHubs. */ +export interface PrivateLinkHubs { + /** + * Returns a list of privateLinkHubs in a resource group + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup( + resourceGroupName: string, + options?: PrivateLinkHubsListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns a list of privateLinkHubs in a subscription + * @param options The options parameters. + */ + list( + options?: PrivateLinkHubsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a privateLinkHub + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateLinkHubName Name of the privateLinkHub + * @param options The options parameters. + */ + get( + resourceGroupName: string, + privateLinkHubName: string, + options?: PrivateLinkHubsGetOptionalParams + ): Promise; + /** + * Updates a privateLinkHub + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateLinkHubName Name of the privateLinkHub + * @param privateLinkHubPatchInfo PrivateLinkHub patch request properties + * @param options The options parameters. + */ + update( + resourceGroupName: string, + privateLinkHubName: string, + privateLinkHubPatchInfo: PrivateLinkHubPatchInfo, + options?: PrivateLinkHubsUpdateOptionalParams + ): Promise; + /** + * Creates or updates a privateLinkHub + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateLinkHubName Name of the privateLinkHub + * @param privateLinkHubInfo PrivateLinkHub create or update request properties + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + privateLinkHubName: string, + privateLinkHubInfo: PrivateLinkHub, + options?: PrivateLinkHubsCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a privateLinkHub + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateLinkHubName Name of the privateLinkHub + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + privateLinkHubName: string, + options?: PrivateLinkHubsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a privateLinkHub + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateLinkHubName Name of the privateLinkHub + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + privateLinkHubName: string, + options?: PrivateLinkHubsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkResources.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkResources.ts new file mode 100644 index 000000000000..e05033ae9699 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/privateLinkResources.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + PrivateLinkResource, + PrivateLinkResourcesListOptionalParams, + PrivateLinkResourcesGetOptionalParams, + PrivateLinkResourcesGetResponse +} from "../models"; + +/// +/** Interface representing a PrivateLinkResources. */ +export interface PrivateLinkResources { + /** + * Get all private link resources for a workspaces + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateLinkResourcesListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get private link resource in workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param privateLinkResourceName The name of the private link resource + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + privateLinkResourceName: string, + options?: PrivateLinkResourcesGetOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/restorableDroppedSqlPools.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/restorableDroppedSqlPools.ts new file mode 100644 index 000000000000..8bba0d630cda --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/restorableDroppedSqlPools.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + RestorableDroppedSqlPool, + RestorableDroppedSqlPoolsListByWorkspaceOptionalParams, + RestorableDroppedSqlPoolsGetOptionalParams, + RestorableDroppedSqlPoolsGetResponse +} from "../models"; + +/// +/** Interface representing a RestorableDroppedSqlPools. */ +export interface RestorableDroppedSqlPools { + /** + * Gets a list of deleted Sql pools that can be restored + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: RestorableDroppedSqlPoolsListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a deleted sql pool that can be restored + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param restorableDroppedSqlPoolId The id of the deleted Sql Pool in the form of + * sqlPoolName,deletionTimeInFileTimeFormat + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + restorableDroppedSqlPoolId: string, + options?: RestorableDroppedSqlPoolsGetOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sparkConfiguration.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sparkConfiguration.ts new file mode 100644 index 000000000000..3ac06c554694 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sparkConfiguration.ts @@ -0,0 +1,29 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + SparkConfigurationGetOptionalParams, + SparkConfigurationGetResponse +} from "../models"; + +/** Interface representing a SparkConfiguration. */ +export interface SparkConfiguration { + /** + * Get SparkConfiguration by name in a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param sparkConfigurationName SparkConfiguration name + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + sparkConfigurationName: string, + workspaceName: string, + options?: SparkConfigurationGetOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sparkConfigurations.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sparkConfigurations.ts new file mode 100644 index 000000000000..10fe10bb48bd --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sparkConfigurations.ts @@ -0,0 +1,29 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + SparkConfigurationResource, + SparkConfigurationsListByWorkspaceOptionalParams +} from "../models"; + +/// +/** Interface representing a SparkConfigurations. */ +export interface SparkConfigurations { + /** + * List sparkConfigurations in a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: SparkConfigurationsListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolBlobAuditingPolicies.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolBlobAuditingPolicies.ts new file mode 100644 index 000000000000..da9a55046790 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolBlobAuditingPolicies.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + SqlPoolBlobAuditingPolicy, + SqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams, + SqlPoolBlobAuditingPoliciesGetOptionalParams, + SqlPoolBlobAuditingPoliciesGetResponse, + SqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams, + SqlPoolBlobAuditingPoliciesCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a SqlPoolBlobAuditingPolicies. */ +export interface SqlPoolBlobAuditingPolicies { + /** + * 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 options parameters. + */ + listBySqlPool( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolBlobAuditingPoliciesListBySqlPoolOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get a 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 options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolBlobAuditingPoliciesGetOptionalParams + ): Promise; + /** + * Creates or updates a 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 database blob auditing policy. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + parameters: SqlPoolBlobAuditingPolicy, + options?: SqlPoolBlobAuditingPoliciesCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolColumns.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolColumns.ts new file mode 100644 index 000000000000..23d1c92b6c92 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolColumns.ts @@ -0,0 +1,35 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + SqlPoolColumnsGetOptionalParams, + SqlPoolColumnsGetResponse +} from "../models"; + +/** Interface representing a SqlPoolColumns. */ +export interface SqlPoolColumns { + /** + * 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 options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + tableName: string, + columnName: string, + options?: SqlPoolColumnsGetOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolConnectionPolicies.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolConnectionPolicies.ts new file mode 100644 index 000000000000..48786a8c8db0 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolConnectionPolicies.ts @@ -0,0 +1,32 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + ConnectionPolicyName, + SqlPoolConnectionPoliciesGetOptionalParams, + SqlPoolConnectionPoliciesGetResponse +} from "../models"; + +/** Interface representing a SqlPoolConnectionPolicies. */ +export interface SqlPoolConnectionPolicies { + /** + * Get a Sql pool's connection policy, which is used with table auditing. + * @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 connectionPolicyName The name of the connection policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + connectionPolicyName: ConnectionPolicyName, + options?: SqlPoolConnectionPoliciesGetOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolDataWarehouseUserActivities.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolDataWarehouseUserActivities.ts new file mode 100644 index 000000000000..be7603efcc68 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolDataWarehouseUserActivities.ts @@ -0,0 +1,32 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + DataWarehouseUserActivityName, + SqlPoolDataWarehouseUserActivitiesGetOptionalParams, + SqlPoolDataWarehouseUserActivitiesGetResponse +} from "../models"; + +/** Interface representing a SqlPoolDataWarehouseUserActivities. */ +export interface SqlPoolDataWarehouseUserActivities { + /** + * Gets the user activities of a SQL pool which includes running and suspended queries + * @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 dataWarehouseUserActivityName The activity name of the Sql pool. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + dataWarehouseUserActivityName: DataWarehouseUserActivityName, + options?: SqlPoolDataWarehouseUserActivitiesGetOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolGeoBackupPolicies.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolGeoBackupPolicies.ts new file mode 100644 index 000000000000..b3ac6d042646 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolGeoBackupPolicies.ts @@ -0,0 +1,68 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + GeoBackupPolicy, + SqlPoolGeoBackupPoliciesListOptionalParams, + GeoBackupPolicyName, + SqlPoolGeoBackupPoliciesCreateOrUpdateOptionalParams, + SqlPoolGeoBackupPoliciesCreateOrUpdateResponse, + SqlPoolGeoBackupPoliciesGetOptionalParams, + SqlPoolGeoBackupPoliciesGetResponse +} from "../models"; + +/// +/** Interface representing a SqlPoolGeoBackupPolicies. */ +export interface SqlPoolGeoBackupPolicies { + /** + * Get list of SQL pool geo backup policies + * @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 options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolGeoBackupPoliciesListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Updates a SQL Pool geo backup 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 geoBackupPolicyName The name of the geo backup policy. + * @param parameters The required parameters for creating or updating the geo backup policy. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + geoBackupPolicyName: GeoBackupPolicyName, + parameters: GeoBackupPolicy, + options?: SqlPoolGeoBackupPoliciesCreateOrUpdateOptionalParams + ): Promise; + /** + * Get the specified SQL pool geo backup 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 geoBackupPolicyName The name of the geo backup policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + geoBackupPolicyName: GeoBackupPolicyName, + options?: SqlPoolGeoBackupPoliciesGetOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMaintenanceWindowOptions.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMaintenanceWindowOptions.ts new file mode 100644 index 000000000000..12f592773f6d --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMaintenanceWindowOptions.ts @@ -0,0 +1,31 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + SqlPoolMaintenanceWindowOptionsGetOptionalParams, + SqlPoolMaintenanceWindowOptionsGetResponse +} from "../models"; + +/** Interface representing a SqlPoolMaintenanceWindowOptions. */ +export interface SqlPoolMaintenanceWindowOptions { + /** + * Get list of SQL pool's available maintenance windows. + * @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 maintenanceWindowOptionsName Maintenance window options name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + maintenanceWindowOptionsName: string, + options?: SqlPoolMaintenanceWindowOptionsGetOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMaintenanceWindows.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMaintenanceWindows.ts new file mode 100644 index 000000000000..e53e033a649a --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMaintenanceWindows.ts @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + SqlPoolMaintenanceWindowsGetOptionalParams, + SqlPoolMaintenanceWindowsGetResponse, + MaintenanceWindows, + SqlPoolMaintenanceWindowsCreateOrUpdateOptionalParams +} from "../models"; + +/** Interface representing a SqlPoolMaintenanceWindows. */ +export interface SqlPoolMaintenanceWindows { + /** + * Get a SQL pool's Maintenance Windows. + * @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 maintenanceWindowName Maintenance window name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + maintenanceWindowName: string, + options?: SqlPoolMaintenanceWindowsGetOptionalParams + ): Promise; + /** + * Creates or updates a Sql pool's maintenance windows settings. + * @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 maintenanceWindowName Maintenance window name. + * @param parameters The required parameters for creating or updating Maintenance Windows settings + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + maintenanceWindowName: string, + parameters: MaintenanceWindows, + options?: SqlPoolMaintenanceWindowsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMetadataSyncConfigs.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMetadataSyncConfigs.ts new file mode 100644 index 000000000000..a90777b19bad --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolMetadataSyncConfigs.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + SqlPoolMetadataSyncConfigsGetOptionalParams, + SqlPoolMetadataSyncConfigsGetResponse, + MetadataSyncConfig, + SqlPoolMetadataSyncConfigsCreateOptionalParams, + SqlPoolMetadataSyncConfigsCreateResponse +} from "../models"; + +/** Interface representing a SqlPoolMetadataSyncConfigs. */ +export interface SqlPoolMetadataSyncConfigs { + /** + * Get the metadata sync configuration for 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 options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolMetadataSyncConfigsGetOptionalParams + ): Promise; + /** + * Set the metadata sync configuration for 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 metadataSyncConfiguration Metadata sync configuration + * @param options The options parameters. + */ + create( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + metadataSyncConfiguration: MetadataSyncConfig, + options?: SqlPoolMetadataSyncConfigsCreateOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolOperationResults.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolOperationResults.ts new file mode 100644 index 000000000000..5ed8876eb4e8 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolOperationResults.ts @@ -0,0 +1,31 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + SqlPoolOperationResultsGetLocationHeaderResultOptionalParams, + SqlPoolOperationResultsGetLocationHeaderResultResponse +} from "../models"; + +/** Interface representing a SqlPoolOperationResults. */ +export interface SqlPoolOperationResults { + /** + * Get the status of a SQL pool operation + * @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 operationId Operation ID + * @param options The options parameters. + */ + getLocationHeaderResult( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + operationId: string, + options?: SqlPoolOperationResultsGetLocationHeaderResultOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolOperations.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolOperations.ts new file mode 100644 index 000000000000..4d84e76a4a8b --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolOperations.ts @@ -0,0 +1,31 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + SqlPoolOperation, + SqlPoolOperationsListOptionalParams +} from "../models"; + +/// +/** Interface representing a SqlPoolOperations. */ +export interface SqlPoolOperations { + /** + * Gets a list of operations performed on the 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 options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolOperationsListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolRecommendedSensitivityLabels.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolRecommendedSensitivityLabels.ts new file mode 100644 index 000000000000..ffd4388da10e --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolRecommendedSensitivityLabels.ts @@ -0,0 +1,31 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + RecommendedSensitivityLabelUpdateList, + SqlPoolRecommendedSensitivityLabelsUpdateOptionalParams +} from "../models"; + +/** Interface representing a SqlPoolRecommendedSensitivityLabels. */ +export interface SqlPoolRecommendedSensitivityLabels { + /** + * Update recommended sensitivity labels states of a given SQL Pool using an operations batch. + * @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 A list of recommended sensitivity label update operations. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + parameters: RecommendedSensitivityLabelUpdateList, + options?: SqlPoolRecommendedSensitivityLabelsUpdateOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolReplicationLinks.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolReplicationLinks.ts new file mode 100644 index 000000000000..01010c69ffbb --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolReplicationLinks.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ReplicationLink, + SqlPoolReplicationLinksListOptionalParams, + SqlPoolReplicationLinksGetByNameOptionalParams, + SqlPoolReplicationLinksGetByNameResponse +} from "../models"; + +/// +/** Interface representing a SqlPoolReplicationLinks. */ +export interface SqlPoolReplicationLinks { + /** + * Lists a Sql pool's replication links. + * @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 options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolReplicationLinksListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get SQL pool replication link by name. + * @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 linkId The ID of the replication link. + * @param options The options parameters. + */ + getByName( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + linkId: string, + options?: SqlPoolReplicationLinksGetByNameOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolRestorePoints.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolRestorePoints.ts new file mode 100644 index 000000000000..d4f55eda47c8 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolRestorePoints.ts @@ -0,0 +1,103 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + RestorePoint, + SqlPoolRestorePointsListOptionalParams, + CreateSqlPoolRestorePointDefinition, + SqlPoolRestorePointsCreateOptionalParams, + SqlPoolRestorePointsCreateResponse, + SqlPoolRestorePointsGetOptionalParams, + SqlPoolRestorePointsGetResponse, + SqlPoolRestorePointsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a SqlPoolRestorePoints. */ +export interface SqlPoolRestorePoints { + /** + * Get SQL pool backup information + * @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 options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolRestorePointsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Creates a restore point for a data warehouse. + * @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 definition for creating the restore point of this Sql pool. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + parameters: CreateSqlPoolRestorePointDefinition, + options?: SqlPoolRestorePointsCreateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + SqlPoolRestorePointsCreateResponse + > + >; + /** + * Creates a restore point for a data warehouse. + * @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 definition for creating the restore point of this Sql pool. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + parameters: CreateSqlPoolRestorePointDefinition, + options?: SqlPoolRestorePointsCreateOptionalParams + ): Promise; + /** + * Gets a restore point. + * @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 restorePointName The name of the restore point. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + restorePointName: string, + options?: SqlPoolRestorePointsGetOptionalParams + ): Promise; + /** + * Deletes a restore point. + * @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 restorePointName The name of the restore point. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + restorePointName: string, + options?: SqlPoolRestorePointsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSchemas.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSchemas.ts new file mode 100644 index 000000000000..fcc8b98b5ecc --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSchemas.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + SqlPoolSchema, + SqlPoolSchemasListOptionalParams, + SqlPoolSchemasGetOptionalParams, + SqlPoolSchemasGetResponse +} from "../models"; + +/// +/** Interface representing a SqlPoolSchemas. */ +export interface SqlPoolSchemas { + /** + * Gets schemas of a given 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 options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolSchemasListOptionalParams + ): PagedAsyncIterableIterator; + /** + * 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 options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + options?: SqlPoolSchemasGetOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSecurityAlertPolicies.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSecurityAlertPolicies.ts new file mode 100644 index 000000000000..139437d5d3e7 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSecurityAlertPolicies.ts @@ -0,0 +1,68 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + SqlPoolSecurityAlertPolicy, + SqlPoolSecurityAlertPoliciesListOptionalParams, + SecurityAlertPolicyName, + SqlPoolSecurityAlertPoliciesGetOptionalParams, + SqlPoolSecurityAlertPoliciesGetResponse, + SqlPoolSecurityAlertPoliciesCreateOrUpdateOptionalParams, + SqlPoolSecurityAlertPoliciesCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a SqlPoolSecurityAlertPolicies. */ +export interface SqlPoolSecurityAlertPolicies { + /** + * Get a list of Sql pool's security alert policies. + * @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 options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolSecurityAlertPoliciesListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get a Sql pool's security alert 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 securityAlertPolicyName The name of the security alert policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + securityAlertPolicyName: SecurityAlertPolicyName, + options?: SqlPoolSecurityAlertPoliciesGetOptionalParams + ): Promise; + /** + * Create or update a Sql pool's security alert 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 securityAlertPolicyName The name of the security alert policy. + * @param parameters The Sql pool security alert policy. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + securityAlertPolicyName: SecurityAlertPolicyName, + parameters: SqlPoolSecurityAlertPolicy, + options?: SqlPoolSecurityAlertPoliciesCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSensitivityLabels.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSensitivityLabels.ts new file mode 100644 index 000000000000..32c27bd7e732 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolSensitivityLabels.ts @@ -0,0 +1,170 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + SensitivityLabel, + SqlPoolSensitivityLabelsListCurrentOptionalParams, + SqlPoolSensitivityLabelsListRecommendedOptionalParams, + SensitivityLabelUpdateList, + SqlPoolSensitivityLabelsUpdateOptionalParams, + SqlPoolSensitivityLabelsCreateOrUpdateOptionalParams, + SqlPoolSensitivityLabelsCreateOrUpdateResponse, + SqlPoolSensitivityLabelsDeleteOptionalParams, + SensitivityLabelSource, + SqlPoolSensitivityLabelsGetOptionalParams, + SqlPoolSensitivityLabelsGetResponse, + SqlPoolSensitivityLabelsEnableRecommendationOptionalParams, + SqlPoolSensitivityLabelsDisableRecommendationOptionalParams +} from "../models"; + +/// +/** Interface representing a SqlPoolSensitivityLabels. */ +export interface SqlPoolSensitivityLabels { + /** + * Gets SQL pool sensitivity labels. + * @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 options parameters. + */ + listCurrent( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolSensitivityLabelsListCurrentOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets sensitivity labels of a given 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 options parameters. + */ + listRecommended( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolSensitivityLabelsListRecommendedOptionalParams + ): PagedAsyncIterableIterator; + /** + * Update sensitivity labels of a given SQL Pool using an operations batch. + * @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 A list of sensitivity label update operations. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + parameters: SensitivityLabelUpdateList, + options?: SqlPoolSensitivityLabelsUpdateOptionalParams + ): Promise; + /** + * Creates or updates the sensitivity label of a given column in 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 schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param parameters The column sensitivity label resource. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + tableName: string, + columnName: string, + parameters: SensitivityLabel, + options?: SqlPoolSensitivityLabelsCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the sensitivity label of a given column in 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 schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + tableName: string, + columnName: string, + options?: SqlPoolSensitivityLabelsDeleteOptionalParams + ): Promise; + /** + * 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. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + tableName: string, + columnName: string, + sensitivityLabelSource: SensitivityLabelSource, + options?: SqlPoolSensitivityLabelsGetOptionalParams + ): Promise; + /** + * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all + * columns) + * @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 options parameters. + */ + enableRecommendation( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + tableName: string, + columnName: string, + options?: SqlPoolSensitivityLabelsEnableRecommendationOptionalParams + ): Promise; + /** + * Disables sensitivity recommendations on 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 options The options parameters. + */ + disableRecommendation( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + tableName: string, + columnName: string, + options?: SqlPoolSensitivityLabelsDisableRecommendationOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTableColumns.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTableColumns.ts new file mode 100644 index 000000000000..517a732b7d92 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTableColumns.ts @@ -0,0 +1,35 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + SqlPoolColumn, + SqlPoolTableColumnsListByTableNameOptionalParams +} from "../models"; + +/// +/** Interface representing a SqlPoolTableColumns. */ +export interface SqlPoolTableColumns { + /** + * Gets columns in a given table in 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 schemaName The name of the schema. + * @param tableName The name of the table. + * @param options The options parameters. + */ + listByTableName( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + tableName: string, + options?: SqlPoolTableColumnsListByTableNameOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTables.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTables.ts new file mode 100644 index 000000000000..1b7eafb78442 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTables.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + SqlPoolTable, + SqlPoolTablesListBySchemaOptionalParams, + SqlPoolTablesGetOptionalParams, + SqlPoolTablesGetResponse +} from "../models"; + +/// +/** Interface representing a SqlPoolTables. */ +export interface SqlPoolTables { + /** + * Gets tables of a given schema in 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 schemaName The name of the schema. + * @param options The options parameters. + */ + listBySchema( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + options?: SqlPoolTablesListBySchemaOptionalParams + ): PagedAsyncIterableIterator; + /** + * 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 options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + schemaName: string, + tableName: string, + options?: SqlPoolTablesGetOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTransparentDataEncryptions.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTransparentDataEncryptions.ts new file mode 100644 index 000000000000..0a340ca8bd70 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolTransparentDataEncryptions.ts @@ -0,0 +1,68 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + TransparentDataEncryption, + SqlPoolTransparentDataEncryptionsListOptionalParams, + TransparentDataEncryptionName, + SqlPoolTransparentDataEncryptionsGetOptionalParams, + SqlPoolTransparentDataEncryptionsGetResponse, + SqlPoolTransparentDataEncryptionsCreateOrUpdateOptionalParams, + SqlPoolTransparentDataEncryptionsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a SqlPoolTransparentDataEncryptions. */ +export interface SqlPoolTransparentDataEncryptions { + /** + * Get list of SQL pool's transparent data encryption configurations. + * @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 options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolTransparentDataEncryptionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get a SQL pool's transparent data encryption configuration. + * @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 transparentDataEncryptionName The name of the transparent data encryption configuration. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + transparentDataEncryptionName: TransparentDataEncryptionName, + options?: SqlPoolTransparentDataEncryptionsGetOptionalParams + ): Promise; + /** + * Creates or updates a Sql pool's transparent data encryption configuration. + * @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 transparentDataEncryptionName The name of the transparent data encryption configuration. + * @param parameters The required parameters for creating or updating transparent data encryption. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + transparentDataEncryptionName: TransparentDataEncryptionName, + parameters: TransparentDataEncryption, + options?: SqlPoolTransparentDataEncryptionsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolUsages.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolUsages.ts new file mode 100644 index 000000000000..422c512db329 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolUsages.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SqlPoolUsage, SqlPoolUsagesListOptionalParams } from "../models"; + +/// +/** Interface representing a SqlPoolUsages. */ +export interface SqlPoolUsages { + /** + * Gets SQL pool usages. + * @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 options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolUsagesListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessmentRuleBaselines.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessmentRuleBaselines.ts new file mode 100644 index 000000000000..71e3690ac0e4 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessmentRuleBaselines.ts @@ -0,0 +1,84 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + VulnerabilityAssessmentName, + SqlPoolVulnerabilityAssessmentRuleBaseline, + VulnerabilityAssessmentPolicyBaselineName, + SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams, + SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse, + SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams, + SqlPoolVulnerabilityAssessmentRuleBaselinesGetOptionalParams, + SqlPoolVulnerabilityAssessmentRuleBaselinesGetResponse +} from "../models"; + +/** Interface representing a SqlPoolVulnerabilityAssessmentRuleBaselines. */ +export interface SqlPoolVulnerabilityAssessmentRuleBaselines { + /** + * Creates or updates a Sql pool'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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @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 workspace level rule). + * @param parameters The requested rule baseline resource. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + ruleId: string, + baselineName: VulnerabilityAssessmentPolicyBaselineName, + parameters: SqlPoolVulnerabilityAssessmentRuleBaseline, + options?: SqlPoolVulnerabilityAssessmentRuleBaselinesCreateOrUpdateOptionalParams + ): Promise; + /** + * Removes the database'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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @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 workspace level rule). + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + ruleId: string, + baselineName: VulnerabilityAssessmentPolicyBaselineName, + options?: SqlPoolVulnerabilityAssessmentRuleBaselinesDeleteOptionalParams + ): Promise; + /** + * 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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @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). + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + ruleId: string, + baselineName: VulnerabilityAssessmentPolicyBaselineName, + options?: SqlPoolVulnerabilityAssessmentRuleBaselinesGetOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessmentScans.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessmentScans.ts new file mode 100644 index 000000000000..2aa49133ebd4 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessmentScans.ts @@ -0,0 +1,108 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + VulnerabilityAssessmentScanRecord, + VulnerabilityAssessmentName, + SqlPoolVulnerabilityAssessmentScansListOptionalParams, + SqlPoolVulnerabilityAssessmentScansInitiateScanOptionalParams, + SqlPoolVulnerabilityAssessmentScansExportOptionalParams, + SqlPoolVulnerabilityAssessmentScansExportResponse, + SqlPoolVulnerabilityAssessmentScansGetOptionalParams, + SqlPoolVulnerabilityAssessmentScansGetResponse +} from "../models"; + +/// +/** Interface representing a SqlPoolVulnerabilityAssessmentScans. */ +export interface SqlPoolVulnerabilityAssessmentScans { + /** + * Lists the vulnerability assessment scans 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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlPoolVulnerabilityAssessmentScansListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Executes a Vulnerability Assessment database scan. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @param options The options parameters. + */ + beginInitiateScan( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: SqlPoolVulnerabilityAssessmentScansInitiateScanOptionalParams + ): Promise, void>>; + /** + * Executes a Vulnerability Assessment database scan. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @param options The options parameters. + */ + beginInitiateScanAndWait( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: SqlPoolVulnerabilityAssessmentScansInitiateScanOptionalParams + ): Promise; + /** + * Convert an existing scan result to a human readable format. If already exists nothing happens + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @param options The options parameters. + */ + export( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: SqlPoolVulnerabilityAssessmentScansExportOptionalParams + ): 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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + scanId: string, + options?: SqlPoolVulnerabilityAssessmentScansGetOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessments.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessments.ts new file mode 100644 index 000000000000..b00c352385f3 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolVulnerabilityAssessments.ts @@ -0,0 +1,84 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + SqlPoolVulnerabilityAssessment, + SqlPoolVulnerabilityAssessmentsListOptionalParams, + VulnerabilityAssessmentName, + SqlPoolVulnerabilityAssessmentsGetOptionalParams, + SqlPoolVulnerabilityAssessmentsGetResponse, + SqlPoolVulnerabilityAssessmentsCreateOrUpdateOptionalParams, + SqlPoolVulnerabilityAssessmentsCreateOrUpdateResponse, + SqlPoolVulnerabilityAssessmentsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a SqlPoolVulnerabilityAssessments. */ +export interface SqlPoolVulnerabilityAssessments { + /** + * Lists the vulnerability assessment policies associated with 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 options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolVulnerabilityAssessmentsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the Sql pool's vulnerability assessment. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlPoolVulnerabilityAssessmentsGetOptionalParams + ): Promise; + /** + * Creates or updates the Sql pool vulnerability assessment. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param parameters The requested resource. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + parameters: SqlPoolVulnerabilityAssessment, + options?: SqlPoolVulnerabilityAssessmentsCreateOrUpdateOptionalParams + ): Promise; + /** + * Removes the database's vulnerability assessment. + * @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 vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: SqlPoolVulnerabilityAssessmentsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolWorkloadClassifier.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolWorkloadClassifier.ts new file mode 100644 index 000000000000..7b14247e48e7 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolWorkloadClassifier.ts @@ -0,0 +1,133 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + WorkloadClassifier, + SqlPoolWorkloadClassifierListOptionalParams, + SqlPoolWorkloadClassifierGetOptionalParams, + SqlPoolWorkloadClassifierGetResponse, + SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams, + SqlPoolWorkloadClassifierCreateOrUpdateResponse, + SqlPoolWorkloadClassifierDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a SqlPoolWorkloadClassifier. */ +export interface SqlPoolWorkloadClassifier { + /** + * Get list of Sql pool's workload classifier for workload groups. + * @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 workloadGroupName The name of the workload group. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + options?: SqlPoolWorkloadClassifierListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get a workload classifier of Sql pool's workload group. + * @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 workloadGroupName The name of the workload group. + * @param workloadClassifierName The name of the workload classifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + workloadClassifierName: string, + options?: SqlPoolWorkloadClassifierGetOptionalParams + ): Promise; + /** + * Create Or Update workload classifier for a Sql pool's workload group. + * @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 workloadGroupName The name of the workload group. + * @param workloadClassifierName The name of the workload classifier. + * @param parameters The properties of the workload classifier. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + workloadClassifierName: string, + parameters: WorkloadClassifier, + options?: SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + SqlPoolWorkloadClassifierCreateOrUpdateResponse + > + >; + /** + * Create Or Update workload classifier for a Sql pool's workload group. + * @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 workloadGroupName The name of the workload group. + * @param workloadClassifierName The name of the workload classifier. + * @param parameters The properties of the workload classifier. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + workloadClassifierName: string, + parameters: WorkloadClassifier, + options?: SqlPoolWorkloadClassifierCreateOrUpdateOptionalParams + ): Promise; + /** + * Remove workload classifier of a Sql pool's workload group. + * @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 workloadGroupName The name of the workload group. + * @param workloadClassifierName The name of the workload classifier. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + workloadClassifierName: string, + options?: SqlPoolWorkloadClassifierDeleteOptionalParams + ): Promise, void>>; + /** + * Remove workload classifier of a Sql pool's workload group. + * @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 workloadGroupName The name of the workload group. + * @param workloadClassifierName The name of the workload classifier. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + workloadClassifierName: string, + options?: SqlPoolWorkloadClassifierDeleteOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolWorkloadGroup.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolWorkloadGroup.ts new file mode 100644 index 000000000000..2856611c6837 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPoolWorkloadGroup.ts @@ -0,0 +1,121 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + WorkloadGroup, + SqlPoolWorkloadGroupListOptionalParams, + SqlPoolWorkloadGroupGetOptionalParams, + SqlPoolWorkloadGroupGetResponse, + SqlPoolWorkloadGroupCreateOrUpdateOptionalParams, + SqlPoolWorkloadGroupCreateOrUpdateResponse, + SqlPoolWorkloadGroupDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a SqlPoolWorkloadGroup. */ +export interface SqlPoolWorkloadGroup { + /** + * Get list of Sql pool's workload groups. + * @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 options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolWorkloadGroupListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get a Sql pool's workload group. + * @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 workloadGroupName The name of the workload group. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + options?: SqlPoolWorkloadGroupGetOptionalParams + ): Promise; + /** + * Create Or Update a Sql pool's workload group. + * @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 workloadGroupName The name of the workload group. + * @param parameters The requested workload group state. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + parameters: WorkloadGroup, + options?: SqlPoolWorkloadGroupCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + SqlPoolWorkloadGroupCreateOrUpdateResponse + > + >; + /** + * Create Or Update a Sql pool's workload group. + * @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 workloadGroupName The name of the workload group. + * @param parameters The requested workload group state. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + parameters: WorkloadGroup, + options?: SqlPoolWorkloadGroupCreateOrUpdateOptionalParams + ): Promise; + /** + * Remove Sql pool's workload group. + * @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 workloadGroupName The name of the workload group. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + options?: SqlPoolWorkloadGroupDeleteOptionalParams + ): Promise, void>>; + /** + * Remove Sql pool's workload group. + * @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 workloadGroupName The name of the workload group. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + workloadGroupName: string, + options?: SqlPoolWorkloadGroupDeleteOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPools.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPools.ts new file mode 100644 index 000000000000..e5102730b0ab --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/sqlPools.ts @@ -0,0 +1,213 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + SqlPool, + SqlPoolsListByWorkspaceOptionalParams, + SqlPoolsGetOptionalParams, + SqlPoolsGetResponse, + SqlPoolPatchInfo, + SqlPoolsUpdateOptionalParams, + SqlPoolsUpdateResponse, + SqlPoolsCreateOptionalParams, + SqlPoolsCreateResponse, + SqlPoolsDeleteOptionalParams, + SqlPoolsDeleteResponse, + SqlPoolsPauseOptionalParams, + SqlPoolsPauseResponse, + SqlPoolsResumeOptionalParams, + SqlPoolsResumeResponse, + ResourceMoveDefinition, + SqlPoolsRenameOptionalParams +} from "../models"; + +/// +/** Interface representing a SqlPools. */ +export interface SqlPools { + /** + * List all SQL pools + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: SqlPoolsListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get SQL pool properties + * @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 options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolsGetOptionalParams + ): Promise; + /** + * Apply a partial update to 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 sqlPoolInfo The updated SQL pool properties + * @param options The options parameters. + */ + update( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + sqlPoolInfo: SqlPoolPatchInfo, + options?: SqlPoolsUpdateOptionalParams + ): Promise; + /** + * Create 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 sqlPoolInfo The SQL pool to create + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + sqlPoolInfo: SqlPool, + options?: SqlPoolsCreateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + SqlPoolsCreateResponse + > + >; + /** + * Create 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 sqlPoolInfo The SQL pool to create + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + sqlPoolInfo: SqlPool, + options?: SqlPoolsCreateOptionalParams + ): Promise; + /** + * Delete 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 options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolsDeleteOptionalParams + ): Promise< + PollerLike< + PollOperationState, + SqlPoolsDeleteResponse + > + >; + /** + * Delete 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 options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolsDeleteOptionalParams + ): Promise; + /** + * Pause 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 options parameters. + */ + beginPause( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolsPauseOptionalParams + ): Promise< + PollerLike, SqlPoolsPauseResponse> + >; + /** + * Pause 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 options parameters. + */ + beginPauseAndWait( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolsPauseOptionalParams + ): Promise; + /** + * Resume 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 options parameters. + */ + beginResume( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolsResumeOptionalParams + ): Promise< + PollerLike< + PollOperationState, + SqlPoolsResumeResponse + > + >; + /** + * Resume 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 options parameters. + */ + beginResumeAndWait( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: SqlPoolsResumeOptionalParams + ): Promise; + /** + * Rename 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 parameters The resource move definition for renaming this Sql pool. + * @param options The options parameters. + */ + rename( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + parameters: ResourceMoveDefinition, + options?: SqlPoolsRenameOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceAadAdmins.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceAadAdmins.ts new file mode 100644 index 000000000000..d06cdd513b79 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceAadAdmins.ts @@ -0,0 +1,85 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + WorkspaceAadAdminsGetOptionalParams, + WorkspaceAadAdminsGetResponse, + WorkspaceAadAdminInfo, + WorkspaceAadAdminsCreateOrUpdateOptionalParams, + WorkspaceAadAdminsCreateOrUpdateResponse, + WorkspaceAadAdminsDeleteOptionalParams +} from "../models"; + +/** Interface representing a WorkspaceAadAdmins. */ +export interface WorkspaceAadAdmins { + /** + * Gets a workspace active directory admin + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceAadAdminsGetOptionalParams + ): Promise; + /** + * Creates or updates a workspace active directory admin + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param aadAdminInfo Workspace active directory administrator properties + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + aadAdminInfo: WorkspaceAadAdminInfo, + options?: WorkspaceAadAdminsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspaceAadAdminsCreateOrUpdateResponse + > + >; + /** + * Creates or updates a workspace active directory admin + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param aadAdminInfo Workspace active directory administrator properties + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + aadAdminInfo: WorkspaceAadAdminInfo, + options?: WorkspaceAadAdminsCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a workspace active directory admin + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceAadAdminsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a workspace active directory admin + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceAadAdminsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedIdentitySqlControlSettings.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedIdentitySqlControlSettings.ts new file mode 100644 index 000000000000..8006c1c8125a --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedIdentitySqlControlSettings.ts @@ -0,0 +1,64 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + WorkspaceManagedIdentitySqlControlSettingsGetOptionalParams, + WorkspaceManagedIdentitySqlControlSettingsGetResponse, + ManagedIdentitySqlControlSettingsModel, + WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams, + WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse +} from "../models"; + +/** Interface representing a WorkspaceManagedIdentitySqlControlSettings. */ +export interface WorkspaceManagedIdentitySqlControlSettings { + /** + * Get Managed Identity Sql Control Settings + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedIdentitySqlControlSettingsGetOptionalParams + ): Promise; + /** + * Create or update Managed Identity Sql Control Settings + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param managedIdentitySqlControlSettings Managed Identity Sql Control Settings + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + managedIdentitySqlControlSettings: ManagedIdentitySqlControlSettingsModel, + options?: WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState< + WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse + >, + WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateResponse + > + >; + /** + * Create or update Managed Identity Sql Control Settings + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param managedIdentitySqlControlSettings Managed Identity Sql Control Settings + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + managedIdentitySqlControlSettings: ManagedIdentitySqlControlSettingsModel, + options?: WorkspaceManagedIdentitySqlControlSettingsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerBlobAuditingPolicies.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerBlobAuditingPolicies.ts new file mode 100644 index 000000000000..e47d2258a176 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerBlobAuditingPolicies.ts @@ -0,0 +1,87 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + ServerBlobAuditingPolicy, + WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOptionalParams, + BlobAuditingPolicyName, + WorkspaceManagedSqlServerBlobAuditingPoliciesGetOptionalParams, + WorkspaceManagedSqlServerBlobAuditingPoliciesGetResponse, + WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams, + WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a WorkspaceManagedSqlServerBlobAuditingPolicies. */ +export interface WorkspaceManagedSqlServerBlobAuditingPolicies { + /** + * List workspace managed sql server's blob auditing policies. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get a workspace managed sql server'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 blobAuditingPolicyName The name of the blob auditing policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + blobAuditingPolicyName: BlobAuditingPolicyName, + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesGetOptionalParams + ): Promise; + /** + * Create or Update a workspace managed sql server'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 blobAuditingPolicyName The name of the blob auditing policy. + * @param parameters Properties of extended blob auditing policy. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + blobAuditingPolicyName: BlobAuditingPolicyName, + parameters: ServerBlobAuditingPolicy, + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState< + WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse + >, + WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse + > + >; + /** + * Create or Update a workspace managed sql server'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 blobAuditingPolicyName The name of the blob auditing policy. + * @param parameters Properties of extended blob auditing policy. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + blobAuditingPolicyName: BlobAuditingPolicyName, + parameters: ServerBlobAuditingPolicy, + options?: WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateOptionalParams + ): Promise< + WorkspaceManagedSqlServerBlobAuditingPoliciesCreateOrUpdateResponse + >; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerEncryptionProtector.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerEncryptionProtector.ts new file mode 100644 index 000000000000..557e2c594fb0 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerEncryptionProtector.ts @@ -0,0 +1,114 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + EncryptionProtector, + WorkspaceManagedSqlServerEncryptionProtectorListOptionalParams, + EncryptionProtectorName, + WorkspaceManagedSqlServerEncryptionProtectorGetOptionalParams, + WorkspaceManagedSqlServerEncryptionProtectorGetResponse, + WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams, + WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse, + WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceManagedSqlServerEncryptionProtector. */ +export interface WorkspaceManagedSqlServerEncryptionProtector { + /** + * Get list of encryption protectors for workspace managed sql server. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerEncryptionProtectorListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get workspace managed sql server's encryption protector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param encryptionProtectorName The name of the encryption protector. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + encryptionProtectorName: EncryptionProtectorName, + options?: WorkspaceManagedSqlServerEncryptionProtectorGetOptionalParams + ): Promise; + /** + * Updates workspace managed sql server's encryption protector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param encryptionProtectorName The name of the encryption protector. + * @param parameters The requested encryption protector resource state. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + encryptionProtectorName: EncryptionProtectorName, + parameters: EncryptionProtector, + options?: WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState< + WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse + >, + WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse + > + >; + /** + * Updates workspace managed sql server's encryption protector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param encryptionProtectorName The name of the encryption protector. + * @param parameters The requested encryption protector resource state. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + encryptionProtectorName: EncryptionProtectorName, + parameters: EncryptionProtector, + options?: WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateOptionalParams + ): Promise< + WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateResponse + >; + /** + * Revalidates workspace managed sql server's existing encryption protector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param encryptionProtectorName The name of the encryption protector. + * @param options The options parameters. + */ + beginRevalidate( + resourceGroupName: string, + workspaceName: string, + encryptionProtectorName: EncryptionProtectorName, + options?: WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams + ): Promise, void>>; + /** + * Revalidates workspace managed sql server's existing encryption protector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param encryptionProtectorName The name of the encryption protector. + * @param options The options parameters. + */ + beginRevalidateAndWait( + resourceGroupName: string, + workspaceName: string, + encryptionProtectorName: EncryptionProtectorName, + options?: WorkspaceManagedSqlServerEncryptionProtectorRevalidateOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerExtendedBlobAuditingPolicies.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerExtendedBlobAuditingPolicies.ts new file mode 100644 index 000000000000..d8e810ca5352 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerExtendedBlobAuditingPolicies.ts @@ -0,0 +1,87 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + ExtendedServerBlobAuditingPolicy, + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOptionalParams, + BlobAuditingPolicyName, + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetOptionalParams, + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetResponse, + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams, + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a WorkspaceManagedSqlServerExtendedBlobAuditingPolicies. */ +export interface WorkspaceManagedSqlServerExtendedBlobAuditingPolicies { + /** + * List workspace managed sql server's extended blob auditing policies. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + listByWorkspace( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesListByWorkspaceOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get a workspace SQL server's extended blob auditing policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param blobAuditingPolicyName The name of the blob auditing policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + blobAuditingPolicyName: BlobAuditingPolicyName, + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesGetOptionalParams + ): Promise; + /** + * Create or Update a workspace managed sql server's extended blob auditing policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param blobAuditingPolicyName The name of the blob auditing policy. + * @param parameters Properties of extended blob auditing policy. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + blobAuditingPolicyName: BlobAuditingPolicyName, + parameters: ExtendedServerBlobAuditingPolicy, + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState< + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse + >, + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse + > + >; + /** + * Create or Update a workspace managed sql server's extended blob auditing policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param blobAuditingPolicyName The name of the blob auditing policy. + * @param parameters Properties of extended blob auditing policy. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + blobAuditingPolicyName: BlobAuditingPolicyName, + parameters: ExtendedServerBlobAuditingPolicy, + options?: WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateOptionalParams + ): Promise< + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesCreateOrUpdateResponse + >; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerRecoverableSqlPools.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerRecoverableSqlPools.ts new file mode 100644 index 000000000000..3b3d7e1fb0cb --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerRecoverableSqlPools.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + RecoverableSqlPool, + WorkspaceManagedSqlServerRecoverableSqlPoolsListOptionalParams, + WorkspaceManagedSqlServerRecoverableSqlPoolsGetOptionalParams, + WorkspaceManagedSqlServerRecoverableSqlPoolsGetResponse +} from "../models"; + +/// +/** Interface representing a WorkspaceManagedSqlServerRecoverableSqlPools. */ +export interface WorkspaceManagedSqlServerRecoverableSqlPools { + /** + * Get list of recoverable sql pools for workspace managed sql server. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerRecoverableSqlPoolsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get recoverable sql pools for workspace managed sql server. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param sqlPoolName The name of the sql pool + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + sqlPoolName: string, + options?: WorkspaceManagedSqlServerRecoverableSqlPoolsGetOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerSecurityAlertPolicy.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerSecurityAlertPolicy.ts new file mode 100644 index 000000000000..c892ac1ab54b --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerSecurityAlertPolicy.ts @@ -0,0 +1,87 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + ServerSecurityAlertPolicy, + WorkspaceManagedSqlServerSecurityAlertPolicyListOptionalParams, + SecurityAlertPolicyNameAutoGenerated, + WorkspaceManagedSqlServerSecurityAlertPolicyGetOptionalParams, + WorkspaceManagedSqlServerSecurityAlertPolicyGetResponse, + WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams, + WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a WorkspaceManagedSqlServerSecurityAlertPolicy. */ +export interface WorkspaceManagedSqlServerSecurityAlertPolicy { + /** + * Get workspace managed sql server's threat detection policies. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerSecurityAlertPolicyListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get a workspace managed sql server's security alert policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param securityAlertPolicyName The name of the security alert policy. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, + options?: WorkspaceManagedSqlServerSecurityAlertPolicyGetOptionalParams + ): Promise; + /** + * Create or Update a workspace managed sql server's threat detection policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param securityAlertPolicyName The name of the security alert policy. + * @param parameters The workspace managed sql server security alert policy. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, + parameters: ServerSecurityAlertPolicy, + options?: WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState< + WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse + >, + WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse + > + >; + /** + * Create or Update a workspace managed sql server's threat detection policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param securityAlertPolicyName The name of the security alert policy. + * @param parameters The workspace managed sql server security alert policy. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, + parameters: ServerSecurityAlertPolicy, + options?: WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateOptionalParams + ): Promise< + WorkspaceManagedSqlServerSecurityAlertPolicyCreateOrUpdateResponse + >; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerUsages.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerUsages.ts new file mode 100644 index 000000000000..2219bb66b60a --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerUsages.ts @@ -0,0 +1,29 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ServerUsage, + WorkspaceManagedSqlServerUsagesListOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceManagedSqlServerUsages. */ +export interface WorkspaceManagedSqlServerUsages { + /** + * Get list of server usages metric for workspace managed sql server. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerUsagesListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerVulnerabilityAssessments.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerVulnerabilityAssessments.ts new file mode 100644 index 000000000000..0fdfd4dc8615 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceManagedSqlServerVulnerabilityAssessments.ts @@ -0,0 +1,78 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ServerVulnerabilityAssessment, + WorkspaceManagedSqlServerVulnerabilityAssessmentsListOptionalParams, + VulnerabilityAssessmentName, + WorkspaceManagedSqlServerVulnerabilityAssessmentsGetOptionalParams, + WorkspaceManagedSqlServerVulnerabilityAssessmentsGetResponse, + WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams, + WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateResponse, + WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceManagedSqlServerVulnerabilityAssessments. */ +export interface WorkspaceManagedSqlServerVulnerabilityAssessments { + /** + * Lists the vulnerability assessment policies associated with a workspace managed sql server. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get workspace managed sql server's vulnerability assessment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsGetOptionalParams + ): Promise; + /** + * Create or Update workspace managed sql server's vulnerability assessment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param parameters Properties for vulnerability assessment. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + parameters: ServerVulnerabilityAssessment, + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateOptionalParams + ): Promise< + WorkspaceManagedSqlServerVulnerabilityAssessmentsCreateOrUpdateResponse + >; + /** + * Remove workspace managed sql server's vulnerability assessment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param vulnerabilityAssessmentName The name of the vulnerability assessment. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + vulnerabilityAssessmentName: VulnerabilityAssessmentName, + options?: WorkspaceManagedSqlServerVulnerabilityAssessmentsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceSqlAadAdmins.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceSqlAadAdmins.ts new file mode 100644 index 000000000000..35b326151f34 --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaceSqlAadAdmins.ts @@ -0,0 +1,85 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + WorkspaceSqlAadAdminsGetOptionalParams, + WorkspaceSqlAadAdminsGetResponse, + WorkspaceAadAdminInfo, + WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams, + WorkspaceSqlAadAdminsCreateOrUpdateResponse, + WorkspaceSqlAadAdminsDeleteOptionalParams +} from "../models"; + +/** Interface representing a WorkspaceSqlAadAdmins. */ +export interface WorkspaceSqlAadAdmins { + /** + * Gets a workspace SQL active directory admin + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceSqlAadAdminsGetOptionalParams + ): Promise; + /** + * Creates or updates a workspace SQL active directory admin + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param aadAdminInfo Workspace active directory administrator properties + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + aadAdminInfo: WorkspaceAadAdminInfo, + options?: WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspaceSqlAadAdminsCreateOrUpdateResponse + > + >; + /** + * Creates or updates a workspace SQL active directory admin + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param aadAdminInfo Workspace active directory administrator properties + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + aadAdminInfo: WorkspaceAadAdminInfo, + options?: WorkspaceSqlAadAdminsCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a workspace SQL active directory admin + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceSqlAadAdminsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a workspace SQL active directory admin + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceSqlAadAdminsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaces.ts b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaces.ts new file mode 100644 index 000000000000..beb60d91faef --- /dev/null +++ b/sdk/synapse/arm-synapse/src/operationsInterfaces/workspaces.ts @@ -0,0 +1,145 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + Workspace, + WorkspacesListByResourceGroupOptionalParams, + WorkspacesListOptionalParams, + WorkspacesGetOptionalParams, + WorkspacesGetResponse, + WorkspacePatchInfo, + WorkspacesUpdateOptionalParams, + WorkspacesUpdateResponse, + WorkspacesCreateOrUpdateOptionalParams, + WorkspacesCreateOrUpdateResponse, + WorkspacesDeleteOptionalParams, + WorkspacesDeleteResponse +} from "../models"; + +/// +/** Interface representing a Workspaces. */ +export interface Workspaces { + /** + * Returns a list of workspaces in a resource group + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns a list of workspaces in a subscription + * @param options The options parameters. + */ + list( + options?: WorkspacesListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesGetOptionalParams + ): Promise; + /** + * Updates a workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param workspacePatchInfo Workspace patch request properties + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + workspaceName: string, + workspacePatchInfo: WorkspacePatchInfo, + options?: WorkspacesUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesUpdateResponse + > + >; + /** + * Updates a workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param workspacePatchInfo Workspace patch request properties + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + workspacePatchInfo: WorkspacePatchInfo, + options?: WorkspacesUpdateOptionalParams + ): Promise; + /** + * Creates or updates a workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param workspaceInfo Workspace create or update request properties + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + workspaceInfo: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesCreateOrUpdateResponse + > + >; + /** + * Creates or updates a workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param workspaceInfo Workspace create or update request properties + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + workspaceInfo: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDeleteOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesDeleteResponse + > + >; + /** + * Deletes a workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDeleteOptionalParams + ): Promise; +} diff --git a/sdk/synapse/arm-synapse/src/synapseManagementClient.ts b/sdk/synapse/arm-synapse/src/synapseManagementClient.ts index b2adedb6fd50..308c93e4c7e4 100644 --- a/sdk/synapse/arm-synapse/src/synapseManagementClient.ts +++ b/sdk/synapse/arm-synapse/src/synapseManagementClient.ts @@ -3,159 +3,419 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * 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/mappers"; -import * as operations from "./operations"; -import { SynapseManagementClientContext } from "./synapseManagementClientContext"; +import * as coreClient from "@azure/core-client"; +import * as coreAuth from "@azure/core-auth"; +import { + AzureADOnlyAuthenticationsImpl, + OperationsImpl, + IpFirewallRulesImpl, + KeysImpl, + PrivateEndpointConnectionsImpl, + PrivateLinkResourcesImpl, + PrivateLinkHubPrivateLinkResourcesImpl, + PrivateLinkHubsImpl, + PrivateEndpointConnectionsPrivateLinkHubImpl, + SqlPoolsImpl, + SqlPoolMetadataSyncConfigsImpl, + SqlPoolOperationResultsImpl, + SqlPoolGeoBackupPoliciesImpl, + SqlPoolDataWarehouseUserActivitiesImpl, + SqlPoolRestorePointsImpl, + SqlPoolReplicationLinksImpl, + SqlPoolMaintenanceWindowsImpl, + SqlPoolMaintenanceWindowOptionsImpl, + SqlPoolTransparentDataEncryptionsImpl, + SqlPoolBlobAuditingPoliciesImpl, + SqlPoolOperationsImpl, + SqlPoolUsagesImpl, + SqlPoolSensitivityLabelsImpl, + SqlPoolRecommendedSensitivityLabelsImpl, + SqlPoolSchemasImpl, + SqlPoolTablesImpl, + SqlPoolTableColumnsImpl, + SqlPoolConnectionPoliciesImpl, + SqlPoolVulnerabilityAssessmentsImpl, + SqlPoolVulnerabilityAssessmentScansImpl, + SqlPoolSecurityAlertPoliciesImpl, + SqlPoolVulnerabilityAssessmentRuleBaselinesImpl, + ExtendedSqlPoolBlobAuditingPoliciesImpl, + DataMaskingPoliciesImpl, + DataMaskingRulesImpl, + SqlPoolColumnsImpl, + SqlPoolWorkloadGroupImpl, + SqlPoolWorkloadClassifierImpl, + WorkspaceManagedSqlServerBlobAuditingPoliciesImpl, + WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl, + WorkspaceManagedSqlServerSecurityAlertPolicyImpl, + WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl, + WorkspaceManagedSqlServerEncryptionProtectorImpl, + WorkspaceManagedSqlServerUsagesImpl, + WorkspaceManagedSqlServerRecoverableSqlPoolsImpl, + WorkspacesImpl, + WorkspaceAadAdminsImpl, + WorkspaceSqlAadAdminsImpl, + WorkspaceManagedIdentitySqlControlSettingsImpl, + RestorableDroppedSqlPoolsImpl, + BigDataPoolsImpl, + LibraryImpl, + LibrariesImpl, + IntegrationRuntimesImpl, + IntegrationRuntimeNodeIpAddressOperationsImpl, + IntegrationRuntimeObjectMetadataImpl, + IntegrationRuntimeNodesImpl, + IntegrationRuntimeCredentialsImpl, + IntegrationRuntimeConnectionInfosImpl, + IntegrationRuntimeAuthKeysOperationsImpl, + IntegrationRuntimeMonitoringDataOperationsImpl, + IntegrationRuntimeStatusOperationsImpl, + SparkConfigurationImpl, + SparkConfigurationsImpl, + KustoOperationsImpl, + KustoPoolsImpl, + KustoPoolChildResourceImpl, + KustoPoolAttachedDatabaseConfigurationsImpl, + KustoPoolDatabasesImpl, + KustoPoolDataConnectionsImpl, + KustoPoolPrincipalAssignmentsImpl, + KustoPoolDatabasePrincipalAssignmentsImpl +} from "./operations"; +import { + AzureADOnlyAuthentications, + Operations, + IpFirewallRules, + Keys, + PrivateEndpointConnections, + PrivateLinkResources, + PrivateLinkHubPrivateLinkResources, + PrivateLinkHubs, + PrivateEndpointConnectionsPrivateLinkHub, + SqlPools, + SqlPoolMetadataSyncConfigs, + SqlPoolOperationResults, + SqlPoolGeoBackupPolicies, + SqlPoolDataWarehouseUserActivities, + SqlPoolRestorePoints, + SqlPoolReplicationLinks, + SqlPoolMaintenanceWindows, + SqlPoolMaintenanceWindowOptions, + SqlPoolTransparentDataEncryptions, + SqlPoolBlobAuditingPolicies, + SqlPoolOperations, + SqlPoolUsages, + SqlPoolSensitivityLabels, + SqlPoolRecommendedSensitivityLabels, + SqlPoolSchemas, + SqlPoolTables, + SqlPoolTableColumns, + SqlPoolConnectionPolicies, + SqlPoolVulnerabilityAssessments, + SqlPoolVulnerabilityAssessmentScans, + SqlPoolSecurityAlertPolicies, + SqlPoolVulnerabilityAssessmentRuleBaselines, + ExtendedSqlPoolBlobAuditingPolicies, + DataMaskingPolicies, + DataMaskingRules, + SqlPoolColumns, + SqlPoolWorkloadGroup, + SqlPoolWorkloadClassifier, + WorkspaceManagedSqlServerBlobAuditingPolicies, + WorkspaceManagedSqlServerExtendedBlobAuditingPolicies, + WorkspaceManagedSqlServerSecurityAlertPolicy, + WorkspaceManagedSqlServerVulnerabilityAssessments, + WorkspaceManagedSqlServerEncryptionProtector, + WorkspaceManagedSqlServerUsages, + WorkspaceManagedSqlServerRecoverableSqlPools, + Workspaces, + WorkspaceAadAdmins, + WorkspaceSqlAadAdmins, + WorkspaceManagedIdentitySqlControlSettings, + RestorableDroppedSqlPools, + BigDataPools, + Library, + Libraries, + IntegrationRuntimes, + IntegrationRuntimeNodeIpAddressOperations, + IntegrationRuntimeObjectMetadata, + IntegrationRuntimeNodes, + IntegrationRuntimeCredentials, + IntegrationRuntimeConnectionInfos, + IntegrationRuntimeAuthKeysOperations, + IntegrationRuntimeMonitoringDataOperations, + IntegrationRuntimeStatusOperations, + SparkConfiguration, + SparkConfigurations, + KustoOperations, + KustoPools, + KustoPoolChildResource, + KustoPoolAttachedDatabaseConfigurations, + KustoPoolDatabases, + KustoPoolDataConnections, + KustoPoolPrincipalAssignments, + KustoPoolDatabasePrincipalAssignments +} from "./operationsInterfaces"; +import { SynapseManagementClientOptionalParams } from "./models"; - -class SynapseManagementClient extends SynapseManagementClientContext { - // Operation groups - bigDataPools: operations.BigDataPools; - operations: operations.Operations; - ipFirewallRules: operations.IpFirewallRules; - integrationRuntimes: operations.IntegrationRuntimes; - integrationRuntimeNodeIpAddress: operations.IntegrationRuntimeNodeIpAddressOperations; - integrationRuntimeObjectMetadata: operations.IntegrationRuntimeObjectMetadata; - integrationRuntimeNodes: operations.IntegrationRuntimeNodes; - integrationRuntimeCredentials: operations.IntegrationRuntimeCredentials; - integrationRuntimeConnectionInfos: operations.IntegrationRuntimeConnectionInfos; - integrationRuntimeAuthKeys: operations.IntegrationRuntimeAuthKeysOperations; - integrationRuntimeMonitoringData: operations.IntegrationRuntimeMonitoringDataOperations; - integrationRuntimeStatus: operations.IntegrationRuntimeStatusOperations; - keys: operations.Keys; - library: operations.Library; - libraries: operations.Libraries; - privateEndpointConnections: operations.PrivateEndpointConnections; - privateLinkResources: operations.PrivateLinkResources; - privateLinkHubPrivateLinkResources: operations.PrivateLinkHubPrivateLinkResources; - privateLinkHubs: operations.PrivateLinkHubs; - privateEndpointConnectionsPrivateLinkHub: operations.PrivateEndpointConnectionsPrivateLinkHub; - sqlPools: operations.SqlPools; - sqlPoolMetadataSyncConfigs: operations.SqlPoolMetadataSyncConfigs; - sqlPoolOperationResults: operations.SqlPoolOperationResults; - sqlPoolGeoBackupPolicies: operations.SqlPoolGeoBackupPolicies; - sqlPoolDataWarehouseUserActivities: operations.SqlPoolDataWarehouseUserActivities; - sqlPoolRestorePoints: operations.SqlPoolRestorePoints; - sqlPoolReplicationLinks: operations.SqlPoolReplicationLinks; - sqlPoolMaintenanceWindows: operations.SqlPoolMaintenanceWindows; - sqlPoolMaintenanceWindowOptions: operations.SqlPoolMaintenanceWindowOptions; - sqlPoolTransparentDataEncryptions: operations.SqlPoolTransparentDataEncryptions; - sqlPoolBlobAuditingPolicies: operations.SqlPoolBlobAuditingPolicies; - sqlPoolOperations: operations.SqlPoolOperations; - sqlPoolUsages: operations.SqlPoolUsages; - sqlPoolSensitivityLabels: operations.SqlPoolSensitivityLabels; - sqlPoolRecommendedSensitivityLabels: operations.SqlPoolRecommendedSensitivityLabels; - sqlPoolSchemas: operations.SqlPoolSchemas; - sqlPoolTables: operations.SqlPoolTables; - sqlPoolTableColumns: operations.SqlPoolTableColumns; - sqlPoolConnectionPolicies: operations.SqlPoolConnectionPolicies; - sqlPoolVulnerabilityAssessments: operations.SqlPoolVulnerabilityAssessments; - sqlPoolVulnerabilityAssessmentScans: operations.SqlPoolVulnerabilityAssessmentScans; - sqlPoolSecurityAlertPolicies: operations.SqlPoolSecurityAlertPolicies; - sqlPoolVulnerabilityAssessmentRuleBaselines: operations.SqlPoolVulnerabilityAssessmentRuleBaselines; - extendedSqlPoolBlobAuditingPolicies: operations.ExtendedSqlPoolBlobAuditingPolicies; - dataMaskingPolicies: operations.DataMaskingPolicies; - dataMaskingRules: operations.DataMaskingRules; - sqlPoolColumns: operations.SqlPoolColumns; - sqlPoolWorkloadGroup: operations.SqlPoolWorkloadGroup; - sqlPoolWorkloadClassifier: operations.SqlPoolWorkloadClassifier; - workspaceManagedSqlServerBlobAuditingPolicies: operations.WorkspaceManagedSqlServerBlobAuditingPolicies; - workspaceManagedSqlServerExtendedBlobAuditingPolicies: operations.WorkspaceManagedSqlServerExtendedBlobAuditingPolicies; - workspaceManagedSqlServerSecurityAlertPolicy: operations.WorkspaceManagedSqlServerSecurityAlertPolicy; - workspaceManagedSqlServerVulnerabilityAssessments: operations.WorkspaceManagedSqlServerVulnerabilityAssessments; - workspaceManagedSqlServerEncryptionProtector: operations.WorkspaceManagedSqlServerEncryptionProtector; - workspaceManagedSqlServerUsages: operations.WorkspaceManagedSqlServerUsages; - workspaceManagedSqlServerRecoverableSqlPools: operations.WorkspaceManagedSqlServerRecoverableSqlPools; - workspaces: operations.Workspaces; - workspaceAadAdmins: operations.WorkspaceAadAdmins; - workspaceSqlAadAdmins: operations.WorkspaceSqlAadAdmins; - workspaceManagedIdentitySqlControlSettings: operations.WorkspaceManagedIdentitySqlControlSettings; - restorableDroppedSqlPools: operations.RestorableDroppedSqlPools; +export class SynapseManagementClient extends coreClient.ServiceClient { + $host: string; + subscriptionId: string; /** * Initializes a new instance of the SynapseManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Subscription credentials which uniquely identify client subscription. * @param subscriptionId The ID of the target subscription. - * @param [options] The parameter options + * @param options The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.SynapseManagementClientOptions) { - super(credentials, subscriptionId, options); - this.bigDataPools = new operations.BigDataPools(this); - this.operations = new operations.Operations(this); - this.ipFirewallRules = new operations.IpFirewallRules(this); - this.integrationRuntimes = new operations.IntegrationRuntimes(this); - this.integrationRuntimeNodeIpAddress = new operations.IntegrationRuntimeNodeIpAddressOperations(this); - this.integrationRuntimeObjectMetadata = new operations.IntegrationRuntimeObjectMetadata(this); - this.integrationRuntimeNodes = new operations.IntegrationRuntimeNodes(this); - this.integrationRuntimeCredentials = new operations.IntegrationRuntimeCredentials(this); - this.integrationRuntimeConnectionInfos = new operations.IntegrationRuntimeConnectionInfos(this); - this.integrationRuntimeAuthKeys = new operations.IntegrationRuntimeAuthKeysOperations(this); - this.integrationRuntimeMonitoringData = new operations.IntegrationRuntimeMonitoringDataOperations(this); - this.integrationRuntimeStatus = new operations.IntegrationRuntimeStatusOperations(this); - this.keys = new operations.Keys(this); - this.library = new operations.Library(this); - this.libraries = new operations.Libraries(this); - this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); - this.privateLinkResources = new operations.PrivateLinkResources(this); - this.privateLinkHubPrivateLinkResources = new operations.PrivateLinkHubPrivateLinkResources(this); - this.privateLinkHubs = new operations.PrivateLinkHubs(this); - this.privateEndpointConnectionsPrivateLinkHub = new operations.PrivateEndpointConnectionsPrivateLinkHub(this); - this.sqlPools = new operations.SqlPools(this); - this.sqlPoolMetadataSyncConfigs = new operations.SqlPoolMetadataSyncConfigs(this); - this.sqlPoolOperationResults = new operations.SqlPoolOperationResults(this); - this.sqlPoolGeoBackupPolicies = new operations.SqlPoolGeoBackupPolicies(this); - this.sqlPoolDataWarehouseUserActivities = new operations.SqlPoolDataWarehouseUserActivities(this); - this.sqlPoolRestorePoints = new operations.SqlPoolRestorePoints(this); - this.sqlPoolReplicationLinks = new operations.SqlPoolReplicationLinks(this); - this.sqlPoolMaintenanceWindows = new operations.SqlPoolMaintenanceWindows(this); - this.sqlPoolMaintenanceWindowOptions = new operations.SqlPoolMaintenanceWindowOptions(this); - this.sqlPoolTransparentDataEncryptions = new operations.SqlPoolTransparentDataEncryptions(this); - this.sqlPoolBlobAuditingPolicies = new operations.SqlPoolBlobAuditingPolicies(this); - this.sqlPoolOperations = new operations.SqlPoolOperations(this); - this.sqlPoolUsages = new operations.SqlPoolUsages(this); - this.sqlPoolSensitivityLabels = new operations.SqlPoolSensitivityLabels(this); - this.sqlPoolRecommendedSensitivityLabels = new operations.SqlPoolRecommendedSensitivityLabels(this); - this.sqlPoolSchemas = new operations.SqlPoolSchemas(this); - this.sqlPoolTables = new operations.SqlPoolTables(this); - this.sqlPoolTableColumns = new operations.SqlPoolTableColumns(this); - this.sqlPoolConnectionPolicies = new operations.SqlPoolConnectionPolicies(this); - this.sqlPoolVulnerabilityAssessments = new operations.SqlPoolVulnerabilityAssessments(this); - 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.sqlPoolWorkloadGroup = new operations.SqlPoolWorkloadGroup(this); - this.sqlPoolWorkloadClassifier = new operations.SqlPoolWorkloadClassifier(this); - this.workspaceManagedSqlServerBlobAuditingPolicies = new operations.WorkspaceManagedSqlServerBlobAuditingPolicies(this); - this.workspaceManagedSqlServerExtendedBlobAuditingPolicies = new operations.WorkspaceManagedSqlServerExtendedBlobAuditingPolicies(this); - this.workspaceManagedSqlServerSecurityAlertPolicy = new operations.WorkspaceManagedSqlServerSecurityAlertPolicy(this); - this.workspaceManagedSqlServerVulnerabilityAssessments = new operations.WorkspaceManagedSqlServerVulnerabilityAssessments(this); - this.workspaceManagedSqlServerEncryptionProtector = new operations.WorkspaceManagedSqlServerEncryptionProtector(this); - this.workspaceManagedSqlServerUsages = new operations.WorkspaceManagedSqlServerUsages(this); - this.workspaceManagedSqlServerRecoverableSqlPools = new operations.WorkspaceManagedSqlServerRecoverableSqlPools(this); - this.workspaces = new operations.Workspaces(this); - this.workspaceAadAdmins = new operations.WorkspaceAadAdmins(this); - this.workspaceSqlAadAdmins = new operations.WorkspaceSqlAadAdmins(this); - this.workspaceManagedIdentitySqlControlSettings = new operations.WorkspaceManagedIdentitySqlControlSettings(this); - this.restorableDroppedSqlPools = new operations.RestorableDroppedSqlPools(this); - } -} + constructor( + credentials: coreAuth.TokenCredential, + subscriptionId: string, + options?: SynapseManagementClientOptionalParams + ) { + if (credentials === undefined) { + throw new Error("'credentials' cannot be null"); + } + if (subscriptionId === undefined) { + throw new Error("'subscriptionId' cannot be null"); + } + + // Initializing default values for options + if (!options) { + options = {}; + } + const defaults: SynapseManagementClientOptionalParams = { + requestContentType: "application/json; charset=utf-8", + credential: credentials + }; -// Operation Specifications + const packageDetails = `azsdk-js-arm-synapse/8.0.0-beta.1`; + const userAgentPrefix = + options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` + : `${packageDetails}`; -export { - SynapseManagementClient, - SynapseManagementClientContext, - Models as SynapseManagementModels, - Mappers as SynapseManagementMappers -}; -export * from "./operations"; + if (!options.credentialScopes) { + options.credentialScopes = ["https://management.azure.com/.default"]; + } + const optionsWithDefaults = { + ...defaults, + ...options, + userAgentOptions: { + userAgentPrefix + }, + baseUri: options.endpoint || "https://management.azure.com" + }; + super(optionsWithDefaults); + // Parameter assignments + this.subscriptionId = subscriptionId; + + // Assigning values to Constant parameters + this.$host = options.$host || "https://management.azure.com"; + this.azureADOnlyAuthentications = new AzureADOnlyAuthenticationsImpl(this); + this.operations = new OperationsImpl(this); + this.ipFirewallRules = new IpFirewallRulesImpl(this); + this.keys = new KeysImpl(this); + this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); + this.privateLinkResources = new PrivateLinkResourcesImpl(this); + this.privateLinkHubPrivateLinkResources = new PrivateLinkHubPrivateLinkResourcesImpl( + this + ); + this.privateLinkHubs = new PrivateLinkHubsImpl(this); + this.privateEndpointConnectionsPrivateLinkHub = new PrivateEndpointConnectionsPrivateLinkHubImpl( + this + ); + this.sqlPools = new SqlPoolsImpl(this); + this.sqlPoolMetadataSyncConfigs = new SqlPoolMetadataSyncConfigsImpl(this); + this.sqlPoolOperationResults = new SqlPoolOperationResultsImpl(this); + this.sqlPoolGeoBackupPolicies = new SqlPoolGeoBackupPoliciesImpl(this); + this.sqlPoolDataWarehouseUserActivities = new SqlPoolDataWarehouseUserActivitiesImpl( + this + ); + this.sqlPoolRestorePoints = new SqlPoolRestorePointsImpl(this); + this.sqlPoolReplicationLinks = new SqlPoolReplicationLinksImpl(this); + this.sqlPoolMaintenanceWindows = new SqlPoolMaintenanceWindowsImpl(this); + this.sqlPoolMaintenanceWindowOptions = new SqlPoolMaintenanceWindowOptionsImpl( + this + ); + this.sqlPoolTransparentDataEncryptions = new SqlPoolTransparentDataEncryptionsImpl( + this + ); + this.sqlPoolBlobAuditingPolicies = new SqlPoolBlobAuditingPoliciesImpl( + this + ); + this.sqlPoolOperations = new SqlPoolOperationsImpl(this); + this.sqlPoolUsages = new SqlPoolUsagesImpl(this); + this.sqlPoolSensitivityLabels = new SqlPoolSensitivityLabelsImpl(this); + this.sqlPoolRecommendedSensitivityLabels = new SqlPoolRecommendedSensitivityLabelsImpl( + this + ); + this.sqlPoolSchemas = new SqlPoolSchemasImpl(this); + this.sqlPoolTables = new SqlPoolTablesImpl(this); + this.sqlPoolTableColumns = new SqlPoolTableColumnsImpl(this); + this.sqlPoolConnectionPolicies = new SqlPoolConnectionPoliciesImpl(this); + this.sqlPoolVulnerabilityAssessments = new SqlPoolVulnerabilityAssessmentsImpl( + this + ); + this.sqlPoolVulnerabilityAssessmentScans = new SqlPoolVulnerabilityAssessmentScansImpl( + this + ); + this.sqlPoolSecurityAlertPolicies = new SqlPoolSecurityAlertPoliciesImpl( + this + ); + this.sqlPoolVulnerabilityAssessmentRuleBaselines = new SqlPoolVulnerabilityAssessmentRuleBaselinesImpl( + this + ); + this.extendedSqlPoolBlobAuditingPolicies = new ExtendedSqlPoolBlobAuditingPoliciesImpl( + this + ); + this.dataMaskingPolicies = new DataMaskingPoliciesImpl(this); + this.dataMaskingRules = new DataMaskingRulesImpl(this); + this.sqlPoolColumns = new SqlPoolColumnsImpl(this); + this.sqlPoolWorkloadGroup = new SqlPoolWorkloadGroupImpl(this); + this.sqlPoolWorkloadClassifier = new SqlPoolWorkloadClassifierImpl(this); + this.workspaceManagedSqlServerBlobAuditingPolicies = new WorkspaceManagedSqlServerBlobAuditingPoliciesImpl( + this + ); + this.workspaceManagedSqlServerExtendedBlobAuditingPolicies = new WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl( + this + ); + this.workspaceManagedSqlServerSecurityAlertPolicy = new WorkspaceManagedSqlServerSecurityAlertPolicyImpl( + this + ); + this.workspaceManagedSqlServerVulnerabilityAssessments = new WorkspaceManagedSqlServerVulnerabilityAssessmentsImpl( + this + ); + this.workspaceManagedSqlServerEncryptionProtector = new WorkspaceManagedSqlServerEncryptionProtectorImpl( + this + ); + this.workspaceManagedSqlServerUsages = new WorkspaceManagedSqlServerUsagesImpl( + this + ); + this.workspaceManagedSqlServerRecoverableSqlPools = new WorkspaceManagedSqlServerRecoverableSqlPoolsImpl( + this + ); + this.workspaces = new WorkspacesImpl(this); + this.workspaceAadAdmins = new WorkspaceAadAdminsImpl(this); + this.workspaceSqlAadAdmins = new WorkspaceSqlAadAdminsImpl(this); + this.workspaceManagedIdentitySqlControlSettings = new WorkspaceManagedIdentitySqlControlSettingsImpl( + this + ); + this.restorableDroppedSqlPools = new RestorableDroppedSqlPoolsImpl(this); + this.bigDataPools = new BigDataPoolsImpl(this); + this.library = new LibraryImpl(this); + this.libraries = new LibrariesImpl(this); + this.integrationRuntimes = new IntegrationRuntimesImpl(this); + this.integrationRuntimeNodeIpAddressOperations = new IntegrationRuntimeNodeIpAddressOperationsImpl( + this + ); + this.integrationRuntimeObjectMetadata = new IntegrationRuntimeObjectMetadataImpl( + this + ); + this.integrationRuntimeNodes = new IntegrationRuntimeNodesImpl(this); + this.integrationRuntimeCredentials = new IntegrationRuntimeCredentialsImpl( + this + ); + this.integrationRuntimeConnectionInfos = new IntegrationRuntimeConnectionInfosImpl( + this + ); + this.integrationRuntimeAuthKeysOperations = new IntegrationRuntimeAuthKeysOperationsImpl( + this + ); + this.integrationRuntimeMonitoringDataOperations = new IntegrationRuntimeMonitoringDataOperationsImpl( + this + ); + this.integrationRuntimeStatusOperations = new IntegrationRuntimeStatusOperationsImpl( + this + ); + this.sparkConfiguration = new SparkConfigurationImpl(this); + this.sparkConfigurations = new SparkConfigurationsImpl(this); + this.kustoOperations = new KustoOperationsImpl(this); + this.kustoPools = new KustoPoolsImpl(this); + this.kustoPoolChildResource = new KustoPoolChildResourceImpl(this); + this.kustoPoolAttachedDatabaseConfigurations = new KustoPoolAttachedDatabaseConfigurationsImpl( + this + ); + this.kustoPoolDatabases = new KustoPoolDatabasesImpl(this); + this.kustoPoolDataConnections = new KustoPoolDataConnectionsImpl(this); + this.kustoPoolPrincipalAssignments = new KustoPoolPrincipalAssignmentsImpl( + this + ); + this.kustoPoolDatabasePrincipalAssignments = new KustoPoolDatabasePrincipalAssignmentsImpl( + this + ); + } + + azureADOnlyAuthentications: AzureADOnlyAuthentications; + operations: Operations; + ipFirewallRules: IpFirewallRules; + keys: Keys; + privateEndpointConnections: PrivateEndpointConnections; + privateLinkResources: PrivateLinkResources; + privateLinkHubPrivateLinkResources: PrivateLinkHubPrivateLinkResources; + privateLinkHubs: PrivateLinkHubs; + privateEndpointConnectionsPrivateLinkHub: PrivateEndpointConnectionsPrivateLinkHub; + sqlPools: SqlPools; + sqlPoolMetadataSyncConfigs: SqlPoolMetadataSyncConfigs; + sqlPoolOperationResults: SqlPoolOperationResults; + sqlPoolGeoBackupPolicies: SqlPoolGeoBackupPolicies; + sqlPoolDataWarehouseUserActivities: SqlPoolDataWarehouseUserActivities; + sqlPoolRestorePoints: SqlPoolRestorePoints; + sqlPoolReplicationLinks: SqlPoolReplicationLinks; + sqlPoolMaintenanceWindows: SqlPoolMaintenanceWindows; + sqlPoolMaintenanceWindowOptions: SqlPoolMaintenanceWindowOptions; + sqlPoolTransparentDataEncryptions: SqlPoolTransparentDataEncryptions; + sqlPoolBlobAuditingPolicies: SqlPoolBlobAuditingPolicies; + sqlPoolOperations: SqlPoolOperations; + sqlPoolUsages: SqlPoolUsages; + sqlPoolSensitivityLabels: SqlPoolSensitivityLabels; + sqlPoolRecommendedSensitivityLabels: SqlPoolRecommendedSensitivityLabels; + sqlPoolSchemas: SqlPoolSchemas; + sqlPoolTables: SqlPoolTables; + sqlPoolTableColumns: SqlPoolTableColumns; + sqlPoolConnectionPolicies: SqlPoolConnectionPolicies; + sqlPoolVulnerabilityAssessments: SqlPoolVulnerabilityAssessments; + sqlPoolVulnerabilityAssessmentScans: SqlPoolVulnerabilityAssessmentScans; + sqlPoolSecurityAlertPolicies: SqlPoolSecurityAlertPolicies; + sqlPoolVulnerabilityAssessmentRuleBaselines: SqlPoolVulnerabilityAssessmentRuleBaselines; + extendedSqlPoolBlobAuditingPolicies: ExtendedSqlPoolBlobAuditingPolicies; + dataMaskingPolicies: DataMaskingPolicies; + dataMaskingRules: DataMaskingRules; + sqlPoolColumns: SqlPoolColumns; + sqlPoolWorkloadGroup: SqlPoolWorkloadGroup; + sqlPoolWorkloadClassifier: SqlPoolWorkloadClassifier; + workspaceManagedSqlServerBlobAuditingPolicies: WorkspaceManagedSqlServerBlobAuditingPolicies; + workspaceManagedSqlServerExtendedBlobAuditingPolicies: WorkspaceManagedSqlServerExtendedBlobAuditingPolicies; + workspaceManagedSqlServerSecurityAlertPolicy: WorkspaceManagedSqlServerSecurityAlertPolicy; + workspaceManagedSqlServerVulnerabilityAssessments: WorkspaceManagedSqlServerVulnerabilityAssessments; + workspaceManagedSqlServerEncryptionProtector: WorkspaceManagedSqlServerEncryptionProtector; + workspaceManagedSqlServerUsages: WorkspaceManagedSqlServerUsages; + workspaceManagedSqlServerRecoverableSqlPools: WorkspaceManagedSqlServerRecoverableSqlPools; + workspaces: Workspaces; + workspaceAadAdmins: WorkspaceAadAdmins; + workspaceSqlAadAdmins: WorkspaceSqlAadAdmins; + workspaceManagedIdentitySqlControlSettings: WorkspaceManagedIdentitySqlControlSettings; + restorableDroppedSqlPools: RestorableDroppedSqlPools; + bigDataPools: BigDataPools; + library: Library; + libraries: Libraries; + integrationRuntimes: IntegrationRuntimes; + integrationRuntimeNodeIpAddressOperations: IntegrationRuntimeNodeIpAddressOperations; + integrationRuntimeObjectMetadata: IntegrationRuntimeObjectMetadata; + integrationRuntimeNodes: IntegrationRuntimeNodes; + integrationRuntimeCredentials: IntegrationRuntimeCredentials; + integrationRuntimeConnectionInfos: IntegrationRuntimeConnectionInfos; + integrationRuntimeAuthKeysOperations: IntegrationRuntimeAuthKeysOperations; + integrationRuntimeMonitoringDataOperations: IntegrationRuntimeMonitoringDataOperations; + integrationRuntimeStatusOperations: IntegrationRuntimeStatusOperations; + sparkConfiguration: SparkConfiguration; + sparkConfigurations: SparkConfigurations; + kustoOperations: KustoOperations; + kustoPools: KustoPools; + kustoPoolChildResource: KustoPoolChildResource; + kustoPoolAttachedDatabaseConfigurations: KustoPoolAttachedDatabaseConfigurations; + kustoPoolDatabases: KustoPoolDatabases; + kustoPoolDataConnections: KustoPoolDataConnections; + kustoPoolPrincipalAssignments: KustoPoolPrincipalAssignments; + kustoPoolDatabasePrincipalAssignments: KustoPoolDatabasePrincipalAssignments; +} diff --git a/sdk/synapse/arm-synapse/src/synapseManagementClientContext.ts b/sdk/synapse/arm-synapse/src/synapseManagementClientContext.ts deleted file mode 100644 index 5e44f5084cde..000000000000 --- a/sdk/synapse/arm-synapse/src/synapseManagementClientContext.ts +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as Models from "./models"; -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; - -const packageName = "@azure/arm-synapse"; -const packageVersion = "5.1.0"; - -export class SynapseManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; - subscriptionId: string; - apiVersion?: string; - - /** - * Initializes a new instance of the SynapseManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. - * @param subscriptionId The ID of the target subscription. - * @param [options] The parameter options - */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.SynapseManagementClientOptions) { - if (credentials == undefined) { - throw new Error('\'credentials\' cannot be null.'); - } - if (subscriptionId == undefined) { - throw new Error('\'subscriptionId\' cannot be null.'); - } - - if (!options) { - options = {}; - } - if (!options.userAgent) { - const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); - options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; - } - - super(credentials, options); - - this.apiVersion = '2021-03-01'; - this.acceptLanguage = 'en-US'; - this.longRunningOperationRetryTimeout = 30; - this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; - this.requestContentType = "application/json; charset=utf-8"; - this.credentials = credentials; - this.subscriptionId = subscriptionId; - - if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { - this.acceptLanguage = options.acceptLanguage; - } - if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { - this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; - } - } -} diff --git a/sdk/synapse/arm-synapse/test/sampleTest.ts b/sdk/synapse/arm-synapse/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/synapse/arm-synapse/test/sampleTest.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + env, + record, + RecorderEnvironmentSetup, + Recorder +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; + +const recorderEnvSetup: RecorderEnvironmentSetup = { + replaceableVariables: { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" + }, + customizationsOnRecordings: [ + (recording: any): any => + recording.replace( + /"access_token":"[^"]*"/g, + `"access_token":"access_token"` + ) + ], + queryParametersToSkip: [] +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/synapse/arm-synapse/tsconfig.json b/sdk/synapse/arm-synapse/tsconfig.json index 422b584abd5e..6e3251194117 100644 --- a/sdk/synapse/arm-synapse/tsconfig.json +++ b/sdk/synapse/arm-synapse/tsconfig.json @@ -3,7 +3,7 @@ "module": "es6", "moduleResolution": "node", "strict": true, - "target": "es5", + "target": "es6", "sourceMap": true, "declarationMap": true, "esModuleInterop": true, @@ -11,9 +11,9 @@ "forceConsistentCasingInFileNames": true, "lib": ["es6", "dom"], "declaration": true, - "outDir": "./esm", + "outDir": "./dist-esm", "importHelpers": true }, - "include": ["./src/**/*.ts"], + "include": ["./src/**/*.ts", "./test/**/*.ts"], "exclude": ["node_modules"] } diff --git a/sdk/synapse/ci.yml b/sdk/synapse/ci.yml index 4a92294f1bc0..9927059368ac 100644 --- a/sdk/synapse/ci.yml +++ b/sdk/synapse/ci.yml @@ -1,5 +1,3 @@ -# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. - trigger: branches: include: @@ -9,7 +7,6 @@ trigger: paths: include: - sdk/synapse/ - pr: branches: include: @@ -17,10 +14,11 @@ pr: - feature/* - release/* - hotfix/* + exclude: + - feature/v4 paths: include: - sdk/synapse/ - extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: @@ -38,3 +36,5 @@ extends: safeName: azuresynapsemonitoring - name: azure-synapse-spark safeName: azuresynapsespark + - name: azure-arm-synapse + safeName: azurearmsynapse